/* ============================================================
   ALADDIN99 CLONE — style.css
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #080808;
  --bg-card:     #111111;
  --bg-card2:    #181818;
  --gold:        #c8900a;
  --gold-light:  #f0c040;
  --gold-dim:    #8a6006;
  --gold-glow:   rgba(200, 144, 10, 0.35);
  --text:        #e8e8e8;
  --text-muted:  #888;
  --red:         #e03030;
  --green:       #28a745;
  --radius:      12px;
  --radius-sm:   8px;
  --border:      #2a1a00;
  --nav-h:       64px;
  --top-h:       54px;
  --max-w:       480px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  min-height: 100vh;
  padding-top: var(--top-h);
  padding-bottom: calc(var(--nav-h) + 8px);
}

main { padding: 8px 14px 0; }

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ── Layout wrapper ───────────────────────────────────────── */
/* Elements are full-width; inner content uses .top-nav-inner or section padding */

/* ── TOP NAV ──────────────────────────────────────────────── */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(180deg, #1a1200 0%, #0d0900 100%);
  border-bottom: 1px solid var(--gold-dim);
  height: var(--top-h);
}

.top-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: relative;
}

.btn-back {
  color: var(--gold-light);
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.2s;
}
.btn-back:hover { background: rgba(255,255,255,0.08); }

.top-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  color: #ccc;
  font-size: 10px;
  border-radius: 6px;
  transition: color 0.2s;
}
.top-icon-item:hover,
.top-icon-item.active { color: var(--gold-light); }

.top-icon-img { width: 22px; height: 22px; object-fit: contain; }

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 32px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(200,144,10,0.5)); }
.top-icon-fallback { font-size: 18px; }
.top-icon-item svg { width: 22px; height: 22px; }

/* ── USER DASHBOARD ───────────────────────────────────────── */
.user-dashboard {
  background: linear-gradient(160deg, #1a0e00, #0f0800);
  border: 1px solid #2a1a00;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 14px;
}

.user-profile-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 12px;
}

.user-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 58px;
}

.user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: radial-gradient(circle, #2a1a00, #0d0900);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 10px var(--gold-glow);
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name  { font-size: 11px; color: var(--gold-light); font-weight: 600; }
.user-rank  { font-size: 10px; color: var(--text-muted); }

.user-stats { flex: 1; }

.stat-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.stat-label { font-size: 11px; color: var(--text-muted); min-width: 90px; white-space: nowrap; }
.stat-bar { flex: 1; display: flex; align-items: center; gap: 6px; }
.stat-val {
  font-size: 12px;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid #333;
  border-radius: 4px;
  padding: 2px 8px;
  display: inline-block;
  min-width: 70px;
  text-align: right;
}
.btn-arrow {
  background: var(--gold);
  color: #000;
  border-radius: 50%;
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  margin-left: 4px;
}

.rank-progress { font-size: 10px; color: var(--gold-dim); margin-top: 4px; }

.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #e8d5a0;
}
.qr-placeholder {
  width: 54px; height: 54px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-label { font-size: 9px; text-align: center; color: #e8d5a0; }

/* ── NEWS / SLIDER ────────────────────────────────────────── */
.news-section { padding: 0 0 10px; }

.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 8px;
}
.news-title {
  font-size: 12px;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.view-all {
  font-size: 11px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 2px;
}

.slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1030 / 507;
  overflow: hidden;
  border-radius: var(--radius);
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.slide {
  min-width: 100%;
  height: 100%;
  background: #0a0700;
  display: block;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  background-color: rgba(0,0,0,0.5);
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  border: none;
  border-radius: 2px;
  width: 34px; height: 34px;
  cursor: pointer;
  padding: 0;
}
.slider-arrow:hover { background-color: rgba(0,0,0,0.75); }
.slider-arrow.prev {
  left: 8px;
  background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="%23fff"><path transform="scale(-1,1) translate(-18,0)" d="M9 3 7.94 4.06l4.19 4.19H3v1.5h9.13l-4.19 4.19L9 15l6-6z"/></svg>');
}
.slider-arrow.next {
  right: 8px;
  background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="%23fff"><path d="M9 3 7.94 4.06l4.19 4.19H3v1.5h9.13l-4.19 4.19L9 15l6-6z"/></svg>');
}

.slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.dot.active {
  background: var(--gold-light);
  transform: scale(1.3);
}

/* ── BRAND SLOGAN ─────────────────────────────────────────── */
.home-intro {
  margin: 14px 0 10px;
  padding: 16px;
  background: linear-gradient(160deg, #140e00, #0a0700);
  border: 1px solid #2a1a00;
  border-radius: 14px;
  text-align: center;
}
.home-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.35;
  margin-bottom: 8px;
}
.home-slogan {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-light);
  text-shadow: 0 0 10px var(--gold-glow);
  margin: 2px 0 8px;
  letter-spacing: 0.3px;
}
.home-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

.auth-btn-row {
  display: flex;
  gap: 10px;
  margin: 10px 0 8px;
}
.auth-btn {
  flex: 1;
  padding: 11px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.auth-btn-register {
  background: linear-gradient(135deg, var(--gold-dim), var(--gold), var(--gold-light));
  color: #1a0800;
  box-shadow: 0 4px 14px var(--gold-glow);
}
.auth-btn-register:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--gold-glow); }
.auth-btn-login {
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
}
.auth-btn-login:hover { background: rgba(200,144,10,0.1); }

.cta-section {
  position: relative;
  margin: 24px 16px 8px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #1a1000 0%, #0d0800 60%, #1a0a00 100%);
  border: 1px solid var(--gold-dim);
  box-shadow: 0 0 40px rgba(200,144,10,0.08);
}
.cta-glow {
  position: absolute;
  top: -40px; left: 50%; transform: translateX(-50%);
  width: 260px; height: 140px;
  background: radial-gradient(ellipse, rgba(200,144,10,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  padding: 28px 20px 24px;
  text-align: center;
}
.cta-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: #1a0800;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.cta-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--gold-light);
  text-shadow: 0 0 20px var(--gold-glow);
  margin-bottom: 10px;
  line-height: 1.2;
}
.cta-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}
.cta-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
  text-align: left;
}
.cta-perk {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-muted);
}
.cta-perk-icon {
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.cta-btn-primary {
  display: block;
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold), var(--gold-light));
  border-radius: 30px;
  color: #1a0800;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px var(--gold-glow);
  margin-bottom: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px var(--gold-glow); }
.cta-btn-secondary {
  display: block;
  font-size: 12px;
  color: var(--gold);
  text-align: center;
  padding: 4px;
}
.cta-btn-secondary:hover { color: var(--gold-light); }

/* FAQ Section – Homepage */
.faq-section-home {
  padding: 20px 16px 24px;
  border-top: 1px solid #1a1200;
}
.faq-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.faq-section-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--gold);
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}
.faq-item-home {
  border-bottom: 1px solid #1a1200;
}
.faq-item-home:last-child { border-bottom: none; }
.faq-q-home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 13px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.faq-q-home:hover { color: var(--gold-light); }
.faq-chev { flex-shrink: 0; color: var(--text-muted); transition: transform 0.2s; }
.faq-item-home.open .faq-chev { transform: rotate(180deg); }
.faq-item-home.open .faq-q-home { color: var(--gold-light); }
.faq-a-home {
  display: none;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.75;
  padding-bottom: 13px;
}
.faq-item-home.open .faq-a-home { display: block; }

.copyright {
  text-align: center;
  font-size: 11px;
  color: #444;
  padding: 10px 16px 14px;
}

/* ═══════════════════════════════════════════════════
   SHARED PAGE COMPONENTS (consolidated from inline)
═══════════════════════════════════════════════════ */

/* Page layout */
.page-body { padding: 14px 16px 20px; }

/* Page headings */
.page-title { font-size: 18px; font-weight: 800; color: var(--gold-light); margin-bottom: 6px; }
.page-subtitle { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.page-date { font-size: 11px; color: var(--text-muted); margin-bottom: 20px; }

/* Content cards (static/legal pages) */
.content-card { background: var(--bg-card); border: 1px solid #2a1a00; border-radius: 14px; padding: 18px 16px; margin-bottom: 14px; }
.section-head { font-size: 13px; font-weight: 700; color: var(--gold-light); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.section-head::before { content: ''; width: 3px; height: 14px; background: var(--gold); border-radius: 2px; display: inline-block; }
.content-text { font-size: 12px; color: var(--text-muted); line-height: 1.8; }
.content-text ul { margin: 8px 0 0 0; padding: 0; list-style: none; }
.content-text ul li { display: flex; gap: 8px; margin-bottom: 6px; }
.content-text ul li::before { content: '·'; color: var(--gold); font-size: 16px; line-height: 1.4; flex-shrink: 0; }

/* Section sub-heading */
.section-sub { font-size: 13px; font-weight: 700; color: var(--gold-light); margin: 16px 0 10px; display: flex; align-items: center; gap: 8px; }
.section-sub::before { content: ''; width: 3px; height: 13px; background: var(--gold-dim); border-radius: 2px; display: inline-block; }

/* Info / warning boxes */
.info-box { background: #0d0a00; border: 1px solid #2a1a00; border-radius: 10px; padding: 12px 14px; font-size: 11px; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }
.info-box strong { color: var(--gold); }
.warn-box { background: #1a0800; border: 1px solid #5a2a00; border-radius: 10px; padding: 12px 14px; font-size: 11px; color: #cc8833; line-height: 1.7; margin-bottom: 14px; }
.warn-box strong { color: #ffaa44; display: block; margin-bottom: 3px; }

/* Filter row & chips */
.filter-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; margin-bottom: 14px; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { flex-shrink: 0; padding: 5px 14px; border-radius: 16px; border: 1px solid #2a1a00; background: var(--bg-card); color: var(--text-muted); font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.filter-chip.active { background: linear-gradient(135deg, var(--gold-dim), var(--gold)); color: #fff; border-color: var(--gold); }

/* Auth pages (login / register) */
.auth-body { padding: 20px 16px 32px; }
.auth-card { background: linear-gradient(180deg,#1a1200,#0d0900); border: 1px solid var(--gold-dim); border-radius: 16px; padding: 28px 20px 24px; margin-bottom: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.6); text-align: center; }
.auth-card-title { font-size: 18px; font-weight: 800; color: var(--gold-light); margin-bottom: 8px; }
.auth-card-sub { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }
.secure-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(200,144,10,0.12); border: 1px solid var(--gold-dim); border-radius: 20px; padding: 5px 14px; font-size: 11px; color: var(--gold); margin-bottom: 22px; }
.btn-auth-primary { display: block; width: 100%; padding: 16px; background: linear-gradient(135deg,var(--gold-dim),var(--gold),var(--gold-light)); border-radius: 30px; color: #1a0800; font-size: 16px; font-weight: 800; letter-spacing: 1px; box-shadow: 0 4px 20px var(--gold-glow); text-align: center; transition: transform 0.15s, box-shadow 0.15s; }
.btn-auth-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px var(--gold-glow); }
.btn-auth-outline { display: block; width: 100%; padding: 14px; border: 1.5px solid var(--gold); border-radius: 30px; color: var(--gold-light); font-size: 14px; font-weight: 700; text-align: center; margin-top: 12px; transition: all 0.2s; }
.btn-auth-outline:hover { background: rgba(200,144,10,0.1); }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--text-muted); font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #2a1a00; }

/* Steps component */
.steps-card { background: var(--bg-card); border: 1px solid #2a1a00; border-radius: 14px; padding: 18px 16px; margin-bottom: 14px; }
.steps-title { font-size: 13px; font-weight: 700; color: var(--gold-light); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.steps-title::before { content: ''; width: 3px; height: 14px; background: var(--gold); border-radius: 2px; display: inline-block; }
.step-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.step-item:last-child { margin-bottom: 0; }
.step-num { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg,var(--gold-dim),var(--gold)); color: #000; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.step-text { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.step-text strong { color: var(--text); }

/* FAQ component */
.faq-card { background: var(--bg-card); border: 1px solid #2a1a00; border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.faq-title { font-size: 13px; font-weight: 700; color: var(--gold-light); padding: 16px 16px 12px; display: flex; align-items: center; gap: 8px; }
.faq-title::before { content: ''; width: 3px; height: 14px; background: var(--gold); border-radius: 2px; display: inline-block; }
.faq-item { border-top: 1px solid #1a1000; }
.faq-q { padding: 13px 16px; font-size: 12px; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.faq-q:hover { color: var(--gold-light); }
.faq-a { padding: 0 16px 13px; font-size: 11px; color: var(--text-muted); line-height: 1.7; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { color: var(--gold-light); }
.faq-chevron { transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 4px;
  padding: 14px 16px 10px;
  border-top: 1px solid #1a1000;
}
.footer-menu-link {
  font-size: 11px;
  color: var(--text-muted);
  padding: 2px 4px;
  transition: color 0.2s;
}
.footer-menu-link:hover,
.footer-menu-link.active { color: var(--gold-light); }
.footer-menu-sep {
  width: 1px;
  height: 12px;
  background: #3a2800;
  display: inline-block;
  margin: 0 2px;
  vertical-align: middle;
}

.social-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid #1a1000;
  margin-bottom: 4px;
}
.social-share-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.social-share-btns {
  display: flex;
  gap: 10px;
}
.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.share-fb  { background: #3a3a3a; color: #aaa; }
.share-x   { background: #3a3a3a; color: #aaa; }
.share-wa  { background: #3a3a3a; color: #aaa; }
.share-tg  { background: #3a3a3a; color: #aaa; }

.brand-slogan {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--gold-light);
  text-shadow: 0 0 12px var(--gold-glow);
  padding: 7px 20px;
  margin: 10px auto 4px;
  display: inline-block;
  border: 1.5px solid var(--gold-light);
  border-radius: 20px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* ── COIN & LOTTERY ───────────────────────────────────────── */
.coin-section { background: linear-gradient(135deg,#1a0e00,#0f0800); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.coin-top-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.coin-top-row .coin-row { margin-bottom: 0; }
.coin-top-row .coin-amount { margin-bottom: 0; }

.coin-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.coin-img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.coin-label { font-size: 12px; color: var(--text-muted); }

.coin-amount {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 0;
}
.coin-sm { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.coin-value { font-size: 18px; font-weight: 700; color: var(--gold-light); letter-spacing: 0.5px; }

.lottery-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.lottery-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3a2800, #1a1000);
  border: 2px solid var(--gold);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px var(--gold-glow), inset 0 1px 0 rgba(255,200,50,0.2);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}
.lottery-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 14px var(--gold-glow);
}
.lottery-btn img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; padding: 4px; }
.lottery-btn.logo-btn { padding: 0; }

/* ── BALANCE TABS ─────────────────────────────────────────── */
.balance-section { background: linear-gradient(135deg,#1a0e00,#0f0800); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }

.tab-row {
  display: flex;
  background: var(--bg-card);
  border-radius: 30px;
  border: 1px solid #2a2a2a;
  padding: 3px;
  margin-bottom: 12px;
  gap: 3px;
}

.tab-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 26px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
  text-align: center;
}
.tab-btn.active {
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: #fff;
  box-shadow: 0 2px 8px rgba(200, 144, 10, 0.4);
}

.balance-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.balance-item {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.balance-currency { font-size: 13px; color: var(--text-muted); }
.balance-amount   { font-size: 18px; font-weight: 700; color: var(--text); }
.balance-divider  { width: 1px; height: 30px; background: #2a2a2a; }
.chip-icon        { width: 20px; height: 20px; object-fit: contain; }

.btn-retrieve {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--gold);
  font-size: 10px;
  padding: 4px;
}
.btn-retrieve svg { width: 20px; height: 20px; }

/* ── SPORTS SECTION ───────────────────────────────────────── */
.sports-section {
  padding: 12px 16px;
  background: linear-gradient(180deg, #0a0700 0%, #050400 100%);
}

.section-header-live {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.correct-score-title img { height: 28px; }
.section-title-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #1a0000;
  border: 1px solid #cc2222;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #ff4444;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff4444;
  animation: blink 1s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.matches-list { display: flex; flex-direction: column; gap: 10px; }

.match-card {
  background: var(--bg-card);
  border: 1px solid #2a1a00;
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  min-width: 60px;
}
.team.right { align-items: center; }

.flag {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2a2a2a;
}

.match-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
}
.vs {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-light);
}
.match-time {
  font-size: 10px;
  color: var(--gold);
  text-align: center;
  line-height: 1.5;
}
.btn-bet {
  background: linear-gradient(135deg, #1a0e00, #3a2200);
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  transition: all 0.2s;
}
.btn-bet:hover {
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: #000;
}

/* ── GAME SECTIONS ────────────────────────────────────────── */
.games-section {
  padding: 14px 16px;
  border-top: 1px solid #1a1200;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 12px;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 16px;
  background: var(--gold);
  border-radius: 2px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.game-card {
  display: block;
  position: relative;
  border-radius: 10px 0 10px 0;
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 0 2.5px var(--gold-dim);
}

.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dim), var(--gold-light));
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 0;
  pointer-events: none;
}

.game-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px var(--gold), 0 4px 16px var(--gold-glow);
}
.game-card:hover::before { opacity: 0.1; }

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border-radius: 10px 0 10px 0;
}

.game-name {
  display: none; /* hidden — shown via tooltip on hover for accessibility */
}

/* ── BADGES ───────────────────────────────────────────────── */
.badge {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 10;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  pointer-events: none;
}
.badge.event {
  background: linear-gradient(135deg, #b8860b, #f0c040);
  color: #1a0a00;
}
.badge.new {
  background: linear-gradient(135deg, #cc2200, #ff6600);
  color: #fff;
}

/* ── PROMOTIONS SECTION ───────────────────────────────────── */
.promo-section { padding: 14px 16px 20px; border-top: 1px solid #1a1200; }

.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.promo-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  background: var(--bg-card);
}
.promo-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px var(--gold-glow);
}
.promo-card img { width: 100%; height: auto; object-fit: cover; }

/* ── BOTTOM NAV ───────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(0deg, #0d0900 0%, #1a1200 100%);
  border-top: 1px solid var(--gold-dim);
  height: var(--nav-h);
  display: flex;
  align-items: stretch;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #888;
  font-size: 9px;
  font-weight: 700;
  padding: 6px 2px;
  transition: color 0.2s;
  position: relative;
}
.bottom-nav-item:hover { color: var(--gold-light); }
.bottom-nav-item.active { color: var(--gold-light); }
.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: var(--gold);
  border-radius: 0 0 3px 3px;
}

.nav-icon { width: 22px; height: 22px; object-fit: contain; }
.nav-icon-fallback { width: 22px; height: 22px; }
.bottom-nav-item svg { width: 22px; height: 22px; }

/* ── FLOATING WIDGET ──────────────────────────────────────── */
.float-widget {
  position: fixed;
  right: 16px;
  bottom: calc(var(--nav-h) + 20px);
  z-index: 99;
  width: 70px;
  height: 70px;
  cursor: pointer;
}
.float-widget img { width: 100%; height: 100%; object-fit: contain; }

/* ── RESPONSIVE ───────────────────────────────────────────── */

/* Small mobile */
@media (max-width: 360px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .lottery-btn { width: 40px; height: 40px; font-size: 12px; }
}

/* Tablet: 600px+ */
@media (min-width: 600px) {
  .games-grid { grid-template-columns: repeat(6, 1fr); }
  .lottery-row { gap: 12px; }
  .user-dashboard { padding: 16px 20px 0; }
  .games-section { padding: 12px 20px 16px; }
  .page-body { padding: 16px 20px 24px; }
  .top-icon-item { padding: 4px 10px; }
  .top-icons { gap: 8px; }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  :root { --top-h: 64px; }
  .games-grid { grid-template-columns: repeat(6, 1fr); }
  .top-nav-inner { padding: 0 48px; }
  /* Content constrained to 860px, header/footer remain full-width */
  main { max-width: 860px; margin-left: auto; margin-right: auto; }
  .float-widget { right: 16px; }
  .top-icons { gap: 10px; }
  .top-icon-item { padding: 4px 12px; font-size: 11px; }
  .nav-logo img { height: 38px; }
  /* Logo left-pinned on desktop */
  .nav-logo { margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .slider-track { transition: none; }
  .live-dot { animation: none; }
}

/* ── LANGUAGE SWITCHER ───────────────────────────────────────── */
.lang-switcher {
  position: relative;
  margin-left: 4px;
  flex-shrink: 0;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px 7px;
  background: rgba(200,144,10,0.12);
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: 0.3px;
}
.lang-btn:hover { background: rgba(200,144,10,0.22); border-color: var(--gold); }
.lang-icon { font-size: 11px; line-height: 1; }
.lang-chevron { transition: transform 0.2s; flex-shrink: 0; }
.lang-switcher.open .lang-chevron { transform: rotate(180deg); }
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1a1200;
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  overflow: hidden;
  min-width: 130px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  z-index: 200;
}
.lang-switcher.open .lang-dropdown { display: block; }
.lang-option {
  display: block;
  padding: 11px 14px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid #2a1a00;
}
.lang-option:last-child { border-bottom: none; }
.lang-option:hover { background: rgba(200,144,10,0.12); color: var(--gold-light); }
.lang-option.active { color: var(--gold-light); background: rgba(200,144,10,0.1); }
.lang-option .lang-opt-code { font-size: 10px; color: var(--gold-dim); margin-left: 4px; font-weight: 400; }

@media (max-width: 400px) {
  .top-icons { gap: 2px; }
  .top-icon-item { padding: 4px 5px; font-size: 9px; }
  .top-icon-img { width: 20px; height: 20px; }
  .top-icon-item svg { width: 20px; height: 20px; }
  .lang-switcher { margin-left: 2px; }
  .lang-btn { padding: 4px 6px; font-size: 10px; }
  .lang-icon { display: none; }
}
