*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #0F1E35; color: #E8EDF4; min-height: 100vh; display: flex; flex-direction: column; }
a { color: #CFB53B; text-decoration: none; }
a:hover { text-decoration: underline; }
.navbar { background: #1B3A6B; padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid #CFB53B; }
.brand-lit { font-size: 22px; font-weight: 800; color: #CFB53B; }
.brand-math { font-size: 22px; font-weight: 800; color: #FFFFFF; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav-links a { color: #FFFFFF; }
.nav-links a:hover { color: #CFB53B; text-decoration: none; }
.nav-email { color: #AAAAAA; font-size: 13px; }
.btn-logout { background: transparent; border: 1px solid #CFB53B; color: #CFB53B !important; padding: 5px 14px; border-radius: 4px; font-size: 13px; }
.btn-logout:hover { background: #CFB53B; color: #1B3A6B !important; }
.container { max-width: 900px; margin: 0 auto; padding: 32px 20px; flex: 1; }
.page-header { margin-bottom: 32px; }
.page-header h1 { font-size: 28px; color: #CFB53B; margin-bottom: 6px; }
.page-header p { color: #AAAAAA; font-size: 14px; }
.auth-box { max-width: 420px; margin: 60px auto; background: #1E3050; border-radius: 12px; padding: 40px; border: 1px solid #2A4070; }
.auth-box h1 { color: #CFB53B; font-size: 24px; margin-bottom: 6px; }
.auth-sub { color: #AAAAAA; font-size: 13px; margin-bottom: 24px; }
.auth-switch { color: #AAAAAA; font-size: 13px; margin-top: 20px; text-align: center; }
.auth-box label { display: block; font-size: 13px; color: #AAAAAA; margin-bottom: 6px; margin-top: 16px; }
.auth-box input { width: 100%; padding: 10px 14px; background: #0F1E35; border: 1px solid #2A4070; border-radius: 6px; color: #E8EDF4; font-size: 14px; }
.auth-box input:focus { outline: none; border-color: #CFB53B; }
.alert { background: #3A1B1B; border: 1px solid #e05c5c; color: #e05c5c; padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; }
.btn-primary { display: block; width: 100%; margin-top: 24px; padding: 12px; background: #CFB53B; color: #1B3A6B; border: none; border-radius: 6px; font-size: 15px; font-weight: 700; cursor: pointer; text-align: center; transition: background 0.2s; }
.btn-primary:hover { background: #E8CC55; text-decoration: none; }
.btn-submit { max-width: 240px; }
.category-section { margin-bottom: 36px; }
.category-title { font-size: 16px; color: #AAAAAA; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; border-bottom: 1px solid #2A4070; padding-bottom: 8px; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.topic-card { background: #1E3050; border: 1px solid #2A4070; border-radius: 10px; padding: 20px; display: block; transition: border-color 0.2s, transform 0.1s; }
.topic-card:hover { border-color: #CFB53B; transform: translateY(-2px); text-decoration: none; }
.topic-name { font-size: 15px; font-weight: 600; color: #E8EDF4; margin-bottom: 10px; }
.topic-score { font-size: 12px; color: #CFB53B; }
.topic-score.untried { color: #555; }
.score-bar { background: #2A4070; border-radius: 4px; height: 6px; margin-top: 6px; overflow: hidden; }
.score-fill { background: #CFB53B; height: 100%; border-radius: 4px; transition: width 0.4s; }
.question-card { background: #1E3050; border: 1px solid #2A4070; border-radius: 10px; padding: 22px; margin-bottom: 18px; }
.question-num { font-size: 12px; color: #CFB53B; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.question-text { font-size: 16px; color: #E8EDF4; margin-bottom: 18px; line-height: 1.5; }
.options { display: flex; flex-direction: column; gap: 10px; }
.option-label { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 10px 14px; border-radius: 6px; border: 1px solid #2A4070; transition: border-color 0.2s; }
.option-label:hover { border-color: #CFB53B; }
.option-label input { accent-color: #CFB53B; }
.option-letter { font-weight: 700; color: #CFB53B; min-width: 20px; }
.option-text { font-size: 14px; color: #E8EDF4; }
.result-header { text-align: center; padding: 32px; background: #1E3050; border-radius: 12px; margin-bottom: 24px; }
.result-score { font-size: 48px; font-weight: 800; color: #CFB53B; }
.result-label { font-size: 18px; color: #AAAAAA; margin-top: 8px; }
.result-card { background: #1E3050; border-left: 4px solid; border-radius: 8px; padding: 18px; margin-bottom: 14px; }
.result-q-num { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.result-q-text { font-size: 14px; color: #E8EDF4; margin-bottom: 10px; }
.result-answer { font-size: 13px; color: #AAAAAA; margin-bottom: 4px; }
.result-explanation { font-size: 13px; color: #7EC8A0; margin-top: 10px; font-style: italic; border-top: 1px solid #2A4070; padding-top: 10px; }
.progress-table-wrap { overflow-x: auto; }
.progress-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.progress-table th { background: #1B3A6B; color: #CFB53B; padding: 12px 16px; text-align: left; }
.progress-table td { padding: 12px 16px; border-bottom: 1px solid #2A4070; }
.progress-table tr:hover td { background: #1E3050; }
.empty-state { color: #AAAAAA; font-size: 14px; text-align: center; padding: 60px 0; }
footer { text-align: center; padding: 20px; font-size: 12px; color: #555; border-top: 1px solid #1E3050; }
@media (max-width: 600px) { .navbar { padding: 12px 16px; } .nav-links { gap: 12px; font-size: 13px; } .nav-email { display: none; } .topic-grid { grid-template-columns: 1fr 1fr; } .container { padding: 20px 14px; } .result-score { font-size: 36px; } }
