/* ============================================================
   BAJI 888 — bajicasino888.com — Global Stylesheet
   Design System: Dark-Navy + Gold + Emerald accent
   ============================================================ */

:root {
  /* Color palette */
  --bg-base:        #f2f5ff;
  --bg-soft:        #eaefff;
  --bg-panel:       #ffffff;
  --bg-dark:        #080f2e;
  --bg-dark-mid:    #0d1840;
  --bg-dark-soft:   #132050;
  --text-main:      #0c1535;
  --text-muted:     #4a5880;
  --text-light:     #8898c8;
  --primary:        #1a2fa8;
  --primary-light:  #3a52d4;
  --gold:           #f5c518;
  --gold-dark:      #d4a012;
  --emerald:        #0db87a;
  --emerald-dark:   #089960;
  --danger:         #e84060;
  --line:           #d6dfff;
  --line-dark:      rgba(140,165,255,0.22);

  /* Radius */
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  22px;
  --r-xl:  30px;

  /* Shadows */
  --sh-soft:  0 8px 22px rgba(12,28,100,0.09);
  --sh-mid:   0 14px 36px rgba(12,28,100,0.15);
  --sh-deep:  0 22px 52px rgba(8,18,70,0.22);
  --sh-gold:  0 8px 24px rgba(212,160,18,0.28);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 6% 10%, rgba(26,47,168,0.13) 0%, transparent 36%),
    radial-gradient(circle at 90% 8%,  rgba(13,184,122,0.09) 0%, transparent 32%),
    var(--bg-base);
  line-height: 1.68;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(60,90,200,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60,90,200,0.055) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at 25% 18%, #000 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
}
a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--primary); }
img, svg { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1rem; color: var(--text-muted); }
h1,h2,h3,h4 { margin-top: 0; line-height: 1.26; color: var(--text-main); }
h1 { font-size: clamp(1.75rem, 2.6vw, 2.8rem); margin-bottom: 0.8rem; }
h2 { font-size: clamp(1.3rem, 2vw, 2rem);   margin-bottom: 0.65rem; }
h3 { font-size: clamp(1.05rem, 1.5vw, 1.3rem); margin-bottom: 0.5rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; color: var(--text-muted); }

/* ── Container ── */
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(245,248,255,0.92);
  border-bottom: 1px solid rgba(210,220,255,0.7);
  transition: box-shadow 0.25s, background 0.25s;
}
.site-header.scrolled {
  box-shadow: var(--sh-soft);
  background: rgba(244,247,255,0.98);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 80px;
}

/* Logo */
.logo-wrap {
  width: 200px; max-width: 40vw;
  height: 50px;
  display: flex; align-items: center;
}
.logo-wrap svg {
  width: 100%; max-height: 50px;
}

/* Nav */
.main-nav { justify-self: center; }
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 0.6rem;
  flex-wrap: wrap; justify-content: center;
}
.main-nav a {
  display: inline-flex; align-items: center;
  padding: 0.44rem 0.78rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-main);
  font-size: 0.91rem; font-weight: 600;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.main-nav a:hover,
.main-nav a.active {
  border-color: #c2d0ff;
  background: #e8eeff;
  color: #1a2fa8;
}

/* Header actions */
.header-actions {
  display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid transparent;
  padding: 0.62rem 1.05rem;
  font-size: 0.88rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-register {
  color: #fff;
  background: linear-gradient(135deg, #f5c518 0%, #d4a012 100%);
  box-shadow: var(--sh-gold);
  color: #0c1535;
}
.btn-login {
  color: var(--primary);
  background: #e6ecff;
  border-color: #c8d4ff;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  box-shadow: 0 10px 22px rgba(26,47,168,0.28);
}
.btn-gold {
  color: #0c1535;
  background: linear-gradient(135deg, #f5c518 0%, #d4a012 100%);
  box-shadow: var(--sh-gold);
}
.btn-emerald {
  color: #fff;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  box-shadow: 0 10px 22px rgba(13,184,122,0.25);
}
.btn-outline-light {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  background: transparent;
}
.btn-lg { padding: 0.82rem 1.5rem; font-size: 1rem; border-radius: 14px; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  border: 1px solid #c8d4ff;
  background: #e8eeff;
  color: #1a2fa8;
  width: 42px; height: 42px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer;
}

/* ── Banner ── */
.top-banner { padding: 0 0 1rem; }
.banner-frame {
  border-radius: var(--r-lg);
  border: 1px solid #ccd8ff;
  box-shadow: var(--sh-deep);
  overflow: hidden;
  background: var(--bg-dark);
  line-height: 0;
}
.banner-frame img,
.banner-frame svg { width: 100%; height: auto; display: block; }

/* ── Sections ── */
.section { padding: 2.6rem 0; }
.section-sm { padding: 1.6rem 0; }
.section-dark {
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-mid) 50%, var(--bg-dark-soft) 100%);
  color: #e8eeff;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #f0f4ff; }
.section-dark p, .section-dark li { color: #b8c8f0; }
.section-dark a { color: #8ab8ff; }
.section-gold {
  background: linear-gradient(135deg, #1a1200 0%, #2a1e00 50%, #1a1200 100%);
  border-top: 1px solid rgba(212,160,18,0.3);
  border-bottom: 1px solid rgba(212,160,18,0.3);
}
.section-title { max-width: 780px; margin-bottom: 1.1rem; }
.section-label {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.82rem; font-weight: 700;
  color: var(--primary);
  background: #e6ecff;
  border: 1px solid #c8d4ff;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.section-label-gold {
  color: #8a6000;
  background: #fff8e0;
  border-color: #f0d060;
}

/* ── Hero ── */
.hero { padding: 2.8rem 0 2rem; }
.hero-asymmetric {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.4rem;
  align-items: start;
}
.hero-panel {
  background: linear-gradient(160deg, rgba(255,255,255,0.97) 0%, rgba(235,242,255,0.94) 100%);
  border: 1px solid #d4dfff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-soft);
  padding: 1.6rem;
}
.hero-side {
  display: flex; flex-direction: column; gap: 1rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.9rem;
}

/* ── Cards ── */
.cards-grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.card {
  background: #fff;
  border: 1px solid #d4dfff;
  border-radius: var(--r-md);
  box-shadow: var(--sh-soft);
  padding: 1.1rem;
  transition: transform 0.2s, box-shadow 0.22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-mid); }
.card-dark {
  background: linear-gradient(160deg, var(--bg-dark-mid) 0%, var(--bg-dark-soft) 100%);
  border-color: var(--line-dark);
  color: #e0eaff;
}
.card-dark h3, .card-dark h4 { color: #f0f4ff; }
.card-dark p, .card-dark li { color: #b0c4f0; }
.card-gold {
  background: linear-gradient(160deg, #1e1600 0%, #2a1e00 100%);
  border-color: rgba(212,160,18,0.35);
}
.card-gold h3, .card-gold h4 { color: #f5c518; }
.card-gold p { color: #c8a840; }

.icon-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff 0%, #dde7ff 100%);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 0.65rem;
  color: #1a2fa8;
  flex-shrink: 0;
}
.icon-wrap-gold {
  background: linear-gradient(135deg, #fff3c0 0%, #f5d060 100%);
  color: #7a5000;
}
.icon-wrap-emerald {
  background: linear-gradient(135deg, #d0f5ea 0%, #a0e8d0 100%);
  color: #0a7050;
}

/* ── Stats ── */
.stats-grid {
  display: grid; gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0,1fr));
}
.stat-card {
  background: #fff;
  border: 1px solid #d4dfff;
  border-radius: 14px;
  text-align: center;
  padding: 1rem 0.8rem;
  box-shadow: var(--sh-soft);
}
.stat-card strong {
  display: block;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}
.stat-card span { font-size: 0.88rem; color: var(--text-muted); }

/* ── Timeline / Steps ── */
.timeline { display: grid; gap: 0.9rem; }
.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.9rem;
  align-items: start;
  background: #fff;
  border: 1px solid #d8e2ff;
  border-radius: 14px;
  padding: 0.9rem;
  box-shadow: var(--sh-soft);
}
.timeline-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── Split layout ── */
.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.1rem;
  align-items: start;
}
.split-layout-rev {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.1rem;
  align-items: start;
}

/* ── Dark panel ── */
.dark-panel {
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-soft) 100%);
  color: #e8eeff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-deep);
  border: 1px solid var(--line-dark);
  padding: 1.5rem;
}
.dark-panel h2, .dark-panel h3 { color: #f0f4ff; }
.dark-panel p, .dark-panel li { color: #b8c8f0; }
.dark-panel a { color: #8ab8ff; }

/* ── Table ── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid #d4dfff;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--sh-soft);
}
table { width: 100%; border-collapse: collapse; min-width: 580px; }
th, td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #e4eaff;
  text-align: left;
  font-size: 0.92rem;
  color: var(--text-main);
}
th {
  background: #eef3ff;
  color: var(--primary);
  font-weight: 700;
}
tr:last-child td { border-bottom: 0; }

/* ── Video ── */
.video-section { padding: 2rem 0; }
.video-wrap {
  background: #fff;
  border: 1px solid #d4dfff;
  border-radius: var(--r-md);
  box-shadow: var(--sh-soft);
  padding: 1rem;
}
.video-embed {
  position: relative; width: 100%; padding-top: 56.25%;
  border-radius: 12px; overflow: hidden;
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}

/* ── FAQ ── */
.faq-list { display: grid; gap: 0.72rem; }
.faq-item {
  border: 1px solid #d4dfff;
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--sh-soft);
}
.faq-item button {
  width: 100%; text-align: left;
  border: 0; background: transparent;
  padding: 0.92rem 1rem;
  font: inherit; color: var(--text-main);
  font-weight: 700; cursor: pointer;
  position: relative;
  padding-right: 2.5rem;
}
.faq-item button::after {
  content: "+";
  position: absolute; right: 1rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem; color: var(--primary-light);
  transition: transform 0.2s;
}
.faq-item.active button::after { content: "\2212"; }
.faq-answer {
  max-height: 0; overflow: hidden;
  padding: 0 1rem;
  transition: max-height 0.28s ease, padding 0.2s;
}
.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 1rem 0.9rem;
}
.faq-answer p { color: var(--text-muted); margin: 0; }

/* ── Breadcrumb ── */
.breadcrumb { margin: 1rem 0 0.5rem; }
.breadcrumb ol {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: 0.4rem; margin: 0; padding: 0;
}
.breadcrumb li { font-size: 0.86rem; color: #5a6a95; }
.breadcrumb li:not(:last-child)::after {
  content: "›"; margin-left: 0.4rem; color: #8898c8;
}
.breadcrumb a { color: var(--primary-light); }

/* ── CTA Band ── */
.cta-band {
  background: linear-gradient(135deg, #0f1e8a 0%, #0a1460 40%, #0a3d28 100%);
  color: #fff;
  border-radius: var(--r-lg);
  border: 1px solid rgba(140,180,255,0.3);
  box-shadow: var(--sh-deep);
  padding: 1.8rem;
}
.cta-band h2 { color: #f0f4ff; }
.cta-band p { color: #b8d0ff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.9rem; }

/* ── Check list ── */
.check-list { list-style: none; padding-left: 0; }
.check-list li {
  padding-left: 1.5rem; position: relative; margin-bottom: 0.45rem;
  color: var(--text-muted);
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--emerald); font-weight: 800;
}

/* ── Tag links ── */
.related-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag-link {
  display: inline-flex; align-items: center; gap: 0.28rem;
  border-radius: 999px;
  border: 1px solid #c8d4ff;
  background: #eef3ff;
  color: #1a2fa8;
  padding: 0.38rem 0.78rem;
  font-size: 0.85rem; font-weight: 700;
  transition: background 0.18s, border-color 0.18s;
}
.tag-link:hover { background: #dde8ff; border-color: #a8bcff; }

/* ── Contact form ── */
.form-panel {
  background: #fff;
  border-radius: var(--r-md);
  border: 1px solid #d4dfff;
  box-shadow: var(--sh-soft);
  padding: 1.3rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.85rem;
}
.form-group label {
  display: block; font-size: 0.87rem; font-weight: 700;
  margin-bottom: 0.32rem; color: #1a2fa8;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #c8d4ff;
  border-radius: 10px;
  padding: 0.64rem 0.72rem;
  font: inherit; color: var(--text-main);
  background: #f8faff;
  transition: border-color 0.18s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary-light);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group.full { grid-column: 1 / -1; }
.form-feedback {
  margin-top: 0.6rem; font-size: 0.87rem;
  color: #9e2448; min-height: 1.3rem;
}

/* ── Policy blocks ── */
.policy-block {
  background: #fff;
  border: 1px solid #d4dfff;
  border-radius: 14px;
  box-shadow: var(--sh-soft);
  padding: 1.1rem;
  margin-bottom: 0.85rem;
}
.policy-block h3 { color: var(--primary); }

/* ── Footer ── */
.site-footer {
  margin-top: 2.5rem;
  background: linear-gradient(160deg, #060d28 0%, #0a1438 50%, #0d1e50 100%);
  color: #d0daff;
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 1.1rem;
  padding: 2.2rem 0 1.6rem;
}
.footer-col h3, .footer-col h4 {
  color: #f0f4ff; margin-bottom: 0.55rem; font-size: 0.98rem;
}
.footer-col p, .footer-col li, .footer-col a {
  color: #c0ccf0; font-size: 0.9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.36rem; }
.footer-col a:hover { color: #f5c518; }
.footer-contact p { margin-bottom: 0.4rem; }
.footer-contact strong { color: #e0eaff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem;
  border-top: 1px solid rgba(120,150,240,0.28);
  padding: 0.9rem 0 1.1rem;
}
.footer-bottom p, .footer-bottom a {
  color: #a8b8e0; margin: 0; font-size: 0.84rem;
}
.footer-bottom a:hover { color: #f5c518; }

/* ── Back to top ── */
.back-to-top {
  position: fixed; right: 18px; bottom: 18px;
  width: 44px; height: 44px;
  border-radius: 50%; border: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  box-shadow: 0 10px 20px rgba(26,47,168,0.3);
  display: grid; place-items: center;
  font-size: 1.1rem; cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ── 404 ── */
.not-found { text-align: center; padding: 3.5rem 0; }
.not-found-code {
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  font-weight: 900; color: var(--primary); margin: 0;
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-emerald { color: var(--emerald); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.lead { font-size: 1.04rem; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .main-nav ul { gap: 0.45rem; }
  .main-nav a { padding: 0.4rem 0.65rem; font-size: 0.86rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 920px) {
  .header-inner { grid-template-columns: auto auto auto; min-height: 74px; }
  .menu-toggle { display: inline-flex; order: 2; justify-self: center; }
  .main-nav {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    background: rgba(244,247,255,0.98);
    border-bottom: 1px solid #d4dfff;
    box-shadow: var(--sh-soft);
    padding: 0.75rem 4%;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; }
  .header-actions { order: 3; justify-self: end; }
  .header-actions .btn { padding: 0.52rem 0.7rem; font-size: 0.78rem; }
  .hero-asymmetric, .split-layout, .split-layout-rev,
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .logo-wrap { width: 160px; height: 40px; }
  .logo-wrap svg { max-height: 40px; }
  .header-inner { gap: 0.45rem; }
  .hero, .section { padding: 1.8rem 0; }
  .hero-asymmetric, .split-layout, .split-layout-rev,
  .grid-2, .grid-3, .grid-4,
  .stats-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 1.2rem; }
  .timeline-item { grid-template-columns: 40px 1fr; }
}
