/* ─────────────────────────────────────────────────────────────
   BDG Game Login — Shared Site Stylesheet
   All pages import this. Inner-page micro-overrides go inline.
───────────────────────────────────────────────────────────── */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #0c0e1a;
  color: #e0e4f0;
  line-height: 1.6;
  padding-bottom: 72px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── CSS vars ── */
:root {
  --red:    #ff416c;
  --red2:   #e8224d;
  --orange: #ff9f00;
  --gold:   #ffd700;
  --green:  #27ae60;
  --blue:   #2980b9;
  --dark1:  #0c0e1a;
  --dark2:  #111322;
  --dark3:  #141728;
  --dark4:  #1a1e32;
  --border: rgba(255,255,255,0.07);
  --muted:  #5a6480;
  --text:   #c0cce0;
}

/* ── Topbar (brand only — no duplicate page title) ── */
.topbar {
  background: var(--dark2);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  position: sticky; top: 0; z-index: 900;
}
.topbar-brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.92rem; font-weight: 800; color: #fff;
}
.topbar-brand img { width: 28px; height: 28px; border-radius: 6px; }
.topbar-actions { display: flex; gap: 8px; }
.tb-btn {
  padding: 7px 16px; border-radius: 7px;
  font-size: 0.82rem; font-weight: 800;
}
.tb-btn.login  { background: var(--red); color: #fff; }
.tb-btn.reg    { background: var(--gold); color: #111; }

/* ── Activity ticker ── */
.ticker {
  background: var(--dark2);
  border-bottom: 1px solid rgba(255,65,108,0.18);
  padding: 8px 20px;
}
.ticker-inner {
  display: flex; align-items: center; gap: 10px;
  max-width: 860px; margin: 0 auto;
}
.live-dot {
  background: var(--green); color: #fff;
  padding: 2px 10px; border-radius: 20px;
  font-size: 0.65rem; font-weight: 700; white-space: nowrap; flex-shrink: 0;
}
.ticker-msg { font-size: 0.82rem; color: var(--text); font-weight: 500; }
.ticker-msg.in { animation: tickIn 0.4s ease both; }
@keyframes tickIn { from{opacity:0;transform:translateX(14px)} to{opacity:1;transform:translateX(0)} }

/* ── Page wrapper (centers content, good on desktop) ── */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Section ── */
.section { padding: 40px 0; }
.section + .section { border-top: 1px solid var(--border); }
.sec-head { text-align: center; margin-bottom: 28px; }
.sec-title { font-size: 1.25rem; font-weight: 900; color: #fff; margin: 0 0 6px; }
.sec-sub   { font-size: 0.84rem; color: var(--muted); margin: 0; }

/* ── Hero (homepage) ── */
.hero {
  padding: 44px 20px 40px;
  text-align: center;
  background: linear-gradient(170deg, #12091e 0%, #1a0c18 55%, var(--dark1) 100%);
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 20% 20%, rgba(255,65,108,0.2), transparent 70%),
    radial-gradient(45% 38% at 80% 65%, rgba(255,75,43,0.13), transparent 70%);
}
.hero h1 {
  font-size: clamp(1.55rem, 4.5vw, 2.4rem);
  font-weight: 900; color: #fff;
  line-height: 1.22; margin: 0 0 12px;
  position: relative;
}
.hero-sub { color: #8892a8; font-size: 0.93rem; margin: 0 0 30px; position: relative; }

/* ── Inner page hero ── */
.page-hero {
  background: linear-gradient(160deg, #12091e 0%, #1a0c18 100%);
  padding: 32px 20px 28px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  font-weight: 900; color: #fff; margin: 0 0 8px;
}
.page-hero p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; gap: 6px; flex-wrap: wrap;
  font-size: 0.76rem; color: var(--muted);
  padding: 10px 0 0; justify-content: center;
}
.breadcrumb a { color: var(--red); }
.breadcrumb span { color: var(--muted); }

/* ── Stats strip ── */
.stats-strip {
  background: var(--dark2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: flex;
}
.stat-item {
  flex: 1; text-align: center; padding: 13px 6px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 1.1rem; font-weight: 900; color: var(--gold); }
.stat-lbl { font-size: 0.64rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; margin-top: 2px; }

/* ── CTA Buttons ── */
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 24px; border-radius: 13px;
  background: linear-gradient(135deg, var(--red), var(--red2));
  color: #fff; font-size: 1.05rem; font-weight: 900;
  box-shadow: 0 8px 26px rgba(255,65,108,0.42);
  position: relative; overflow: hidden; cursor: pointer;
}
.btn-primary::after, .btn-gold::after {
  content: ''; position: absolute; top: -50%; left: -80%;
  width: 40%; height: 200%;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.38) 50%, transparent 80%);
  transform: skewX(-20deg); animation: btnShine 4.5s ease-in-out infinite;
}
@keyframes btnShine { 0%{left:-80%} 42%,100%{left:130%} }
.btn-gold {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 24px; border-radius: 13px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #111; font-size: 1rem; font-weight: 900;
  box-shadow: 0 6px 20px rgba(255,160,0,0.38);
  position: relative; overflow: hidden; cursor: pointer;
}
.btn-primary:active, .btn-gold:active { transform: scale(0.97); }
.cta-block { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; }

/* ── Card ── */
.card {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px;
}

/* ── Steps ── */
.steps { display: flex; flex-direction: column; gap: 12px; }
.step {
  display: flex; align-items: flex-start; gap: 15px;
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: 13px; padding: 17px;
}
.step-num {
  min-width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #ff4b2b);
  color: #fff; font-size: 0.88rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step h3 { margin: 0 0 3px; font-size: 0.9rem; font-weight: 700; color: #fff; }
.step p  { margin: 0; font-size: 0.81rem; color: #6a7490; line-height: 1.55; }

/* ── Trouble cards ── */
.trouble-list { display: flex; flex-direction: column; gap: 11px; }
.trouble-item {
  background: var(--dark3); border-left: 3px solid var(--red);
  border-radius: 0 12px 12px 0; padding: 15px 17px;
}
.trouble-item h3 { margin: 0 0 4px; font-size: 0.88rem; color: #fff; font-weight: 700; }
.trouble-item p  { margin: 0; font-size: 0.8rem; color: #6a7490; line-height: 1.5; }

/* ── Info list ── */
.info-list { display: flex; flex-direction: column; gap: 10px; }
.info-item {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
}
.info-item h3 { margin: 0 0 4px; font-size: 0.88rem; color: var(--gold); font-weight: 700; }
.info-item p  { margin: 0; font-size: 0.8rem; color: #6a7490; line-height: 1.5; }

/* ── Tip box ── */
.tip-box {
  background: rgba(255,215,0,0.08); border: 1px solid rgba(255,215,0,0.25);
  border-radius: 10px; padding: 13px 16px;
  font-size: 0.82rem; color: var(--text); line-height: 1.55;
}
.tip-box strong { color: var(--gold); }

/* ── Offer / Bonus card ── */
.offer-wrap {
  background: var(--dark3); border: 1px solid rgba(255,215,0,0.2);
  border-radius: 16px; overflow: hidden;
}
.offer-top {
  background: linear-gradient(135deg, #1e1030, #28143a);
  padding: 22px 20px; text-align: center;
}
.offer-label {
  display: inline-block; background: #e74c3c;
  color: #fff; padding: 3px 14px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 700; margin-bottom: 14px;
}
.offer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px;
}
.amt-box { border-radius: 11px; padding: 15px 10px; text-align: center; position: relative; }
.amt-box.green  { background: linear-gradient(135deg,#1a5c3a,#27ae60); }
.amt-box.orange { background: linear-gradient(135deg,#7a3400,#e67e22); }
.amt-box .dep { font-size: 0.7rem; opacity: 0.8; margin-bottom: 3px; }
.amt-box .val { font-size: 1.35rem; font-weight: 900; color: #fff; }
.amt-box .bl  { font-size: 0.7rem; opacity: 0.8; margin-top: 5px; padding-top: 5px; border-top: 1px solid rgba(255,255,255,0.2); }
.amt-box .bv  { font-size: 1.05rem; font-weight: 900; color: var(--gold); }
.best-tag {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  background: #e74c3c; color: #fff; padding: 2px 10px;
  border-radius: 20px; font-size: 0.58rem; font-weight: 700; white-space: nowrap;
}
.free-pill {
  background: rgba(255,215,0,0.1); border: 1px solid rgba(255,215,0,0.28);
  border-radius: 10px; padding: 12px 14px; text-align: center;
}
.free-pill strong { color: var(--gold); font-size: 0.95rem; display: block; margin-bottom: 2px; }
.free-pill span   { color: #8892a8; font-size: 0.76rem; }
.offer-bottom { padding: 16px 20px; }
.claim-btn {
  display: block; text-align: center;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #111; padding: 16px; border-radius: 12px;
  font-weight: 900; font-size: 1.05rem;
  box-shadow: 0 6px 20px rgba(255,160,0,0.38);
  position: relative; overflow: hidden;
}
.claim-btn::after {
  content: ''; position: absolute; top: -50%; left: -80%;
  width: 40%; height: 200%;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.52) 50%, transparent 80%);
  transform: skewX(-20deg); animation: btnShine 4s ease-in-out 2s infinite;
}
.offer-note { text-align: center; font-size: 0.72rem; color: #2a3045; margin-top: 9px; }

/* ── Urgency ── */
.urgency {
  background: #1a0e0e; border: 1px solid rgba(231,76,60,0.3);
  border-radius: 10px; padding: 11px 16px;
  text-align: center; font-size: 0.83rem; color: var(--text);
  margin-bottom: 14px;
}
.urgency strong { color: #ff6b6b; }

/* ── Guide nav pills ── */
.guide-nav { background: var(--dark3); border-radius: 14px; padding: 18px 16px; text-align: center; }
.guide-nav-title { color: var(--gold); font-weight: 700; font-size: 0.87rem; margin: 0 0 12px; }
.guide-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.gpill { color: #fff; padding: 8px 16px; border-radius: 20px; font-size: 0.79rem; font-weight: 700; }

/* ── Game grid ── */
.cat-label {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 8px; margin: 22px 0 10px;
}
.cat-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.game-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
@media (min-width: 560px) { .game-grid { grid-template-columns: repeat(4,1fr); } }
@media (min-width: 720px) { .game-grid { grid-template-columns: repeat(6,1fr); } }
.game-tile {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 6px 11px;
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 4px; position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.game-tile:hover { transform: translateY(-2px); border-color: rgba(255,65,108,0.35); }
.gt-icon { font-size: 1.7rem; line-height: 1; }
.gt-name { font-size: 0.68rem; font-weight: 700; color: #d0d8f0; line-height: 1.2; }
.gt-sub  { font-size: 0.6rem; color: #8892a8; }
.gt-badge {
  position: absolute; top: -6px; right: -4px;
  font-size: 0.52rem; font-weight: 700;
  padding: 2px 6px; border-radius: 20px; white-space: nowrap;
}
.gt-hot  { background: #e74c3c; color: #fff; }
.gt-new  { background: var(--blue); color: #fff; }
.gt-live { background: var(--green); color: #fff; }

/* ── FAQ ── */
.faq-wrap { background: #09091a; padding: 40px 20px; }
.faq-inner { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.07); }
.faq-q {
  cursor: pointer; padding: 16px 4px;
  font-size: 0.89rem; font-weight: 700; color: #d0d8f0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; user-select: none;
}
.faq-q::after { content: '+'; font-size: 1.1rem; color: var(--red); flex-shrink: 0; transition: transform 0.2s; }
.faq-q.open::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 4px 16px; font-size: 0.82rem; color: #6a7490; line-height: 1.65; }
.faq-a.show { display: block; }

/* ── Promo image ── */
.promo-wrap { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.promo-wrap img { width: 100%; }
.promo-ribbon {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  background: rgba(0,0,0,0.72); backdrop-filter: blur(8px);
  border-radius: 10px; padding: 8px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.promo-ribbon span { font-size: 0.82rem; color: #fff; font-weight: 600; }
.promo-ribbon strong { color: var(--gold); font-size: 1rem; }

/* ── Floating menu ── */
.fab {
  position: fixed; top: 58px; right: 14px;
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--red), #ff4b2b);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(255,65,108,0.5); cursor: pointer; z-index: 890; border: none;
}
.fab svg { width: 19px; height: 19px; fill: white; }
.fab-menu {
  position: fixed; top: 108px; right: 14px;
  background: var(--dark4); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 13px; padding: 6px; min-width: 168px;
  z-index: 889; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: all 0.22s ease;
}
.fab-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.fab-menu a {
  display: flex; align-items: center; gap: 9px; padding: 10px 11px;
  color: #d0d8f0; border-radius: 8px; font-size: 13px; font-weight: 500;
}
.fab-menu a:hover { background: rgba(255,65,108,0.15); color: #fff; }

/* ── Bottom nav ── */
.bot-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--dark2); border-top: 1px solid rgba(255,65,108,0.25);
  z-index: 999; display: flex;
}
.bot-nav a {
  flex: 1; text-align: center; padding: 8px 4px;
  color: #6a7490; font-size: 10px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.bot-nav a span:first-child { font-size: 19px; }
.bot-nav a.active { color: var(--red); }
.bot-nav a:hover  { color: #fff; }

/* ── Popup ── */
.popup-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.75); z-index: 10000;
  align-items: center; justify-content: center;
}
.popup-box {
  background: var(--dark4); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 28px 24px; text-align: center;
  max-width: 280px; width: 90%; position: relative;
}
.popup-box h3 { color: #fff; margin: 8px 0 7px; font-size: 0.98rem; }
.popup-box p  { color: #6a7490; font-size: 0.82rem; margin: 0 0 15px; line-height: 1.5; }
.tg-link { display: inline-block; background: #0088cc; color: #fff; padding: 10px 20px; border-radius: 9px; font-weight: 700; font-size: 0.86rem; }
.close-x { position: absolute; top: 9px; right: 13px; background: none; border: none; color: #4a5568; font-size: 1.3rem; cursor: pointer; line-height: 1; }

/* ── Footer ── */
.site-footer { background: #07090f; padding: 32px 20px; }
.footer-inner { max-width: 860px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 22px; margin-bottom: 22px; }
.footer-col h4 { color: var(--gold); font-size: 0.8rem; margin: 0 0 10px; }
.footer-col a  { display: block; color: #2a3045; font-size: 0.76rem; margin-bottom: 7px; transition: color 0.15s; }
.footer-col a:hover { color: #a0aec0; }
.footer-disc { font-size: 0.71rem; color: #1e2535; line-height: 1.65; margin-bottom: 12px; }
.footer-copy { font-size: 0.68rem; color: #1e2535; text-align: center; }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.on { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }

/* ── Desktop layout ── */
@media (min-width: 700px) {
  .hero { padding: 56px 32px 48px; }
  .hero h1 { font-size: 2.4rem; }
  .hero-sub { font-size: 1rem; }
  .page-hero { padding: 40px 32px 32px; }
  .cta-block { flex-direction: row; max-width: 560px; }
  .cta-block .btn-primary { flex: 1; }
  .cta-block .btn-gold    { flex: 1; }
  .section { padding: 48px 0; }
  .steps { display: grid; grid-template-columns: 1fr 1fr; }
  .trouble-list { display: grid; grid-template-columns: 1fr 1fr; }
  .info-list    { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (min-width: 700px) {
  .offer-grid { grid-template-columns: repeat(3,1fr); }
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  .btn-primary::after, .btn-gold::after, .claim-btn::after { display: none; }
  .reveal { opacity: 1; transform: none; }
}
