/* ============================================================
   Decerner — global stylesheet
   Covers: home.html custom helpers (rest of home is Tailwind CDN)
           + the full analyze.html theme.
   ============================================================ */

:root {
    --bg: #05060d;
    --panel: rgba(10, 14, 28, 0.78);
    --cyan: #00f5ff;
    --purple: #b026ff;
    --pink: #ff2f5c;
    --green: #63ffa2;
    --text: #e9f1ff;
    --muted: #93a3c4;
    --border: rgba(0, 245, 255, 0.28);
}

* {
    box-sizing: border-box;
}

/* ---------------------------------------------------------------
   HOME PAGE (FutureNav) custom helpers
   Layout/colours come from Tailwind CDN; these are the extras the
   markup and script.js rely on.
   --------------------------------------------------------------- */
.dancing-script {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5em;
    line-height: 1.4;
}

#navbar.scrolled {
    background: rgba(8, 11, 22, 0.92);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}

.nav-link.active,
.mobile-nav-link.active {
    color: var(--cyan) !important;
}

/* Mobile menu slide */
#mobile-menu {
    transition: height 0.3s ease-in-out;
}

/* Section reveal on scroll (IntersectionObserver in script.js) */
.section-hidden {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-highlight {
    animation: sectionPulse 1s ease;
}

@keyframes sectionPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.0); }
    40% { box-shadow: 0 0 40px 4px rgba(0, 245, 255, 0.18); }
    100% { box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.0); }
}

/* Header text reveal (script.js sets opacity/transform) */
.text-6xl {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* LED avatar inside the intro "D" (also reused if needed) */
.led-dot-img {
    width: 1em;
    height: 1em;
    object-fit: cover;
    border-radius: 50%;
}

/* ===============================================================
   ANALYZE PAGE
   =============================================================== */
body.analyze {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Space Grotesk", system-ui, Arial, sans-serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 18% 12%, rgba(176, 38, 255, 0.16), transparent 38%),
        radial-gradient(circle at 82% 88%, rgba(0, 245, 255, 0.12), transparent 36%);
    overflow-x: hidden;
}

/* Animated cyber background */
.cyber-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.cyber-grid {
    position: absolute;
    inset: -2px;
    background-image:
        linear-gradient(rgba(0, 245, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.05) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 50% 40%, #000 35%, transparent 85%);
}

.cyber-line {
    position: absolute;
    top: -20%;
    width: 1.5px;
    height: 140%;
    background: linear-gradient(transparent, var(--cyan), transparent);
    box-shadow: 0 0 7px rgba(0, 245, 255, 0.45);
    opacity: 0.5;
    will-change: transform, opacity;
    animation: lineFall 6s linear infinite;
}

.cyber-line.purple {
    background: linear-gradient(transparent, var(--purple), transparent);
    box-shadow: 0 0 7px rgba(176, 38, 255, 0.45);
}

.cyber-line.pink {
    background: linear-gradient(transparent, var(--pink), transparent);
    box-shadow: 0 0 7px rgba(255, 47, 92, 0.42);
}

/* horizontal variant */
.cyber-line.h {
    top: 0;
    left: -20%;
    width: 140%;
    height: 1.5px;
    animation-name: lineFallX;
}

/* drifting particles */
.cyber-dot {
    position: absolute;
    bottom: -12px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px 1px rgba(0, 245, 255, 0.55);
    opacity: 0;
    will-change: transform, opacity;
    animation: floatUp 10s linear infinite;
}

@keyframes lineFall {
    0% { transform: translateY(-30%); opacity: 0; }
    20% { opacity: 0.55; }
    100% { transform: translateY(30%); opacity: 0; }
}

@keyframes lineFallX {
    0% { transform: translateX(-30%); opacity: 0; }
    20% { opacity: 0.5; }
    100% { transform: translateX(30%); opacity: 0; }
}

@keyframes floatUp {
    0% { transform: translateY(0); opacity: 0; }
    12% { opacity: 0.7; }
    88% { opacity: 0.7; }
    100% { transform: translateY(-105vh); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cyber-line, .cyber-dot { animation: none !important; opacity: 0.25; }
}

/* Page header */
.page-header {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 34px 20px 8px;
}

.back-link {
    position: absolute;
    left: 22px;
    top: 26px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 10px;
    transition: color 0.2s, border-color 0.2s;
}

.back-link:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

.page-title {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 700;
    background: linear-gradient(90deg, var(--cyan), #8a7dff, var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.04em;
}

.page-sub {
    margin: 6px 0 0;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.78rem;
}

/* Layout container */
.container {
    position: relative;
    z-index: 2;
    width: min(820px, 92vw);
    margin: 0 auto;
    padding: 18px 0 80px;
}

/* Upload */
.upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 14px;
}

.upload-area {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 4 / 5;
    border: 1.5px dashed var(--border);
    border-radius: 18px;
    background: var(--panel);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.upload-area:hover,
.upload-area:focus-visible {
    border-color: var(--cyan);
    box-shadow: 0 0 28px rgba(0, 245, 255, 0.18);
    outline: none;
    transform: translateY(-2px);
}

.upload-area.uploaded {
    border-style: solid;
    border-color: rgba(0, 245, 255, 0.5);
}

.upload-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.3s ease;
    pointer-events: none;
    padding: 20px;
    text-align: center;
}

.upload-icon {
    font-size: 2.6rem;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
}

.upload-label {
    font-size: 1.15rem;
    font-weight: 600;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--muted);
}

.upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Landmark overlay canvas drawn on top of the uploaded image */
.landmark-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none;
}

.file-name {
    min-height: 20px;
    color: var(--muted);
    font-family: monospace;
    font-size: 0.95rem;
    letter-spacing: 0.4px;
}

/* Prove button */
.prove-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #02121a;
    padding: 13px 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    box-shadow: 0 0 24px rgba(0, 245, 255, 0.25);
    transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
}

.prove-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 34px rgba(0, 245, 255, 0.45);
}

.prove-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Results */
.results-section {
    margin-top: 36px;
}

/* Loading wireframe */
.loading-box {
    border: 1px solid rgba(0, 245, 255, 0.28);
    border-radius: 16px;
    padding: 18px;
    background: linear-gradient(160deg, rgba(7, 16, 26, 0.82), rgba(17, 16, 40, 0.74));
    box-shadow: inset 0 0 24px rgba(0, 245, 255, 0.1);
    text-align: center;
}

.wireframe-face {
    position: relative;
    /* tall enough for the rotating 3D face, still fits the compact panel */
    height: clamp(200px, 28vh, 240px);
    max-width: 560px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 30%, rgba(0, 245, 255, 0.16), transparent 55%),
        #0b0f1f;
}

.wireframe-face::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 8%, rgba(0, 245, 255, 0.28) 50%, transparent 92%);
    animation: scanSlow 2.6s ease-in-out infinite;
}

/* Recolor the loading face outline to brand cyan (overrides inline SVG strokes). */
.wireframe-svg path,
.wireframe-svg circle {
    stroke: rgba(120, 245, 255, 0.75) !important;
}

.wireframe-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.92;
}

@keyframes scanSlow {
    0% { transform: translateY(-96%); }
    100% { transform: translateY(96%); }
}

.loading-text {
    margin-top: 12px;
    color: #bdf4ff;
    font-family: monospace;
    letter-spacing: 0.04em;
    min-height: 22px;
}

/* Score panel */
.score-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    animation: fadeUp 0.5s ease;
}

.score-ring {
    position: relative;
    width: 180px;
    height: 180px;
}

.score-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-ring .ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 12;
}

.score-ring .ring-fill {
    fill: none;
    stroke: url(#scoreGradient);
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.score-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-weight: 700;
}

.score-value #score-number {
    font-size: 3rem;
    line-height: 1;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.score-value small {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.score-caption {
    color: var(--text);
    font-size: 1.05rem;
    text-align: center;
    max-width: 460px;
}

/* Coefficient grid */
.coeff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.coeff-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    background: var(--panel);
    animation: fadeUp 0.5s ease both;
}

.coeff-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.coeff-name {
    font-size: 0.98rem;
    font-weight: 600;
}

.coeff-score {
    font-family: monospace;
    font-weight: 700;
    color: var(--cyan);
}

.coeff-bar {
    height: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.coeff-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--pink), var(--cyan));
    transition: width 0.9s ease;
}

.coeff-detail {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--muted);
    font-family: monospace;
}

.results-error {
    border: 1px solid rgba(255, 80, 110, 0.5);
    background: rgba(40, 8, 16, 0.7);
    color: #ff9bb0;
    border-radius: 14px;
    padding: 16px 18px;
    text-align: center;
    font-family: monospace;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

[hidden] {
    display: none !important;
}


/* ===============================================================
   ENHANCEMENTS — corner links, insights, modal, radar, versus
   =============================================================== */

/* Header corner links (Home / Face Versus) */
.corner-link {
    position: absolute;
    top: 26px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 10px;
    transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
    z-index: 3;
}
.corner-link.left { left: 22px; }
.corner-link.right { right: 22px; }
.corner-link:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 16px rgba(0, 245, 255, 0.2);
}

.container.wide {
    width: min(1000px, 94vw);
}

/* Score + insights overview row */
.overview {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: center;
    justify-content: center;
    margin: 30px 0 26px;
    animation: fadeUp 0.5s ease;
}
.overview .score-panel {
    margin: 0;
    flex: 0 0 auto;
}

.insights-panel {
    flex: 1 1 300px;
    max-width: 460px;
    min-width: 260px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 18px;
    background: var(--panel);
}
.insights-title {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 10px;
}
.insights-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.insights-list li {
    position: relative;
    padding-left: 18px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text);
}
.insights-list li::before {
    content: "\25B8";
    position: absolute;
    left: 0;
    color: var(--cyan);
}

/* Coefficient card extras */
.coeff-card {
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.coeff-card:hover,
.coeff-card:focus-visible {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.18);
    transform: translateY(-2px);
    outline: none;
}
.coeff-hint {
    margin-top: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(147, 163, 196, 0.6);
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(3, 5, 12, 0.72);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeUp 0.2s ease;
}
.modal-card {
    position: relative;
    width: min(440px, 92vw);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px 24px 22px;
    background: linear-gradient(160deg, rgba(14, 18, 34, 0.98), rgba(20, 12, 32, 0.96));
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.12);
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.modal-close:hover { color: var(--cyan); }
.modal-name {
    margin: 0 0 14px;
    font-size: 1.25rem;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.modal-formula {
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: monospace;
    font-size: 1rem;
    color: #d7f6ff;
    background: rgba(0, 245, 255, 0.05);
    text-align: center;
    margin-bottom: 14px;
}
.modal-explanation {
    margin: 0 0 14px;
    color: var(--text);
    line-height: 1.55;
    font-size: 0.95rem;
}
.modal-measured {
    font-size: 0.9rem;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
}

/* Radar chart */
.radar-wrap {
    margin: 8px auto 0;
    max-width: 480px;
    text-align: center;
}
.radar-title {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}
.radar-chart {
    width: 100%;
    height: auto;
}
.legend { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.dot-a { background: #00f5ff; }
.dot-b { background: #ff2f5c; }

/* ---------------- Face Versus ---------------- */
.versus-uploads {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.versus-slot {
    position: relative;
    flex: 1 1 280px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.versus-slot .upload-area {
    aspect-ratio: 1 / 1;
    max-width: 360px;
}
.slot-tag {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: monospace;
}
.tag-a { color: #02121a; background: var(--cyan); }
.tag-b { color: #fff; background: var(--pink); }
.versus-vs {
    font-family: monospace;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--muted);
    letter-spacing: 0.1em;
}

.versus-result { animation: fadeUp 0.5s ease; }
.versus-scores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    flex-wrap: wrap;
    margin: 24px 0 18px;
}
.mini-score { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mini-ring { position: relative; width: 140px; height: 140px; }
.mini-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mini-ring .score-value { font-size: 1.8rem; font-weight: 700; color: var(--text); }
.mini-label { font-weight: 600; padding: 2px 12px; border-radius: 8px; font-size: 0.85rem; }
.mini-label.tag-a { color: #02121a; }
.mini-label.tag-b { color: #fff; }

.versus-verdict {
    text-align: center;
    min-width: 200px;
    max-width: 320px;
}
.verdict-head {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.verdict-diff { color: var(--muted); font-family: monospace; margin: 2px 0 8px; }
.verdict-note { color: var(--text); font-size: 0.92rem; line-height: 1.45; }

/* per-category comparison rows */
.cmp-list {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}
.cmp-row {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 8px 12px;
    background: var(--panel);
}
.cmp-name { font-size: 0.86rem; color: var(--text); margin-bottom: 6px; }
.cmp-bars { display: flex; align-items: center; gap: 8px; }
.cmp-side { display: flex; align-items: center; gap: 6px; flex: 1; }
.cmp-side:first-child { flex-direction: row-reverse; }
.cmp-bar {
    flex: 1;
    height: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
    display: flex;
}
.cmp-side:first-child .cmp-bar { justify-content: flex-end; }
.cmp-fill { height: 100%; width: 0; border-radius: 6px; transition: width 0.9s ease; }
.cmp-bar.a .cmp-fill { background: linear-gradient(90deg, #36b6ff, #00f5ff); }
.cmp-bar.b .cmp-fill { background: linear-gradient(90deg, #ff2f5c, #b026ff); }
.cmp-val { font-family: monospace; font-size: 0.85rem; color: var(--muted); width: 26px; text-align: center; }
.cmp-val.win { color: var(--text); font-weight: 700; }

@media (max-width: 560px) {
    .corner-link { font-size: 0.8rem; padding: 5px 9px; }
    .page-title { margin-top: 8px; }
}

/* Shareable result card button (analyze page) */
.share-btn {
    display: block;
    margin: 16px auto 0;
    padding: 9px 22px;
    border-radius: 999px;
    border: 1px solid var(--cyan);
    background: transparent;
    color: var(--cyan);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.share-btn:hover,
.share-btn:focus-visible {
    background: var(--cyan);
    color: #02121a;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.35);
}

/* "Add to leaderboard" buttons (analyze + versus results) */
.lb-add-btn {
    display: block;
    margin: 14px auto 0;
    padding: 10px 24px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #02121a;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}

.lb-add-btn:hover,
.lb-add-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 245, 255, 0.25);
}

.versus-add {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.versus-add .lb-add-btn {
    margin: 0;
}

/* Photo-storage consent row above the analyze button */
.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 420px;
    margin: 16px auto 4px;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(6, 10, 20, .45);
    cursor: pointer;
    transition: border-color .25s, background .25s;
}

.consent-row input[type="checkbox"] {
    flex: none;
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: var(--cyan);
    cursor: pointer;
}

.consent-row input[type="checkbox"]:disabled {
    cursor: default;
}

.consent-text {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
    text-align: left;
}

.consent-row.remembered {
    border-color: rgba(0, 245, 255, .35);
}

.consent-row.remembered .consent-text {
    color: #9fe9f5;
}

/* Flashed when the user tries to analyze without ticking the box */
.consent-row.warn {
    border-color: #ff6b8a;
    background: rgba(255, 107, 138, .09);
    animation: consentShake .4s ease;
}

.consent-row.warn .consent-text {
    color: #ffb3c2;
}

@keyframes consentShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Privacy note under the analyze upload */
.privacy-note {
    margin: 14px auto 0;
    max-width: 420px;
    text-align: center;
    font-family: monospace;
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--muted);
}

.privacy-note a {
    color: var(--cyan);
    text-decoration: none;
}

.privacy-note a:hover {
    text-decoration: underline;
}

/* Diagonal flowing lines (bg-fx assigns directions randomly) */
.cyber-line.d1,
.cyber-line.d2 {
    top: -30%;
    height: 170%;
    transform-origin: center;
}

.cyber-line.d1 {
    animation-name: diagFall1;
}

.cyber-line.d2 {
    animation-name: diagFall2;
}

@keyframes diagFall1 {
    0% { transform: rotate(38deg) translateY(-42%); opacity: 0; }
    20% { opacity: 0.5; }
    100% { transform: rotate(38deg) translateY(42%); opacity: 0; }
}

@keyframes diagFall2 {
    0% { transform: rotate(-38deg) translateY(-42%); opacity: 0; }
    20% { opacity: 0.5; }
    100% { transform: rotate(-38deg) translateY(42%); opacity: 0; }
}

/* 3D face inside the analyze / versus loading box */
.face3d {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.face3d canvas {
    display: block;
}
