/* ===== DESIGN TOKENS (YKS INDIGO-CYAN-GOLD SYSTEM) ===== */
:root {
    --bg-dark: #0B0F19;
    --indigo-dark: #0F172A;
    --indigo-mid: #1E1B4B;
    --indigo-accent: #6366F1;
    --violet-accent: #8B5CF6;
    --cyan-accent: #38BDF8;
    --cyan-glow: #06B6D4;
    --gold: #F59E0B;
    --gold-light: #FBBF24;
    --gold-dim: #D4A937;
    --green: #10B981;
    --yellow: #F59E0B;
    --orange: #F97316;
    --red: #EF4444;
    --white: #FFFFFF;
    --text: #F1F5F9;
    --text-dim: #94A3B8;
    --glass-bg: rgba(30, 27, 75, 0.45);
    --glass-border: rgba(99, 102, 241, 0.25);
    --glass-glow: rgba(56, 189, 248, 0.15);
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    --transition: 0.35s 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(--bg-dark) 0%, var(--indigo-dark) 45%, var(--indigo-mid) 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(--cyan-accent);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 8px var(--cyan-glow);
    animation: particleFloat 6s infinite ease-in-out;
}
@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(0) scale(0); }
    25% { opacity: 0.7; }
    100% { opacity: 0; transform: translateY(-120vh) scale(1.2); }
}

/* ===== PROGRESS BAR ===== */
.progress-bar-container {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 6px; background: rgba(255,255,255,0.06);
}
.progress-bar {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--indigo-accent), var(--cyan-accent), var(--gold-light));
    transition: width 0.5s ease;
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 14px var(--indigo-accent);
}
.progress-text {
    position: absolute; right: 16px; top: 12px;
    font-size: 13px; color: var(--cyan-accent); font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

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

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

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

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

/* ===== BRAND HEADERS & BADGES ===== */
.brand-header {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.brand-badge {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 11px; font-weight: 800;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--gold-light);
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 5px 14px; border-radius: 20px;
}
.checkup-badge {
    display: inline-block;
    font-size: 11px; font-weight: 800;
    color: #FFFFFF; background: linear-gradient(135deg, var(--indigo-accent), var(--violet-accent));
    padding: 5px 14px; border-radius: 20px;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

/* ===== WELCOME SCREEN ===== */
.welcome-card { text-align: center; }
.welcome-title {
    font-size: 28px; font-weight: 900;
    background: linear-gradient(135deg, var(--white) 0%, var(--cyan-accent) 50%, var(--gold-light) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin: 12px 0 8px; line-height: 1.3;
}
.title-icon { font-size: 34px; display: block; margin-bottom: 4px; -webkit-text-fill-color: initial; }
.welcome-subtitle { font-size: 15px; color: var(--text-dim); margin-bottom: 20px; }
.welcome-description { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; text-align: center; line-height: 1.6; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0; }
.skill-tag {
    font-size: 11px; font-weight: 600; padding: 6px 12px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    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(--cyan-accent);
}
.stat-icon { font-size: 18px; }

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 16px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px; font-weight: 800;
    color: #FFFFFF; background: linear-gradient(135deg, var(--indigo-accent), var(--violet-accent));
    border: none; border-radius: var(--radius-sm);
    cursor: pointer; transition: var(--transition);
    letter-spacing: 0.5px;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
}
.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(99, 102, 241, 0.4); }
.btn-arrow { font-size: 18px; transition: transform 0.3s; }
.btn-primary:hover .btn-arrow { transform: translateX(6px); }

.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    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.12); border-radius: var(--radius-sm);
    cursor: pointer; transition: var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: rgba(255,255,255,0.25); }

.btn-whatsapp {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 16px 24px; margin-top: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px; font-weight: 700;
    color: #FFFFFF; background: linear-gradient(135deg, #10B981, #059669);
    border: none; border-radius: var(--radius-sm);
    text-decoration: none; transition: var(--transition);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5); }
.btn-next { margin-top: 22px; }

/* ===== 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: 20px; text-align: left; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--cyan-accent); margin-bottom: 8px; }
.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%; padding: 14px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.3);
    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(--cyan-accent); background: rgba(15, 23, 42, 0.8); box-shadow: 0 0 12px rgba(56, 189, 248, 0.25); }
.radio-group { display: grid; grid-template-columns: repeat(2, 1fr); 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(15, 23, 42, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600;
    transition: var(--transition);
}
.radio-card input:checked + .radio-label {
    border-color: var(--cyan-accent); background: rgba(56, 189, 248, 0.15); color: var(--cyan-accent);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}
.radio-card:hover .radio-label { border-color: rgba(56, 189, 248, 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: 10px;
    margin-bottom: 20px; padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.question-badge {
    font-size: 12px; font-weight: 800;
    color: #FFFFFF; background: linear-gradient(135deg, var(--indigo-accent), var(--violet-accent));
    padding: 5px 14px; border-radius: 20px;
}
.question-skill {
    font-size: 12px; font-weight: 600; color: var(--cyan-accent);
    background: rgba(56, 189, 248, 0.12);
    padding: 5px 14px; border-radius: 20px;
}
.question-points {
    margin-left: auto; font-size: 12px; font-weight: 600; color: var(--text-dim);
}
.question-title {
    font-size: 18px; font-weight: 800; color: var(--white);
    margin-bottom: 14px; line-height: 1.4;
}
.question-visual { margin-bottom: 18px; }
.question-text {
    font-size: 15px; color: var(--text); line-height: 1.7; margin-bottom: 22px;
    white-space: pre-line;
}

/* Options */
.options-container { display: flex; flex-direction: column; gap: 12px; }
.option-btn {
    display: flex; align-items: center; gap: 14px;
    width: 100%; padding: 15px 18px; text-align: left;
    background: rgba(15, 23, 42, 0.5);
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    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: var(--cyan-accent); background: rgba(56, 189, 248, 0.08); }
.option-btn.selected {
    border-color: var(--cyan-accent); background: rgba(56, 189, 248, 0.15);
    color: var(--white); box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}
.option-letter {
    width: 32px; height: 32px; min-width: 32px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 13px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%; transition: var(--transition);
}
.option-btn.selected .option-letter {
    background: var(--cyan-accent); color: var(--indigo-dark);
}

/* Custom Visual Elements */
.visual-container {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px; padding: 16px; text-align: center;
}

.visual-table {
    width: 100%; border-collapse: collapse;
    font-size: 13px; margin: 10px 0;
}
.visual-table th {
    padding: 10px 12px; text-align: left;
    background: rgba(99, 102, 241, 0.2); color: var(--cyan-accent);
    font-weight: 700; border: 1px solid rgba(255,255,255,0.1);
}
.visual-table td {
    padding: 10px 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); }

/* Flowchart */
.flowchart {
    display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 12px 0;
}
.flow-box {
    padding: 10px 18px; background: rgba(99, 102, 241, 0.25);
    border: 1px solid var(--indigo-accent); border-radius: 8px;
    font-size: 13px; font-weight: 600; color: var(--text);
}
.flow-arrow { font-size: 16px; color: var(--cyan-accent); }

/* Flask mixture */
.flask-group { display: flex; justify-content: center; gap: 24px; margin: 12px 0; }
.flask-item { text-align: center; font-size: 12px; color: var(--text-dim); }
.flask {
    width: 50px; height: 70px; border: 2px solid var(--cyan-accent);
    border-radius: 0 0 10px 10px; position: relative; margin: 0 auto 6px;
    overflow: hidden; background: rgba(0,0,0,0.3);
}
.flask-liquid {
    position: absolute; bottom: 0; width: 100%;
    background: linear-gradient(180deg, var(--cyan-accent), var(--indigo-accent));
    transition: height 0.5s;
}

/* ===== LOADING SCREEN ===== */
.loading-card { text-align: center; }
.loading-spinner { position: relative; width: 84px; height: 84px; margin: 0 auto 20px; }
.spinner-ring {
    width: 84px; height: 84px; border-radius: 50%;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--cyan-accent);
    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: 30px;
}
.loading-title { font-size: 22px; color: var(--white); margin-bottom: 6px; }
.loading-desc { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; }
.loading-steps { text-align: left; display: inline-block; }
.load-step {
    font-size: 14px; color: var(--text-dim); padding: 6px 0;
    opacity: 0.3; transition: all 0.5s;
}
.load-step.active { opacity: 1; color: var(--cyan-accent); font-weight: 600; }
.load-step.done { opacity: 0.8; color: var(--green); }

/* ===== RESULTS SCREEN ===== */
.results-card { text-align: center; }
.results-header {
    font-size: 15px; letter-spacing: 2px; font-family: 'Outfit', sans-serif;
    color: var(--cyan-accent); margin: 8px 0 20px; font-weight: 800;
}
.score-circle-wrapper { margin: 0 auto 22px; }
.score-circle { position: relative; width: 150px; height: 150px; 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: url(#scoreGrad);
    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: 44px; font-weight: 900; color: var(--white);
}
.score-max { font-size: 14px; color: var(--text-dim); font-weight: 600; }

.score-level {
    padding: 16px 20px; border-radius: var(--radius-sm);
    margin-bottom: 24px; font-size: 14px; line-height: 1.6; text-align: left;
}
.score-level.level-green { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: #6EE7B7; }
.score-level.level-yellow { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); color: #FDE68A; }
.score-level.level-orange { background: rgba(249,115,22,0.15); border: 1px solid rgba(249,115,22,0.3); color: #FDBA74; }
.score-level.level-red { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #FCA5A5; }
.score-level.level-top { background: rgba(99,102,241,0.2); border: 1px solid rgba(99,102,241,0.4); color: var(--cyan-accent); }

.section-title {
    font-size: 16px; color: var(--white);
    margin-bottom: 14px; letter-spacing: 0.5px; text-align: left;
}
.skills-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; text-align: left; }
.skill-row {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 16px;
    background: rgba(15, 23, 42, 0.4); border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}
.skill-row .skill-icon { font-size: 18px; min-width: 24px; }
.skill-row .skill-name { font-size: 13px; color: var(--text-dim); min-width: 130px; font-weight: 500; }
.skill-bar-wrap { flex: 1; height: 7px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.skill-bar-fill {
    height: 100%; border-radius: 4px;
    transition: width 1s ease;
    width: 0;
}
.skill-bar-fill.strong { background: var(--green); }
.skill-bar-fill.weak { background: var(--red); }
.skill-status { font-size: 12px; font-weight: 800; min-width: 32px; text-align: right; }

.personal-analysis {
    text-align: left; margin-bottom: 24px;
    padding: 18px; background: rgba(15, 23, 42, 0.5);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(99, 102, 241, 0.2);
}
.personal-analysis h4 { font-size: 15px; color: var(--cyan-accent); margin-bottom: 12px; }
.analysis-item {
    font-size: 13px; padding: 6px 0; color: var(--text);
    display: flex; align-items: center; gap: 8px; line-height: 1.5;
}

.results-cta {
    margin: 24px 0; padding: 22px; text-align: center;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    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: 16px; color: var(--gold-light); margin-top: 10px; font-weight: 700; }

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

/* ===== THANK YOU SCREEN ===== */
.thankyou-card { text-align: center; }
.thankyou-icon { font-size: 60px; margin-bottom: 14px; animation: pulseIcon 2s infinite; }
@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.thankyou-title { font-size: 24px; color: var(--white); margin-bottom: 16px; }
.thankyou-message { font-size: 14px; color: var(--text); line-height: 1.8; margin-bottom: 24px; }
.thankyou-message p { margin-bottom: 8px; }
.thankyou-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.thankyou-motto { font-size: 18px; color: var(--gold-light); font-weight: 700; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .glass-card { padding: 26px 20px; }
    .welcome-title { font-size: 22px; }
    .welcome-stats { gap: 14px; }
    .radio-group { grid-template-columns: 1fr; }
    .option-btn { padding: 12px 14px; font-size: 13px; }
    .question-title { font-size: 16px; }
    .question-text { font-size: 14px; }
    .skill-row .skill-name { min-width: 100px; font-size: 11px; }
}
