/* =========================================================
   CoinPrizeNow — main stylesheet
   ========================================================= */
:root {
  --bg: #060A15;
  --bg-2: #0A1022;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-solid: #0E1530;
  --heading: #FFFFFF;
  --link: #FFD978;
  --header-bg: rgba(6, 10, 21, 0.72);
  --drawer-bg: rgba(8, 12, 26, .97);
  --footer-bg: rgba(4, 7, 15, .6);
  --banner-bg: rgba(14, 21, 48, .96);
  --input-bg: rgba(255,255,255,.04);
  --panel-bg: rgba(255,255,255,.025);
  --glass-bg: rgba(255,255,255,.06);
  --grid-line: rgba(255,255,255,0.025);
  --chip-ink: var(--cat, var(--gold));
  --ok-ink: #B8FFF2;
  --err-ink: #FFC9D4;
  --note-ink: #B3A9FF;
  --body-bg:
    radial-gradient(1200px 600px at 10% -10%, rgba(245, 184, 61, 0.13), transparent 60%),
    radial-gradient(900px 600px at 100% 10%, rgba(139, 124, 255, 0.14), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(61, 217, 193, 0.08), transparent 60%),
    linear-gradient(180deg, #070B18 0%, #060A15 100%);
  --orb-opacity: 1;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #E9EDF7;
  --text-2: #C5CCDD;
  --muted: #8F9AB5;
  --gold: #F5B83D;
  --gold-2: #FFD978;
  --gold-ink: #2A1A00;
  --teal: #3DD9C1;
  --violet: #8B7CFF;
  --pink: #FF6B8B;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--body-bg);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  /* subtle grid pattern */
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}
.bg-orbs { opacity: var(--orb-opacity); position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.bg-orbs span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; animation: drift 24s ease-in-out infinite alternate; }
.bg-orbs span:nth-child(1) { width: 420px; height: 420px; background: #F5B83D; top: -140px; left: -120px; opacity: .14; }
.bg-orbs span:nth-child(2) { width: 380px; height: 380px; background: #8B7CFF; top: 30%; right: -160px; opacity: .14; animation-duration: 30s; }
.bg-orbs span:nth-child(3) { width: 340px; height: 340px; background: #3DD9C1; bottom: -160px; left: 30%; opacity: .09; animation-duration: 36s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .bg-orbs span, .coin, .glass-card { animation: none !important; } html { scroll-behavior: auto; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--heading); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--heading); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }
.container-wide { max-width: 1080px; }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px/1 var(--font-body);
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #E89A12); color: var(--gold-ink); box-shadow: 0 10px 30px -10px rgba(245, 184, 61, .6); }
.btn-gold:hover { color: var(--gold-ink); box-shadow: 0 14px 34px -10px rgba(245, 184, 61, .8); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--heading); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); }
.brand:hover { color: var(--heading); }
.brand-mark { width: 36px; height: 36px; filter: drop-shadow(0 4px 12px rgba(245,184,61,.35)); }
.brand-text { font: 700 21px/1 var(--font-head); letter-spacing: -0.03em; }
.brand-text b { color: var(--gold); font-weight: 800; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { color: var(--text-2); font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.main-nav a:hover { color: var(--heading); background: var(--surface-2); }
.main-nav a.is-active { color: var(--gold-2); background: rgba(245,184,61,.1); }
.nav-actions { display: flex; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: background .2s; }
.icon-btn:hover { background: var(--surface-2); }
.menu-btn { display: none; }
.search-drawer { border-top: 1px solid var(--border); padding: 14px 0; background: var(--drawer-bg); }
.search-form { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.search-form input { flex: 1; background: transparent; border: 0; color: var(--heading); font: 500 17px var(--font-body); padding: 10px 0; outline: none; }

@media (max-width: 980px) {
  .menu-btn { display: inline-grid; }
  .nav-actions { margin-left: auto; }
  .main-nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--drawer-bg); border-bottom: 1px solid var(--border);
    padding: 10px 16px 18px; transform: translateY(-120%); transition: transform .25s ease; margin: 0;
    max-height: calc(100vh - 70px); overflow: auto;
  }
  .main-nav.is-open { transform: none; }
  .main-nav a { padding: 14px; border-radius: 10px; font-size: 16px; }
}

/* ---------- Chips / meta ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 12px/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase;
  color: var(--chip-ink); background: color-mix(in srgb, var(--cat, var(--gold)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat, var(--gold)) 30%, transparent);
  padding: 7px 11px; border-radius: 999px;
}
.chip:hover { color: var(--heading); }
.chip-sm { font-size: 10.5px; padding: 5px 9px; }
.meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 13.5px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--teal); background: rgba(61,217,193,.08); border: 1px solid rgba(61,217,193,.25); padding: 8px 14px; border-radius: 999px; margin-bottom: 22px; }
.lead { font-size: 18.5px; color: var(--text-2); line-height: 1.65; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 20px; }
.grad { background: linear-gradient(100deg, var(--gold-2), var(--gold) 40%, #FF9F6B 70%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font: 700 28px/1.1 var(--font-head); color: var(--heading); }
.hero-stats span { color: var(--muted); font-size: 14px; }

.hero-visual { position: relative; height: 440px; }
.coin { position: absolute; border-radius: 50%; animation: float 7s ease-in-out infinite; }
.coin::after { content: ''; position: absolute; inset: 14%; border-radius: 50%; border: 2px solid rgba(60, 35, 0, .25); }
.coin-1 { width: 220px; height: 220px; top: 70px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 30% 25%, #FFF1C2, #FFD978 25%, #F5B83D 55%, #B8740A 100%);
  box-shadow: 0 30px 80px -10px rgba(245,184,61,.55), inset -10px -14px 30px rgba(120, 70, 0, .45), inset 8px 10px 20px rgba(255,255,255,.4); }
.coin-1::before { content: '₵'; position: absolute; inset: 0; display: grid; place-items: center; font: 800 96px/1 var(--font-head); color: rgba(70, 40, 0, .55); text-shadow: 0 2px 0 rgba(255,255,255,.35); }
.coin-2 { width: 90px; height: 90px; top: 20px; right: 10%; animation-delay: -2s;
  background: radial-gradient(circle at 30% 25%, #E2DCFF, #8B7CFF 55%, #4A3BC4); box-shadow: 0 20px 40px -10px rgba(139,124,255,.6); }
.coin-3 { width: 64px; height: 64px; bottom: 60px; left: 8%; animation-delay: -4s;
  background: radial-gradient(circle at 30% 25%, #D5FFF8, #3DD9C1 55%, #11826F); box-shadow: 0 20px 40px -10px rgba(61,217,193,.6); }
@keyframes float { 50% { translate: 0 -16px; } }
.glass-card {
  position: absolute; display: flex; gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 16px; min-width: 220px;
  background: var(--glass-bg); border: 1px solid var(--border-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow); color: var(--gold-2); animation: float 9s ease-in-out infinite;
}
.glass-card div { display: flex; flex-direction: column; }
.glass-card b { color: var(--heading); font-size: 14.5px; }
.glass-card span { color: var(--muted); font-size: 12.5px; }
.gc-1 { top: 0; left: 0; }
.gc-2 { top: 230px; right: -10px; color: var(--pink); animation-delay: -3s; }
.gc-3 { bottom: 0; left: 18%; color: var(--violet); animation-delay: -6s; }

@media (max-width: 900px) {
  .hero { padding: 44px 0 20px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 320px; max-width: 420px; margin: 0 auto; width: 100%; }
  .coin-1 { width: 170px; height: 170px; top: 60px; }
  .coin-1::before { font-size: 74px; }
  .gc-2 { top: 190px; right: 0; }
  .glass-card { min-width: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 34px 0; }
.section-tight { padding-top: 10px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 0; display: flex; align-items: center; gap: 12px; }
.section-head .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--cat, var(--gold)); box-shadow: 0 0 0 5px color-mix(in srgb, var(--cat, var(--gold)) 18%, transparent); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--text-2); }
.link-arrow:hover { color: var(--gold-2); }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-tile {
  position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius);
  background: linear-gradient(160deg, color-mix(in srgb, var(--cat) 10%, transparent), var(--surface) 55%);
  border: 1px solid var(--border); color: var(--text); overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s;
}
.cat-tile::after { content: ''; position: absolute; width: 160px; height: 160px; right: -60px; top: -60px; border-radius: 50%; background: var(--cat); filter: blur(60px); opacity: .18; }
.cat-tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--cat) 45%, transparent); color: var(--text); box-shadow: 0 20px 40px -20px color-mix(in srgb, var(--cat) 50%, transparent); }
.cat-icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; color: var(--cat); background: color-mix(in srgb, var(--cat) 15%, transparent); border: 1px solid color-mix(in srgb, var(--cat) 30%, transparent); margin-bottom: 18px; }
.cat-icon-lg { width: 60px; height: 60px; border-radius: 16px; }
.cat-tile h2 { font-size: 18.5px; margin-bottom: 8px; }
.cat-tile p { color: var(--muted); font-size: 14.5px; flex: 1; }
.cat-count { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--cat); }
@media (max-width: 1024px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

/* Feature */
.feature-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.feature-main { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; }
.feature-media img { aspect-ratio: 16/9; object-fit: cover; width: 100%; transition: transform .5s ease; }
.feature-main:hover .feature-media img { transform: scale(1.03); }
.feature-media { overflow: hidden; display: block; }
.feature-body { padding: 26px; }
.feature-body h3 { font-size: clamp(22px, 2.4vw, 28px); margin: 14px 0 10px; }
.feature-body h3 a, .card-title a, .mini h3 a { color: var(--heading); }
.feature-body h3 a:hover, .card-title a:hover, .mini h3 a:hover { color: var(--gold-2); }
.feature-body p { color: var(--text-2); }
.feature-side { display: flex; flex-direction: column; gap: 16px; }
.mini { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; padding: 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s; flex: 1; }
.mini:hover { border-color: var(--border-2); }
.mini-media img { border-radius: 10px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.mini h3 { font-size: 15.5px; margin: 8px 0 6px; line-height: 1.35; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .mini { grid-template-columns: 110px 1fr; } }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--cat) 40%, transparent); box-shadow: 0 24px 50px -24px rgba(0,0,0,.8); }
.card-media { display: block; overflow: hidden; }
.card-media img { aspect-ratio: 16/9; object-fit: cover; width: 100%; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body .chip { align-self: flex-start; }
.card-title { font-size: 18.5px; line-height: 1.35; margin: 14px 0 10px; }
.card-excerpt { color: var(--muted); font-size: 14.5px; flex: 1; }
@media (max-width: 1024px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

/* Safety band */
.safety-band {
  display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
  padding: 32px; border-radius: 22px;
  background: linear-gradient(120deg, rgba(245,184,61,.14), rgba(139,124,255,.10));
  border: 1px solid rgba(245,184,61,.25);
}
.safety-icon { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 20px; background: rgba(245,184,61,.15); color: var(--gold); }
.safety-band h2 { font-size: 22px; margin-bottom: 8px; }
.safety-band p { margin: 0; color: var(--text-2); }
@media (max-width: 860px) { .safety-band { grid-template-columns: 1fr; text-align: left; } }

/* ---------- Page hero / list ---------- */
.page-hero { padding: 54px 0 26px; }
.page-hero-sm { padding: 46px 0 14px; }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 50px); font-weight: 800; }
.page-hero .lead { max-width: 720px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-2); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.filter-chips a { padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); }
.filter-chips a:hover { color: var(--heading); border-color: var(--border-2); }
.filter-chips a.is-active { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }
.result-count { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.inline-search { display: flex; gap: 10px; max-width: 560px; margin: 18px 0; }
.center .inline-search { margin: 22px auto; }
.inline-search input { flex: 1; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--heading); font: 500 15px var(--font-body); }
.empty-state { text-align: center; padding: 60px 20px; border: 1px dashed var(--border-2); border-radius: var(--radius); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a { min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-weight: 600; }
.pagination a.is-active { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.big-404 { font: 800 120px/1 var(--font-head); margin: 0; background: linear-gradient(120deg, var(--gold-2), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Article ---------- */
.post-hero { padding: 46px 0 28px; }
.post-hero .chip { margin-bottom: 18px; }
.post-hero h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.03em; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.post-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.author-badge { gap: 12px !important; }
.author-badge .avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--font-head); color: var(--gold-ink); background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.author-badge b { color: var(--heading); display: block; font-size: 14.5px; }
.author-badge small { color: var(--muted); font-size: 13px; }
.post-cover { margin: 0 0 40px; }
.post-cover img { width: 100%; border-radius: 22px; border: 1px solid var(--border); aspect-ratio: 16/9; object-fit: cover; box-shadow: var(--shadow); }
.post-cover figcaption, .prose figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 12px; font-style: italic; }
.post-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 50px; justify-content: center; }
.post-aside { position: relative; }
.toc { position: sticky; top: 96px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); max-height: calc(100vh - 120px); overflow: auto; }
.toc-title { font: 700 12px var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 10px; padding: 7px 0; color: var(--text-2); font-size: 14px; line-height: 1.4; border-left: 2px solid transparent; padding-left: 10px; margin-left: -2px; }
.toc a::before { content: counter(t, decimal-leading-zero); color: var(--muted); font-size: 12px; font-weight: 600; padding-top: 1px; }
.toc a:hover, .toc a.is-active { color: var(--gold-2); border-left-color: var(--gold); }
@media (max-width: 1060px) {
  .post-layout { grid-template-columns: minmax(0, 760px); }
  .toc { position: static; max-height: none; margin-bottom: 30px; }
}

/* Prose */
.prose { font-size: 18px; line-height: 1.8; color: var(--text-2); }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.35em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 1.9em 0 .7em; scroll-margin-top: 90px; color: var(--heading); padding-top: .2em; }
.prose h3 { font-size: 21px; margin: 1.6em 0 .6em; color: var(--heading); }
.prose h4 { font-size: 18px; margin: 1.4em 0 .5em; }
.prose a { color: var(--link); text-decoration: underline; text-decoration-color: rgba(245,184,61,.4); text-underline-offset: 3px; }
.prose a:hover { color: var(--heading); text-decoration-color: currentColor; }
.prose strong { color: var(--heading); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.prose li { margin: .45em 0; padding-left: .2em; }
.prose ul li::marker { color: var(--cat, var(--gold)); }
.prose ol li::marker { color: var(--cat, var(--gold)); font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--cat, var(--gold)); background: var(--surface); border-radius: 0 14px 14px 0; color: var(--text); font-style: italic; }
.prose blockquote p:last-child { margin: 0; }
.prose figure { margin: 2em 0; }
.prose figure img, .prose img { border-radius: 16px; border: 1px solid var(--border); margin: 0 auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15.5px; display: block; overflow-x: auto; }
.prose table thead, .prose table tbody { display: table; width: 100%; table-layout: auto; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { color: var(--heading); font-family: var(--font-head); font-size: 14px; background: var(--surface-2); }
.prose tr:hover td { background: rgba(255,255,255,.02); }
.prose code { font-size: .88em; padding: 2px 6px; background: var(--surface-2); border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.prose .tip, .prose .warning, .prose .note {
  display: block; margin: 1.6em 0; padding: 18px 22px 18px 22px; border-radius: 14px; font-size: 16.5px; line-height: 1.7;
}
.prose .tip { background: rgba(61,217,193,.08); border: 1px solid rgba(61,217,193,.3); }
.prose .warning { background: rgba(255,107,139,.08); border: 1px solid rgba(255,107,139,.32); }
.prose .note { background: rgba(139,124,255,.08); border: 1px solid rgba(139,124,255,.3); }
.prose .tip strong:first-child { color: var(--teal); }
.prose .warning strong:first-child { color: var(--pink); }
.prose .note strong:first-child { color: var(--note-ink); }
.prose-panel { background: var(--panel-bg); border: 1px solid var(--border); border-radius: 22px; padding: clamp(22px, 4vw, 44px); }
.prose-panel h2:first-child { margin-top: 0; }

.post-disclaimer { display: flex; gap: 14px; margin: 40px 0 26px; padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 14.5px; }
.post-disclaimer svg { flex-shrink: 0; color: var(--gold); margin-top: 3px; }
.post-disclaimer p { margin: 0; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); padding-bottom: 20px; }
.share a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; }
.share a:hover { border-color: var(--gold); color: var(--gold-2); }
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--violet)); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }

/* ---------- Forms ---------- */
.contact-form { display: grid; gap: 16px; margin-top: 10px; }
.contact-form label { display: grid; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--heading); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border-2);
  background: var(--input-bg); color: var(--heading); font: 500 16px var(--font-body);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,184,61,.18); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 13.5px; color: var(--muted); margin: 0; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: 12px; margin: 16px 0; font-size: 15px; }
.alert-ok { background: rgba(61,217,193,.1); border: 1px solid rgba(61,217,193,.35); color: var(--ok-ink); }
.alert-err { background: rgba(255,107,139,.1); border: 1px solid rgba(255,107,139,.35); color: var(--err-ink); }
.callout { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: rgba(245,184,61,.07); border: 1px solid rgba(245,184,61,.25); font-size: 15.5px; margin-bottom: 20px; }
.callout svg { flex-shrink: 0; color: var(--gold); margin-top: 4px; }
.callout p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 60px; border-top: 1px solid var(--border); background: var(--footer-bg); padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-about p { color: var(--muted); font-size: 14.5px; margin-top: 16px; max-width: 380px; }
.footer-note { display: inline-flex; gap: 8px; align-items: center; color: var(--gold-2) !important; font-weight: 600; }
.site-footer h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 9px 0; }
.site-footer li a { color: var(--muted); font-size: 14.5px; }
.site-footer li a:hover { color: var(--gold-2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px; }
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 16px;
  background: var(--banner-bg); border: 1px solid var(--border-2); box-shadow: var(--shadow);
  backdrop-filter: blur(10px); font-size: 14px; color: var(--text-2);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 640px) { .cookie-banner { flex-direction: column; align-items: stretch; } .cookie-actions .btn { flex: 1; justify-content: center; } }

/* ---------- Theme toggle ---------- */
/* Light mode shows a moon (go dark); dark mode shows a sun (go light) */
.theme-toggle .ico-sun { display: none; }
[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
[data-theme="dark"] .theme-toggle .ico-sun { display: block; color: var(--gold-2); }
.theme-toggle svg { transition: transform .3s ease; }
.theme-toggle:hover svg { transform: rotate(20deg); }

/* ---------- Light theme ---------- */
[data-theme="light"] {
  color-scheme: light;
  --bg: #F5F6FA;
  --bg-2: #EEF0F6;
  --surface: #FFFFFF;
  --surface-2: #F1F3F9;
  --surface-solid: #FFFFFF;
  --border: rgba(16, 24, 48, 0.09);
  --border-2: rgba(16, 24, 48, 0.16);
  --text: #1C2233;
  --text-2: #3A4359;
  --muted: #626C85;
  --heading: #0B1020;
  --link: #A86A00;
  --header-bg: rgba(255, 255, 255, 0.82);
  --drawer-bg: rgba(255, 255, 255, 0.98);
  --footer-bg: #FFFFFF;
  --banner-bg: rgba(255, 255, 255, 0.98);
  --input-bg: #FFFFFF;
  --panel-bg: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.82);
  --grid-line: rgba(16, 24, 48, 0.045);
  --chip-ink: color-mix(in srgb, var(--cat, #F5B83D) 62%, #1a1200);
  --ok-ink: #0B6B5C;
  --err-ink: #A3183A;
  --note-ink: #4B3DC4;
  --shadow: 0 20px 45px -24px rgba(20, 30, 70, 0.25);
  --body-bg:
    radial-gradient(1100px 560px at 8% -12%, rgba(245, 184, 61, 0.20), transparent 60%),
    radial-gradient(900px 560px at 100% 6%, rgba(139, 124, 255, 0.14), transparent 60%),
    radial-gradient(900px 700px at 50% 112%, rgba(61, 217, 193, 0.12), transparent 60%),
    linear-gradient(180deg, #FBFAF6 0%, #F4F6FB 100%);
  --orb-opacity: .55;
}
[data-theme="light"] .card,
[data-theme="light"] .feature-main,
[data-theme="light"] .mini,
[data-theme="light"] .toc,
[data-theme="light"] .prose-panel,
[data-theme="light"] .post-disclaimer,
[data-theme="light"] .pagination a,
[data-theme="light"] .filter-chips a,
[data-theme="light"] .share a { box-shadow: 0 6px 18px -12px rgba(20, 30, 70, 0.25); }
[data-theme="light"] .card:hover { box-shadow: 0 24px 44px -24px rgba(20, 30, 70, 0.35); }
[data-theme="light"] .cat-tile { background: linear-gradient(160deg, color-mix(in srgb, var(--cat) 16%, #fff), #fff 60%); box-shadow: 0 8px 24px -16px rgba(20,30,70,.3); }
[data-theme="light"] .cat-icon,
[data-theme="light"] .cat-count { color: color-mix(in srgb, var(--cat) 70%, #1a1200); }
[data-theme="light"] .eyebrow { color: #0B7A69; background: rgba(61,217,193,.14); }
[data-theme="light"] .main-nav a.is-active { color: #8A5600; background: rgba(245,184,61,.18); }
[data-theme="light"] .btn-ghost { background: #fff; }
[data-theme="light"] .btn-ghost:hover { background: var(--surface-2); }
[data-theme="light"] .grad { background: linear-gradient(100deg, #E8A21A, #F08A2E 45%, #D9546E 70%, #6E5CF0); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] .brand-text b { color: #D9930F; }
[data-theme="light"] .glass-card { color: #B87A08; }
[data-theme="light"] .gc-2 { color: #D9466A; }
[data-theme="light"] .gc-3 { color: #6E5CF0; }
[data-theme="light"] .safety-band { background: linear-gradient(120deg, rgba(245,184,61,.18), rgba(139,124,255,.12)); }
[data-theme="light"] .safety-icon { color: #B87A08; }
[data-theme="light"] .footer-note { color: #A86A00 !important; }
[data-theme="light"] .callout svg,
[data-theme="light"] .post-disclaimer svg { color: #C88A0E; }
[data-theme="light"] .prose .tip strong:first-child { color: #0B7A69; }
[data-theme="light"] .prose .warning strong:first-child { color: #C42852; }
[data-theme="light"] .prose .tip { background: rgba(61,217,193,.10); }
[data-theme="light"] .prose .warning { background: rgba(255,107,139,.08); }
[data-theme="light"] .prose .note { background: rgba(139,124,255,.08); }
[data-theme="light"] .prose blockquote { background: #fff; }
[data-theme="light"] .prose a { text-decoration-color: rgba(168,106,0,.45); }
[data-theme="light"] .prose ul li::marker,
[data-theme="light"] .prose ol li::marker { color: color-mix(in srgb, var(--cat, #F5B83D) 70%, #1a1200); }
[data-theme="light"] .site-header { border-bottom-color: rgba(16,24,48,.08); }
[data-theme="light"] .icon-btn { background: #fff; }
[data-theme="light"] .big-404 { background: linear-gradient(120deg, #E8A21A, #6E5CF0); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] .toc a:hover, [data-theme="light"] .toc a.is-active,
[data-theme="light"] .link-arrow:hover, [data-theme="light"] .breadcrumb a:hover,
[data-theme="light"] .site-footer li a:hover, [data-theme="light"] .share a:hover,
[data-theme="light"] .feature-body h3 a:hover, [data-theme="light"] .card-title a:hover,
[data-theme="light"] .mini h3 a:hover { color: var(--link); }
[data-theme="light"] .toc a.is-active { border-left-color: #E8A21A; }
