/* ============================================================
   takbat.my - Emerald Trust Gaming UI Design System
   Visual: Dark neon gaming theme with emerald/cyan accents
   ============================================================ */

:root {
  --color-primary: #22c55e;
  --color-primary-dark: #16a34a;
  --color-primary-soft: rgba(34,197,94,.12);
  --color-secondary: #a855f7;
  --color-accent: #22d3ee;
  --color-bg: #020617;
  --color-bg-soft: #071122;
  --color-surface: #081425;
  --color-surface-strong: #0c1d35;
  --color-card: #081425;
  --color-card-alt: #0a1a2e;
  --color-border: #15344b;
  --color-border-strong: rgba(34,211,238,.25);
  --color-text: #e6fdf7;
  --color-text-soft: #9bdad0;
  --color-text-muted: #8ebdb7;
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-footer-bg: #030b16;
  --color-footer-text: #8ebdb7;
  --gradient-hero: linear-gradient(135deg, rgba(2,6,23,.95) 0%, rgba(7,17,34,.9) 50%, rgba(34,211,238,.08) 100%);
  --gradient-button: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  --gradient-card: linear-gradient(180deg, rgba(8,20,37,.88), rgba(5,14,27,.95));
  --gradient-cta: linear-gradient(135deg, rgba(34,197,94,.15), rgba(34,211,238,.1));
  --shadow-header: 0 4px 24px rgba(0,0,0,.4);
  --shadow-card: 0 8px 32px rgba(0,0,0,.25);
  --shadow-card-hover: 0 12px 40px rgba(0,0,0,.35);
  --shadow-button: 0 4px 16px rgba(34,197,94,.25);
  --shadow-soft: 0 2px 12px rgba(0,0,0,.15);
  --glow: 0 0 .6rem rgba(34,211,238,.3), 0 0 1.2rem rgba(34,197,94,.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --radius-card: 16px;
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --fs-h1: clamp(1.8rem, 3.5vw, 3.2rem);
  --fs-h2: clamp(1.4rem, 2.5vw, 2.2rem);
  --fs-h3: clamp(1.1rem, 1.8vw, 1.5rem);
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-nav: clamp(13px, .84vw, 15px);
  --lh-body: 1.8;
  --lh-heading: 1.2;
  --section-y: clamp(48px, 6vw, 80px);
  --container-max: 1200px;
  --header-h: 72px;
  --mobile-header-h: 64px;
  --motion-normal: .3s;
  --ease-out: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  background: radial-gradient(circle at 10% 10%, rgba(34,211,238,.1), transparent 30%),
              radial-gradient(circle at 90% 20%, rgba(168,85,247,.08), transparent 25%),
              radial-gradient(circle at 50% 100%, rgba(34,197,94,.06), transparent 28%),
              var(--color-bg);
  color: var(--color-text);
  line-height: var(--lh-body);
  font-size: var(--fs-body);
  overflow-x: hidden;
}

a { text-decoration: none; color: var(--color-accent); transition: color var(--motion-normal) var(--ease-out); }
a:hover { color: var(--color-primary); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4 { line-height: var(--lh-heading); margin: 0 0 .75em; color: var(--color-text); }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0 0 1.2em; }
ul { padding-left: 1.5em; }
li { margin-bottom: .6em; }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.5rem; border-radius: var(--radius-pill); font-weight: 700;
  font-size: 15px; cursor: pointer; border: none; white-space: nowrap;
  transition: all var(--motion-normal) var(--ease-out); text-decoration: none;
  min-height: 44px;
}
.btn-primary-glow {
  background: var(--gradient-button); color: #03110d;
  box-shadow: var(--shadow-button);
}
.btn-primary-glow:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(34,197,94,.35); color: #03110d; }
.btn-outline-glow {
  border: 1px solid var(--color-accent); color: var(--color-accent);
  background: transparent; box-shadow: var(--glow);
}
.btn-outline-glow:hover { background: var(--color-accent); color: #03110d; }
.btn-full { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000; width: 100%;
  background: rgba(2,6,23,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34,211,238,.15);
  box-shadow: var(--shadow-header);
}
.header-inner {
  width: 100%; max-width: none;
  padding-left: clamp(10px, 1.2vw, 20px); padding-right: clamp(10px, 1.2vw, 20px);
  min-height: var(--header-h); display: flex; align-items: center;
  gap: clamp(10px, 1vw, 18px);
}
.brand-wrap { flex: 0 0 auto; margin-right: clamp(4px, .8vw, 14px); }
.site-logo { display: block; width: auto; height: clamp(32px, 3vw, 44px); max-width: clamp(118px, 10vw, 168px); object-fit: contain; }
.primary-nav {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center;
  justify-content: center; flex-wrap: nowrap; gap: clamp(6px, .72vw, 14px);
  white-space: nowrap; overflow: visible;
}
.primary-nav a {
  flex: 0 1 auto; min-width: 0; padding: 9px clamp(6px, .65vw, 12px);
  font-size: var(--fs-nav); line-height: 1; white-space: nowrap;
  color: var(--color-text); font-weight: 600; border-bottom: 2px solid transparent;
  transition: all var(--motion-normal) var(--ease-out); text-decoration: none;
}
.primary-nav a:hover, .primary-nav a.active { color: var(--color-accent); border-color: var(--color-primary); }
.header-actions {
  flex: 0 0 auto; margin-left: auto; display: flex; align-items: center;
  justify-content: flex-end; gap: clamp(6px, .6vw, 10px); white-space: nowrap;
}
.header-actions .btn { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: var(--radius-pill); }
.btn-register { background: var(--gradient-button); color: #03110d; font-weight: 700; border: none; }
.btn-register:hover { color: #03110d; }
.btn-login { border: 1px solid var(--color-accent); color: var(--color-accent); background: transparent; }
.btn-login:hover { background: var(--color-accent); color: #03110d; }
.nav-toggle { display: none; }

/* Mobile Menu */
.mobile-menu {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0;
  background: rgba(7,17,34,.98); backdrop-filter: blur(16px);
  padding: 16px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  border-bottom: 1px solid var(--color-border); z-index: 999;
  flex-direction: column; gap: 0;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  display: block; padding: 14px 16px; color: var(--color-text); font-weight: 600;
  font-size: 16px; border-bottom: 1px solid rgba(34,211,238,.08); text-decoration: none;
}
.mobile-menu a:hover { color: var(--color-accent); background: rgba(34,211,238,.05); }

@media (max-width: 1180px) {
  .primary-nav { display: none; }
  .nav-toggle {
    display: inline-flex; flex: 0 0 40px; width: 40px; height: 40px;
    align-items: center; justify-content: center; background: none; border: 1px solid rgba(34,211,238,.3);
    border-radius: var(--radius-sm); cursor: pointer; margin-left: 2px; padding: 0;
    flex-direction: column; gap: 5px;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--color-accent); border-radius: 2px; transition: all .3s; }
  .header-inner { min-height: var(--mobile-header-h); padding-left: clamp(8px, 2.4vw, 14px); padding-right: clamp(8px, 2.4vw, 14px); }
  .header-actions { margin-left: auto; gap: clamp(5px, 1.6vw, 8px); }
  .header-actions .btn { min-height: 38px; padding-inline: clamp(10px, 2.6vw, 14px); font-size: clamp(12px, 3.2vw, 14px); }
  .site-logo { height: clamp(30px, 8vw, 40px); max-width: clamp(104px, 27vw, 138px); }
}
@media (max-width: 375px) {
  .header-inner { padding-left: 8px; padding-right: 8px; gap: 6px; }
  .site-logo { max-width: 104px; }
  .header-actions .btn { min-height: 36px; padding-inline: 8px; font-size: 12px; }
  .nav-toggle { flex-basis: 36px; width: 36px; height: 36px; }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-nav { padding: 14px 0; border-bottom: 1px solid rgba(34,211,238,.08); }
.breadcrumb-nav .container { font-size: 14px; color: var(--color-text-muted); }
.breadcrumb-nav a { color: var(--color-accent); }
.breadcrumb-nav span { margin: 0 6px; }

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.home-hero { padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 6vw, 70px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-badge {
  display: inline-block; padding: .4rem .8rem; border: 1px solid rgba(34,211,238,.4);
  color: var(--color-accent); border-radius: var(--radius-pill); font-size: .85rem;
  letter-spacing: .04em; box-shadow: var(--glow); background: rgba(8,20,37,.6); margin-bottom: 16px;
}
.hero-lead { color: var(--color-text-soft); font-size: 18px; max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.hero-card {
  background: var(--gradient-card); border: 1px solid rgba(34,211,238,.14);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 20px;
}
.hero-img-wrap img { border-radius: var(--radius-lg); border: 1px solid rgba(34,211,238,.12); }
.hero-note { color: var(--color-text-muted); font-size: 15px; margin-top: 16px; margin-bottom: 0; }

.page-hero {
  padding: clamp(40px, 5vw, 70px) 0; background: var(--gradient-hero);
  border-bottom: 1px solid rgba(34,211,238,.1);
}
.page-hero .hero-lead { color: var(--color-text-soft); font-size: 17px; max-width: 800px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.home-trust-strip {
  padding: 24px 0; border-top: 1px solid rgba(34,211,238,.1);
  border-bottom: 1px solid rgba(34,211,238,.1); background: rgba(8,20,37,.4);
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-item h3 { color: var(--color-accent); font-weight: 800; margin-bottom: 4px; }
.trust-item p { color: var(--color-text-muted); font-size: 14px; margin: 0; }
@media (max-width: 600px) { .trust-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-section { padding: var(--section-y) 0; }
.content-section + .content-section { border-top: 1px solid rgba(34,211,238,.06); }
.content-two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; margin-bottom: 32px; }
.content-two-col.reverse { direction: rtl; }
.content-two-col.reverse > * { direction: ltr; }
.content-img-break { margin: 28px 0; text-align: center; }
.content-img-break img { border-radius: var(--radius-lg); border: 1px solid rgba(34,211,238,.12); box-shadow: var(--shadow-card); max-width: 100%; }
.content-visual img { border-radius: var(--radius-lg); border: 1px solid rgba(34,211,238,.12); }
@media (max-width: 900px) {
  .content-two-col { grid-template-columns: 1fr; }
  .content-two-col.reverse { direction: ltr; }
}

/* Glass Card */
.glass-card {
  background: var(--gradient-card); border: 1px solid rgba(34,211,238,.14);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 24px;
}
.info-card { padding: 24px; }
.highlight-card { border-left: 4px solid var(--color-secondary); background: linear-gradient(180deg, rgba(168,85,247,.1), rgba(8,20,37,.95)); }

/* ============================================================
   FEATURE GRID
   ============================================================ */
.home-feature-grid { padding: var(--section-y) 0; }
.section-header { margin-bottom: 32px; }
.section-header.center { text-align: center; }
.section-kicker { color: var(--color-primary); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; font-weight: 700; display: block; margin-bottom: 8px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { padding: 24px; height: 100%; transition: transform var(--motion-normal) var(--ease-out), box-shadow var(--motion-normal); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.feature-icon { font-size: 1.8rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--color-text-soft); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .feature-grid { grid-template-columns: 1fr; } }

/* ============================================================
   STEP GRID
   ============================================================ */
.home-start-panel { padding: var(--section-y) 0; }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card { padding: 24px; height: 100%; }
.step-num {
  display: inline-flex; width: 44px; height: 44px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; box-shadow: var(--glow);
}
@media (max-width: 900px) { .step-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .step-grid { grid-template-columns: 1fr; } }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison-block { margin-bottom: 32px; }
.table-scroll { overflow-x: auto; margin: 20px 0; }
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th, .comparison-table td {
  padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(34,211,238,.15);
}
.comparison-table th { color: var(--color-accent); font-weight: 700; border-bottom-width: 2px; }
.comparison-table td { color: var(--color-text-soft); }

/* ============================================================
   CTA SECTIONS
   ============================================================ */
.home-final-cta, .page-cta { padding: var(--section-y) 0; }
.cta-card {
  background: var(--gradient-cta); border: 1px solid rgba(34,211,238,.2);
  border-radius: var(--radius-xl); padding: clamp(32px, 4vw, 56px); text-align: center;
  box-shadow: var(--shadow-card);
}
.cta-card p { color: var(--color-text-soft); max-width: 600px; margin: 0 auto 24px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-section { padding: var(--section-y) 0; }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.auth-form-card { max-width: 480px; }
.auth-form .form-group { margin-bottom: 18px; }
.auth-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; color: var(--color-text-soft); }
.auth-form input {
  width: 100%; padding: 14px 16px; background: rgba(8,20,37,.6);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  color: var(--color-text); font-size: 16px; font-family: var(--font-base);
  transition: border-color var(--motion-normal);
}
.auth-form input:focus { border-color: var(--color-accent); outline: none; box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.auth-form input::placeholder { color: var(--color-text-muted); }
.auth-alt { text-align: center; margin-top: 16px; font-size: 15px; color: var(--color-text-muted); }
.auth-trust-card ul { padding-left: 18px; }
.auth-trust-card li { color: var(--color-text-soft); margin-bottom: 8px; }
@media (max-width: 768px) { .auth-layout { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq-groups { margin: 24px 0; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 18px 0; background: none; border: none;
  color: var(--color-text); cursor: pointer; text-align: left; font-family: var(--font-base);
}
.faq-toggle h3 { margin: 0; font-size: 1.05rem; }
.faq-icon { font-size: 1.4rem; color: var(--color-accent); transition: transform .3s; flex-shrink: 0; margin-left: 12px; }
.faq-toggle[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 0 18px; }
.faq-answer p { color: var(--color-text-soft); margin: 0; }
.faq-toggle[aria-expanded="true"] + .faq-answer { display: block; }

/* ============================================================
   POLICY PAGES
   ============================================================ */
.policy-content { max-width: 860px; margin: 0 auto; }
.policy-content h2 { margin-top: 2em; border-bottom: 1px solid rgba(34,211,238,.1); padding-bottom: .5em; }
.policy-content h2:first-child { margin-top: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid rgba(34,211,238,.12); background: var(--color-footer-bg);
  padding: clamp(40px, 5vw, 64px) 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 40px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}
.footer-brand { max-width: 320px; }
.footer-logo-wrap { display: inline-block; margin-bottom: 16px; }
.footer-logo-wrap img { height: 40px; width: auto; }
.footer-desc { color: var(--color-footer-text); font-size: 15px; margin-bottom: 12px; }
.footer-contact { color: var(--color-footer-text); font-size: 14px; }
.footer-links-group { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col h4 { color: var(--color-text); font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--color-footer-text); font-size: 14px; padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
  margin-top: 32px; padding: 20px 0; border-top: 1px solid rgba(34,211,238,.08);
  text-align: center;
}
.footer-bottom p {
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 0 auto;
  max-width: var(--container-max);
  padding: 0 20px;
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links-group { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) { .footer-links-group { grid-template-columns: 1fr; } }

/* ============================================================
   ERROR PAGE
   ============================================================ */
.error-section { padding: 100px 0; text-align: center; }
.error-actions { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ============================================================
   RESPONSIVE SAFETY
   ============================================================ */
@media (max-width: 414px) {
  body { font-size: 16px; }
  .container { padding: 0 14px; }
  .cta-card { padding: 24px 16px; }
}
@media (max-width: 375px) {
  .hero-lead { font-size: 16px; }
  .btn { font-size: 14px; padding: .65rem 1.2rem; }
}
