/* ================================================================== */
/* REALITY CHECK FORENSICS — Global Stylesheet v2.2                   */
/* Single source of truth. No page should define its own <style>.     */
/* ================================================================== */

/* ------------------------------------------------------------------ */
/* 0. VARIABLES                                                         */
/* ------------------------------------------------------------------ */
:root {
    --bg:           #f8fafc;
    --card-bg:      #ffffff;
    --accent:       #00d4aa;
    --accent-600:   #00b892;
    --success:      #22c55e;
    --danger:       #ef4444;
    --warning:      #f59e0b;
    --border:       #e2e8f0;
    --border-focus: rgba(0, 212, 170, 0.5);
    --text:         #1a2140;
    --text-muted:   #6b82ad;
    --glass:        rgba(255, 255, 255, 0.82);
    --frame-margin: 12px;
    --mono:         'JetBrains Mono', monospace;
    --font-body:    'DM Sans', -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --safe-top:     env(safe-area-inset-top, 20px);
    --safe-bottom:  env(safe-area-inset-bottom, 20px);
    --radius-sm:    12px;
    --radius-md:    16px;
    --radius-lg:    20px;
    --radius-xl:    28px;
    --navy-950:     #0a0e1a;
    --navy-900:     #0f1629;
    --navy-800:     #1a2140;
    --navy-700:     #253157;
    --navy-600:     #33436e;
    --navy-400:     #6b82ad;
    --navy-300:     #94a7c8;
    --navy-100:     #dde4ef;
    --navy-50:      #f4f7fb;
    --shadow-sm:    0 1px 3px rgba(10,14,26,.06);
    --shadow-md:    0 4px 16px rgba(10,14,26,.08);
    --shadow-lg:    0 8px 32px rgba(10,14,26,.10);
}

/* ------------------------------------------------------------------ */
/* 1. RESET & BASE                                                      */
/* ------------------------------------------------------------------ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    width: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

/* Body locked — only when .body-locked is present (camera page) */
body.body-locked {
    overflow: hidden;
    position: fixed;
    touch-action: none;
}

/* ------------------------------------------------------------------ */
/* 2. LAYOUT — TERMINAL CONTAINER                                       */
/* ------------------------------------------------------------------ */
.terminal-container {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    overflow: hidden;
    max-width: none;
}

/* Scroll mode: reports, verify, success pages */
.terminal-container.scroll-mode {
    position: relative;
    overflow-y: auto;
    height: auto;
    min-height: 100dvh;
    touch-action: pan-y;
}

/* ------------------------------------------------------------------ */
/* 3. CAMERA FRAME — full-bleed native (iOS / Android style)           */
/* ------------------------------------------------------------------ */

/* Override container margins when in camera mode */
.terminal-container.camera-mode-active {
    margin: 0;
    padding: 0;
    max-width: none;
}

.camera-frame-native {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #000;
    overflow: hidden;
}

#webcam {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ------------------------------------------------------------------ */
/* 4. (reserved)                                                        */
/* ------------------------------------------------------------------ */

/* ------------------------------------------------------------------ */
/* 5. GPS STATUS                                                        */
/* ------------------------------------------------------------------ */
.gps-status-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.04);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.status-dot-off {
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--danger);
    flex-shrink: 0;
}

.status-dot-on {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: pulse-gps 1.5s infinite;
    flex-shrink: 0;
}
.status-dot-warn {
    width: 8px;
    height: 8px;
    background: var(--warning);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(245,158,11,.5);
    animation: pulse-gps 1.5s infinite;
    flex-shrink: 0;
}

.status-text-mini {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: #aaa;
    text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* 6. ZOOM RAIL — vertical pill, far right, + top / − bottom           */
/* ------------------------------------------------------------------ */
.zoom-rail {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;

    /* Tall narrow pill */
    width: 38px;
    height: 220px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 0;
}

/* + and − icons */
.zoom-rail .zoom-icon {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1;
    user-select: none;
    pointer-events: none;
    flex-shrink: 0;
}

/* Vertical slider track wrapper */
.zoom-rail .zoom-track {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* Extra tap area */
    padding: 4px 0;
}

/* The range input itself — rotated to be vertical */
#zoom-range {
    -webkit-appearance: none;
    appearance: none;
    width: 130px;           /* visual length of the track */
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    outline: none;
    cursor: pointer;

    /* Rotate in place so it runs top-to-bottom */
    transform: rotate(-90deg);
    transform-origin: center center;
}

#zoom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border: 2.5px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 0.1s ease;
}

#zoom-range:active::-webkit-slider-thumb {
    transform: scale(1.2);
}

#zoom-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: #ffffff;
    border: 2.5px solid var(--accent);
    border-radius: 50%;
    cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* 7. SHUTTER — round, inside camera frame, bottom-centered            */
/* ------------------------------------------------------------------ */
.shutter-zone-native {
    position: absolute;
    bottom: calc(32px + var(--safe-bottom));
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 200;
}

.shutter-hint-native {
    font-size: 0.6rem;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.55);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

/* Native-style round shutter button */
.btn-shutter-native {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    /* Increase tap area without changing visual size */
    padding: 6px;
    margin: -6px;
}

.shutter-ring {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 3.5px solid rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Subtle glow so it reads against any background */
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.6));
}

.shutter-core {
    width: 61px;
    height: 61px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    transition: transform 0.1s ease, background 0.1s ease;
}

/* Press feedback */
.btn-shutter-native:active .shutter-ring  { transform: scale(0.88); }
.btn-shutter-native:active .shutter-core  { transform: scale(0.9); background: #ccc; }

/* Disabled state */
.btn-shutter-native:disabled {
    opacity: 0.28;
    filter: grayscale(1) drop-shadow(0 0 4px rgba(0, 0, 0, 0.4));
    cursor: not-allowed;
}

/* ------------------------------------------------------------------ */
/* 8. OVERLAYS                                                          */
/* ------------------------------------------------------------------ */
.proc-overlay-fullscreen {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    padding-top: max(20px, env(safe-area-inset-top, 20px));
    padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
    text-align: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Seal overlay v2 — Cadena de custodia visual ────────────────────── */
.proc-overlay-seal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Blurred photo background */
.seal-bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(28px) brightness(0.3);
    opacity: 0.6;
    pointer-events: none;
}

.seal-container-v2 {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px 24px;
    max-width: 300px;
    width: 100%;
}

/* ── Photo thumbnail with animated ring ── */
.seal-thumb-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 14px;
}

.seal-thumb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 8px;
    left: 8px;
}

.seal-thumb-ring {
    position: absolute;
    inset: 0;
    width: 96px;
    height: 96px;
    transform: rotate(-90deg);
}

.seal-ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 3;
}

.seal-ring-fill {
    fill: none;
    stroke: var(--accent, #00d4aa);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 352;
    stroke-dashoffset: 352;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                stroke 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(0, 212, 170, 0.5));
}

.seal-thumb-wrap.done .seal-ring-fill {
    stroke: #34c759;
    filter: drop-shadow(0 0 10px rgba(52, 199, 89, 0.7));
}

/* Title */
.seal-title-v2 {
    font-family: var(--mono, monospace);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

/* ── Particle canvas ── */
.seal-particles {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    pointer-events: none;
    z-index: 2;
}

/* ── Timeline vertical ── */
.seal-timeline {
    position: relative;
    padding-left: 28px;
    text-align: left;
}

/* Connecting line */
.seal-timeline::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1px;
}

/* Filled progress line — driven by --tl-progress custom property */
.seal-timeline::after {
    content: '';
    position: absolute;
    left: 13px;
    top: 14px;
    width: 2px;
    height: var(--tl-progress, 0%);
    background: var(--accent, #00d4aa);
    border-radius: 1px;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(0, 212, 170, 0.4);
}

.seal-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 18px;
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

.seal-step:last-child { padding-bottom: 0; }

.seal-step.active,
.seal-step.done { opacity: 1; }

/* Node (icon circle) */
.seal-node {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.seal-node i {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.4s ease;
}

.seal-step.active .seal-node {
    border-color: var(--accent, #00d4aa);
    background: rgba(0, 212, 170, 0.12);
    animation: node-pulse 1.2s infinite;
}

.seal-step.active .seal-node i {
    color: var(--accent, #00d4aa);
}

.seal-step.done .seal-node {
    border-color: #34c759;
    background: #34c759;
    animation: none;
}

.seal-step.done .seal-node i {
    color: #fff;
}

/* Seal "stamp" effect on done */
.seal-step.done .seal-node::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(52, 199, 89, 0.4);
    animation: stamp-ring 0.5s ease-out forwards;
}

@keyframes stamp-ring {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Step text */
.seal-step-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
    margin-top: 4px;
}

.seal-step-detail {
    font-family: var(--mono, monospace);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
    line-height: 1.3;
    word-break: break-all;
    transition: color 0.3s ease;
}

.seal-step.done .seal-step-detail {
    color: rgba(52, 199, 89, 0.8);
}

/* Byte counter */
.seal-byte-counter {
    font-family: var(--mono, monospace);
    font-size: 0.62rem;
    color: var(--accent, #00d4aa);
    margin-top: 3px;
    letter-spacing: 0.04em;
}

@keyframes node-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(0, 212, 170, 0); }
}

.permission-card {
    max-width: 320px;
    width: 100%;
    background: var(--card-bg);
    padding: 30px 24px;
    border-radius: 24px;
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin: auto 0;
}

.card-icon-wrapper {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
    position: relative;
}

.permission-card h2 {
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-bottom: 14px;
}

.gdpr-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
}

.radar-ping {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: ping 2s infinite;
}

/* ------------------------------------------------------------------ */
/* 9. BUTTONS                                                           */
/* ------------------------------------------------------------------ */
.btn-main-native {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    -webkit-user-select: none;
    user-select: none;
}

.btn-main-native:hover {
    background: color-mix(in srgb, var(--accent) 85%, white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 170, 0.35);
}

.btn-main-native:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-ghost-native {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    -webkit-user-select: none;
    user-select: none;
}

.btn-ghost-native:hover {
    border-color: var(--navy-300);
    color: var(--navy-900);
    background: var(--navy-50);
    transform: translateY(-1px);
}

.btn-ghost-native:active {
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.02);
}

/* ------------------------------------------------------------------ */
/* 10. SEARCH SECTION (verify page)                                    */
/* ------------------------------------------------------------------ */
.search-section-mini {
    padding: 40px 20px 20px;
    max-width: 420px;
    margin: 0 auto;
}

.search-box-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 8px 8px 8px 15px;
    border-radius: 18px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-box-compact:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.12);
}

.search-box-compact input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--mono);
    outline: none;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.search-box-compact input::placeholder {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.search-box-compact button {
    background: var(--accent);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.search-box-compact button:hover {
    background: color-mix(in srgb, var(--accent) 85%, white);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 212, 170, 0.35);
}

.search-box-compact button:active {
    transform: scale(0.97);
    box-shadow: none;
}

.search-hint {
    font-family: var(--mono);
    font-size: 0.58rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
    letter-spacing: 0.08em;
}

/* ------------------------------------------------------------------ */
/* 11. RESULT AREA (verify page)                                       */
/* ------------------------------------------------------------------ */
.result-scroll-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 0 20px 40px;
    animation: slideUp 0.35s ease both;
}

.rating-banner {
    background: rgba(0, 212, 170, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.rating-stars {
    font-size: 1.8rem;
    color: var(--warning);
    letter-spacing: 4px;
    margin-bottom: 6px;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.rating-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    transition: color 0.3s ease;
}

.preview-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 16px;
}

.card-header-tactical {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--navy-50);
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 0.72rem;
}

#status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

#timestamp-badge {
    opacity: 0.5;
    font-size: 0.65rem;
}

.img-wrapper-vault {
    padding: 10px;
    background: #000;
    position: relative;
}

#res-img {
    width: 100%;
    border-radius: var(--radius-sm);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: block;
}

.card-tag {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--mono);
    font-size: 0.52rem;
    letter-spacing: 0.08em;
    padding: 5px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.csv-copy-box {
    background: var(--card-bg);
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 16px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.55rem;
    color: var(--accent);
    font-family: var(--mono);
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.info-item span {
    color: var(--text);
    font-size: 0.85rem;
}

.info-item code {
    color: var(--text-muted);
    font-size: 0.58rem;
    font-family: var(--mono);
    word-break: break-all;
    line-height: 1.6;
}

.geo-item {
    grid-column: span 2;
    background: var(--navy-50);
    padding: 12px;
    border-radius: var(--radius-sm);
}

.geo-item span {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.coords-row {
    margin-top: 4px;
    opacity: 0.5;
    font-size: 0.65rem;
    font-family: var(--mono);
}

.hash-item {
    grid-column: span 2;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ------------------------------------------------------------------ */
/* 12. ANIMATIONS                                                       */
/* ------------------------------------------------------------------ */
@keyframes ping {
    0%   { transform: translate(-50%, -50%) scale(1);   opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

@keyframes pulse-gps {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.1); }
}

@keyframes pulse-seal {
    0%, 100% { box-shadow: 0 0 30px rgba(0, 212, 170, 0.5); }
    50%       { box-shadow: 0 0 50px rgba(0, 212, 170, 0.6); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes load-progress {
    0%   { width: 0%;    margin-left: 0; }
    50%  { width: 80%;   margin-left: 0; }
    100% { width: 0%;    margin-left: 100%; }
}

/* ------------------------------------------------------------------ */
/* 13. UTILITIES                                                        */
/* ------------------------------------------------------------------ */
.fade-in { animation: fadeIn 0.4s ease-out forwards; }

/* ------------------------------------------------------------------ */
/* 14. LOGIN PAGE                                                       */
/* ------------------------------------------------------------------ */
.login-viewport {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg);
}

.login-card {
    width: 100%;
    max-width: 360px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 40px 32px 36px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease both;
}

/* Logo / brand mark */
.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
}

.login-logo-img {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 8px 24px rgba(0, 212, 170, 0.4);
}

.login-title {
    font-family: var(--font-body);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--navy-400);
}

/* Form fields */
.login-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-group label {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--navy-600);
    text-transform: none;
}

.field-group input {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 13px 16px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    width: 100%;
}

.field-group input::placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.field-group input:focus {
    border-color: var(--border-focus);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.12);
}

.field-group input.input-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.12);
}

/* Error message */
.login-error {
    display: none;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--danger);
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    animation: fadeIn 0.2s ease;
}

.login-error.visible { display: block; }

/* Submit button state */
.btn-main-native:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Toggle between login / register */
.login-toggle {
    text-align: center;
    margin-top: 20px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.login-toggle button {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0 4px;
    transition: opacity 0.15s ease;
}

.login-toggle button:hover { opacity: 0.75; }

/* Password strength bar (register mode) */
.strength-bar-wrap {
    height: 3px;
    background: rgba(0,0,0,0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
    display: none;
}

.strength-bar-wrap.visible { display: block; }

.strength-bar {
    height: 100%;
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease, background 0.3s ease;
}

/* ------------------------------------------------------------------ */
/* 15. INTEGRITY ALERT (verify page)                                   */
/* ------------------------------------------------------------------ */
.integrity-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.4);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 16px;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--danger);
    animation: fadeIn 0.3s ease;
}

.integrity-alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ------------------------------------------------------------------ */
/* 16. REPORTS PAGE                                                    */
/* ------------------------------------------------------------------ */

/* History list */
.history-section {
    max-width: 420px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.history-title {
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-top: 4px;
}

.history-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.history-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    gap: 14px;
}

.history-item:hover {
    border-color: var(--border-focus);
    background: rgba(0, 212, 170, 0.06);
    transform: translateY(-1px);
}

.history-item:active {
    transform: translateY(0);
}

.history-rating {
    font-size: 1rem;
    color: var(--warning);
    letter-spacing: 1px;
    flex-shrink: 0;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
    min-width: 70px;
}

.history-body {
    flex: 1;
    min-width: 0;
}

.history-code {
    font-family: var(--mono);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}

.history-ref {
    font-family: var(--mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-ts {
    font-family: var(--mono);
    font-size: 0.58rem;
    color: var(--text-muted);
    opacity: 0.6;
    flex-shrink: 0;
    text-align: right;
}

.history-chevron {
    color: var(--text-muted);
    opacity: 0.4;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Divider between search and history */
.section-divider {
    max-width: 420px;
    margin: 4px auto 20px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-divider span {
    font-family: var(--mono);
    font-size: 0.55rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* Download button animation */
.btn-main-native.download-effect {
    position: relative;
    overflow: hidden;
}

.btn-main-native.download-effect::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    to { transform: translateX(100%); }
}

/* ------------------------------------------------------------------ */
/* 17. BASE.HTML — Navbar & layout                                     */
/* ------------------------------------------------------------------ */
body {
    background-image: none;
}

.dot {
    width: 6px; height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    box-shadow: 0 0 10px var(--success);
}

@keyframes pulse-dot {
    0%   { opacity: 1; transform: scale(1); }
    50%  { opacity: 0.4; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.main-content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 30px;
    text-align: center;
    font-size: 0.6rem;
    color: var(--navy-400);
    font-family: var(--mono);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* 19. SUCCESS PAGE                                                     */
/* ------------------------------------------------------------------ */
.status-verification-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    font-size: 1.8rem;
    color: var(--success);
}

.status-header h3 { margin: 0; font-size: 1rem; color: var(--success); }
.status-header p  { margin: 4px 0 0; font-size: 0.75rem; color: var(--text-muted); }

.tech-specs {
    display: flex;
    gap: 25px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
    flex-wrap: wrap;
}

.spec-item { display: flex; flex-direction: column; gap: 3px; }
.spec-label { font-size: 0.55rem; color: var(--navy-400); font-weight: 800; text-transform: uppercase; }
.spec-value { font-family: var(--mono); font-size: 0.7rem; color: var(--navy-600); }
.status-green { color: var(--success) !important; }

.preview-viewport-native {
    position: relative;
    width: calc(100% + 40px);
    margin: 0 -20px 25px -20px;
    height: 380px;
    background: #f0f0f0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.preview-viewport-native img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f0f0f0;
}

.viewport-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 15px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    pointer-events: none;
}

.data-card-minimal {
    background: var(--card-bg);
    padding: 18px;
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.coords-display { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.coord-box {
    background: var(--navy-50);
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.coord-box small { display: block; font-size: 0.55rem; color: var(--navy-400); font-weight: 800; margin-bottom: 4px; }
.coord-box span  { font-family: var(--mono); font-size: 0.85rem; color: var(--text); }

.trust-rating-mini {
    background: rgba(0, 212, 170, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trust-stars  { font-size: 1.1rem; color: var(--warning); letter-spacing: 2px; }
.trust-label  { font-family: var(--mono); font-size: 0.62rem; font-weight: 800; color: var(--accent); }

.dual-hash-mini {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.dual-hash-mini .hash-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.hash-row-label {
    font-family: var(--mono);
    font-size: 0.55rem;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0.1em;
}

.hash-row code {
    font-family: var(--mono);
    font-size: 0.58rem;
    color: var(--text-muted);
    word-break: break-all;
}

.csv-copy-highlight {
    background: var(--navy-50);
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 15px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.csv-copy-highlight:active { transform: scale(0.98); background: rgba(0,212,170,0.06); }
.csv-copy-highlight .label { font-family: var(--mono); font-size: 0.55rem; color: var(--text-muted); display: block; margin-bottom: 4px; }
.csv-copy-highlight .code  { font-family: var(--mono); font-size: 1rem; font-weight: 800; color: var(--text); letter-spacing: 0.1em; }

.copy-action { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-muted); font-family: var(--mono); font-size: 0.5rem; font-weight: 800; }

.btn-share-native {
    width: 100%;
    padding: 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
}

@media (max-width: 768px) {
    .grid-advantages { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    .step-item p { max-width: 100%; }
    .home-container { padding-top: 40px; }
}

/* ------------------------------------------------------------------ */
/* 20. MISSING UTILITY CLASSES (success + home)                       */
/* ------------------------------------------------------------------ */

/* Home */
.cta-section        { margin-top: 40px; }
.how-it-works       { margin-bottom: 60px; }
.advantages-section { margin-top: 20px; }

.seal-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.adv-card { padding: 10px 0; }

/* Success */
.management-section { margin-bottom: 20px; }

.guide-note {
    background: var(--navy-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.guide-note strong { color: var(--text); }

.csv-info { display: flex; flex-direction: column; gap: 2px; }

.card-label {
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ================================================================== */
/* EDITORIAL UX v1.0 — Human & Typographic Layer                      */
/* ================================================================== */

/* ── Typography: Playfair Display for headings ──────────────────── */
h1, h2, h3,
.display-heading,
.section-title,
.hero-title,
.page-title {
  font-family: var(--font-display) !important;
  letter-spacing: -.01em;
}

/* ── Scroll reveal ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s cubic-bezier(.16,1,.3,1),
              transform .55s cubic-bezier(.16,1,.3,1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered siblings */
.reveal:nth-child(2) { transition-delay: .07s; }
.reveal:nth-child(3) { transition-delay: .14s; }
.reveal:nth-child(4) { transition-delay: .21s; }
.reveal:nth-child(5) { transition-delay: .28s; }

/* ── Skeleton shimmer ──────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg,
    rgba(0,0,0,.04) 25%,
    rgba(0,0,0,.08) 50%,
    rgba(0,0,0,.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s infinite;
  border-radius: 6px;
  color: transparent !important;
  user-select: none;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Marquee ticker ────────────────────────────────────────────── */
.marquee-track {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-inner {
  display: inline-flex;
  gap: 0;
  animation: marquee-scroll 28s linear infinite;
}
.marquee-track:hover .marquee-inner { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy-300);
}
.marquee-item .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 4px var(--accent);
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Magnetic / editorial CTA button ──────────────────────────── */
.btn-editorial {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: none;
  text-decoration: none;
  transition: background .15s,
              box-shadow .2s cubic-bezier(.16,1,.3,1),
              transform .2s cubic-bezier(.16,1,.3,1);
}
.btn-editorial:hover {
  background: var(--accent-600);
  box-shadow: 6px 8px 0 rgba(0,102,221,.35);
  transform: translate(-2px, -2px);
}
.btn-editorial:active {
  transform: translate(0, 0);
  box-shadow: none;
}

/* ── Animated stat counter ─────────────────────────────────────── */
[data-count] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ── Editorial card hover (inversion accent) ───────────────────── */
.card-editorial {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: background .2s, border-color .2s, transform .2s cubic-bezier(.16,1,.3,1);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}
.card-editorial:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.card-editorial:hover * { color: #fff !important; }

/* ================================================================== */
/* UX IMPROVEMENTS v3.0 — Accessibility, Readability, Mobile          */
/* ================================================================== */

/* ── Focus states (keyboard navigation) ────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* Remove outline for mouse clicks */
:focus:not(:focus-visible) {
  outline: none;
}

/* ── Minimum font sizes ───────────────────────────────────────── */
.pcd-note,
.pcd-label,
.search-hint,
.history-ref,
.history-ts,
.rc-dd-label,
.rc-dd-status,
.spec-label,
.card-label,
.status-text-mini,
.coords-row {
  font-size: max(0.65rem, 10.4px) !important;
}

/* ── Touch devices: hide custom cursor, enforce 44px tap targets ── */
@media (pointer: coarse) {
  #rc-cursor-dot, #rc-cursor-ring { display: none !important; }
  .btn-main-native,
  .btn-ghost-native,
  .btn-editorial,
  .btn-primary-lg,
  .rc-menu-btn,
  .rc-dd-item,
  button[onclick],
  a.btn-ghost-native {
    min-height: 44px;
  }
}

/* Consistent cursor + selection for all interactive elements */
.btn-main-native,
.btn-ghost-native,
.btn-editorial,
.btn-primary-lg {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

/* ── Card component base ──────────────────────────────────────── */
.card-light {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.card-light:hover {
  border-color: rgba(0,212,170,.25);
  box-shadow: var(--shadow-md);
}

/* ── Section headers ──────────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 6px;
}
.section-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.section-desc {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
}

/* ── Info/warning/success banners ─────────────────────────────── */
.banner-info {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(0,212,170,.06);
  border: 1px solid rgba(0,212,170,.2);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: .85rem;
  color: var(--navy-700);
  line-height: 1.5;
  margin-bottom: 12px;
}
.banner-info i { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }

.banner-warn {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(245,158,11,.06);
  border: 1px solid rgba(245,158,11,.2);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: .85rem;
  color: var(--navy-700);
  line-height: 1.5;
  margin-bottom: 12px;
}
.banner-warn i { color: var(--warning); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }

/* ── Empty state ──────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.empty-state i {
  font-size: 2.5rem;
  color: var(--navy-300);
  margin-bottom: 16px;
  display: block;
}
.empty-state h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 8px;
}
.empty-state p {
  font-size: .88rem;
  max-width: 320px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

/* ── Pricing card ─────────────────────────────────────────────── */
.price-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.price-card:hover {
  border-color: rgba(0,212,170,.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}
.price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin: 12px 0 4px;
}
.price-amount small {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.price-desc {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ── Stat card (account/dashboard) ────────────────────────────── */
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  font-family: var(--mono);
}
.stat-label {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Tooltips (cost explainers) ───────────────────────────────── */
.tooltip-trigger {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted var(--navy-300);
}
.tooltip-trigger::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-900);
  color: #fff;
  font-size: .78rem;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}
.tooltip-trigger:hover::after,
.tooltip-trigger:focus::after {
  opacity: 1;
}

/* ── Accessible star rating ───────────────────────────────────── */
.trust-stars-accessible {
  display: inline-flex;
  gap: 2px;
  color: var(--warning);
  font-size: 1.2rem;
}
.trust-stars-accessible .star-empty {
  color: var(--border);
}

/* ── Mobile responsive ────────────────────────────────────────── */
@media (max-width: 480px) {
  .result-scroll-container {
    padding: 0 14px 30px;
  }
  .search-section-mini {
    padding: 30px 14px 16px;
  }
  .history-section {
    padding: 0 14px 30px;
  }
  .home-container {
    padding: 30px 16px 80px;
  }
  .login-card {
    padding: 32px 22px 28px;
    border-radius: 20px;
  }
  .proc-cell-dark {
    padding: 10px 10px 8px;
  }
  /* Stack 2-col grids on narrow screens */
  .coords-display {
    grid-template-columns: 1fr;
  }
}

