/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0e1a;
    min-height: 100vh;
    color: #e2e8f0;
    position: relative;
    overflow-x: hidden;
}

/* ========== BACKGROUND SPACE ========== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(139, 92, 246, 0.08), transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(6, 182, 212, 0.05), transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(30, 27, 75, 0.4), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Stars */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: starTwinkle 3s infinite ease-in-out;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Meteor */
.meteor {
    position: fixed;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(139,92,246,0.3), transparent);
    border-radius: 50%;
    transform: rotate(25deg);
    animation: meteor 6s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.meteor::before {
    content: '●';
    position: absolute;
    right: -2px;
    top: -6px;
    font-size: 10px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 0 8px #8b5cf6;
}

@keyframes meteor {
    0% { transform: translateX(-100px) translateY(-100px) rotate(25deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(calc(100vw + 100px)) translateY(calc(100vh + 100px)) rotate(25deg); opacity: 0; }
}

/* Floating Orbs */
.floating-orb {
    position: fixed;
    border-radius: 65% 35% 70% 30% / 40% 55% 45% 60%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* ========== PAGE SYSTEM ========== */
.page {
    display: none;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

.page.active {
    display: block;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ========== HERO (HOME PAGE) ========== */
.hero {
    text-align: center;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    color: white;
    font-weight: 800;
}

.subtitle {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

/* ========== LOGO SMARRT DI HOME ========== */
.hero-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
}

/* ========== INPUT SECTION ========== */
.input-section {
    margin: 30px 0;
    text-align: center;
}

.input-section label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.input-section input {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 15px 20px;
    font-size: 1.1em;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    background: rgba(30, 27, 75, 0.4);
    backdrop-filter: blur(8px);
    color: white;
    outline: none;
    display: block;
    transition: all 0.3s ease;
}

.input-section input:focus {
    border-color: #8b5cf6;
    background: rgba(30, 27, 75, 0.6);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.input-section input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ========== INFO CARD ========== */
.info-card {
    background: rgba(30, 27, 75, 0.35);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: 0 8px 25px -10px rgba(0, 0, 0, 0.3);
}

.info-card h2 {
    margin-bottom: 20px;
    color: #a78bfa;
    font-weight: 700;
}

.subtest-list {
    text-align: left;
}

.subtest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin: 10px 0;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 10px;
    border-left: 4px solid #8b5cf6;
    transition: all 0.3s ease;
}

.subtest-item:hover {
    background: rgba(139, 92, 246, 0.15);
    transform: translateX(5px);
}

.subtest-name {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.subtest-detail {
    color: #a78bfa;
    font-size: 0.9em;
    font-weight: 500;
}

.total-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

/* ========== BUTTON START ========== */
.btn-start {
    padding: 18px 50px;
    font-size: 1.2em;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -8px rgba(139, 92, 246, 0.5);
}

/* ========== TRYOUT CONTAINER ========== */
.tryout-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.tryout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(20, 18, 40, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-left h2 {
    color: #a78bfa;
    margin-bottom: 5px;
}

.header-left p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
}

.timer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(124, 58, 237, 0.3));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    font-size: 1.5em;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.timer.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(217, 119, 6, 0.4));
    border-color: rgba(245, 158, 11, 0.3);
}

.timer.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.5), rgba(220, 38, 38, 0.5));
    border-color: rgba(239, 68, 68, 0.3);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* ========== TRYOUT MAIN ========== */
.tryout-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.question-section {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: rgba(15, 14, 26, 0.6);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.question-number {
    font-size: 1.3em;
    font-weight: 600;
    color: #a78bfa;
}

.question-type {
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 20px;
    font-size: 0.85em;
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.question-content {
    background: rgba(30, 27, 75, 0.35);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ========== OPTIONS ========== */
.option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin: 12px 0;
    background: rgba(30, 27, 75, 0.3);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.option:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: #8b5cf6;
    transform: translateX(5px);
}

.option.selected {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.option-letter {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 50%;
    margin-right: 15px;
    font-weight: 600;
    color: #a78bfa;
}

.option.selected .option-letter {
    background: #8b5cf6;
    color: white;
}

/* ========== CHECKBOX (TRUE/FALSE) ========== */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(30, 27, 75, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.checkbox-item label {
    flex: 1;
    font-weight: 500;
}

.checkbox-options {
    display: flex;
    gap: 12px;
}

.checkbox-btn {
    padding: 8px 24px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    background: rgba(30, 27, 75, 0.3);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.checkbox-btn:hover {
    background: rgba(139, 92, 246, 0.12);
    transform: scale(1.02);
}

.checkbox-btn.selected-true {
    background: #48bb78 !important;
    border-color: #48bb78 !important;
    color: white !important;
}

.checkbox-btn.selected-false {
    background: #f56565 !important;
    border-color: #f56565 !important;
    color: white !important;
}

/* ========== SHORT ANSWER ========== */
.short-answer-input {
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
    font-size: 1.1em;
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 10px;
    background: rgba(30, 27, 75, 0.3);
    color: white;
    outline: none;
    transition: all 0.3s ease;
}

.short-answer-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* ========== NAVIGATION ========== */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.btn-nav {
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.15);
    background: rgba(30, 27, 75, 0.3);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: #8b5cf6;
    color: white;
}

.btn-next {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    color: white;
}

.btn-next:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* ========== SIDEBAR ========== */
.question-nav-sidebar {
    width: 280px;
    padding: 25px;
    background: rgba(20, 18, 40, 0.9);
    backdrop-filter: blur(12px);
    border-left: 1px solid rgba(139, 92, 246, 0.2);
    overflow-y: auto;
}

.question-nav-sidebar h3 {
    margin-bottom: 20px;
    color: #a78bfa;
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.question-btn {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(139, 92, 246, 0.15);
    background: rgba(30, 27, 75, 0.3);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.question-btn:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: #8b5cf6;
    transform: scale(1.05);
    color: white;
}

.question-btn.answered {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: white;
}

.question-btn.current {
    background: #7c3aed;
    border-color: #7c3aed;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

/* ========== LEGEND ========== */
.legend {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(30, 27, 75, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

.legend-box {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.legend-box.unanswered { background: rgba(30, 27, 75, 0.3); }
.legend-box.answered { background: #8b5cf6; border-color: #8b5cf6; }
.legend-box.current { background: #7c3aed; border-color: #7c3aed; }

.btn-finish {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-finish:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* ========== TRANSITION PAGE ========== */
.transition-content {
    text-align: center;
    padding: 60px 20px;
    background: rgba(30, 27, 75, 0.35);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 25px -10px rgba(0, 0, 0, 0.3);
}

.checkmark {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 50%;
    font-size: 3em;
    color: white;
}

.transition-content h2 {
    color: white;
    margin-bottom: 20px;
}

.score-preview {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.next-subtest-info {
    background: rgba(139, 92, 246, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.next-subtest-info h3 {
    color: #a78bfa;
    margin-bottom: 10px;
}

.next-subtest-info p {
    color: rgba(255, 255, 255, 0.7);
}

/* ========== RESULT PAGE ========== */
.result-wrapper {
    max-width: 820px;
    margin: 0 auto;
    padding: 36px 20px 56px;
    animation: resultFadeIn 0.5s ease;
}

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

.result-header {
    position: relative;
    background: rgba(30, 27, 75, 0.4);
    backdrop-filter: blur(16px);
    border-radius: 28px;
    padding: 44px 30px 36px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.4);
    margin-bottom: 28px;
    overflow: hidden;
}

.result-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4, #f59e0b, #06b6d4, #8b5cf6);
    background-size: 200% 100%;
    animation: shimmerBar 4s linear infinite;
}

@keyframes shimmerBar {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 30px;
    letter-spacing: 1.2px;
    margin-bottom: 18px;
}

.result-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: white;
    margin-bottom: 22px;
    line-height: 1.3;
}

.result-title span {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-score-container {
    position: relative;
    width: 190px;
    height: 190px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: conic-gradient(#f59e0b calc(var(--score-pct, 0) * 1%), rgba(30, 27, 75, 0.5) 0);
}

.result-score-container::before {
    content: '';
    position: absolute;
    width: 156px;
    height: 156px;
    border-radius: 50%;
    background: rgba(20, 18, 40, 0.9);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.result-score-container > * {
    position: relative;
    z-index: 1;
}

.result-score-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.result-score-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-score-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.result-message {
    font-size: 1.05rem;
    font-weight: 600;
    color: #a78bfa;
}

.result-level {
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.level-badge {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.level-badge.excellent {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.level-badge.nice {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.level-badge.good {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.level-badge.average {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.level-badge.poor {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

/* ========== STATS GRID ========== */
.result-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.stat-card {
    background: rgba(30, 27, 75, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 20px 10px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(139, 92, 246, 0.2);
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.stat-number {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.2;
    color: white;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 2px;
}

.stat-correct .stat-number { color: #48bb78; }
.stat-wrong .stat-number { color: #f56565; }
.stat-empty .stat-number { color: #a0aec0; }
.stat-total .stat-number { color: #a78bfa; }

.stat-correct { border-top: 3px solid #48bb78; }
.stat-wrong { border-top: 3px solid #f56565; }
.stat-empty { border-top: 3px solid #a0aec0; }
.stat-total { border-top: 3px solid #8b5cf6; }

/* ========== SUBTEST ACCORDION ========== */
.result-detail-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6px 14px;
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
}

.result-detail-title span:last-child {
    color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 500;
    font-size: 0.78rem !important;
}

.result-subtests {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.subtest-accordion {
    background: rgba(30, 27, 75, 0.35);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.25s ease;
}

.subtest-accordion:hover {
    box-shadow: 0 8px 22px rgba(139, 92, 246, 0.15);
}

.subtest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
    gap: 12px;
}

.subtest-header:hover {
    background: rgba(139, 92, 246, 0.08);
}

.subtest-header .subtest-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    flex: 1;
}

.subtest-header .subtest-score {
    font-weight: 800;
    color: white;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    padding: 5px 14px;
    border-radius: 20px;
    min-width: 48px;
    text-align: center;
}

.subtest-score-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.subtest-progress {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.subtest-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #48bb78, #34d399);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.subtest-header .subtest-icon {
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.3s;
    font-size: 0.75rem;
}

.subtest-header.active .subtest-icon {
    transform: rotate(180deg);
    color: #a78bfa;
}

.subtest-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.25s ease;
    padding: 0 20px;
    background: rgba(15, 14, 26, 0.4);
}

.subtest-body.open {
    max-height: 260px;
    padding: 16px 20px 20px;
}

.subtest-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.detail-item {
    text-align: center;
    padding: 12px 6px;
    border-radius: 12px;
    background: rgba(30, 27, 75, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.detail-item .detail-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
}

.detail-item .detail-label {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    margin-top: 2px;
}

.detail-item.benar .detail-number { color: #48bb78; }
.detail-item.salah .detail-number { color: #f56565; }
.detail-item.kosong .detail-number { color: #a0aec0; }

/* ========== RESULT ACTIONS ========== */
.result-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-action {
    padding: 14px 38px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 10px 24px -8px rgba(139, 92, 246, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -8px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: rgba(30, 27, 75, 0.4);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
    transform: translateY(-3px);
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(30, 27, 75, 0.9);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
    color: #a78bfa;
    margin-bottom: 15px;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.modal-warning {
    color: #f56565 !important;
    font-weight: 500;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.btn-cancel, .btn-confirm {
    padding: 12px 30px;
    font-size: 1em;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: rgba(30, 27, 75, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

.btn-cancel:hover {
    background: rgba(139, 92, 246, 0.12);
    color: white;
}

.btn-confirm {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    color: white;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

#timeout-modal .modal-content {
    border-top: 4px solid #f56565;
}

#timeout-modal .modal-content h3 {
    color: #f56565;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .tryout-main {
        flex-direction: column;
    }
    .question-nav-sidebar {
        display: none !important;
    }
    .tryout-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 12px;
    }
    .hero h1 { font-size: 2em; }
    .subtitle { font-size: 1.1em; }
    .subtest-item { flex-direction: column; align-items: flex-start; gap: 5px; }
    .question-section { padding: 15px !important; }
    .navigation-buttons { flex-direction: row; justify-content: space-between; gap: 10px; }
    .btn-nav { padding: 8px 15px; font-size: 12px; }
    .timer { padding: 6px 12px; font-size: 1.1em; }
    .question-content { padding: 12px; font-size: 14px; }
    .checkbox-item { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .result-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .result-score-number { font-size: 3rem; }
    .result-title { font-size: 1.3rem; }
    .subtest-detail-grid { gap: 8px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.5em; }
    .result-stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-number { font-size: 1.4rem; }
    .btn-action { padding: 10px 24px; font-size: 0.85rem; width: 100%; max-width: 240px; }
}