/* ==========================================================================
   bonus888 — Premium Casino Affiliate Theme
   Luxury • Glassmorphism • Mobile-First • Core Web Vitals optimised
   ========================================================================== */

:root {
  --gold: #f5c451;
  --gold-2: #d4a017;
  --gold-grad: linear-gradient(135deg, #f9df8a 0%, #f5c451 45%, #d4a017 100%);
  --bg: #0a0e17;
  --bg-2: #111726;
  --bg-3: #161d2e;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(245, 196, 81, 0.18);
  --glass: rgba(17, 23, 38, 0.72);
  --text: #eef1f7;
  --muted: #9aa4b8;
  --green: #2ecc71;
  --red: #ff6b6b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 45px -20px rgba(0, 0, 0, 0.85);
  --shadow-gold: 0 10px 34px -10px rgba(245, 196, 81, 0.45);
  --maxw: 1160px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 500px at 85% -8%, rgba(245, 196, 81, 0.12), transparent 60%),
    radial-gradient(800px 480px at -10% 15%, rgba(103, 76, 255, 0.10), transparent 60%);
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: #ffe9a8; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--gold); color: #10131c; padding: 10px 18px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--card-border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; height: 68px;
}
.nav > .nav-links { gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; letter-spacing: .3px; color: var(--text); }
.brand .logo-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--gold-grad); color: #10131c; font-weight: 900; font-size: 1rem; box-shadow: var(--shadow-gold);
}
.brand b { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links li { margin: 0; }
.nav-links a {
  color: var(--text); font-weight: 600; font-size: .96rem; padding: 9px 13px; border-radius: 10px;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(245, 196, 81, 0.12); color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; border-radius: 999px; padding: 13px 26px; cursor: pointer; border: 0;
  font-size: 1rem; line-height: 1; transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  text-align: center;
}
.btn-primary { background: var(--gold-grad); color: #10131c; box-shadow: var(--shadow-gold); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); color: #10131c; }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); border: 1px solid var(--card-border); }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.1); color: var(--text); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.nav .btn { white-space: nowrap; }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--card-border); color: var(--text);
  width: 46px; height: 44px; border-radius: 12px; cursor: pointer; font-size: 1.4rem;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 74px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--gold); background: rgba(245, 196, 81, 0.1);
  border: 1px solid var(--card-border); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); line-height: 1.1; font-weight: 900; letter-spacing: -.5px; }
.hero h1 .hl { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 1.13rem; color: var(--muted); margin: 20px 0 26px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.trust-row .ti { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.trust-row .ti span.ico { color: var(--gold); font-size: 1.15rem; }

.hero-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 26px; backdrop-filter: blur(8px); box-shadow: var(--shadow);
}
.hero-card h2 { font-size: 1.15rem; color: var(--gold); margin-bottom: 6px; }
.offer-list { list-style: none; display: grid; gap: 12px; margin: 16px 0; }
.offer-list li { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.03); padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, 0.05); }
.offer-list .badge { background: var(--gold-grad); color: #10131c; font-weight: 800; font-size: .78rem; padding: 5px 10px; border-radius: 8px; white-space: nowrap; }

/* ---------- Sections ---------- */
main section { padding: 52px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head .kicker { color: var(--gold); font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; font-size: .78rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; line-height: 1.2; margin: 8px 0 12px; }
h3 { font-size: 1.28rem; font-weight: 700; margin: 22px 0 8px; color: #fff; }
h4 { font-size: 1.06rem; font-weight: 700; margin: 16px 0 6px; }
p { margin-bottom: 14px; color: #d5dae6; }
section p, article p { color: #cfd6e4; }
ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 7px; color: #cfd6e4; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 24px; backdrop-filter: blur(6px); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(245, 196, 81, 0.4); }
.card .ico-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem;
  background: rgba(245, 196, 81, 0.12); border: 1px solid var(--card-border); margin-bottom: 14px;
}
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; font-size: .96rem; }

.game-card { text-align: center; }
.game-card .ico-badge { margin-inline: auto; }

/* ---------- Feature / definition / summary boxes ---------- */
.box { border-radius: var(--radius); padding: 22px 24px; margin: 20px 0; border: 1px solid var(--card-border); background: var(--card); }
.box-def { border-left: 4px solid var(--gold); background: rgba(245, 196, 81, 0.06); }
.box-tip { border-left: 4px solid var(--green); background: rgba(46, 204, 113, 0.07); }
.box-warn { border-left: 4px solid var(--red); background: rgba(255, 107, 107, 0.07); }
.box-summary { background: linear-gradient(135deg, rgba(245,196,81,0.08), rgba(103,76,255,0.06)); }
.box h3, .box h4 { margin-top: 0; }
.box .label { font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: .74rem; color: var(--gold); display: block; margin-bottom: 6px; }
.box-tip .label { color: var(--green); }
.box-warn .label { color: var(--red); }

/* ---------- AI Overview ---------- */
.ai-overview { background: linear-gradient(135deg, rgba(103,76,255,0.10), rgba(245,196,81,0.06)); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 28px; }
.ai-overview .aio-q { font-weight: 700; color: var(--gold); margin-top: 16px; }
.ai-overview .aio-q:first-of-type { margin-top: 0; }

/* ---------- Table of contents ---------- */
.toc { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 22px 26px; }
.toc h2 { font-size: 1.15rem; margin: 0 0 12px; }
.toc ol { columns: 2; column-gap: 32px; margin-left: 18px; }
.toc a { color: #d5dae6; font-weight: 600; }
.toc a:hover { color: var(--gold); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--card-border); margin: 18px 0; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 520px; background: var(--bg-2); }
caption { text-align: left; padding: 12px 16px; color: var(--muted); font-size: .9rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: .95rem; }
thead th { background: rgba(245, 196, 81, 0.1); color: var(--gold); font-weight: 700; white-space: nowrap; }
tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
td .yes { color: var(--green); font-weight: 700; }
td .no { color: var(--red); font-weight: 700; }

/* ---------- Pros / Cons ---------- */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.proscons .pc { border-radius: var(--radius); padding: 22px; border: 1px solid var(--card-border); }
.proscons .pros { background: rgba(46, 204, 113, 0.06); border-left: 4px solid var(--green); }
.proscons .cons { background: rgba(255, 107, 107, 0.06); border-left: 4px solid var(--red); }
.proscons ul { list-style: none; margin-left: 0; }
.proscons li { padding-left: 26px; position: relative; }
.proscons .pros li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.proscons .cons li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-weight: 800; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; margin-left: 0; }
.steps li { counter-increment: step; position: relative; padding: 16px 16px 16px 62px; margin-bottom: 14px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-sm); }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold-grad); color: #10131c; font-weight: 800; display: grid; place-items: center; }
.steps li strong { color: #fff; }

/* ---------- Rating ---------- */
.rating-box { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 26px; }
.rating-score { font-size: 3.2rem; font-weight: 900; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stars { color: var(--gold); font-size: 1.3rem; letter-spacing: 2px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gold-grad); border-radius: var(--radius); padding: 40px; text-align: center; color: #10131c; margin: 20px 0; }
.cta-band h2 { color: #10131c; }
.cta-band p { color: #2a2410; font-weight: 600; max-width: 620px; margin-inline: auto; }
.cta-band .btn-dark { background: #10131c; color: var(--gold); }
.cta-band .btn-dark:hover { color: #ffe9a8; }

/* ---------- FAQ ---------- */
.faq details { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 12px; transition: border-color .2s ease; }
.faq details[open] { border-color: rgba(245, 196, 81, 0.4); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.5rem; font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 16px; margin-bottom: 0; }

/* ---------- Blog cards ---------- */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card .thumb { height: 150px; background: var(--gold-grad); display: grid; place-items: center; font-size: 2.6rem; color: #10131c; }
.post-card img.thumb { display: block; width: 100%; height: 172px; object-fit: cover; background: var(--bg-3); border-bottom: 1px solid var(--card-border); }
.post-card:hover img.thumb { filter: brightness(1.04) saturate(1.05); }
.post-card .pc-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .tag { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); font-weight: 700; }
.post-card h3 { font-size: 1.12rem; margin: 0; }
.post-card p { font-size: .92rem; }
.post-card .read { margin-top: auto; font-weight: 700; }

/* ---------- Article ---------- */
.article-hero { padding: 56px 0 20px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .9rem; margin: 14px 0 0; align-items: center; }
.author-chip { display: inline-flex; align-items: center; gap: 8px; }
.author-chip .av { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-grad); color: #10131c; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.article-body { max-width: 800px; }
.article-body h2 { margin-top: 36px; }
.article-body img { border-radius: var(--radius); margin: 18px 0; border: 1px solid var(--card-border); }
.figph { background: linear-gradient(135deg, var(--bg-2), var(--bg-3)); border: 1px dashed var(--card-border); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); margin: 20px 0; }
.figph .emoji { font-size: 2.4rem; display: block; margin-bottom: 8px; }

.related-grid { margin-top: 20px; }
.key-takeaways { background: var(--card); border: 1px solid var(--card-border); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 22px 24px; margin: 24px 0; }
.key-takeaways ul { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--card-border); padding: 52px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid h4 { color: var(--gold); font-size: .95rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin-left: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--muted); font-size: .93rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-about p { color: var(--muted); font-size: .93rem; }
.age-badge { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--red); color: var(--red); font-weight: 900; margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.07); margin-top: 34px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; color: var(--muted); font-size: .85rem; }
.footer-bottom .rg-note { max-width: 720px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--muted); }
.updated-badge { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--muted); background: var(--card); border: 1px solid var(--card-border); padding: 5px 12px; border-radius: 999px; }
.disclaimer-strip { background: rgba(255, 107, 107, 0.08); border: 1px solid rgba(255,107,107,0.25); border-radius: var(--radius-sm); padding: 12px 18px; font-size: .86rem; color: #ffc9c9; margin: 18px 0; }

/* ==========================================================================
   Responsive — Mobile First adjustments
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav { display: flex; align-items: center; gap: 12px; }
  .nav > .brand { margin-right: auto; }
  .nav > .nav-cta { order: 2; }
  .nav > .nav-toggle { order: 3; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 16px 20px 24px; border-bottom: 1px solid var(--card-border);
    transform: translateY(-140%); transition: transform .28s ease; max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 14px; font-size: 1.02rem; }
  .nav-links .btn { margin-top: 8px; }
  .toc ol { columns: 1; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .proscons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding: 44px 0 36px; }
  main section { padding: 40px 0; }
  .cta-band { padding: 30px 20px; }
  .rating-box { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  .container { padding-inline: 16px; }
  .hero-cta .btn { width: 100%; }
  .nav > .nav-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   UI/UX Enhancements (v2)
   ========================================================================== */
::selection { background: rgba(245, 196, 81, 0.32); color: #fff; }

/* Scrolled header state */
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header.scrolled { box-shadow: 0 14px 34px -18px rgba(0,0,0,0.9); background: rgba(9, 12, 20, 0.92); }

/* Animated underline on nav links (not the CTA button) */
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  background: var(--gold-grad); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:not(.btn):hover::after, .nav-links a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a:not(.btn):hover { background: transparent; }

/* Mobile toggle -> X animation via class */
.nav-toggle { transition: transform .25s ease, background .2s ease; }
.nav-toggle[aria-expanded="true"] { background: rgba(245,196,81,0.14); transform: rotate(90deg); }

/* Primary button shine sweep */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::before {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg); transition: left .65s ease; pointer-events: none;
}
.btn-primary:hover::before { left: 150%; }

/* Card sheen + deeper hover */
.card { position: relative; }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(245,196,81,0.10), transparent 40%);
  opacity: 0; transition: opacity .3s ease;
}
.card:hover::after { opacity: 1; }

/* Scroll-reveal (JS-gated, no-JS safe) */
.js .reveal { opacity: 0; transform: translateY(26px); will-change: opacity, transform;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Reading progress bar */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1100;
  background: var(--gold-grad); box-shadow: 0 0 10px rgba(245,196,81,0.6); transition: width .08s linear;
}

/* Back-to-top */
.to-top {
  position: fixed; right: 18px; bottom: 18px; width: 50px; height: 50px; border-radius: 50%;
  background: var(--gold-grad); color: #10131c; display: grid; place-items: center; font-size: 1.4rem;
  border: 0; cursor: pointer; box-shadow: var(--shadow-gold); z-index: 900;
  opacity: 0; transform: translateY(18px) scale(.9); pointer-events: none;
  transition: opacity .28s ease, transform .28s ease, filter .2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { filter: brightness(1.08); transform: translateY(-3px); }

/* TOC active link (scrollspy) */
.toc a.active { color: var(--gold); font-weight: 800; }
.toc a { position: relative; padding-left: 12px; transition: padding-left .2s ease; }
.toc a::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); transform: translateY(-50%) scale(0); transition: transform .2s ease;
}
.toc a.active::before { transform: translateY(-50%) scale(1); }

/* Cookie consent bar */
.cookie-bar {
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 1200;
  background: var(--glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--card-border); border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow);
  display: flex; gap: 16px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  transform: translateY(140%); transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.cookie-bar.show { transform: translateY(0); }
.cookie-bar p { margin: 0; font-size: .88rem; color: var(--muted); max-width: 74ch; }
.cookie-bar .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Focus ring polish */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px;
}

@media (max-width: 520px) {
  .to-top { width: 44px; height: 44px; right: 12px; bottom: 12px; }
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .cookie-bar .cookie-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn-primary::before { display: none; }
  .cookie-bar { transition: none; }
}

/* Anchor jump offset for sticky header */
:target, section[id], [id^="what"], [id], .article-body h2[id] { scroll-margin-top: 88px; }

/* Brand logo image */
.brand { gap: 0; }
.brand-logo { height: 46px; width: auto; display: block; }
.site-footer .brand-logo { height: 52px; }
@media (max-width: 520px) { .brand-logo { height: 40px; } }

/* ==========================================================================
   Icon highlight — brand palette (gold) accent on all icon badges
   ========================================================================== */
.ico-badge {
  background: var(--gold-grad);
  border: 0;
  box-shadow: 0 8px 22px -8px rgba(245, 196, 81, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  color: #10131c;
}
/* subtle depth so the emoji reads on the bright gold */
.ico-badge { text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15); }
.card:hover .ico-badge { box-shadow: 0 12px 28px -8px rgba(245, 196, 81, 0.75); transform: translateY(-2px); }
.ico-badge { transition: box-shadow .2s ease, transform .2s ease; }
/* trust-row + inline icons take the gold accent too */
.trust-row .ti span.ico { color: var(--gold); }

/* Author profile photo (About page) */
.author-chip .author-photo {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold); box-shadow: 0 6px 18px -6px rgba(245, 196, 81, 0.5); flex: none;
}
