:root {
    --bg: #F7F8FA;
    --surface: #FFFFFF;
    --surface-alt: #F1F2F6;
    --border: #E3E5EA;
    --border-strong: #CDD0DA;

    --ink: #15161D;
    --ink-soft: #565A66;
    --ink-faint: #8A8D99;

    --accent: #5B3DF5;
    --accent-hover: #4C2FE0;
    --accent-ink: #FFFFFF;
    --accent-soft: #EFEBFE;

    --free: #0F7A57;
    --free-soft: #E3F5EE;
    --premium: #A6720A;
    --premium-soft: #FBF0DA;
    --danger: #B23A2A;
    --danger-soft: #FBEAE7;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(21,22,29,0.06), 0 1px 1px rgba(21,22,29,0.04);
    --shadow-md: 0 8px 24px rgba(21,22,29,0.08);
    --shadow-lg: 0 20px 45px rgba(21,22,29,0.12);

    --font-display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --container: 1120px;
}

/* ── dark mode ────────────────────────────────────────────────────────── */
html.dark-mode {
    --bg: #12131A;
    --surface: #1C1D26;
    --surface-alt: #262833;
    --border: #323545;
    --border-strong: #43475B;

    --ink: #F0F1F5;
    --ink-soft: #B5B9C9;
    --ink-faint: #7A7F94;

    --accent: #7B63FF;
    --accent-hover: #6A51F0;
    --accent-soft: #2D284A;

    --free: #3ABE8A;
    --free-soft: #1C3B2E;
    --premium: #D4A023;
    --premium-soft: #3D3116;
    --danger: #E0604A;
    --danger-soft: #3D221E;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3), 0 1px 1px rgba(0,0,0,0.2);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 45px rgba(0,0,0,0.5);
}

html.dark-mode .hv-card-shadow { fill: rgba(0,0,0,0.3); }
html.dark-mode .hv-chip-bg { fill: var(--surface-alt); stroke: var(--border); }
html.dark-mode .hv-badge-bg { fill: var(--free-soft); }
html.dark-mode .hv-card { fill: var(--surface); stroke: var(--border); }
html.dark-mode .navbar { background: rgba(18,19,26,0.85); border-bottom-color: var(--border); }
html.dark-mode .modal-overlay { background: rgba(0,0,0,0.7); }
html.dark-mode .modal-content { background: var(--surface); border-color: var(--border); }
html.dark-mode .loader-box { background: var(--surface); border-color: var(--border); }
html.dark-mode #language-switcher { background: var(--surface-alt); border-color: var(--border); }
html.dark-mode #language-switcher .lang-btn.active { background: var(--surface); color: var(--ink); }
html.dark-mode .support-banner { background: var(--accent-soft); }
html.dark-mode .share-toast { background: var(--ink); color: var(--bg); }

/* ── reset & base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.25s ease, color 0.25s ease;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
ul { list-style: none; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── layout ───────────────────────────────────────────────────────────── */
.site-wrap { max-width: var(--container); width: 100%; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-tight { padding: 2.5rem 0; }
.section-header { max-width: 640px; margin: 0 0 2.25rem; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-display); font-weight: 600; font-size: 0.72rem;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
    margin-bottom: 0.75rem;
}
.eyebrow::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ── typography ───────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { color: var(--ink-soft); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.text-muted { color: var(--ink-faint); font-size: 0.9rem; }
strong { color: var(--ink); font-weight: 600; }

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
    font-family: var(--font-body); font-weight: 600; font-size: 0.92rem;
    padding: 0.7rem 1.35rem; border-radius: var(--radius-sm);
    border: 1px solid transparent; cursor: pointer; text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
    line-height: 1.2; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--ink); background: var(--surface-alt); }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: transparent; padding: 0.55rem 0.9rem; }
.btn-ghost:hover { background: var(--surface-alt); color: var(--ink); }
.btn-premium { background: var(--premium); color: #fff; box-shadow: var(--shadow-sm); }
.btn-premium:hover { background: #8E5F08; box-shadow: var(--shadow-md); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn[disabled] {
    opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none;
    background: var(--surface-alt); color: var(--ink-faint); border-color: var(--border);
}
.btn-icon { width: 1em; height: 1em; flex-shrink: 0; }

/* ── tags / badges ────────────────────────────────────────────────────── */
.tag {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
    padding: 0.28rem 0.7rem; border-radius: 999px; background: var(--surface-alt); color: var(--ink-soft);
    border: 1px solid var(--border);
}
.tag-accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.ratio-chip {
    display: inline-block; font-size: 0.72rem; font-weight: 600; color: var(--ink-faint);
    background: var(--surface-alt); border: 1px solid var(--border); border-radius: 6px;
    padding: 0.1rem 0.45rem;
}

/* ── navbar ───────────────────────────────────────────────────────────── */
.navbar {
    position: sticky; top: 0; z-index: 500;
    background: rgba(247,248,250,0.85); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: background 0.25s ease, border-color 0.25s ease;
}
.navbar-inner {
    max-width: var(--container); margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 9px; background: var(--ink);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.01em; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.62rem; color: var(--ink-faint); letter-spacing: 0.04em; text-transform: uppercase; margin-top: -1px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ── language switcher ────────────────────────────────────────────────── */
#language-switcher {
    display: flex; gap: 0.15rem; background: var(--surface-alt); border: 1px solid var(--border);
    border-radius: 999px; padding: 0.2rem;
}
#language-switcher .lang-btn {
    background: transparent; border: none; padding: 0.3rem 0.65rem; border-radius: 999px;
    font-weight: 700; font-size: 0.7rem; font-family: inherit; color: var(--ink-soft); cursor: pointer;
    transition: all 0.15s ease;
}
#language-switcher .lang-btn.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
#language-switcher .lang-btn:not(.active):hover { color: var(--ink); }

/* ── theme toggle ─────────────────────────────────────────────────────── */
.theme-toggle {
    position: fixed;
    top: 80px;
    left: 16px;
    z-index: 450;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    padding: 0;
}
.theme-toggle:hover {
    background: var(--surface-alt);
    border-color: var(--border-strong);
    color: var(--ink);
    box-shadow: var(--shadow-md);
    transform: scale(1.04);
}
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle .theme-icon {
    width: 20px;
    height: 20px;
    transition: opacity 0.25s ease, transform 0.3s ease;
}
.theme-toggle .sun { opacity: 1; transform: rotate(0deg); }
.theme-toggle .moon { opacity: 0; transform: rotate(90deg); position: absolute; }

html.dark-mode .theme-toggle .sun { opacity: 0; transform: rotate(-90deg); }
html.dark-mode .theme-toggle .moon { opacity: 1; transform: rotate(0deg); }

@media (max-width: 640px) {
    .theme-toggle {
        top: 72px;
        left: 10px;
        width: 36px;
        height: 36px;
    }
    .theme-toggle .theme-icon { width: 17px; height: 17px; }
}
@media (max-width: 400px) {
    .theme-toggle {
        top: 68px;
        left: 6px;
        width: 32px;
        height: 32px;
    }
    .theme-toggle .theme-icon { width: 15px; height: 15px; }
}

/* ── loader overlay ───────────────────────────────────────────────────── */
#loader-overlay {
    position: fixed; inset: 0; z-index: 9999; background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease; opacity: 1; visibility: visible;
}
#loader-overlay.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-box {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 2.5rem 3rem; text-align: center; max-width: 380px; width: 90%;
    animation: loaderPop 0.4s cubic-bezier(0.22,1,0.36,1) forwards; transform: scale(0.94); opacity: 0;
}
@keyframes loaderPop { 100% { transform: scale(1); opacity: 1; } }
.loader-ring { position: relative; width: 48px; height: 48px; margin: 0 auto 1.1rem; }
.loader-ring::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    border: 3px solid var(--border); border-top-color: var(--accent);
    animation: spinRing 0.85s linear infinite;
}
@keyframes spinRing { 100% { transform: rotate(360deg); } }
.loader-dots { display: none; }
.loader-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.loader-title span { display: inline-block; }
.loader-sub { font-size: 0.8rem; font-weight: 500; color: var(--ink-faint); margin-top: 0.3rem; }
.loader-sub .neo-tag { display: inline; background: none; border: none; padding: 0; font-weight: 500; text-transform: none; letter-spacing: normal; }
.loader-progress { width: 100%; height: 4px; background: var(--surface-alt); border-radius: 999px; margin-top: 1.2rem; overflow: hidden; }
.loader-progress-bar { height: 100%; width: 0%; background: var(--accent); border-radius: 999px; transition: width 0.2s ease; }
.loader-progress-bar.fill { background: var(--free); }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 3.5rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.hero-copy h1 { margin-bottom: 1rem; }
.hero-copy .lede { margin-bottom: 1.75rem; }
.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.trust-chip {
    display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 600;
    color: var(--ink-soft); background: var(--surface); border: 1px solid var(--border);
    padding: 0.35rem 0.75rem; border-radius: 999px;
}
.trust-chip svg { width: 14px; height: 14px; color: var(--free); flex-shrink: 0; }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-visual svg { width: 100%; height: auto; max-width: 440px; }
.hv-card { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.hv-card-shadow { fill: rgba(21,22,29,0.06); }
.hv-trail { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 6 8; }
.hv-dot { fill: var(--accent); }
.hv-dot-alt { fill: var(--premium); }
.hv-play { fill: var(--ink-faint); }
.hv-chip-bg { fill: var(--surface); stroke: var(--border); stroke-width: 1.2; }
.hv-chip-text { font-family: var(--font-body); font-weight: 700; font-size: 9px; fill: var(--ink); }
.hv-badge-bg { fill: var(--free-soft); }
.hv-badge-text { font-family: var(--font-body); font-weight: 700; font-size: 8px; fill: var(--free); }

@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-visual { order: -1; }
    .hero-visual svg { max-width: 320px; }
}

/* ── panels / cards (section wrappers) ───────────────────────────────── */
.panel {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 2.25rem 2.25rem; box-shadow: var(--shadow-sm);
}
.panel + .panel { margin-top: 1.5rem; }

/* ── feature grid ─────────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.feature-card {
    background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 1.5rem;
}
.feature-icon {
    width: 38px; height: 38px; border-radius: 10px; background: var(--surface);
    border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.9rem;
}
.feature-icon svg { width: 18px; height: 18px; color: var(--accent); }
.feature-card h3 { margin-bottom: 0.35rem; }
.feature-card p { font-size: 0.92rem; }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }

/* ── support banner ───────────────────────────────────────────────────── */
.support-banner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    background: var(--accent-soft); border: 1px solid transparent; border-radius: var(--radius-md);
    padding: 1rem 1.4rem; margin-bottom: 1.5rem;
}
.support-banner .support-copy p:first-child { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.support-banner .support-copy p { font-size: 0.85rem; margin: 0; }
.support-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ── search bar ───────────────────────────────────────────────────────── */
.search-bar { margin-bottom: 1.5rem; }
.search-box {
    display: flex; gap: 0.5rem; background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm); padding: 0.35rem; align-items: center;
}
.search-box input {
    flex: 1; border: none; background: transparent; padding: 0.5rem 0.7rem; font-size: 0.92rem;
    font-family: inherit; color: var(--ink); min-width: 0;
}
.search-box input:focus { outline: none; }
.search-box input::placeholder { color: var(--ink-faint); }

/* ── tools grid (catalog cards) ───────────────────────────────────────── */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 0.5rem; }
.tools-grid .tool-card {
    position: relative; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 1.25rem 1.25rem 1.4rem;
    display: flex; flex-direction: column; height: 100%;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.tools-grid .tool-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.tools-grid .tool-card h3 { font-size: 1rem; margin: 0 1.5rem 0.4rem 0; }
.tools-grid .tool-card .card-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.7rem; }

.tools-grid .tool-card .preview-wrapper { margin: 0 0 0.85rem; min-height: 2.1rem; display: flex; align-items: center; }
.tools-grid .tool-card .preview-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 0.45rem 0.85rem; font-weight: 600; font-size: 0.82rem; color: var(--ink);
    cursor: pointer; transition: all 0.12s ease; font-family: inherit; width: 100%; justify-content: center;
}
.tools-grid .tool-card .preview-btn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.tools-grid .tool-card .no-preview-text {
    font-size: 0.78rem; color: var(--ink-faint); font-weight: 500; background: var(--surface-alt);
    padding: 0.45rem 0.85rem; border-radius: var(--radius-sm); border: 1px dashed var(--border);
    display: block; width: 100%; text-align: center;
}

.tools-grid .tool-card > a.dl-link {
    margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    font-weight: 600; font-size: 0.86rem; color: var(--ink); text-decoration: none;
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    padding: 0.6rem 0.9rem; transition: all 0.12s ease;
}
.tools-grid .tool-card > a.dl-link:hover { border-color: var(--ink); background: var(--surface-alt); }

.tools-grid .tool-card .card-footer { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.7rem; }
.tools-grid .tool-card .share-btn {
    background: transparent; border: 1px solid var(--border); color: var(--ink-faint);
    border-radius: var(--radius-sm); padding: 0.5rem 0.6rem; font-size: 0.78rem; font-weight: 600;
    cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; transition: all 0.12s ease;
    flex-shrink: 0;
}
.tools-grid .tool-card .share-btn:hover { color: var(--ink); border-color: var(--border-strong); background: var(--surface-alt); }

@media (max-width: 900px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tools-grid { grid-template-columns: 1fr; } }

/* ── premium / full-pack card ─────────────────────────────────────────── */
.full-pack-card { border-color: var(--premium-soft); background: linear-gradient(180deg, var(--premium-soft) 0%, var(--surface) 90px); }
.full-pack-card .card-meta { margin-top: 0.1rem; }

.cta-block { margin-top: auto; padding-top: 0.85rem; border-top: 1px dashed var(--border); }
.cta-block .cta-label {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--ink-faint); margin-bottom: 0.5rem;
}
.cta-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cta-row + .cta-label { margin-top: 0.85rem; }
.pay-btn {
    flex: 1 1 auto; min-width: 128px; display: flex; flex-direction: column; align-items: flex-start;
    gap: 0.1rem; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    padding: 0.55rem 0.8rem; text-decoration: none; transition: all 0.12s ease;
}
.pay-btn:hover { border-color: var(--premium); background: var(--premium-soft); }
.pay-btn .pay-price { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.pay-btn .pay-via { font-size: 0.7rem; color: var(--ink-faint); font-weight: 600; }

/* ── item badges (ratio, free, premium) ──────────────────────────────── */
.item-badge {
    position: absolute; top: 0.85rem; right: 0.85rem;
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
    padding: 0.22rem 0.55rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-alt);
    color: var(--ink-soft);
}
.item-badge.badge-free { background: var(--free-soft); color: var(--free); border-color: transparent; }
.item-badge.badge-premium { background: var(--premium-soft); color: var(--premium); border-color: transparent; }
.item-badge.paid-badge { position: static; margin: 0; display: inline-block; }

/* ── no-results / pagination ─────────────────────────────────────────── */
#noResultsMessage {
    text-align: center; padding: 2rem 1.5rem; font-weight: 600; color: var(--ink-soft);
    background: var(--surface-alt); border: 1px dashed var(--border); border-radius: var(--radius-md); margin-top: 1rem;
}
/* ── pagination ─────────────────────────────────────────────────────────── */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-controls .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    white-space: normal;
    min-width: auto;
    max-width: 100%;
}

#pageInfo {
    font-weight: 700;
    min-width: 60px;
    text-align: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

#totalPagesInfo {
    font-size: 0.85rem;
    color: var(--ink-faint);
}

/* ── mobile pagination ────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .pagination-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .pagination-controls {
        justify-content: center;
        gap: 0.35rem;
        flex-wrap: wrap;
    }

    .pagination-controls .btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
        flex: 1 1 auto;
        min-width: 70px;
        max-width: 120px;
    }

    #pageInfo {
        font-size: 0.8rem;
        min-width: 50px;
        flex: 0 0 auto;
    }

    #totalPagesInfo {
        font-size: 0.75rem;
        text-align: center;
        width: 100%;
    }
}

/* ── checklist (why section) ─────────────────────────────────────────── */
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1.5rem; margin: 1.25rem 0 0; }
.check-list li {
    display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.6rem 0; font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}
.check-list li svg { width: 18px; height: 18px; color: var(--free); flex-shrink: 0; margin-top: 0.15rem; }
.why-callout {
    margin-top: 1.4rem; background: var(--free-soft); border-radius: var(--radius-md);
    padding: 0.9rem 1.2rem; font-size: 0.92rem; color: var(--ink);
}
@media (max-width: 700px) { .check-list { grid-template-columns: 1fr; } }

/* ── disclaimer callout ───────────────────────────────────────────────── */
.callout-list li {
    display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.65rem 0; font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}
.callout-list li:last-child { border-bottom: 0; }
.callout-list li svg { width: 17px; height: 17px; color: var(--danger); flex-shrink: 0; margin-top: 0.18rem; }
.callout-note {
    margin-top: 1rem; font-size: 0.88rem; color: var(--ink-faint); display: flex; align-items: center; gap: 0.4rem;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-grid { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.faq-grid .faq-item {
    background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 1.1rem 1.3rem;
}
.faq-grid .faq-item .faq-q { font-weight: 700; font-size: 0.98rem; margin-bottom: 0.3rem; color: var(--ink); }
.faq-grid .faq-item .faq-a { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ── footer ───────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); margin-top: 2rem; padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.footer-brand p { font-size: 0.88rem; max-width: 32ch; margin-top: 0.7rem; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); margin-bottom: 0.8rem; }
.footer-col a { display: block; font-size: 0.88rem; color: var(--ink-soft); text-decoration: none; padding: 0.3rem 0; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
    padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--ink-faint);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ── scroll reveal ────────────────────────────────────────────────────── */
.scroll-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── toast ────────────────────────────────────────────────────────────── */
.share-toast {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--ink); color: #fff; padding: 0.7rem 1.4rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.88rem; box-shadow: var(--shadow-lg); z-index: 999;
    opacity: 0; visibility: hidden; transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
}
.share-toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ── video modal ──────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(15,16,22,0.55); display: flex; align-items: center;
    justify-content: center; z-index: 99999; opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease; backdrop-filter: blur(3px); padding: 1.5rem;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-overlay .modal-content {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 1.75rem 1.75rem 1.5rem; max-width: 480px; width: 100%;
    transform: scale(0.96); transition: transform 0.25s cubic-bezier(0.22,1,0.36,1);
    position: relative; max-height: 92vh; overflow-y: auto;
}
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-close {
    position: absolute; top: 0.75rem; right: 0.9rem; background: var(--surface-alt); border: none;
    width: 32px; height: 32px; border-radius: 50%; font-size: 1.3rem; font-weight: 600; cursor: pointer;
    color: var(--ink-soft); line-height: 1; z-index: 2; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--border); color: var(--ink); }
.modal-content h2 { margin-top: 0; font-size: 1.05rem; margin-bottom: 1rem; padding-right: 2rem; }

/* ── container video dengan aspek rasio 9:16 ── */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: var(--ink);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    max-height: 65vh;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    border: none;
}

.video-container iframe[src*="tiktok.com"] {
    min-height: 100%;
}

.modal-content .video-hint {
    font-size: 0.82rem;
    color: var(--ink-faint);
    margin-top: 0.9rem;
    text-align: center;
}

/* ── responsif mobile ── */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 0.75rem;
        align-items: flex-start;
        padding-top: 1.5rem;
    }
    .modal-overlay .modal-content {
        padding: 1.25rem 1rem 1rem;
        max-width: 100%;
        border-radius: var(--radius-md);
        max-height: 90vh;
    }
    .modal-close {
        top: 0.5rem;
        right: 0.6rem;
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }
    .modal-content h2 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        padding-right: 1.8rem;
    }
    .video-container {
        aspect-ratio: 9 / 16;
        max-height: 55vh;
        border-radius: var(--radius-sm);
    }
    .modal-content .video-hint {
        font-size: 0.75rem;
        margin-top: 0.65rem;
    }
}

/* ── untuk layar sangat kecil ── */
@media (max-width: 360px) {
    .modal-overlay {
        padding: 0.5rem;
        padding-top: 1rem;
    }
    .modal-overlay .modal-content {
        padding: 1rem 0.75rem 0.75rem;
    }
    .video-container {
        aspect-ratio: 9 / 16;
        max-height: 45vh;
    }
    .modal-close {
        top: 0.35rem;
        right: 0.4rem;
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
}

/* ── responsive: general ─────────────────────────────────────────────── */
@media (max-width: 760px) {
    .site-wrap { padding: 0 1.1rem; }
    .section { padding: 2.75rem 0; }
    .panel { padding: 1.5rem 1.25rem; }
    .hero { padding: 2rem 0 1.5rem; }
}