/* ============================================================
   LuckyBitz — modern casino-affiliate theme
   ============================================================ */
:root {
  --bg: #070b16;
  --bg-2: #0c1222;
  --card: #111a30;
  --card-2: #16213a;
  --border: #1f2b47;
  --border-2: #2b3a5f;
  --text: #eaf0ff;
  --muted: #93a0bf;
  --brand: #21f0b4;
  --brand-2: #19d9f2;
  --gold: #ffcf5c;
  --gold-2: #ff9f43;
  --danger: #ff5f6d;
  --grad: linear-gradient(120deg, #21f0b4 0%, #19d9f2 55%, #7b7bff 100%);
  --gradGold: linear-gradient(120deg, #ffd98a 0%, #ff9f43 100%);
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --radius: 18px;
  --radius-sm: 12px;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: 'Sora', var(--font-body);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(33,240,180,.12), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(33,217,242,.10), transparent 55%),
    radial-gradient(700px 600px at 50% 120%, rgba(123,123,255,.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; letter-spacing: -.01em; margin: 0 0 .5em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--brand); color: #04211a; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
  will-change: transform;
}
.btn-primary { background: var(--grad); color: #04211a; box-shadow: 0 10px 30px rgba(33,240,180,.30); }
.btn-primary:hover { color: #04211a; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(33,240,180,.40); }
.btn-ghost { background: rgba(20,31,53,.6); color: var(--text); border-color: var(--border-2); backdrop-filter: blur(6px); }
.btn-ghost:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.btn-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,11,22,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s, background .2s;
}
.site-header.is-scrolled { background: rgba(7,11,22,.9); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  position: relative; width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 0 18px rgba(33,240,180,.5);
}
.brand-mark span { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #04211a; }
.brand-mark span:nth-child(1) { top: 7px; left: 7px; }
.brand-mark span:nth-child(2) { top: 13px; left: 13px; }
.brand-mark span:nth-child(3) { bottom: 7px; right: 7px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--text); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; gap: 6px; }
.nav-link {
  padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .95rem;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-link.is-active { color: var(--brand); background: rgba(33,240,180,.10); }
.lang-switch { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: rgba(17,26,48,.6); }
.lang-link { padding: 5px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.lang-link.is-active { background: var(--grad); color: #04211a; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; border-radius: 2px; background: var(--text); transition: .25s; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.main { min-height: 60vh; position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 70px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.orb-1 { width: 420px; height: 420px; top: -160px; left: -120px; background: radial-gradient(circle, rgba(33,240,180,.5), transparent 70%); }
.orb-2 { width: 380px; height: 380px; bottom: -160px; right: -120px; background: radial-gradient(circle, rgba(123,123,255,.5), transparent 70%); }
.hero-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(33,240,180,.10); color: var(--brand);
  border: 1px solid rgba(33,240,180,.3);
  font-weight: 600; font-size: .82rem; letter-spacing: .02em;
  text-transform: uppercase;
}
.hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.hero-title {
  margin: 22px 0 18px;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 0 auto 34px; max-width: 620px; color: var(--muted); font-size: 1.08rem; }
.hero-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 14px; margin-top: 44px; flex-wrap: wrap; }
.stat {
  min-width: 160px; padding: 18px 22px; border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(22,34,58,.8), rgba(17,26,48,.6));
  border: 1px solid var(--border); text-align: center;
}
.stat strong { display: block; font-family: var(--font-head); font-size: 1.9rem; color: var(--brand); }
.stat span { font-size: .82rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section-title { font-size: 1.7rem; font-weight: 800; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head .section-title { margin: 0; }
.cats-section, .latest-section, .page { padding: 36px 0 60px; }
.latest-section { padding-top: 0; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 22px; }
.cat-strip { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; }
.cat-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: 14px;
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--border); color: var(--text);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.cat-chip:hover { color: var(--text); transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow); }
.cat-chip.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(33,240,180,.15); }
.cat-chip-ico { color: var(--gold); font-size: 1rem; }
.cat-chip-name { font-weight: 700; }
.cat-chip-count { margin-left: auto; font-size: .78rem; color: var(--muted); background: rgba(255,255,255,.05); padding: 2px 9px; border-radius: 999px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; margin-top: 22px; }
.guide-card {
  display: flex; flex-direction: column;
  background: linear-gradient(170deg, var(--card-2), var(--card));
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .22s, box-shadow .22s, border-color .22s;
}
.guide-card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.guide-card:hover .card-media img { transform: scale(1.06); }
.card-media-glow { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,11,22,.6), transparent 60%); opacity: 0; transition: opacity .3s; }
.guide-card:hover .card-media-glow { opacity: 1; }
.card-media-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-family: var(--font-head); font-weight: 800; }
.card-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 20px; }
.card-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  background: rgba(255,207,92,.12); color: var(--gold);
  border: 1px solid rgba(255,207,92,.3);
  font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
}
.badge-plain { background: var(--grad); color: #04211a; border: 0; }
.card-title { font-size: 1.16rem; font-weight: 700; margin: 0; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--brand); }
.card-desc { margin: 0; color: var(--muted); font-size: .94rem; }
.card-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.card-body .btn-link { margin-top: auto; }

/* ---------- Page (list / taxonomy) ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 26px 0 4px; color: var(--muted); font-size: .85rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.bc-current { color: var(--text); font-weight: 600; }
.page-head { padding: 18px 0 6px; max-width: 720px; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin: 12px 0; }
.page-desc { color: var(--muted); font-size: 1.05rem; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* ---------- Single guide ---------- */
.single { padding: 0 0 70px; }
.single-header { padding: 26px 0 10px; max-width: 860px; }
.single-badges { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.single-title { font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 800; margin: 0 0 16px; }
.single-desc { color: var(--muted); font-size: 1.1rem; margin: 0 0 18px; max-width: 720px; }
.single-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; }
.single-figure { margin: 26px 0 34px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.single-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.single-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.single-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 18px; }

/* ---------- Prose ---------- */
.prose { font-size: 1.04rem; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; scroll-margin-top: 90px; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.2rem; }
.prose p { margin: 0 0 1.1em; color: #cdd6ec; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.prose li { margin-bottom: .4em; color: #cdd6ec; }
.prose blockquote {
  margin: 1.4em 0; padding: 14px 20px;
  border-left: 3px solid var(--brand);
  background: rgba(33,240,180,.06); border-radius: 0 10px 10px 0;
  color: var(--text);
}
.prose blockquote p { color: var(--text); margin: 0; }
.prose code { background: rgba(20,31,53,.8); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose img { border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--card-2); }

/* ---------- TOC ---------- */
.toc {
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: linear-gradient(170deg, var(--card), var(--bg-2));
  border: 1px solid var(--border); font-size: .9rem;
}
.toc-title { margin: 0 0 10px; font-family: var(--font-head); font-weight: 700; color: var(--brand); font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.toc-body ul { list-style: none; margin: 0; padding: 0; }
.toc-body li { margin: 4px 0; }
.toc-body a { color: var(--muted); display: inline-block; padding: 3px 0; }
.toc-body a:hover, .toc-body a.is-active { color: var(--brand); }
.toc-body li li { padding-left: 14px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 44px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: linear-gradient(170deg, var(--card), var(--bg-2)); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-family: var(--font-head); font-weight: 600; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { position: relative; width: 14px; height: 14px; flex: none; }
.faq-chev::before, .faq-chev::after { content: ""; position: absolute; background: var(--brand); border-radius: 2px; transition: .2s; }
.faq-chev::before { left: 0; right: 0; top: 6px; height: 2px; }
.faq-chev::after { top: 0; bottom: 0; left: 6px; width: 2px; }
.faq-item[open] .faq-chev::after { transform: scaleY(0); }
.faq-body { padding: 0 18px 16px; color: var(--muted); }
.faq-body p { margin: 0; }

/* ---------- Affiliate CTA bar ---------- */
.affiliate-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; gap: 14px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(9,13,26,.92); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 30px rgba(0,0,0,.4);
  transform: translateY(110%); transition: transform .35s ease;
}
.affiliate-bar.is-visible { transform: translateY(0); }
.ab-ico { font-size: 1.3rem; filter: drop-shadow(0 0 8px rgba(33,240,180,.6)); }
.ab-copy { display: flex; flex-direction: column; line-height: 1.3; }
.ab-copy strong { font-family: var(--font-head); }
.ab-copy small { color: var(--muted); font-size: .74rem; }
.btn-affiliate {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0;
  background: var(--gradGold); color: #1a1200;
  font-family: var(--font-head); font-weight: 700;
  box-shadow: 0 8px 24px rgba(255,159,67,.35);
  transition: transform .18s, box-shadow .18s;
}
.btn-affiliate:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,159,67,.5); color: #1a1200; }
body.has-affiliate-bar { padding-bottom: 78px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(9,13,26,.6), var(--bg-2)); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding: 54px 0 36px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-sub { color: var(--muted); font-size: .92rem; max-width: 260px; }
.footer-col h4 { font-size: .92rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { color: var(--muted); }
.footer-col ul a:hover { color: var(--brand); }
.rg-text { color: var(--muted); font-size: .88rem; margin: 0 0 10px; }
.rg-link { font-weight: 600; font-size: .9rem; }
.footer-meta { border-top: 1px solid var(--border); padding: 22px 0 26px; }
.disclaimer { color: var(--muted); font-size: .78rem; max-width: 900px; margin: 0 0 12px; }
.copyright { color: var(--muted); font-size: .85rem; margin: 0; }
.age { display: inline-block; background: var(--danger); color: #fff; font-weight: 700; padding: 1px 8px; border-radius: 6px; font-size: .75rem; margin-left: 4px; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 70px 0 90px; }
.error-visual { position: relative; height: 190px; display: grid; place-items: center; margin-bottom: 10px; }
.error-code {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(6rem, 18vw, 10rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.chip {
  position: absolute; width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem;
  background: radial-gradient(circle at 30% 30%, var(--card-2), var(--card));
  border: 4px dashed var(--gold); color: var(--gold);
}
.chip-a { top: 10px; left: 50%; transform: translateX(-180%); animation: spin 12s linear infinite; }
.chip-b { top: 10px; left: 50%; transform: translateX(80%); animation: spin 12s linear infinite reverse; }
@keyframes spin { to { transform: translateX(var(--tx, -180%)) rotate(360deg); } }
.error-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
.error-text { color: var(--muted); max-width: 520px; margin: 0 auto 30px; }
.error-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .single-layout { grid-template-columns: 1fr; }
  .single-side { position: static; }
  .single-side .toc { max-width: 100%; }
}
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 4px; padding: 14px 20px;
    background: rgba(7,11,22,.98); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-link { padding: 12px 14px; }
  .lang-switch { margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .ab-copy { display: none; }
}




