/* ============================================================
   Coin Rush site — global styles
   Palette: bg #FFFFFF | menu #7A1DFF | header #FFCC2A | button #17161D
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --menu: #7A1DFF;
  --menu-dark: #5e12cc;
  --header: #FFCC2A;
  --header-dark: #f0b800;
  --btn: #17161D;
  --btn-hover: #2b2937;
  --ink: #17161D;
  --ink-soft: #45434f;
  --muted: #6b6877;
  --line: #ece9f5;
  --card: #ffffff;
  --shadow: 0 8px 30px rgba(23, 22, 29, 0.08);
  --shadow-lg: 0 18px 50px rgba(122, 29, 255, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--menu); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--menu-dark); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Skip link / a11y ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--btn); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--header);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 14px rgba(23,22,29,.10);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 20px; max-width: var(--maxw); margin: 0 auto;
}
.brand-logo { display: flex; align-items: center; gap: 12px; }
.brand-logo img { height: 52px; width: auto; filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); }
.brand-logo span {
  font-weight: 800; font-size: 1.15rem; color: var(--btn); letter-spacing: .5px;
}

/* ---------- Desktop nav ---------- */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--btn); font-weight: 700; font-size: .96rem;
  padding: 9px 14px; border-radius: 999px; transition: all .18s ease;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--menu); color: #fff;
}

.header-cta {
  background: var(--btn); color: #fff !important; font-weight: 800;
  padding: 11px 22px !important; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(23,22,29,.3);
}
.header-cta:hover { background: var(--btn-hover); transform: translateY(-1px); }

/* ---------- Burger ---------- */
.burger {
  display: none; background: var(--btn); border: none; cursor: pointer;
  width: 46px; height: 46px; border-radius: 12px; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
}
.burger span { width: 22px; height: 2.5px; background: #fff; border-radius: 2px; transition: .25s; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Mobile drawer ---------- */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
  background: var(--menu); transform: translateX(105%); transition: transform .3s ease;
  z-index: 1500; padding: 84px 22px 30px; box-shadow: -10px 0 40px rgba(0,0,0,.3);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  display: block; color: #fff; font-weight: 700; font-size: 1.05rem;
  padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.15);
}
.mobile-nav a:hover { color: var(--header); }
.mobile-nav .header-cta { margin-top: 18px; text-align: center; display: block; }
.nav-overlay {
  position: fixed; inset: 0; background: rgba(23,22,29,.5); opacity: 0; visibility: hidden;
  transition: .3s; z-index: 1400;
}
.nav-overlay.open { opacity: 1; visibility: visible; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(122,29,255,.12), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(255,204,42,.18), transparent 50%),
    var(--bg);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.12; margin: 0 0 18px;
  color: var(--btn); font-weight: 800; letter-spacing: -.5px;
}
.hero h1 .hl { color: var(--menu); }
.hero p.lead { font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 26px; max-width: 56ch; }
.hero-art {
  background: linear-gradient(160deg, #1b1340, #2a1a5e);
  border-radius: 24px; padding: 22px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
}
.hero-art img { border-radius: 14px; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px;
  font-weight: 700; font-size: .86rem; color: var(--ink-soft); box-shadow: var(--shadow);
}
.badge i { color: var(--menu); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  background: var(--btn); color: #fff !important; font-weight: 800; font-size: 1rem;
  padding: 14px 30px; border-radius: 999px; border: none; cursor: pointer;
  box-shadow: 0 6px 20px rgba(23,22,29,.28); transition: all .2s ease;
}
.btn:hover { background: var(--btn-hover); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(23,22,29,.34); }
.btn-yellow { background: var(--header); color: var(--btn) !important; box-shadow: 0 6px 20px rgba(255,204,42,.4); }
.btn-yellow:hover { background: var(--header-dark); }
.btn-purple { background: var(--menu); }
.btn-purple:hover { background: var(--menu-dark); }
.btn-lg { padding: 17px 38px; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================================================
   TOP-3 CASINOS STRIP
   ============================================================ */
.casinos-strip { padding: 38px 0 14px; }
.section-eyebrow {
  display: inline-block; background: rgba(122,29,255,.1); color: var(--menu);
  font-weight: 800; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 12px;
}
.casino-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.casino-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.casino-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.casino-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--c, var(--menu));
}
.casino-rank {
  position: absolute; top: 14px; right: 16px; background: var(--header); color: var(--btn);
  font-weight: 800; font-size: .82rem; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.casino-logo-wrap {
  height: 70px; display: flex; align-items: center; justify-content: flex-start; margin-bottom: 14px;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px;
}
/* Melbet logo is white, so it needs a dark plate to stay visible */
.casino-logo-wrap[data-casino="melbet"] {
  background: #17161D; border-color: #17161D;
}
.casino-logo-wrap img { max-height: 42px; width: auto; object-fit: contain; }
.casino-card h3 { margin: 4px 0 8px; font-size: 1.2rem; color: var(--btn); }
.casino-card p { font-size: .95rem; color: var(--muted); margin: 0 0 18px; flex: 1; }
.casino-features { list-style: none; padding: 0; margin: 0 0 18px; }
.casino-features li { font-size: .9rem; color: var(--ink-soft); padding: 4px 0 4px 24px; position: relative; }
.casino-features li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: #1ec07a; position: absolute; left: 0; }
/* Placeholder for missing affiliate link */
.btn-placeholder {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: repeating-linear-gradient(45deg,#f3f1fb,#f3f1fb 10px,#ece9f5 10px,#ece9f5 20px);
  color: var(--muted) !important; font-weight: 700; padding: 14px 24px; border-radius: 999px;
  border: 2px dashed #cfc8e8; cursor: not-allowed; width: 100%; font-size: .92rem;
}

/* ============================================================
   GENERIC SECTIONS / CONTENT
   ============================================================ */
.section { padding: 52px 0; }
.section.alt { background: #faf9ff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--btn); margin: 0 0 8px; line-height: 1.2; }
.section h3 { font-size: 1.3rem; color: var(--btn); margin: 30px 0 10px; }
.section p { color: var(--ink-soft); margin: 0 0 16px; }
.section ul, .section ol { color: var(--ink-soft); margin: 0 0 18px; padding-left: 22px; }
.section li { margin-bottom: 8px; }
.lead-sub { color: var(--muted); font-size: 1.08rem; max-width: 70ch; margin-bottom: 26px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split.reverse .split-text { order: 2; }
.media-frame {
  background: linear-gradient(160deg,#1b1340,#2a1a5e); border-radius: 20px; padding: 18px;
  box-shadow: var(--shadow-lg); display: flex; justify-content: center;
}
.media-frame.light { background: #faf9ff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.media-frame img { border-radius: 12px; max-height: 460px; width: auto; }
.media-frame.phone img { max-height: 540px; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 28px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow); transition: transform .2s ease;
}
.feature:hover { transform: translateY(-4px); }
.feature .ic {
  width: 52px; height: 52px; border-radius: 14px; background: rgba(122,29,255,.1);
  display: flex; align-items: center; justify-content: center; color: var(--menu);
  font-size: 1.4rem; margin-bottom: 14px;
}
.feature h3 { margin: 0 0 8px; font-size: 1.12rem; }
.feature p { font-size: .94rem; color: var(--muted); margin: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 30px 0; }
.stat { background: var(--btn); color: #fff; border-radius: var(--radius); padding: 24px 18px; text-align: center; }
.stat .num { font-size: 1.9rem; font-weight: 800; color: var(--header); }
.stat .lbl { font-size: .85rem; opacity: .85; margin-top: 4px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; margin: 22px 0; border-radius: var(--radius); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; background: #fff; min-width: 520px; }
table.data th { background: var(--menu); color: #fff; text-align: left; padding: 14px 16px; font-size: .92rem; }
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .94rem; color: var(--ink-soft); }
table.data tr:last-child td { border-bottom: none; }
table.data tr:nth-child(even) td { background: #faf9ff; }

/* ---------- Symbol gallery ---------- */
.symbol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 18px; margin-top: 26px; }
.symbol {
  background: #faf9ff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: center; box-shadow: var(--shadow);
}
.symbol img { height: 84px; width: auto; margin: 0 auto 10px; object-fit: contain; }
.symbol .nm { font-weight: 700; color: var(--btn); font-size: .95rem; }
.symbol .py { color: var(--menu); font-weight: 700; font-size: .85rem; }

/* ---------- Countries ---------- */
.country-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 16px; margin-top: 26px; }
.country {
  display: flex; gap: 14px; align-items: flex-start; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow);
}
.country .fl { font-size: 1.8rem; line-height: 1; }
.country .nm { font-weight: 800; color: var(--btn); }
.country .nt { font-size: .85rem; color: var(--muted); }

/* ---------- Crypto chips ---------- */
.crypto-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; background: var(--btn); color: #fff;
  border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: .95rem;
}
.chip b { color: var(--header); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 26px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 54px 18px 20px; font-weight: 700; font-size: 1.04rem; color: var(--btn);
  position: relative;
}
.faq-q::after {
  content: '\f067'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--menu);
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%); transition: .2s; font-size: .9rem;
}
.faq-item.open .faq-q::after { content: '\f068'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 20px; }
.faq-item.open .faq-a { max-height: 600px; padding: 0 20px 18px; }
.faq-a p { margin: 0; color: var(--ink-soft); }

/* ---------- TOC ---------- */
.toc {
  background: #faf9ff; border: 1px solid var(--line); border-left: 4px solid var(--menu);
  border-radius: var(--radius-sm); padding: 20px 24px; margin: 0 0 34px;
}
.toc h2 { font-size: 1.1rem; margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; }
.toc li { margin-bottom: 6px; }
.toc a { font-weight: 600; font-size: .95rem; }

/* ---------- Callout / disclaimer ---------- */
.callout {
  background: rgba(122,29,255,.07); border: 1px solid rgba(122,29,255,.2);
  border-radius: var(--radius); padding: 22px 24px; margin: 26px 0;
}
.callout.warn { background: rgba(255,204,42,.14); border-color: rgba(240,184,0,.5); }
.callout h3 { margin-top: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--menu), #4a0fb0);
  color: #fff; border-radius: 24px; padding: 44px 36px; text-align: center;
  box-shadow: var(--shadow-lg); margin: 10px 0;
}
.cta-band h2 { color: #fff; margin: 0 0 12px; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0 0 24px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding: 16px 0 0; }
.crumbs a { color: var(--menu); }
.crumbs span { margin: 0 6px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--btn); color: #cfcdd8; padding: 50px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 1.05rem; margin: 0 0 14px; }
.footer-grid a { color: #cfcdd8; display: block; padding: 5px 0; font-size: .94rem; }
.footer-grid a:hover { color: var(--header); }
.footer-brand img { height: 46px; margin-bottom: 14px; }
.footer-brand p { font-size: .9rem; color: #9c99a8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 34px; padding-top: 20px;
  font-size: .82rem; color: #9c99a8; text-align: center;
}
.age-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #d63333; color: #fff;
  font-weight: 800; border-radius: 999px; padding: 6px 14px; font-size: .82rem; margin-bottom: 14px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { order: -1; max-width: 480px; margin: 0 auto; }
  .casino-cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .split.reverse .split-text { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .main-nav { display: none; }
  .header-cta { display: none; }
  .burger { display: flex; }
  .toc ol { columns: 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 36px 0 28px; }
  .section { padding: 38px 0; }
  .cta-band { padding: 32px 22px; }
  .media-frame img { max-height: 380px; }
  .media-frame.phone img { max-height: 440px; }
}

@media (max-width: 420px) {
  .brand-logo span { display: none; }
  .stats { grid-template-columns: 1fr; }
}

/* ---- Legal / prose pages ---- */
.prose { max-width: 820px; }
.prose h2 { margin: 30px 0 10px; font-size: 1.4rem; color: var(--btn); }
.prose h3 { margin: 22px 0 8px; font-size: 1.1rem; color: var(--btn); }
.prose p { margin: 0 0 16px; line-height: 1.75; color: var(--ink-soft); }
.prose a { color: var(--menu); font-weight: 600; }
.prose a:hover { text-decoration: underline; }
.dash-list { list-style: none; padding: 0; margin: 0 0 18px; }
.dash-list li { position: relative; padding: 7px 0 7px 22px; line-height: 1.7; color: var(--ink-soft); }
.dash-list li::before { content: '\2014'; position: absolute; left: 0; color: var(--menu); font-weight: 700; }
.muted-note { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
