/* ===== DESIGN TOKENS ===== */
:root {
    --navy: #0F1B2D;
    --navy-light: #1C3E62;
    --navy-mid: #152A45;
    --gold: #D4A937;
    --gold-light: #F0D078;
    --gold-dark: #B8912A;
    --green: #34D399;
    --yellow: #FBBF24;
    --orange: #FB923C;
    --red: #F87171;
    --white: #FFFFFF;
    --text: #E2E8F0;
    --text-dim: #94A3B8;
    --glass-bg: rgba(28, 62, 98, 0.25);
    --glass-border: rgba(212, 169, 55, 0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--navy) 0%, #0A1628 50%, #0D1F3C 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Outfit', sans-serif; }

/* ===== PARTICLES ===== */
.bg-particles {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 3px; height: 3px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s infinite ease-in-out;
}
@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(0) scale(0); }
    20% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-120vh) scale(1); }
}

/* ===== PROGRESS BAR ===== */
.progress-bar-container {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 5px; background: rgba(255,255,255,0.08);
}
.progress-bar {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width 0.6s ease;
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 12px rgba(212,169,55,0.5);
}
.progress-text {
    position: absolute; right: 12px; top: 10px;
    font-size: 12px; color: var(--gold); font-weight: 600;
}

/* ===== APP CONTAINER ===== */
.app-container {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}

/* ===== SCREENS ===== */
.screen {
    display: none; width: 100%; max-width: 640px;
    animation: fadeSlideIn 0.6s ease forwards;
}
.screen.active { display: flex; justify-content: center; }

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-30px); }
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 36px 28px;
    width: 100%;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ===== BRAND / BADGES ===== */
.brand-badge {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 11px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--gold);
    background: rgba(212,169,55,0.12);
    border: 1px solid rgba(212,169,55,0.25);
    padding: 5px 14px; border-radius: 20px;
    margin-bottom: 12px;
}
.checkup-badge {
    display: inline-block; margin-left: 8px;
    font-size: 11px; font-weight: 700;
    color: var(--navy); background: var(--gold);
    padding: 5px 14px; border-radius: 20px;
    letter-spacing: 1px;
}

/* ===== WELCOME SCREEN ===== */
.welcome-title {
    font-size: 28px; font-weight: 800;
    background: linear-gradient(135deg, var(--white), var(--gold-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin: 16px 0 8px; line-height: 1.3;
}
.title-icon { font-size: 32px; display: block; margin-bottom: 4px; -webkit-text-fill-color: initial; }
.welcome-subtitle { font-size: 16px; color: var(--text-dim); margin-bottom: 20px; }
.welcome-description { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; text-align: center; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 12px 0; }
.skill-tag {
    font-size: 11px; padding: 5px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; color: var(--text);
    white-space: nowrap;
}
.welcome-stats {
    display: flex; justify-content: center; gap: 24px;
    margin: 20px 0 28px; flex-wrap: wrap;
}
.stat-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 600; color: var(--gold-light);
}
.stat-icon { font-size: 18px; }
.welcome-card { text-align: center; }

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 16px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px; font-weight: 700;
    color: var(--navy); background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: none; border-radius: var(--radius-sm);
    cursor: pointer; transition: var(--transition);
    letter-spacing: 0.5px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,169,55,0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-glow { box-shadow: 0 4px 20px rgba(212,169,55,0.25); }
.btn-arrow { font-size: 18px; transition: transform 0.3s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; padding: 14px 24px; margin-top: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px; font-weight: 600;
    color: var(--text-dim); background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm);
    cursor: pointer; transition: var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-next { margin-top: 20px; }

/* ===== FORM ===== */
.info-card { text-align: center; }
.info-title { font-size: 24px; color: var(--white); margin-bottom: 8px; }
.info-desc { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; text-align: left; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gold-light); margin-bottom: 8px; }
.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%; padding: 14px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    color: var(--white); font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}
.form-group input:focus { outline: none; border-color: var(--gold); background: rgba(212,169,55,0.08); }
.radio-group { display: flex; gap: 10px; }
.radio-card {
    flex: 1; position: relative; cursor: pointer;
}
.radio-card input { position: absolute; opacity: 0; }
.radio-label {
    display: block; padding: 14px; text-align: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600;
    transition: var(--transition);
}
.radio-card input:checked + .radio-label {
    border-color: var(--gold); background: rgba(212,169,55,0.15); color: var(--gold-light);
}
.radio-card:hover .radio-label { border-color: rgba(212,169,55,0.4); }
.privacy-note { font-size: 11px; color: var(--text-dim); margin: 12px 0 20px; line-height: 1.5; }

/* ===== QUESTION SCREEN ===== */
.question-header {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin-bottom: 20px; padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.question-badge {
    font-size: 12px; font-weight: 700;
    color: var(--navy); background: var(--gold);
    padding: 4px 12px; border-radius: 20px;
}
.question-skill {
    font-size: 12px; font-weight: 600; color: var(--gold-light);
    background: rgba(212,169,55,0.1);
    padding: 4px 12px; border-radius: 20px;
}
.question-points {
    margin-left: auto; font-size: 12px; font-weight: 600; color: var(--text-dim);
}
.question-title {
    font-size: 17px; font-weight: 700; color: var(--white);
    margin-bottom: 14px; line-height: 1.4;
}
.question-visual { margin-bottom: 16px; }
.question-text {
    font-size: 14px; color: var(--text); line-height: 1.7; margin-bottom: 20px;
    white-space: pre-line;
}

/* Options */
.options-container { display: flex; flex-direction: column; gap: 10px; }
.option-btn {
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 14px 16px; text-align: left;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: var(--text); font-size: 14px; font-family: 'Inter', sans-serif;
    cursor: pointer; transition: var(--transition);
    line-height: 1.5;
}
.option-btn:hover { border-color: rgba(212,169,55,0.4); background: rgba(212,169,55,0.06); }
.option-btn.selected {
    border-color: var(--gold); background: rgba(212,169,55,0.12);
    color: var(--gold-light);
}
.option-letter {
    width: 30px; height: 30px; min-width: 30px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%; transition: var(--transition);
}
.option-btn.selected .option-letter {
    background: var(--gold); color: var(--navy);
}

/* Visual elements inside questions */
.visual-grid {
    display: inline-grid; gap: 3px;
    padding: 12px; background: rgba(0,0,0,0.2);
    border-radius: 8px;
}
.visual-cell {
    width: 40px; height: 40px; border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    transition: var(--transition);
}
.visual-cell.filled { background: var(--gold); border-color: var(--gold-dark); opacity: 0.85; }

.visual-table {
    width: 100%; border-collapse: collapse;
    font-size: 13px; margin: 8px 0;
}
.visual-table th {
    padding: 10px 12px; text-align: left;
    background: rgba(212,169,55,0.15); color: var(--gold-light);
    font-weight: 600; border: 1px solid rgba(255,255,255,0.1);
}
.visual-table td {
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text);
}
.visual-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

.visual-bar-chart {
    display: flex; align-items: flex-end; gap: 12px;
    height: 120px; padding: 12px; justify-content: center;
    background: rgba(0,0,0,0.15); border-radius: 8px;
}
.bar-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bar-fill {
    width: 36px; border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    transition: height 0.8s ease;
    min-height: 4px;
}
.bar-label { font-size: 10px; color: var(--text-dim); }
.bar-value { font-size: 10px; color: var(--gold-light); font-weight: 600; }

.visual-clock {
    width: 100px; height: 100px; border-radius: 50%;
    border: 3px solid var(--gold);
    position: relative; margin: 0 auto;
    background: rgba(0,0,0,0.2);
}
.clock-center {
    position: absolute; top: 50%; left: 50%;
    width: 6px; height: 6px; background: var(--gold);
    border-radius: 50%; transform: translate(-50%, -50%); z-index: 3;
}
.clock-hand {
    position: absolute; bottom: 50%; left: 50%;
    transform-origin: bottom center;
    border-radius: 2px;
}
.clock-hour {
    width: 3px; height: 26px; background: var(--white);
}
.clock-minute {
    width: 2px; height: 36px; background: var(--gold-light);
}
.clock-mark {
    position: absolute; font-size: 9px; color: var(--text-dim); font-weight: 600;
}

.visual-battery {
    display: inline-flex; align-items: center; gap: 2px;
    padding: 10px 14px; background: rgba(0,0,0,0.2);
    border-radius: 8px;
}
.battery-cell {
    width: 22px; height: 28px; border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.15);
    margin: 0 1px;
}
.battery-cell.charged { background: var(--green); border-color: rgba(52,211,153,0.5); }
.battery-cell.empty { background: rgba(255,255,255,0.06); }

.visual-timeline {
    display: flex; align-items: center; gap: 0;
    padding: 12px; background: rgba(0,0,0,0.15);
    border-radius: 8px; overflow-x: auto; justify-content: center;
}
.timeline-dot {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.timeline-dot .dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--gold); border: 2px solid var(--gold-light);
}
.timeline-dot .time { font-size: 10px; color: var(--gold-light); font-weight: 600; }
.timeline-line {
    width: 28px; height: 2px; background: rgba(255,255,255,0.15);
    margin-bottom: 18px;
}

/* ===== LOADING ===== */
.loading-card { text-align: center; }
.loading-spinner { position: relative; width: 80px; height: 80px; margin: 0 auto 20px; }
.spinner-ring {
    width: 80px; height: 80px; border-radius: 50%;
    border: 3px solid rgba(212,169,55,0.15);
    border-top-color: var(--gold);
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-icon {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); font-size: 28px;
}
.loading-title { font-size: 20px; color: var(--white); margin-bottom: 6px; }
.loading-desc { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }
.loading-steps { text-align: left; display: inline-block; }
.load-step {
    font-size: 13px; color: var(--text-dim); padding: 4px 0;
    opacity: 0.3; transition: all 0.5s;
}
.load-step.active { opacity: 1; color: var(--gold-light); }
.load-step.done { opacity: 0.7; color: var(--green); }

/* ===== RESULTS ===== */
.results-card { text-align: center; }
.results-header {
    font-size: 16px; letter-spacing: 2px;
    color: var(--gold-light); margin: 8px 0 20px;
}
.score-circle-wrapper { margin: 0 auto 20px; }
.score-circle { position: relative; width: 140px; height: 140px; margin: 0 auto; }
.score-circle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-bg { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 8; }
.score-fill {
    fill: none; stroke: var(--gold);
    stroke-width: 8; stroke-linecap: round;
    stroke-dasharray: 339.292; stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1.5s ease;
}
.score-value {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: center;
}
#scoreNumber {
    font-family: 'Outfit', sans-serif;
    font-size: 40px; font-weight: 900; color: var(--white);
}
.score-max { font-size: 14px; color: var(--text-dim); font-weight: 500; }

.score-level {
    padding: 14px 18px; border-radius: var(--radius-sm);
    margin-bottom: 24px; font-size: 14px; line-height: 1.6;
}
.score-level.level-green { background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.25); color: var(--green); }
.score-level.level-yellow { background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.25); color: var(--yellow); }
.score-level.level-orange { background: rgba(251,146,60,0.12); border: 1px solid rgba(251,146,60,0.25); color: var(--orange); }
.score-level.level-red { background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.25); color: var(--red); }
.score-level.level-top { background: rgba(212,169,55,0.12); border: 1px solid rgba(212,169,55,0.25); color: var(--gold-light); }

.section-title {
    font-size: 15px; color: var(--white);
    margin-bottom: 14px; letter-spacing: 0.5px;
}
.skills-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; text-align: left; }
.skill-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03); border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}
.skill-row .skill-icon { font-size: 16px; min-width: 22px; }
.skill-row .skill-name { font-size: 12px; color: var(--text-dim); min-width: 100px; }
.skill-bar-wrap { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.skill-bar-fill {
    height: 100%; border-radius: 3px;
    transition: width 1s ease;
    width: 0;
}
.skill-bar-fill.strong { background: var(--green); }
.skill-bar-fill.medium { background: var(--yellow); }
.skill-bar-fill.weak { background: var(--red); }
.skill-status {
    font-size: 11px; font-weight: 700; min-width: 30px; text-align: right;
}

.personal-analysis {
    text-align: left; margin-bottom: 24px;
    padding: 16px; background: rgba(0,0,0,0.15);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.06);
}
.personal-analysis h4 {
    font-size: 14px; color: var(--gold-light); margin-bottom: 10px;
}
.analysis-item {
    font-size: 13px; padding: 5px 0; color: var(--text);
    display: flex; align-items: center; gap: 8px;
}

.results-cta {
    margin: 24px 0; padding: 20px; text-align: center;
    background: rgba(212,169,55,0.06);
    border: 1px solid rgba(212,169,55,0.15);
    border-radius: var(--radius-sm);
}
.cta-text { font-size: 13px; color: var(--text); line-height: 1.7; margin-bottom: 10px; }
.cta-brand { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-bottom: 8px; }
.cta-motto { font-size: 15px; color: var(--gold); margin-top: 8px; }

/* ===== CONTACT ===== */
.contact-card { text-align: center; }
.contact-title { font-size: 22px; color: var(--white); margin-bottom: 8px; }
.contact-desc { font-size: 13px; color: var(--text-dim); margin-bottom: 24px; line-height: 1.6; }

/* ===== THANK YOU ===== */
.thankyou-card { text-align: center; }
.thankyou-icon { font-size: 56px; margin-bottom: 12px; animation: pulseIcon 2s infinite; }
@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.thankyou-title { font-size: 22px; color: var(--white); margin-bottom: 16px; }
.thankyou-message { font-size: 14px; color: var(--text); line-height: 1.8; margin-bottom: 20px; }
.thankyou-message p { margin-bottom: 8px; }
.thankyou-motto { font-size: 18px; color: var(--gold); margin-bottom: 24px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .glass-card { padding: 24px 18px; }
    .welcome-title { font-size: 22px; }
    .welcome-stats { gap: 14px; }
    .stat-item { font-size: 12px; }
    .radio-group { gap: 6px; }
    .radio-label { padding: 10px 6px; font-size: 12px; }
    .visual-cell { width: 32px; height: 32px; }
    .bar-fill { width: 28px; }
    .option-btn { padding: 12px; font-size: 13px; }
    .question-title { font-size: 15px; }
    .question-text { font-size: 13px; }
    .battery-cell { width: 18px; height: 22px; }
    .timeline-line { width: 16px; }
    .timeline-dot .time { font-size: 9px; }
}
