/* ── Reset & Variables ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:      #0a0a14;
    --s1:      #111120;
    --s2:      #181830;
    --border:  #252540;
    --accent:  #a78bfa;
    --accent2: #7c3aed;
    --gold:    #e8c46a;
    --text:    #e2daf5;
    --muted:   #7870a0;
    --error:   #f87171;
    --ok:      #4ade80;
    --r:       14px;
    --font:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
}

/* ── Light Theme ────────────────────────────────────────────────── */
body.light {
    --bg:     #f0eeff;
    --s1:     #ffffff;
    --s2:     #e8e2ff;
    --border: #c8bff0;
    --text:   #1a1033;
    --muted:  #6860a0;
}
body.light .field input[type="text"],
body.light .field input[type="email"],
body.light .field input[type="date"],
body.light .field input[type="time"],
body.light .field input[type="search"] { color-scheme: light; }
body.light .choice-card:active,
body.light .choice-card.sel            { background: #ddd6ff; }
body.light .pcard:active,
body.light .pcard.sel                  { background: #ddd6ff; }
body.light #overlay                    { background: rgba(240,238,255,.97); }

html, body {
    background: var(--bg); color: var(--text);
    font-family: var(--font); font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

/* ── Honeypot (off-screen, never shown to humans) ──────────────── */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Loading Overlay ───────────────────────────────────────────── */
#overlay {
    position: fixed; inset: 0;
    background: rgba(10,10,20,.97);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 1.25rem;
    z-index: 9000; opacity: 0; pointer-events: none; transition: opacity .3s;
}
#overlay.on { opacity: 1; pointer-events: auto; }
.spinner {
    width: 44px; height: 44px;
    border: 3px solid var(--border); border-top-color: var(--accent);
    border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#overlay p { color: var(--muted); font-size: .9rem; text-align: center; line-height: 1.6; }

/* ── Wizard Shell ──────────────────────────────────────────────── */
#wizard { max-width: 480px; margin: 0 auto; min-height: 100vh; }

.step {
    display: none; flex-direction: column; min-height: 100vh;
    animation: stepIn .25s ease;
}
.step.active { display: flex; }
@keyframes stepIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

/* ── Wizard Progress Bar ───────────────────────────────────────── */
.wiz-prog { height: 3px; background: var(--s2); }
.wiz-prog-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    transition: width .4s ease;
}

/* ── Topbar ────────────────────────────────────────────────────── */
.topbar {
    display: flex; align-items: center; gap: .75rem;
    padding: 1rem 1.25rem .5rem;
}
.logo { font-size: 1.05rem; font-weight: 700; color: var(--accent); }
.step-lbl { margin-left: auto; font-size: .72rem; color: var(--muted); }
.btn-back {
    background: none; border: none; cursor: pointer;
    color: var(--muted); font-size: 1.2rem; padding: .1rem .3rem;
    touch-action: manipulation; line-height: 1;
}
.btn-back:active  { color: var(--accent); }
.btn-theme {
    background: none; border: none; cursor: pointer;
    color: var(--muted); font-size: 1rem; padding: .1rem .3rem;
    touch-action: manipulation; line-height: 1; flex-shrink: 0;
    transition: color .2s;
}
.btn-theme:active { color: var(--accent); }
.topbar-min { padding-bottom: 0; }

/* ── Step Header ───────────────────────────────────────────────── */
.step-hd { padding: .5rem 1.25rem 1.1rem; }
.step-hd h2 { font-size: 1.45rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.step-hd p  { margin-top: .3rem; font-size: .875rem; color: var(--muted); line-height: 1.4; }

/* ── Step Body ─────────────────────────────────────────────────── */
.step-body { flex: 1; padding: 0 1.25rem 1.5rem; overflow-y: auto; }

/* ── Ad Banner ─────────────────────────────────────────────────── */
.ad-banner {
    margin: 0 1.25rem .75rem;
    background: var(--s1); border: 1px dashed var(--border);
    border-radius: 8px; padding: .65rem; text-align: center;
    color: var(--muted); font-size: .62rem; letter-spacing: .08em;
    text-transform: uppercase; min-height: 52px;
    display: flex; align-items: center; justify-content: center;
}

/* ── CTA Button ────────────────────────────────────────────────── */
.btn-cta {
    width: 100%; padding: 1rem;
    background: linear-gradient(135deg, var(--accent2), #9d4edd);
    border: none; border-radius: var(--r); color: #fff;
    font-size: 1.05rem; font-weight: 700; cursor: pointer;
    transition: opacity .15s; touch-action: manipulation;
}
.btn-cta:active  { opacity: .82; }
.btn-cta:disabled { opacity: .35; cursor: default; }

/* ── Field Groups ──────────────────────────────────────────────── */
.field { margin-bottom: 1.1rem; }
.field label {
    display: flex; align-items: center; justify-content: space-between;
    font-size: .72rem; font-weight: 600;
    color: var(--muted); text-transform: uppercase;
    letter-spacing: .06em; margin-bottom: .4rem;
}
.field label .req { color: var(--error); font-size: .85em; }
.field label .field-err {
    font-size: .8rem; color: var(--error);
    text-transform: none; letter-spacing: 0; font-weight: 400;
    display: none;
}
.field label .field-err.on { display: block; }

.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.field input[type="time"],
.field input[type="search"] {
    width: 100%;
    background: var(--s2); border: 1.5px solid var(--border);
    color: var(--text); font-size: 1rem;
    padding: .8rem 1rem; border-radius: 9px;
    outline: none; -webkit-appearance: none; appearance: none;
    transition: border-color .18s, box-shadow .18s; color-scheme: dark;
}
.field input:focus { border-color: var(--accent); }
.field input.invalid { border-color: var(--error) !important; }
.field input.valid   { border-color: var(--ok); }

.field .hint { font-size: .75rem; color: var(--muted); margin-top: .3rem; }

.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.1rem; }
.sep { height: 1px; background: var(--border); margin: 1.1rem 0; }

/* ── Product Cards ─────────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.5rem; }
.pcard {
    background: var(--s1); border: 2px solid var(--border);
    border-radius: var(--r); padding: 1.2rem 1rem 1rem;
    text-align: center; cursor: pointer;
    transition: border-color .2s, background .2s; touch-action: manipulation;
}
.pcard:active, .pcard.sel { border-color: var(--accent); background: #1a1040; }
.pcard.dim { opacity: .38; cursor: default; pointer-events: none; }
.pcard .icon { font-size: 1.7rem; display: block; margin-bottom: .45rem; }
.pcard .name { font-size: .9rem; font-weight: 700; color: var(--text); }
.pcard .sub  { font-size: .7rem; color: var(--muted); margin-top: .15rem; }
.pcard .badge-soon {
    display: inline-block; margin-top: .3rem;
    font-size: .62rem; text-transform: uppercase; letter-spacing: .05em;
    background: var(--s2); border: 1px solid var(--border);
    color: var(--muted); padding: .12rem .45rem; border-radius: 10px;
}

/* ── Place Autocomplete ────────────────────────────────────────── */
.place-wrap { position: relative; }
.place-input-row { display: flex; gap: .5rem; align-items: center; }
.place-input-row input { flex: 1; }
.place-clear {
    background: none; border: none; cursor: pointer;
    color: var(--muted); font-size: 1.1rem; padding: .4rem;
    touch-action: manipulation; flex-shrink: 0;
}
.place-clear:active { color: var(--accent); }

.ac-list {
    position: absolute; top: calc(100% + 2px); left: 0; right: 0; z-index: 200;
    background: var(--s2); border: 1.5px solid var(--accent);
    border-radius: 0 0 9px 9px;
    max-height: 260px; overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.ac-item {
    padding: .85rem 1rem; border-bottom: 1px solid var(--border);
    cursor: pointer; touch-action: manipulation;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:active { background: var(--s1); }
.ac-name { font-size: .95rem; font-weight: 600; color: var(--text); }
.ac-sub  { font-size: .78rem; color: var(--muted); margin-top: .1rem; }
.ac-empty { padding: .85rem 1rem; color: var(--muted); font-size: .875rem; text-align: center; }
.ac-loading { padding: .85rem 1rem; text-align: center; }
.ac-loading .mini-spin {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid var(--border); border-top-color: var(--accent);
    border-radius: 50%; animation: spin .6s linear infinite;
}

.place-selected {
    display: flex; align-items: center; gap: .75rem;
    background: var(--s2); border: 1.5px solid var(--ok);
    border-radius: 9px; padding: .8rem 1rem;
}
.place-selected .check { color: var(--ok); font-size: 1.1rem; flex-shrink: 0; }
.place-selected .pl-name { font-size: .95rem; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-selected .pl-change {
    background: none; border: none; cursor: pointer;
    font-size: .78rem; color: var(--muted); text-decoration: underline;
    padding: 0; touch-action: manipulation; flex-shrink: 0;
}

/* ── Big Choice Cards ──────────────────────────────────────────── */
.choice-stack { display: flex; flex-direction: column; gap: .85rem; padding-bottom: 1rem; }
.choice-card {
    background: var(--s1); border: 2px solid var(--border);
    border-radius: var(--r); padding: 1.5rem;
    cursor: pointer; display: flex; align-items: center; gap: 1.1rem;
    transition: border-color .18s, background .18s; touch-action: manipulation;
}
.choice-card:active, .choice-card.sel { border-color: var(--accent); background: #1a1040; }
.choice-card .cc-icon { font-size: 2.1rem; flex-shrink: 0; }
.choice-card .cc-body { flex: 1; }
.choice-card .cc-name { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.choice-card .cc-sub  { font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.choice-card .cc-check {
    font-size: 1.2rem; color: var(--accent);
    opacity: 0; transition: opacity .2s; flex-shrink: 0;
}
.choice-card.sel .cc-check { opacity: 1; }

/* ── Language Step splash ──────────────────────────────────────── */
#step0 .step-hd h2 { font-size: 1.05rem; color: var(--muted); font-weight: 500; text-align: center; }

.splash-hero {
    display: flex; flex-direction: column; align-items: center;
    padding: 2.5rem 1.5rem 1.25rem; text-align: center; gap: .85rem;
}
.splash-logo {
    width: 140px; height: auto;
    filter: drop-shadow(0 0 18px rgba(167,139,250,.35));
}
body.light .splash-logo { filter: invert(1); }
.splash-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent2), #9d4edd);
    color: #fff; font-size: .68rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    padding: .3rem .9rem; border-radius: 20px;
}
.splash-title {
    font-size: 1.85rem; font-weight: 800; color: var(--text);
    line-height: 1.18; letter-spacing: -.3px;
}
.splash-sub {
    font-size: .875rem; color: var(--muted); line-height: 1.55;
    max-width: 320px;
}

/* ── Language optional divider ─────────────────────────────────── */
.lang-divider {
    display: flex; align-items: center; gap: .75rem;
    margin: 1.25rem 0 .75rem;
    color: var(--muted); font-size: .72rem; text-transform: uppercase;
    letter-spacing: .07em;
}
.lang-divider::before,
.lang-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Language Grid (2 columns) ─────────────────────────────────── */
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; padding-bottom: 1rem; }
.lang-grid .choice-card { padding: 1.1rem .9rem; }
.lang-grid .choice-card .cc-icon { font-size: 1.65rem; }
.lang-grid .choice-card .cc-name { font-size: .95rem; }
.lang-grid .choice-card .cc-sub  { font-size: .72rem; }
.lang-grid .choice-card.lang-soon {
    opacity: .45; cursor: default; pointer-events: none; position: relative;
}
.lang-grid .choice-card.lang-soon .cc-sub::after {
    content: attr(data-soon);
    display: block; margin-top: .25rem;
    font-size: .68rem; color: var(--gold); font-style: italic;
}

/* ── Step 5 Review Summary ─────────────────────────────────────── */
.review-title {
    font-size: .72rem; font-weight: 600; color: var(--muted);
    text-transform: uppercase; letter-spacing: .07em;
}
.review-wrap {
    margin-top: 1.5rem;
    background: var(--s1); border: 1px solid var(--border);
    border-radius: var(--r); overflow: hidden;
}
.review-row {
    display: flex; align-items: center; gap: .85rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--border);
    animation: stepIn .2s ease;
}
.review-row:last-child { border-bottom: none; }
.rr-ico  { font-size: 1.05rem; flex-shrink: 0; width: 1.4rem; text-align: center; }
.rr-val  { font-size: .9rem; color: var(--text); font-weight: 500; flex: 1; }
.rr-edit {
    background: none; border: none; cursor: pointer;
    font-size: .75rem; color: var(--accent); text-decoration: underline;
    padding: 0; touch-action: manipulation; flex-shrink: 0;
}

/* ── REPORT READER ─────────────────────────────────────────────── */
#step6 { padding-bottom: 0; height: 100vh; overflow: hidden; }

.reader-hd {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: .4rem 1.25rem .45rem;
}
.reader-topbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: .4rem;
}
.reader-topbar .logo { font-size: .9rem; }
.btn-restart {
    background: none; border: 1px solid var(--border);
    border-radius: 20px; padding: .25rem .75rem;
    color: var(--muted); font-size: .75rem; cursor: pointer;
    touch-action: manipulation; transition: color .15s, border-color .15s;
}
.btn-restart:active { color: var(--accent); border-color: var(--accent); }
.prog-bar { height: 3px; background: var(--border); border-radius: 2px; margin-bottom: .5rem; }
.prog-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    border-radius: 2px; transition: width .3s ease;
}
.reader-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.reader-ch {
    font-size: .68rem; font-weight: 600; color: var(--accent);
    text-transform: uppercase; letter-spacing: .06em;
    flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.reader-pg { font-size: .68rem; color: var(--muted); white-space: nowrap; }

#pgContent {
    flex: 1; overflow-y: auto; padding: 1.5rem 1.25rem 1rem;
    -webkit-overflow-scrolling: touch; animation: pgIn .2s ease;
    min-height: 0;
}
@keyframes pgIn { from { opacity:0; } to { opacity:1; } }

.pg-title { text-align: center; padding: 1.5rem 0 1rem; }
.pg-title h1 { font-size: 1.55rem; font-weight: 800; color: var(--accent); margin-bottom: .75rem; }

.pg-chapter {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-height: 46vh; text-align: center; padding: 2rem 0;
}
.pg-chapter .deco { font-size: 1.5rem; color: var(--gold); margin-bottom: 1.25rem; }
.pg-chapter h2 { font-size: 1.2rem; font-weight: 700; color: var(--text); line-height: 1.35; }

.pg-content h3.pg-ttl {
    font-size: 1rem; font-weight: 700; color: var(--accent);
    margin-bottom: .9rem; line-height: 1.3;
}
.pg-content .pg-txt { font-size: .95rem; line-height: 1.85; color: var(--text); }
.pg-content .pg-txt p { margin-bottom: .85em; }
.pg-content .pg-txt p:last-child { margin-bottom: 0; }

.pg-ui .inputSummary_1 {
    background: var(--s2); border: 1px solid var(--border);
    border-radius: 10px; padding: 1rem 1.1rem;
    font-size: .9rem; line-height: 1.9; color: var(--muted);
}
.pg-ui .chartSummary { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pg-ui .chartSummary table { border-collapse: collapse; width: 100%; min-width: 380px; font-size: .72rem; }
.pg-ui .chartSummary th { color: var(--accent); font-size: .65rem; text-transform: uppercase; padding: .35rem .4rem; border-bottom: 1px solid var(--border); }
.pg-ui .chartSummary td { padding: .28rem .4rem; border-bottom: 1px solid var(--s2); white-space: nowrap; }

.pg-ad { display: block; width: 100%; min-height: 120px; padding: 1rem 0; }
.pg-ad .adsbygoogle { display: block; width: 100%; }

.reader-nav {
    position: sticky; bottom: 0;
    background: var(--bg); border-top: 1px solid var(--border);
    padding: .8rem 1.25rem; display: flex; gap: .6rem; align-items: center;
}
.nav-btn {
    padding: .85rem 1.1rem;
    background: var(--s2); border: 1.5px solid var(--border);
    border-radius: var(--r); color: var(--text);
    font-size: 1.1rem; font-weight: 700; cursor: pointer;
    transition: opacity .15s; touch-action: manipulation;
}
.nav-btn:disabled { opacity: .22; cursor: default; }
.nav-btn:not(:disabled):active { opacity: .65; }
.nav-btn.primary {
    flex: 1;
    background: linear-gradient(135deg, var(--accent2), #9d4edd);
    border-color: transparent; color: #fff; font-size: .95rem;
}


@media (min-width: 500px) {
    #wizard { box-shadow: 0 0 60px rgba(100,50,200,.14); }
}

/* ── Splash Footer ─────────────────────────────────────────────── */
.splash-footer {
    display: flex; justify-content: center; align-items: center;
    gap: .5rem; padding: 1.25rem 1rem 2rem; flex-wrap: wrap;
}
.splash-footer button {
    background: none; border: none; cursor: pointer;
    color: var(--muted); font-size: .78rem;
    text-decoration: underline; text-underline-offset: 3px;
    padding: .25rem .4rem; border-radius: 4px;
    transition: color .2s; font-family: var(--font);
}
.splash-footer button:hover { color: var(--accent); }
.splash-footer .ft-sep { color: var(--border); font-size: .78rem; pointer-events: none; }

/* ── Modal Overlay ─────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(10,10,20,.6); backdrop-filter: blur(4px);
    display: flex; align-items: stretch; justify-content: center;
    z-index: 9200; opacity: 0; pointer-events: none;
    transition: opacity .25s;
}
.modal-overlay.on { opacity: 1; pointer-events: auto; }
.modal-box {
    background: var(--s1);
    border-left: 1px solid var(--border); border-right: 1px solid var(--border);
    border-radius: 0;
    width: 100%; max-width: 480px; overflow-y: auto;
    padding: 1.5rem 1.25rem 2.5rem; position: relative;
    transform: translateY(30px); transition: transform .25s;
}
.modal-overlay.on .modal-box { transform: translateY(0); }
.modal-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; cursor: pointer;
    color: var(--muted); font-size: 1.5rem; line-height: 1;
    padding: .2rem .5rem; border-radius: 4px; transition: color .2s;
}
.modal-close:hover { color: var(--text); }
.modal-content { display: none; }
.modal-content.active { display: block; }
.modal-title {
    font-size: 1.1rem; font-weight: 700; color: var(--accent);
    margin-bottom: 1.25rem; padding-right: 2.5rem;
}
.modal-body { font-size: .86rem; line-height: 1.75; }
.modal-body h3 { font-size: .88rem; color: var(--accent); margin: 1.1rem 0 .35rem; }
.modal-body p  { color: var(--muted); margin-bottom: .6rem; }

/* ── Premium Floating Pill ─────────────────────────────────────── */
.btn-premium-float {
    position: fixed;
    bottom: 5.5rem;
    right: max(1rem, calc(50vw - 228px));
    z-index: 500;
    display: flex; align-items: center; gap: .4rem;
    padding: .48rem 1rem .48rem .72rem;
    background: rgba(124, 58, 237, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 50px;
    color: #fff;
    font-size: .78rem; font-weight: 600;
    font-family: var(--font);
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(100, 50, 200, 0.32), 0 1px 3px rgba(0,0,0,.18);
    opacity: 0;
    transform: translateY(8px) scale(.94);
    transition: opacity .26s ease, transform .26s ease, background .15s;
    pointer-events: none;
}
.btn-premium-float.visible {
    opacity: 1; transform: none; pointer-events: auto;
}
.btn-premium-float:hover  { background: rgba(124, 58, 237, .96); }
.btn-premium-float:active { transform: scale(.96); }
.btn-premium-float .pf-icon { font-size: .85rem; opacity: .9; }
body.light .btn-premium-float {
    background: rgba(124, 58, 237, 0.88);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 4px 18px rgba(100, 50, 200, 0.22), 0 1px 3px rgba(0,0,0,.1);
}

/* ── Buy Modal Content ─────────────────────────────────────────── */
.buy-sub {
    font-size: .8rem; color: var(--muted); text-align: center;
    margin: -.3rem 0 1.1rem;
}
.buy-features {
    list-style: none; margin: 0 0 1.25rem;
    display: flex; flex-direction: column; gap: .55rem;
}
.buy-features li {
    display: flex; align-items: flex-start; gap: .6rem;
    font-size: .9rem; color: var(--text);
}
.buy-features li::before {
    content: '\2713'; color: var(--ok); font-weight: 700;
    flex-shrink: 0; margin-top: .05rem;
}
.buy-price-wrap {
    display: flex; align-items: center; justify-content: center;
    gap: .6rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.buy-price {
    font-size: 2.2rem; font-weight: 800; color: var(--gold);
    letter-spacing: -.5px;
}
.buy-price-orig {
    font-size: 1.1rem; font-weight: 600; color: var(--muted);
    text-decoration: line-through;
}
.buy-discount {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: #fff;
    background: #16a34a; border-radius: 20px;
    padding: .2rem .55rem;
}
.buy-email-note {
    font-size: .73rem; color: var(--muted); margin-top: .3rem;
}
.buy-or {
    text-align: center; color: var(--muted); font-size: .75rem;
    margin: .5rem 0; position: relative;
}
.buy-or::before, .buy-or::after {
    content: ''; position: absolute; top: 50%; width: 42%;
    height: 1px; background: var(--border);
}
.buy-or::before { left: 0; }
.buy-or::after  { right: 0; }
.btn-buy-stripe {
    width: 100%; padding: .85rem 1rem; margin-bottom: .5rem;
    background: #635bff; border: none; border-radius: var(--r);
    color: #fff; font-size: .95rem; font-weight: 700; cursor: pointer;
    touch-action: manipulation; transition: opacity .15s;
}
.btn-buy-stripe:active { opacity: .82; }
.btn-buy-paypal {
    width: 100%; padding: .85rem 1rem;
    background: #ffd140; border: none; border-radius: var(--r);
    color: #003087; font-size: .95rem; font-weight: 700; cursor: pointer;
    touch-action: manipulation; transition: opacity .15s;
}
.btn-buy-paypal:active { opacity: .82; }

/* ── My Reports list ───────────────────────────────────────────── */
.rep-list { display: flex; flex-direction: column; gap: .6rem; margin-top: .25rem; }
.rep-card {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--s2); border: 1px solid var(--border);
    border-radius: 10px; padding: .75rem .9rem; gap: .75rem;
}
.rep-info { flex: 1; min-width: 0; }
.rep-name {
    font-size: .9rem; font-weight: 700; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rep-prod { font-size: .75rem; color: var(--accent); margin-top: .1rem; }
.rep-meta { font-size: .75rem; color: var(--muted); margin-top: .1rem; }
.rep-actions {
    display: flex; flex-direction: column; align-items: flex-end;
    gap: .35rem; flex-shrink: 0;
}
.rep-btn {
    font-size: .8rem; font-weight: 700; padding: .4rem .85rem;
    border-radius: 8px; border: none; cursor: pointer;
    text-decoration: none; white-space: nowrap;
    touch-action: manipulation; transition: opacity .15s;
    display: inline-flex; align-items: center;
}
.rep-btn:active { opacity: .78; }
.rep-btn.dl { background: var(--accent2); color: #fff; }
.rep-link-view {
    font-size: .72rem; color: var(--muted); text-decoration: none;
    text-align: right;
}
.rep-link-view:hover { color: var(--accent); }
.rep-state { font-size: .82rem; color: var(--muted); text-align: center; padding: 1rem 0; }
.rep-state.err { color: var(--error); }
.rep-email-prompt { display: flex; flex-direction: column; gap: .6rem; padding: .25rem 0; }
.rep-email-input {
    width: 100%; padding: .7rem .9rem;
    background: var(--s2); border: 1.5px solid var(--border); border-radius: 9px;
    color: var(--text); font-size: .95rem; outline: none;
}
.rep-email-input:focus { border-color: var(--accent); }
.rep-email-btn {
    width: 100%; padding: .75rem 1rem;
    background: var(--accent2); border: none; border-radius: var(--r);
    color: #fff; font-size: .95rem; font-weight: 700; cursor: pointer;
    touch-action: manipulation; transition: opacity .15s;
}
.rep-email-btn:active { opacity: .82; }

/* ── Contact Form ──────────────────────────────────────────────── */
.ct-field { margin-bottom: .9rem; }
.ct-field label {
    display: block; font-size: .78rem; color: var(--muted); margin-bottom: .3rem;
}
.ct-field input,
.ct-field textarea {
    width: 100%; background: var(--s2); border: 1px solid var(--border);
    border-radius: var(--r); color: var(--text); font-size: .95rem;
    padding: .65rem .85rem; font-family: var(--font);
    transition: border-color .2s;
}
.ct-field textarea { min-height: 90px; resize: vertical; }
.ct-field input:focus, .ct-field textarea:focus {
    outline: none; border-color: var(--accent);
}
.ct-msg { font-size: .84rem; text-align: center; padding: .4rem 0; min-height: 1.4rem; }
.ct-msg.ok  { color: var(--ok); }
.ct-msg.err { color: var(--error); }
.captcha-row { display: flex; align-items: center; gap: .75rem; }
.captcha-q   { font-size: 1.05rem; font-weight: 700; color: var(--accent); white-space: nowrap; min-width: 80px; }
.captcha-input { width: 80px !important; text-align: center; font-size: 1.05rem; }

/* ── Grade Bar ─────────────────────────────────────────────────── */
.grade-bar {
    display: flex; align-items: center; gap: .6rem;
    padding: .55rem .85rem; border-top: 1px solid var(--border);
    background: var(--s1);
}
.grade-lbl {
    font-size: .75rem; color: var(--muted); white-space: nowrap; flex-shrink: 0;
}
.grade-segs {
    display: flex; gap: 3px; flex-shrink: 0;
}
.grade-seg {
    width: 22px; height: 10px; border-radius: 3px;
    background: var(--border); border: none; cursor: pointer;
    padding: 0; transition: background .15s, transform .1s;
}
.grade-seg:hover  { transform: scaleY(1.3); }
.grade-seg.filled     { background: var(--accent2); }
.grade-seg.hover-fill { background: var(--accent); transform: scaleY(1.3); }
.grade-seg.pending    { background: var(--accent); opacity: .55; }
.grade-seg.graded     { background: var(--accent); opacity: .7; cursor: default; }
.grade-confirm { display: none; }
.grade-hint {
    font-size: .72rem; color: var(--muted); flex: 1; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
    transition: color .15s, font-weight .15s;
}
.grade-hint.preview {
    color: var(--accent); font-weight: 700;
}
@media (hover: none) {
    .grade-seg {
        width: 36px; height: 20px; border-radius: 5px;
    }
    .grade-hint { font-size: .8rem; }
}
