/* ════════════════════════════════════════════════════════════
   HOME VULNERABILITY SCANNER — Premium Glassmorphism UI
   Version 1.0.0
════════════════════════════════════════════════════════════ */

/* ── Google Font ─────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── Custom Properties ──────────────────── */
:root {
    --hvs-bg:           #060d1a;
    --hvs-bg-2:         #0a1628;
    --hvs-glass:        rgba(255,255,255,0.05);
    --hvs-glass-border: rgba(255,255,255,0.10);
    --hvs-glass-hover:  rgba(255,255,255,0.09);
    --hvs-blue:         #3b82f6;
    --hvs-blue-glow:    rgba(59,130,246,0.25);
    --hvs-cyan:         #06b6d4;
    --hvs-red:          #ef4444;
    --hvs-yellow:       #f59e0b;
    --hvs-green:        #22c55e;
    --hvs-text:         #f1f5f9;
    --hvs-muted:        #64748b;
    --hvs-muted-2:      #94a3b8;
    --hvs-radius:       16px;
    --hvs-radius-sm:    10px;
    --hvs-shadow:       0 25px 60px rgba(0,0,0,0.6);
    --hvs-font-display: 'Syne', sans-serif;
    --hvs-font-body:    'DM Sans', sans-serif;
    --hvs-transition:   0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset & Base ──────────────────────── */
.hvs-app *,
.hvs-app *::before,
.hvs-app *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.hvs-app {
    font-family: var(--hvs-font-body);
    background: var(--hvs-bg);
    color: var(--hvs-text);
    border-radius: var(--hvs-radius);
    overflow: hidden;
    position: relative;
    min-height: 500px;
    /* Animated background mesh */
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(59,130,246,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 90% 80%, rgba(6,182,212,0.10) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 10% 90%, rgba(239,68,68,0.08) 0%, transparent 50%);
}

/* Subtle grid overlay */
.hvs-app::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* ── Screens ───────────────────────────── */
.hvs-screen {
    display: none;
    position: relative;
    z-index: 1;
    animation: hvs-fade-up 0.45s cubic-bezier(0.4,0,0.2,1) both;
}

.hvs-screen--active {
    display: block;
}

@keyframes hvs-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════
   WELCOME SCREEN
════════════════════════════════════════ */
.hvs-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 72px 32px 64px;
    position: relative;
}

.hvs-welcome__badge {
    font-family: var(--hvs-font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--hvs-cyan);
    background: rgba(6,182,212,0.12);
    border: 1px solid rgba(6,182,212,0.25);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 32px;
    animation: hvs-pulse-border 2.5s ease infinite;
}

@keyframes hvs-pulse-border {
    0%, 100% { border-color: rgba(6,182,212,0.25); box-shadow: 0 0 0 0 rgba(6,182,212,0); }
    50%       { border-color: rgba(6,182,212,0.55); box-shadow: 0 0 0 6px rgba(6,182,212,0.05); }
}

.hvs-welcome__icon {
    font-size: 72px;
    margin-bottom: 24px;
    filter: drop-shadow(0 8px 24px rgba(59,130,246,0.4));
    animation: hvs-float 4s ease-in-out infinite;
}

@keyframes hvs-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.hvs-welcome__title {
    font-family: var(--hvs-font-display);
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f1f5f9 20%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hvs-welcome__subtitle {
    font-size: 18px;
    color: var(--hvs-muted-2);
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 40px;
}

.hvs-welcome__stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--hvs-glass);
    border: 1px solid var(--hvs-glass-border);
    border-radius: 100px;
    padding: 16px 32px;
    margin-bottom: 40px;
    backdrop-filter: blur(12px);
}

.hvs-welcome__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
}

.hvs-welcome__stat-num {
    font-family: var(--hvs-font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--hvs-blue);
}

.hvs-welcome__stat-label {
    font-size: 12px;
    color: var(--hvs-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.hvs-welcome__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--hvs-glass-border);
}

.hvs-welcome__disclaimer {
    font-size: 13px;
    color: var(--hvs-muted);
    margin-top: 16px;
}

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.hvs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--hvs-font-display);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--hvs-radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--hvs-transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.hvs-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity var(--hvs-transition);
}

.hvs-btn:hover::before { opacity: 1; }

.hvs-btn--primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    box-shadow: 0 8px 24px rgba(59,130,246,0.35);
}

.hvs-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(59,130,246,0.50);
}

.hvs-btn--primary:active { transform: translateY(0); }

.hvs-btn--secondary {
    background: var(--hvs-glass);
    color: var(--hvs-text);
    border: 1px solid var(--hvs-glass-border);
    backdrop-filter: blur(12px);
}

.hvs-btn--secondary:hover {
    background: var(--hvs-glass-hover);
    transform: translateY(-1px);
}

.hvs-btn--ghost {
    background: transparent;
    color: var(--hvs-muted-2);
    border: 1px solid rgba(255,255,255,0.08);
}

.hvs-btn--ghost:hover {
    color: var(--hvs-text);
    border-color: rgba(255,255,255,0.20);
}

.hvs-btn--ghost:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.hvs-btn--ghost:disabled:hover::before { opacity: 0; }
.hvs-btn--ghost:disabled:hover { transform: none; }

.hvs-btn--lg {
    font-size: 17px;
    padding: 18px 40px;
    border-radius: var(--hvs-radius);
}

.hvs-btn--full { width: 100%; justify-content: center; }

/* ════════════════════════════════════════
   QUIZ SCREEN
════════════════════════════════════════ */
.hvs-quiz {
    padding: 40px 32px 40px;
    max-width: 760px;
    margin: 0 auto;
}

/* Progress Bar */
.hvs-progress-wrap {
    margin-bottom: 32px;
}

.hvs-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.hvs-progress-step {
    font-family: var(--hvs-font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--hvs-muted-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hvs-progress-pct {
    font-family: var(--hvs-font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--hvs-blue);
}

.hvs-progress-track {
    height: 6px;
    background: rgba(255,255,255,0.07);
    border-radius: 100px;
    overflow: hidden;
}

.hvs-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 100px;
    transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
    position: relative;
}

.hvs-progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #06b6d4;
    box-shadow: 0 0 8px rgba(6,182,212,0.8);
}

/* Section Label */
.hvs-section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--hvs-font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--hvs-cyan);
    background: rgba(6,182,212,0.10);
    border: 1px solid rgba(6,182,212,0.20);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
    transition: all var(--hvs-transition);
}

/* Questions */
.hvs-questions { position: relative; }

.hvs-question {
    display: none;
    animation: hvs-q-enter 0.4s cubic-bezier(0.4,0,0.2,1) both;
}

.hvs-question--active { display: block; }

.hvs-question--exit {
    animation: hvs-q-exit 0.3s cubic-bezier(0.4,0,0.2,1) both;
}

@keyframes hvs-q-enter {
    from { opacity: 0; transform: translateX(32px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes hvs-q-exit {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-32px); }
}

.hvs-question__title {
    font-family: var(--hvs-font-display);
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--hvs-text);
}

.hvs-q-tip {
    font-size: 14px;
    font-weight: 400;
    color: var(--hvs-muted);
}

.hvs-question__sub {
    font-size: 14px;
    color: var(--hvs-muted);
    margin-bottom: 24px;
}

.hvs-question__instruction {
    font-size: 13px;
    font-weight: 600;
    color: var(--hvs-cyan);
    background: rgba(6,182,212,0.08);
    border: 1px solid rgba(6,182,212,0.18);
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 16px;
    display: inline-block;
}

/* ── Card Selections ──────────────────── */
.hvs-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.hvs-cards--2col {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.hvs-cards--multi {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.hvs-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    background: var(--hvs-glass);
    border: 2px solid var(--hvs-glass-border);
    border-radius: var(--hvs-radius-sm);
    color: var(--hvs-muted-2);
    font-family: var(--hvs-font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--hvs-transition);
    backdrop-filter: blur(8px);
    text-align: center;
    line-height: 1.3;
}

.hvs-card:first-child { font-size: 24px; }

.hvs-card > :first-child {
    font-size: 28px;
    line-height: 1;
    display: block;
}

.hvs-card:hover {
    background: rgba(59,130,246,0.10);
    border-color: rgba(59,130,246,0.35);
    color: var(--hvs-text);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.15);
}

.hvs-card--selected {
    background: rgba(59,130,246,0.18) !important;
    border-color: var(--hvs-blue) !important;
    color: var(--hvs-text) !important;
    box-shadow: 0 0 0 1px var(--hvs-blue), 0 8px 24px rgba(59,130,246,0.20) !important;
    transform: translateY(-3px) !important;
}

.hvs-card--selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 11px;
    color: var(--hvs-blue);
    font-weight: 700;
}

.hvs-card { position: relative; }

/* Active press feedback */
.hvs-card:active { transform: scale(0.97) !important; }

/* ── Sliders ──────────────────────────── */
.hvs-slider-wrap {
    margin-top: 20px;
    padding: 24px;
    background: var(--hvs-glass);
    border: 1px solid var(--hvs-glass-border);
    border-radius: var(--hvs-radius);
    backdrop-filter: blur(12px);
}

.hvs-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 100px;
    outline: none;
    margin-bottom: 16px;
}

.hvs-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.20), 0 4px 12px rgba(59,130,246,0.40);
    transition: box-shadow var(--hvs-transition), transform var(--hvs-transition);
}

.hvs-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 8px rgba(59,130,246,0.15), 0 4px 16px rgba(59,130,246,0.50);
    transform: scale(1.15);
}

.hvs-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.20);
}

.hvs-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--hvs-muted);
    margin-bottom: 12px;
}

.hvs-slider-value {
    text-align: center;
    font-family: var(--hvs-font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--hvs-blue);
}

/* ── Quiz Navigation ──────────────────── */
.hvs-quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    gap: 12px;
}

.hvs-skip-warn {
    text-align: center;
    font-size: 13px;
    color: var(--hvs-red);
    margin-top: 12px;
    min-height: 20px;
    animation: hvs-shake 0.4s ease when-filled;
}

@keyframes hvs-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60%  { transform: translateX(-6px); }
    40%, 80%  { transform: translateX(6px); }
}

/* ════════════════════════════════════════
   EMAIL CAPTURE SCREEN
════════════════════════════════════════ */
.hvs-email-capture {
    max-width: 520px;
    margin: 0 auto;
    padding: 64px 32px;
    text-align: center;
}

.hvs-email-capture__icon {
    font-size: 56px;
    margin-bottom: 16px;
    animation: hvs-bounce 0.6s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes hvs-bounce {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.hvs-email-capture__title {
    font-family: var(--hvs-font-display);
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 10px;
}

.hvs-email-capture__subtitle {
    color: var(--hvs-muted-2);
    font-size: 16px;
    margin-bottom: 32px;
}

.hvs-email-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    background: rgba(255,255,255,0.04);
    padding: 6px;
    border-radius: var(--hvs-radius-sm);
    border: 1px solid var(--hvs-glass-border);
}

.hvs-toggle-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--hvs-muted-2);
    font-family: var(--hvs-font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--hvs-transition);
}

.hvs-toggle-btn--active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59,130,246,0.35);
}

/* Form */
.hvs-form-group {
    text-align: left;
    margin-bottom: 16px;
}

.hvs-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--hvs-muted-2);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hvs-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--hvs-radius-sm);
    color: var(--hvs-text);
    font-family: var(--hvs-font-body);
    font-size: 15px;
    transition: all var(--hvs-transition);
    outline: none;
}

.hvs-input::placeholder { color: var(--hvs-muted); }

.hvs-input:focus {
    border-color: var(--hvs-blue);
    background: rgba(59,130,246,0.06);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* Checkbox */
.hvs-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    margin-bottom: 20px;
}

.hvs-checkbox { display: none; }

.hvs-checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.20);
    border-radius: 5px;
    background: rgba(255,255,255,0.04);
    transition: all var(--hvs-transition);
    position: relative;
    margin-top: 2px;
}

.hvs-checkbox:checked + .hvs-checkbox-custom {
    background: var(--hvs-blue);
    border-color: var(--hvs-blue);
}

.hvs-checkbox:checked + .hvs-checkbox-custom::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    font-weight: 700;
}

.hvs-checkbox-text {
    font-size: 13px;
    color: var(--hvs-muted-2);
    line-height: 1.5;
}

.hvs-form-error {
    color: var(--hvs-red);
    font-size: 13px;
    margin-bottom: 12px;
    min-height: 18px;
    text-align: left;
}

/* ════════════════════════════════════════
   RESULTS SCREEN
════════════════════════════════════════ */
.hvs-results {
    padding: 48px 32px;
    max-width: 760px;
    margin: 0 auto;
}

/* Score Ring */
.hvs-results-header {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 36px;
    padding: 32px;
    background: var(--hvs-glass);
    border: 1px solid var(--hvs-glass-border);
    border-radius: var(--hvs-radius);
    backdrop-filter: blur(16px);
}

.hvs-score-ring-wrap {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 120px;
}

.hvs-score-ring {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.hvs-score-ring__bg {
    fill: none;
    stroke: rgba(255,255,255,0.07);
    stroke-width: 8;
}

.hvs-score-ring__fill {
    fill: none;
    stroke: var(--hvs-green);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 326.7;
    stroke-dashoffset: 326.7;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4,0,0.2,1), stroke 0.5s ease;
}

.hvs-score-ring__label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 1px;
}

.hvs-score-num {
    font-family: var(--hvs-font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--hvs-text);
    line-height: 1;
}

.hvs-score-pct {
    font-family: var(--hvs-font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--hvs-muted-2);
    margin-top: 4px;
}

.hvs-results-header__info { flex: 1; }

.hvs-risk-badge {
    display: inline-block;
    font-family: var(--hvs-font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 10px;
    background: rgba(239,68,68,0.15);
    color: var(--hvs-red);
    border: 1px solid rgba(239,68,68,0.25);
}

.hvs-risk-badge--medium {
    background: rgba(245,158,11,0.15);
    color: var(--hvs-yellow);
    border-color: rgba(245,158,11,0.25);
}

.hvs-risk-badge--low {
    background: rgba(34,197,94,0.15);
    color: var(--hvs-green);
    border-color: rgba(34,197,94,0.25);
}

.hvs-results-title {
    font-family: var(--hvs-font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.hvs-results-subtitle {
    font-size: 14px;
    color: var(--hvs-muted-2);
    line-height: 1.5;
}

/* Warning Box */
.hvs-warning-box {
    padding: 16px 20px;
    border-radius: var(--hvs-radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.20);
    color: #fca5a5;
}

/* Burglar Card */
.hvs-burglar-card {
    background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.04));
    border: 1px solid rgba(239,68,68,0.20);
    border-radius: var(--hvs-radius);
    padding: 24px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.hvs-burglar-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(239,68,68,0.05);
    pointer-events: none;
}

.hvs-burglar-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--hvs-font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fca5a5;
    margin-bottom: 14px;
}

.hvs-burglar-card__icon { font-size: 20px; }

.hvs-burglar-card__text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--hvs-muted-2);
    font-style: italic;
}

/* Checklist */
.hvs-checklist {
    margin-bottom: 32px;
}

.hvs-checklist__title {
    font-family: var(--hvs-font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hvs-glass-border);
}

.hvs-checklist-section {
    margin-bottom: 16px;
    border-radius: var(--hvs-radius);
    overflow: hidden;
    border: 1px solid var(--hvs-glass-border);
}

.hvs-checklist-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    font-family: var(--hvs-font-display);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.hvs-checklist-section__header--red    { background: rgba(239,68,68,0.10);  color: #fca5a5; }
.hvs-checklist-section__header--yellow { background: rgba(245,158,11,0.10); color: #fcd34d; }
.hvs-checklist-section__header--green  { background: rgba(34,197,94,0.10);  color: #86efac; }

.hvs-checklist-count {
    background: rgba(255,255,255,0.10);
    color: var(--hvs-text);
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 12px;
}

.hvs-checklist-items {
    background: rgba(255,255,255,0.02);
}

.hvs-checklist-item {
    padding: 16px 20px;
    border-top: 1px solid var(--hvs-glass-border);
    position: relative;
    animation: hvs-item-enter 0.4s ease both;
}

@keyframes hvs-item-enter {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hvs-checklist-item__title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--hvs-text);
}

.hvs-checklist-item__desc {
    font-size: 13px;
    color: var(--hvs-muted-2);
    line-height: 1.5;
    margin-bottom: 8px;
}

.hvs-checklist-item__action {
    font-size: 12px;
    color: var(--hvs-blue);
    background: rgba(59,130,246,0.08);
    border-radius: 6px;
    padding: 6px 10px;
    line-height: 1.5;
    display: block;
}

/* Download Button */
.hvs-download-wrap {
    text-align: center;
    margin-bottom: 32px;
}

/* CTA Section */
.hvs-cta-section {
    background: var(--hvs-glass);
    border: 1px solid var(--hvs-glass-border);
    border-radius: var(--hvs-radius);
    padding: 36px;
    text-align: center;
    backdrop-filter: blur(12px);
}

.hvs-cta-section__title {
    font-family: var(--hvs-font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.hvs-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.hvs-cta-btn { flex: 1; min-width: 180px; max-width: 250px; }

/* ════════════════════════════════════════
   LOADING STATE
════════════════════════════════════════ */
.hvs-loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 64px 32px;
    gap: 24px;
}

.hvs-loading-screen p {
    font-size: 15px;
    color: var(--hvs-muted-2);
    animation: hvs-fade-pulse 1.5s ease infinite;
}

@keyframes hvs-fade-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.hvs-spinner {
    width: 56px;
    height: 56px;
    border: 3px solid rgba(255,255,255,0.08);
    border-top-color: var(--hvs-blue);
    border-radius: 50%;
    animation: hvs-spin 0.8s linear infinite;
}

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

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 600px) {
    .hvs-welcome { padding: 48px 20px 48px; }
    .hvs-welcome__stats { padding: 12px 16px; }
    .hvs-welcome__stat { padding: 0 14px; }
    .hvs-quiz { padding: 28px 20px; }
    .hvs-results { padding: 28px 20px; }
    .hvs-results-header { flex-direction: column; text-align: center; gap: 20px; }
    .hvs-results-header__info { text-align: center; }
    .hvs-cards { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .hvs-cta-buttons { flex-direction: column; }
    .hvs-cta-btn { max-width: 100%; }
    .hvs-email-capture { padding: 40px 20px; }
}

@media (max-width: 400px) {
    .hvs-cards { grid-template-columns: 1fr 1fr; }
    .hvs-welcome__title { font-size: 26px; }
}
