/* ============================================================
   betjee app - Global Stylesheet
   Original design system for Bangladesh market
   ============================================================ */

/* --- Reset & Base --- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,"Noto Sans Bengali",sans-serif;
  background:#0b1120;
  color:#d1d5db;
  line-height:1.8;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{color:#60a5fa;text-decoration:none;transition:color .2s}
a:hover{color:#93c5fd}
ul,ol{list-style:none}

/* --- Container --- */
.container{max-width:1180px;margin:0 auto;padding:0 20px}

/* ============================================================
   HEADER - Sticky, single-line, 3-column grid
   ============================================================ */
.site-header{
  position:sticky;top:0;z-index:1000;width:100%;
  background:linear-gradient(180deg,#0f1729 0%,#111d35 100%);
  border-bottom:2px solid #d97706;
}
.header-inner{
  max-width:1180px;margin:0 auto;min-height:72px;padding:0 20px;
  display:grid;grid-template-columns:168px minmax(0,1fr) auto;
  align-items:center;gap:18px;
}
.brand-wrap{
  width:168px;min-width:168px;max-width:168px;height:56px;
  display:flex;align-items:center;gap:10px;overflow:hidden;
  text-decoration:none;
}
.brand-mark{
  width:42px;height:42px;flex:0 0 42px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#1e3a5f,#0d47a1);
  border-radius:10px;
}
.brand-mark svg{width:28px;height:28px}
.brand-text{min-width:0;line-height:1.05}
.brand-text strong{
  display:block;max-width:105px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;
  font-size:18px;font-weight:700;color:#fbbf24;
}
.brand-text span{
  display:block;max-width:105px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;
  font-size:11px;color:#94a3b8;letter-spacing:.5px;
}

/* --- Primary Nav --- */
.primary-nav{
  min-width:0;display:flex;align-items:center;
  justify-content:center;gap:clamp(10px,1.2vw,22px);
  overflow:visible;flex-wrap:nowrap;
}
.primary-nav a{
  white-space:nowrap;flex:0 1 auto;max-width:128px;
  overflow:hidden;text-overflow:ellipsis;
  line-height:1;padding:10px 8px;
  color:#c9d1d9;font-size:14px;font-weight:500;
  transition:color .2s;position:relative;
}
.primary-nav a:hover,.primary-nav a.active{color:#fbbf24}
.primary-nav a.active::after{
  content:'';position:absolute;bottom:2px;left:20%;right:20%;
  height:2px;background:#fbbf24;border-radius:1px;
}

/* --- Header Actions (CTA buttons) --- */
.header-actions{
  flex-shrink:0;display:flex;align-items:center;
  gap:10px;white-space:nowrap;
}
.header-actions .btn{
  min-height:42px;padding:0 18px;
  display:inline-flex;align-items:center;justify-content:center;
  white-space:nowrap;border-radius:8px;font-size:14px;font-weight:600;
  transition:all .2s;border:none;cursor:pointer;text-decoration:none;
}
.btn-register{
  background:linear-gradient(135deg,#d97706,#f59e0b);color:#0f1729;
}
.btn-register:hover{background:linear-gradient(135deg,#f59e0b,#fbbf24);color:#0f1729;transform:translateY(-1px)}
.btn-login{
  background:transparent;color:#fbbf24;
  border:1.5px solid #d97706 !important;
}
.btn-login:hover{background:rgba(251,191,36,.1);color:#fbbf24;transform:translateY(-1px)}

/* --- Nav Toggle (mobile) --- */
.nav-toggle{
  display:none;width:42px;height:42px;
  background:transparent;border:1.5px solid #475569;border-radius:8px;
  color:#e5e7eb;cursor:pointer;
  align-items:center;justify-content:center;
  font-size:20px;transition:border-color .2s;
}
.nav-toggle:hover{border-color:#fbbf24}

/* --- More Menu --- */
.nav-more{position:relative;flex:0 0 auto}
.more-toggle{
  min-height:38px;padding:0 12px;border:0;
  border-radius:999px;cursor:pointer;white-space:nowrap;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(251,191,36,.12);color:#fbbf24;
  font-size:14px;font-weight:500;
  transition:background .2s;
}
.more-toggle:hover{background:rgba(251,191,36,.22)}
.more-menu{
  position:absolute;top:calc(100% + 12px);right:0;
  min-width:210px;padding:10px;border-radius:16px;
  z-index:1200;background:#1e293b;
  border:1px solid #334155;
  box-shadow:0 12px 40px rgba(0,0,0,.5);
}
.more-menu[hidden]{display:none !important}
.nav-more.is-open .more-menu{display:grid;gap:4px}
.more-menu a{
  display:block;width:100%;max-width:none;
  padding:11px 12px;white-space:nowrap;
  text-overflow:ellipsis;overflow:hidden;
  color:#c9d1d9;font-size:14px;border-radius:8px;
  transition:background .15s;
}
.more-menu a:hover{background:rgba(251,191,36,.1);color:#fbbf24}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero-home{
  background:linear-gradient(135deg,#0f1729 0%,#162040 50%,#1a2744 100%);
  padding:80px 0 60px;text-align:center;
  border-bottom:3px solid #d97706;position:relative;overflow:hidden;
}
.hero-home::before{
  content:'';position:absolute;top:0;left:0;right:0;bottom:0;
  background:radial-gradient(ellipse at 50% 30%,rgba(251,191,36,.08) 0%,transparent 70%);
}
.hero-home .container{position:relative;z-index:1}
.hero-home h1{
  font-size:clamp(28px,4vw,48px);font-weight:700;color:#fbbf24;
  margin-bottom:20px;text-shadow:0 0 30px rgba(251,191,36,.3);
}
.hero-home .hero-desc{
  font-size:clamp(16px,2vw,20px);color:#cbd5e1;
  max-width:800px;margin:0 auto 30px;
}
.hero-banner{
  margin-top:30px;border-radius:16px;overflow:hidden;
  box-shadow:0 8px 40px rgba(0,0,0,.4);
}
.hero-banner img{width:100%;display:block}

/* Inner page hero */
.hero-inner{
  background:linear-gradient(135deg,#111d35,#182848);
  padding:50px 0 40px;text-align:center;
  border-bottom:2px solid #334155;
}
.hero-inner h1{
  font-size:clamp(24px,3.5vw,40px);font-weight:700;color:#fbbf24;
  margin-bottom:14px;
}
.hero-inner .hero-subtitle{
  font-size:clamp(15px,1.8vw,18px);color:#94a3b8;
  max-width:700px;margin:0 auto;
}

/* Breadcrumb */
.breadcrumb{
  padding:14px 0;font-size:13px;color:#64748b;
}
.breadcrumb a{color:#60a5fa}
.breadcrumb span{margin:0 6px;color:#475569}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-section{padding:72px 0}
.content-section.alt{background:#0e1525}
.section-title{
  font-size:clamp(24px,3vw,38px);font-weight:700;color:#fbbf24;
  text-align:center;margin-bottom:16px;
}
.section-subtitle{
  text-align:center;color:#94a3b8;font-size:16px;
  max-width:650px;margin:0 auto 40px;
}

/* Prose (long-form content) */
.prose{max-width:820px}
.prose p{font-size:17px;line-height:1.9;margin:0 0 18px;color:#c9d1d9}
.prose h2{
  font-size:clamp(22px,3vw,34px);line-height:1.25;
  margin:48px 0 18px;color:#fbbf24;font-weight:700;
}
.prose h3{
  font-size:clamp(18px,2vw,26px);line-height:1.35;
  margin:28px 0 12px;color:#e2e8f0;font-weight:600;
}
.prose ul,.prose ol{margin:0 0 18px 24px;list-style:disc}
.prose li{margin-bottom:8px;line-height:1.7}
.prose strong{color:#fbbf24}
.prose a{color:#60a5fa;text-decoration:underline}

/* Content grid (text + image side by side) */
.content-grid{
  display:grid;grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr);
  gap:36px;align-items:start;
}
.content-grid.reverse{direction:rtl}
.content-grid.reverse>*{direction:ltr}

/* ============================================================
   CARDS
   ============================================================ */
.card-grid{
  display:grid;gap:24px;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
}
.card{
  background:linear-gradient(160deg,#162040,#1a2744);
  border:1px solid #1e3a5f;border-radius:16px;
  padding:28px 24px;transition:transform .2s,box-shadow .2s;
}
.card:hover{transform:translateY(-4px);box-shadow:0 8px 30px rgba(0,0,0,.3)}
.card-icon{
  width:52px;height:52px;margin-bottom:16px;
  background:linear-gradient(135deg,#d97706,#f59e0b);
  border-radius:12px;display:grid;place-items:center;
  font-size:24px;color:#0f1729;
}
.card h3{font-size:18px;color:#e2e8f0;margin-bottom:10px;font-weight:600}
.card p{font-size:15px;color:#94a3b8;line-height:1.7}
.card img{border-radius:12px;margin-bottom:16px}

/* Game cards */
.game-card{overflow:hidden;padding:0}
.game-card .card-thumb{
  height:180px;overflow:hidden;position:relative;
}
.game-card .card-thumb img{width:100%;height:100%;object-fit:cover}
.game-card .card-body{padding:20px}
.game-card .card-body h3{margin-bottom:8px}
.game-card .card-body p{font-size:14px}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list{max-width:820px;margin:0 auto}
.faq-item{
  border:1px solid #1e3a5f;border-radius:12px;
  margin-bottom:12px;overflow:hidden;
  background:#111d35;
}
.faq-question{
  width:100%;padding:18px 20px;
  background:transparent;border:none;color:#e2e8f0;
  font-size:16px;font-weight:600;text-align:left;
  cursor:pointer;display:flex;justify-content:space-between;
  align-items:center;transition:color .2s;
}
.faq-question:hover{color:#fbbf24}
.faq-question::after{
  content:'+';font-size:22px;color:#fbbf24;
  transition:transform .2s;flex-shrink:0;margin-left:12px;
}
.faq-item.open .faq-question::after{content:'\2212'}
.faq-answer{
  display:none;padding:0 20px 18px;
  font-size:15px;line-height:1.8;color:#94a3b8;
}
.faq-item.open .faq-answer{display:block}

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section{
  padding:72px 0;text-align:center;
  background:linear-gradient(135deg,#1a2744,#0f1729);
}
.cta-section h2{
  font-size:clamp(24px,3vw,38px);color:#fbbf24;
  margin-bottom:16px;font-weight:700;
}
.cta-section p{color:#94a3b8;max-width:600px;margin:0 auto 30px;font-size:17px}
.cta-btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:52px;padding:0 36px;border-radius:12px;
  background:linear-gradient(135deg,#d97706,#f59e0b);
  color:#0f1729;font-size:17px;font-weight:700;
  transition:all .2s;text-decoration:none;
  box-shadow:0 4px 20px rgba(217,119,6,.3);
}
.cta-btn:hover{transform:translateY(-2px);box-shadow:0 6px 30px rgba(217,119,6,.5);color:#0f1729}

/* ============================================================
   STEPS / TIMELINE
   ============================================================ */
.steps-list{max-width:720px;margin:0 auto}
.step-item{
  display:flex;gap:20px;margin-bottom:28px;
  align-items:flex-start;
}
.step-num{
  flex:0 0 48px;height:48px;
  background:linear-gradient(135deg,#d97706,#f59e0b);
  border-radius:50%;display:grid;place-items:center;
  font-size:20px;font-weight:700;color:#0f1729;
}
.step-content h3{font-size:18px;color:#e2e8f0;margin-bottom:6px;font-weight:600}
.step-content p{font-size:15px;color:#94a3b8;line-height:1.7}

/* ============================================================
   NOTICE / WARNING PANEL
   ============================================================ */
.notice-panel{
  background:rgba(217,119,6,.08);border:1px solid rgba(217,119,6,.25);
  border-radius:14px;padding:24px 28px;margin:24px 0;
}
.notice-panel h3{color:#fbbf24;font-size:18px;margin-bottom:10px}
.notice-panel p,.notice-panel li{color:#cbd5e1;font-size:15px;line-height:1.7}
.notice-panel ul{margin:10px 0 0 20px;list-style:disc}

/* ============================================================
   STATS
   ============================================================ */
.stats-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:24px;
  text-align:center;
}
.stat-box{
  background:#111d35;border:1px solid #1e3a5f;
  border-radius:14px;padding:28px 16px;
}
.stat-box .number{font-size:36px;font-weight:700;color:#fbbf24}
.stat-box .label{font-size:14px;color:#94a3b8;margin-top:6px}

/* ============================================================
   TABLE
   ============================================================ */
.info-table{width:100%;border-collapse:collapse;margin:20px 0}
.info-table th,.info-table td{
  padding:14px 16px;text-align:left;
  border-bottom:1px solid #1e3a5f;font-size:15px;
}
.info-table th{color:#fbbf24;font-weight:600;background:#111d35}
.info-table td{color:#c9d1d9}
.info-table tr:hover td{background:rgba(251,191,36,.04)}

/* ============================================================
   RELATED LINKS
   ============================================================ */
.related-links{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;
  margin:24px 0;
}
.related-link{
  display:flex;align-items:center;gap:12px;
  padding:16px 20px;background:#111d35;
  border:1px solid #1e3a5f;border-radius:12px;
  color:#c9d1d9;font-size:15px;transition:all .2s;
}
.related-link:hover{border-color:#d97706;color:#fbbf24;transform:translateX(4px)}
.related-link::before{content:'\2192';color:#fbbf24;font-size:18px;flex-shrink:0}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  background:#080e1a;border-top:2px solid #1e3a5f;
  padding:60px 0 0;
}
.footer-grid{
  display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:36px;
  margin-bottom:48px;
}
.footer-col h4{
  font-size:16px;font-weight:700;color:#fbbf24;
  margin-bottom:16px;
}
.footer-about p{font-size:14px;color:#64748b;line-height:1.7;margin-bottom:12px}
.footer-col ul li{margin-bottom:10px}
.footer-col ul li a{color:#94a3b8;font-size:14px;transition:color .2s}
.footer-col ul li a:hover{color:#fbbf24}
.footer-contact li{
  display:flex;gap:8px;color:#94a3b8;font-size:14px;margin-bottom:10px;
  align-items:flex-start;
}
.footer-contact li strong{color:#cbd5e1;min-width:60px}
.footer-bottom{
  border-top:1px solid #1e293b;padding:20px 0;
  text-align:center;font-size:13px;color:#475569;
}
.footer-bottom a{color:#64748b}

/* ============================================================
   PAGE-SPECIFIC: Lobby
   ============================================================ */
.lobby-categories{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:28px;
}

/* ============================================================
   PAGE-SPECIFIC: Article / Detail
   ============================================================ */
.article-meta{
  display:flex;gap:16px;align-items:center;
  font-size:14px;color:#64748b;margin-bottom:24px;
}
.article-meta time{color:#94a3b8}

/* ============================================================
   PAGE-SPECIFIC: 404
   ============================================================ */
.page-404{text-align:center;padding:100px 20px}
.page-404 h1{font-size:120px;color:#fbbf24;font-weight:700;line-height:1}
.page-404 h2{font-size:28px;color:#e2e8f0;margin:16px 0}
.page-404 p{color:#94a3b8;margin-bottom:30px}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1024px){
  .footer-grid{grid-template-columns:1fr 1fr}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .content-grid{grid-template-columns:1fr}
}

@media(max-width:900px){
  .header-inner{
    min-height:68px;
    grid-template-columns:140px 1fr auto;gap:10px;
  }
  .brand-wrap{width:140px;min-width:140px;max-width:140px;height:48px}
  .brand-mark{width:38px;height:38px;flex-basis:38px}
  .brand-text strong,.brand-text span{max-width:86px}
  .primary-nav{
    position:fixed;left:12px;right:12px;top:76px;
    display:none;flex-direction:column;align-items:stretch;gap:0;
    padding:14px;border-radius:18px;
    max-height:calc(100vh - 96px);overflow-y:auto;
    background:#1e293b;border:1px solid #334155;
    box-shadow:0 12px 40px rgba(0,0,0,.6);z-index:1100;
  }
  .primary-nav.is-open{display:flex}
  .primary-nav a{
    max-width:none;width:100%;padding:14px 12px;
    text-overflow:initial;font-size:16px;
    border-bottom:1px solid #1e3a5f;
  }
  .primary-nav a:last-child{border-bottom:none}
  .header-actions{justify-content:flex-end;gap:6px}
  .header-actions .btn{min-height:38px;padding:0 12px;font-size:14px}
  .nav-toggle{display:inline-flex}
  .nav-more{display:contents !important}
  .more-toggle{display:none !important}
  .more-menu{
    display:flex !important;flex-direction:column;
    position:static;min-width:0;padding:0;border-radius:0;
    background:none;border:none;box-shadow:none;
  }
  .more-menu a{
    padding:14px 12px;font-size:16px;
    border-bottom:1px solid #1e3a5f;border-radius:0;
  }

  .hero-home{padding:50px 0 40px}
  .hero-home h1{font-size:clamp(22px,5vw,32px)}
  .content-section{padding:48px 0}
  .content-grid{grid-template-columns:1fr}
  .prose p{font-size:16px;line-height:1.85}
  .card-grid{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .related-links{grid-template-columns:1fr}
}

@media(max-width:480px){
  .header-inner{padding:0 12px}
  .hero-home h1{font-size:22px}
  .section-title{font-size:22px}
}
