/* ==========================================================================
   Bonus Codes Hub — public stylesheet
   Light by default, dark under prefers-color-scheme or [data-theme="dark"].
   ========================================================================== */

:root {
    --brand: #6d5efc;
    --accent: #00d1a7;

    --bg: #f6f7fb;
    --bg-soft: #ffffff;
    --surface: #ffffff;
    --surface-2: #f1f2f8;
    --line: #e3e5ef;
    --line-soft: #edeef5;
    --ink: #171a26;
    --ink-2: #444a5e;
    --muted: #757d95;
    --shadow: 0 1px 2px rgba(20, 24, 40, .05), 0 8px 24px -12px rgba(20, 24, 40, .18);
    --shadow-lg: 0 2px 6px rgba(20, 24, 40, .06), 0 24px 48px -20px rgba(20, 24, 40, .28);

    --ok: #0f9d76;
    --warn: #c9700a;
    --bad: #d94a4a;

    --radius: 14px;
    --radius-sm: 9px;
    --shell: 1200px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0d0f16;
        --bg-soft: #121522;
        --surface: #161a28;
        --surface-2: #1d2233;
        --line: #262c3f;
        --line-soft: #202538;
        --ink: #eceef6;
        --ink-2: #b7bdd0;
        --muted: #8b93ad;
        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);
        --shadow-lg: 0 2px 8px rgba(0, 0, 0, .45), 0 28px 60px -24px rgba(0, 0, 0, .8);
        --ok: #2fd39f;
        --warn: #f0a54a;
        --bad: #ff6b6b;
    }
}

:root[data-theme="dark"] {
    --bg: #0d0f16;
    --bg-soft: #121522;
    --surface: #161a28;
    --surface-2: #1d2233;
    --line: #262c3f;
    --line-soft: #202538;
    --ink: #eceef6;
    --ink-2: #b7bdd0;
    --muted: #8b93ad;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);
    --shadow-lg: 0 2px 8px rgba(0, 0, 0, .45), 0 28px 60px -24px rgba(0, 0, 0, .8);
    --ok: #2fd39f;
    --warn: #f0a54a;
    --bad: #ff6b6b;
}

/* --------------------------------------------------------------- base --- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.65 var(--font);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.skip {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

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

/* Nothing may push the page sideways: grid/flex children shrink, and long
   unbroken strings (bonus codes, brand names, URLs) wrap instead of overflow. */
.layout-with-side > *, .card-grid > *, .cat-grid > *, .brand-grid > * { min-width: 0; }
.card-title, .card-amount, .claim-amount, .brand-link, .cat-name, .prose { overflow-wrap: anywhere; }
.code-value { overflow-wrap: anywhere; }
.section { padding: 44px 20px; }
.narrow { max-width: 760px; }

/* ------------------------------------------------------------ buttons --- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border: 1px solid transparent; border-radius: 999px;
    font-weight: 650; font-size: .95rem; line-height: 1; cursor: pointer;
    text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--brand); /* fallback where color-mix is unsupported */
    background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 62%, var(--accent)));
    color: #fff;
    box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--brand) 70%, transparent);
}
.btn-primary:hover { box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--brand) 85%, transparent); }

.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 14px 26px; font-size: 1rem; width: 100%; }

/* ------------------------------------------------------------- header --- */

.site-header {
    position: sticky; top: 0; z-index: 60;
    background: var(--bg-soft);
    background: color-mix(in srgb, var(--bg-soft) 88%, transparent);
    backdrop-filter: saturate(150%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex; align-items: center; gap: 18px;
    min-height: 66px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; }
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 28px; height: 28px; flex: none; display: block;
    border-radius: 9px;
    box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--brand) 70%, transparent);
}
.brand-name { font-size: 1.08rem; letter-spacing: -.02em; }

.footer-brand { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.footer-brand .brand-mark { width: 24px; height: 24px; border-radius: 8px; box-shadow: none; }

.primary-nav { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.primary-nav a {
    padding: 8px 12px; border-radius: 8px; color: var(--ink-2);
    font-size: .92rem; font-weight: 550;
}
.primary-nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }

.search-mini { display: flex; align-items: center; gap: 6px; }
.search-mini input {
    width: 190px; padding: 9px 13px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    font: inherit; font-size: .9rem;
}
.search-mini input:focus { border-color: var(--brand); outline: none; }
.search-mini button {
    display: grid; place-items: center; width: 36px; height: 36px;
    border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); cursor: pointer;
}
.search-mini button:hover { background: var(--brand); color: #fff; }

.nav-toggle { display: none; }

.age-strip {
    font-size: .74rem; text-align: center; color: var(--muted);
    padding: 6px 20px; border-top: 1px solid var(--line-soft);
    background: var(--surface-2);
}

/* --------------------------------------------------------------- hero --- */

.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(60% 120% at 12% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
        radial-gradient(50% 110% at 88% 10%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%),
        var(--bg-soft);
    border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 62px 20px 54px; text-align: center; }
.eyebrow {
    display: inline-block; margin: 0 0 14px; padding: 5px 13px; border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: color-mix(in srgb, var(--accent) 75%, var(--ink));
    font-size: .76rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase;
}
.hero h1 { max-width: 18ch; margin: 0 auto .55em; }
.hero-sub { max-width: 58ch; margin: 0 auto 30px; color: var(--ink-2); font-size: 1.06rem; }

.hero-stats {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 30px;
}
.hero-stats div {
    min-width: 120px; padding: 14px 18px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero-stats strong { display: block; font-size: 1.4rem; letter-spacing: -.02em; }
.hero-stats span { font-size: .78rem; color: var(--muted); }

.hero-search { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; }
.hero-search input {
    flex: 1; padding: 14px 20px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit;
    box-shadow: var(--shadow);
}
.hero-search input:focus { border-color: var(--brand); outline: none; }

/* ---------------------------------------------------------- page head --- */

.page-head {
    padding: 34px 0 26px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-bottom: .3em; }
.page-sub { color: var(--ink-2); max-width: 65ch; margin-bottom: .4em; }
.page-meta { color: var(--muted); font-size: .87rem; margin: 0; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }

.section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.section-head h2 { margin: 0; }
.section-note { color: var(--muted); font-size: .88rem; margin: 0; }
.section-link { font-size: .9rem; font-weight: 600; }

/* -------------------------------------------------------------- cards --- */

.card-grid {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
}
.grid-ad { grid-column: 1 / -1; }

.card {
    position: relative; display: flex; flex-direction: column;
    padding: 20px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.card-featured { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }

.card-flag {
    position: absolute; top: 14px; right: 14px;
    padding: 3px 9px; border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    color: color-mix(in srgb, var(--accent) 70%, var(--ink));
    font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}

.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.card-logo, .bonus-logo {
    position: relative; flex: none;
    width: 46px; height: 46px; border-radius: 12px; overflow: hidden;
    background: var(--surface-2); border: 1px solid var(--line-soft);
}
.bonus-logo { width: 64px; height: 64px; border-radius: 16px; }
.logo-fallback {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-weight: 750; font-size: 1.1rem; color: var(--brand);
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, transparent), color-mix(in srgb, var(--accent) 16%, transparent));
}
.logo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 5px; background: var(--surface); }

.card-brand { min-width: 0; flex: 1; }
.brand-link { display: block; font-weight: 650; font-size: .95rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-link:hover { color: var(--brand); text-decoration: none; }
.card-type { font-size: .78rem; color: var(--muted); }

.card-rating {
    flex: none; padding: 4px 9px; border-radius: 8px;
    background: color-mix(in srgb, var(--ok) 15%, transparent);
    color: var(--ok); font-weight: 700; font-size: .82rem;
}

.card-title { font-size: 1.02rem; margin: 0 0 8px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--brand); text-decoration: none; }

.card-amount {
    margin: 0 0 14px; font-size: 1.32rem; font-weight: 750; letter-spacing: -.02em;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.card-facts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.card-facts li { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; }
.card-facts span { color: var(--muted); }
.card-facts strong { font-weight: 650; }

.card-foot { display: flex; align-items: stretch; gap: 10px; margin-top: auto; }

.code-chip {
    flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start;
    gap: 1px; padding: 8px 13px; border-radius: var(--radius-sm); cursor: pointer;
    background: var(--surface-2); border: 1px dashed var(--line);
    color: var(--ink); font: inherit; text-align: left;
    transition: border-color .12s ease, background .12s ease;
}
.code-chip:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface-2)); }
.code-chip.is-copied { border-style: solid; border-color: var(--ok); }
.code-label { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.code-value { font: 650 .93rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.code-none { cursor: default; border-style: solid; opacity: .75; }
.card-foot .btn { flex: none; }

.card-more { display: inline-block; margin-top: 14px; font-size: .84rem; color: var(--muted); }
.card-more:hover { color: var(--brand); text-decoration: none; }

/* --------------------------------------------------------- categories --- */

.cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.cat-tile {
    display: flex; flex-direction: column; gap: 4px; padding: 18px;
    border-radius: var(--radius); background: var(--surface);
    border: 1px solid var(--line); box-shadow: var(--shadow);
    color: var(--ink); transition: transform .14s ease, border-color .14s ease;
}
.cat-tile:hover { transform: translateY(-2px); border-color: var(--brand); text-decoration: none; }
.cat-count { font-size: 1.5rem; font-weight: 750; color: var(--brand); letter-spacing: -.02em; }
.cat-name { font-weight: 650; }
.cat-blurb { font-size: .8rem; color: var(--muted); }

.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: .89rem;
}
.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.chip span { font-size: .74rem; color: var(--muted); }

.brand-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.brand-tile {
    padding: 16px; border-radius: var(--radius); background: var(--surface);
    border: 1px solid var(--line); color: var(--ink);
}
.brand-tile:hover { border-color: var(--brand); text-decoration: none; }
.brand-tile-name { display: block; font-weight: 650; }
.brand-tile-count { font-size: .8rem; color: var(--muted); }

/* ------------------------------------------------------------ toolbar --- */

.layout-with-side {
    display: grid; gap: 30px; padding-top: 30px; padding-bottom: 50px;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
}
.layout-main { min-width: 0; }
.layout-side { display: grid; gap: 18px; }

.toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.filter-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pill {
    flex: none; padding: 7px 14px; border-radius: 999px; font-size: .86rem;
    background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
}
.pill:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pill-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill-on:hover { color: #fff; }

.sort-form { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); }
.sort-form select {
    padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line);
    background: var(--surface); color: var(--ink); font: inherit; font-size: .86rem;
}

/* -------------------------------------------------------- bonus page --- */

.bonus-hero { display: flex; gap: 18px; align-items: flex-start; }
.bonus-hero-text { min-width: 0; }
.bonus-brand { font-size: .88rem; font-weight: 650; color: var(--brand); }
.bonus-subtitle { color: var(--ink-2); margin: 0 0 .5em; }

.notice { padding: 11px 16px; border-radius: var(--radius-sm); font-size: .89rem; margin-bottom: 16px; }
.notice-warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 32%, transparent); }

.claim-box {
    display: grid; gap: 22px; grid-template-columns: 1fr 300px; align-items: center;
    padding: 24px; margin-bottom: 28px; border-radius: var(--radius);
    background:
        radial-gradient(80% 140% at 0% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 65%),
        var(--surface);
    border: 1px solid var(--line); box-shadow: var(--shadow);
}
.claim-amount {
    margin: 0 0 4px; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); font-weight: 800; letter-spacing: -.03em;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.claim-type { margin: 0; color: var(--ink-2); }
.claim-right { display: grid; gap: 10px; }
.code-chip-lg { align-items: center; padding: 12px 16px; }
.code-chip-lg .code-value { font-size: 1.18rem; letter-spacing: .06em; }
.claim-note { font-size: .72rem; color: var(--muted); margin: 0; line-height: 1.45; }

.lede { font-size: 1.08rem; color: var(--ink-2); margin-bottom: 28px; }

.terms-table { margin-bottom: 30px; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.terms-table table { width: 100%; border-collapse: collapse; background: var(--surface); }
.terms-table th, .terms-table td { padding: 12px 16px; text-align: left; font-size: .93rem; }
.terms-table th { width: 40%; color: var(--muted); font-weight: 550; }
.terms-table tr + tr th, .terms-table tr + tr td { border-top: 1px solid var(--line-soft); }
.terms-table code {
    padding: 3px 9px; border-radius: 6px; background: var(--surface-2);
    font: 650 .92rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em;
}

.prose { color: var(--ink-2); }
.prose h2 { color: var(--ink); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--ink); }
.intro-block { margin-bottom: 26px; }

.pro-con { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin: 30px 0; }
.pc-col { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.pc-col h2 { font-size: 1rem; margin-bottom: .7em; }
.pc-col ul { margin: 0; padding-left: 1.15em; }
.pc-col li { margin-bottom: .4em; font-size: .92rem; color: var(--ink-2); }
.pc-pro { border-left: 3px solid var(--ok); }
.pc-con { border-left: 3px solid var(--warn); }

.steps { margin: 30px 0; padding: 24px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.steps h2 { margin-top: 0; }
.steps ol { margin: 0 0 20px; padding-left: 1.2em; }
.steps li { margin-bottom: .6em; color: var(--ink-2); }

.faq { margin: 30px 0; }
.faq details {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); margin-bottom: 10px; overflow: hidden;
}
.faq summary { padding: 14px 18px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--ink-2); font-size: .94rem; }

.fineprint { font-size: .78rem; color: var(--muted); margin: 28px 0; line-height: 1.6; }

.side-card { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.side-card h2 { font-size: .95rem; margin-bottom: .8em; }
.side-list { margin: 0; padding-left: 1.1em; font-size: .87rem; color: var(--ink-2); }
.side-list li { margin-bottom: .5em; }
.side-related { list-style: none; margin: 0; padding: 0; }
.side-related li { padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: .88rem; }
.side-related li:first-child { border-top: 0; padding-top: 0; }
.side-related span { display: block; color: var(--muted); font-size: .78rem; }
.is-sticky { position: sticky; top: 90px; }

.sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: color-mix(in srgb, var(--bg-soft) 94%, transparent);
    backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .22s ease;
    padding: 10px 0;
}
.sticky-cta.is-on { transform: translateY(0); }
.sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sticky-text { font-weight: 650; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----------------------------------------------------------- ad slots --- */

.ad-slot {
    display: block; margin: 0 auto; padding: 10px;
    border-radius: var(--radius); background: var(--surface-2);
    border: 1px dashed var(--line); text-align: center;
}
.ad-label {
    display: block; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 6px;
}
.ad-body { display: flex; justify-content: center; align-items: center; min-height: 40px; }
.ad-body img { margin: 0 auto; border-radius: 8px; }
.ad-header, .ad-footer { max-width: var(--shell); margin: 16px auto; }
.ad-home_top, .ad-home_mid, .ad-listing_top { max-width: var(--shell); margin: 0 auto 26px; }
.ad-bonus_mid, .ad-bonus_bottom { margin: 28px 0; }
@media (max-width: 640px) { .ad-only-desktop { display: none; } }
@media (min-width: 641px) { .ad-only-mobile { display: none; } }

/* -------------------------------------------------------- pagination --- */

.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 34px; }
.page-num, .page-btn {
    min-width: 40px; height: 40px; padding: 0 14px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); border: 1px solid var(--line);
    background: var(--surface); color: var(--ink-2); font-size: .9rem; font-weight: 550;
}
.page-num:hover, .page-btn:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.page-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-gap { display: inline-flex; align-items: center; padding: 0 4px; color: var(--muted); }

/* -------------------------------------------------------------- misc --- */

.empty {
    text-align: center; padding: 54px 24px; border-radius: var(--radius);
    background: var(--surface); border: 1px dashed var(--line); color: var(--ink-2);
}
.empty h3 { color: var(--ink); }
.empty-lg { padding: 80px 24px; }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.error-code { font-size: 3.6rem; font-weight: 800; color: var(--brand); margin: 0; letter-spacing: -.04em; }

.toast {
    position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
    padding: 11px 20px; border-radius: 999px; background: var(--ink); color: var(--bg);
    font-size: .88rem; font-weight: 600; opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease; z-index: 90;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ footer --- */

.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid {
    display: grid; gap: 30px; padding-top: 44px; padding-bottom: 34px;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
}
.footer-about p { font-size: .88rem; color: var(--muted); margin: 10px 0 0; }
.footer-about .disclosure { font-size: .76rem; }
.footer-col h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 1em; }
.footer-col a { display: block; padding: 3px 0; font-size: .89rem; color: var(--ink-2); }
.footer-col a:hover { color: var(--brand); }
.footer-col .small { font-size: .78rem; color: var(--muted); }
.footer-base {
    display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    padding-top: 18px; padding-bottom: 26px; border-top: 1px solid var(--line-soft);
    font-size: .76rem; color: var(--muted);
}

/* ------------------------------------------------------- breakpoints --- */

@media (max-width: 1024px) {
    .layout-with-side { grid-template-columns: 1fr; }
    .layout-side { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .is-sticky { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: grid; gap: 4px; margin-left: auto; order: 3;
        width: 40px; height: 40px; padding: 10px; border: 0; border-radius: 10px;
        background: var(--surface-2); cursor: pointer;
    }
    .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
    .primary-nav {
        display: none; order: 4; width: 100%; flex-direction: column; gap: 2px;
        padding: 10px 0 14px; margin: 0; border-top: 1px solid var(--line);
    }
    .primary-nav.is-open { display: flex; }
    .header-inner { flex-wrap: wrap; }
    .search-mini { order: 2; flex: 1; }
    .search-mini input { width: 100%; }
    .claim-box { grid-template-columns: 1fr; }
    .pro-con { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .card-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-inner { padding: 44px 20px 38px; }
    .hero-search { flex-direction: column; }
    .bonus-hero { flex-direction: column; }
    .card-foot { flex-direction: column; }
    .card-foot .btn { width: 100%; }
}

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