@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@600;700&family=Sora:wght@400;500;600&display=swap');

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* WebP Destek */
@supports (background-image: url('data:image/webp;base64,UklGRiYAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEAAUAcJaACdLoB/gAA/v7+/v7+/v7+')) {
    .webp-bg {
        background-image: url('image.webp');
    }
}

/* WebP desteği olmayan tarayıcılar için fallback */
@supports not (background-image: url('data:image/webp;base64,UklGRiYAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEAAUAcJaACdLoB/gAA/v7+/v7+/v7+')) {
    .webp-bg {
        background-image: url('image.jpg');
    }
}

/* Touch-friendly Elements (minimum 44x44px) */
button, a.btn, input[type="button"], input[type="submit"], 
.btn, [role="button"] {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px; /* iOS zoom önlemesi */
}

/* Link'ler için touch target - navbar hariç */
main a, .main-content a, footer a {
    position: relative;
    display: inline-block;
}

main a::before, .main-content a::before, footer a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 44px;
    min-height: 44px;
}

/* Form kontrolleri */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 16px; /* iOS zoom önlemesi */
}

/* Checkbox ve radio buttons */
input[type="checkbox"],
input[type="radio"] {
    min-width: 20px;
    min-height: 20px;
    margin: 4px;
}

/* İlgili label'ler için padding */
label {
    padding: 4px 0;
    display: inline-block;
    cursor: pointer;
}

/* Navbar Styles */
.navbar {
    padding: 0.5rem 1rem;
}

.navbar .nav-link {
    padding: 0.5rem 0.75rem !important;
    min-height: auto;
    min-width: auto;
    font-size: 0.9rem;
}

.navbar .navbar-brand {
    min-height: auto;
    min-width: auto;
    padding: 0.5rem 0;
}

.navbar .dropdown-item {
    min-height: auto;
    padding: 0.5rem 1rem;
}

.navbar .exam-dropdown-menu {
    min-width: 18rem;
    padding: 0.5rem;
}

.navbar .exam-dropdown-menu .dropdown-divider {
    margin: 0.35rem 0;
}

.navbar .exam-dropdown-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    border-radius: 0.75rem;
    padding: 0.6rem 0.75rem;
    white-space: normal;
}

.navbar .exam-dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.08);
}

.navbar .exam-dropdown-item .exam-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background-color: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    font-size: 0.9rem;
}

.navbar .exam-dropdown-item .exam-title {
    display: block;
    font-weight: 600;
    line-height: 1.2;
}

.navbar .exam-dropdown-item .exam-subtitle {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.2;
    margin-top: 2px;
}

.navbar .btn {
    min-height: auto;
    min-width: auto;
    padding: 0.375rem 0.75rem;
}

/* Card click areas */
.card-link, .card button {
    padding: 12px;
}

/* Modal close buttons */
.btn-close {
    width: 44px;
    height: 44px;
    padding: 10px;
}

/* Responsive: İçerik boşluğu ayarlaması */
@media (max-width: 768px) {
    button, .btn, a.btn {
        min-height: 48px;
        min-width: 48px;
        padding: 12px 20px;
    }
    
    input, textarea, select {
        min-height: 48px;
        padding: 12px;
        font-size: 16px;
    }
    
    /* Dokunma bölgeleri arasında minimum 8px boşluk */
    button + button,
    .btn + .btn,
    button + a,
    a + button {
        margin-left: 8px;
    }
}

/* Hover/Focus stiller mobilde */
@media (hover: none) and (pointer: coarse) {
    /* Touch cihazlarda :hover yerine :active kullan */
    button:active, .btn:active,
    a:active,
    input:active {
        opacity: 0.8;
    }
}

/* Accessible focus indicators */
button:focus, .btn:focus, a:focus,
input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Study Materials Styles */
.material-item {
    transition: all 0.3s ease;
}

.material-item:hover {
    transform: translateY(-2px);
}

.material-item .card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.material-item:hover .card {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.list-view .material-item {
    width: 100%;
    max-width: none;
}

.list-view .card {
    margin-bottom: 1rem;
}

.list-view .card-body {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.list-view .card-title {
    margin-bottom: 0.25rem;
}

.material-content img {
    max-width: 100%;
    height: auto;
}

.material-sidebar .card {
    border: 1px solid #dee2e6;
}

/* Chart Container Optimization */
.chart-container {
    position: relative;
    margin: auto;
    height: 250px !important;
    width: 100% !important;
    overflow: hidden;
}

.chart-container canvas {
    max-height: 250px !important;
    width: 100% !important;
    height: auto !important;
}

@media (max-width: 768px) {
    .chart-container {
        height: 200px !important;
    }
    
    .chart-container canvas {
        max-height: 200px !important;
    }
}

/* Dashboard Widget Optimization */
.dashboard-widget {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.dashboard-widget .widget-title {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* Performance optimizations */
.stats-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
}

.stats-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stats-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Filter Cards */
.filter-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Material Type Badges */
.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-success {
    background-color: #198754 !important;
}

.badge.bg-primary {
    background-color: #0d6efd !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

/* Responsive improvements */
@media (max-width: 576px) {
    .material-item {
        margin-bottom: 1rem;
    }
    
    .dashboard-widget {
        padding: 1rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section-small {
        padding: 40px 0;
    }
}

.hero-section-small {
    position: relative;
}

.hero-section-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-section-small .container {
    position: relative;
    z-index: 2;
}

/* Cards */
.feature-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card .card-body {
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Blog Styles */
.blog-post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

.blog-post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.blog-post-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .card-img-top {
    transform: scale(1.05);
}

.badge-category {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

/* Exam Interface */
.exam-container {
    max-width: 1000px;
    margin: 0 auto;
}

.question-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    background: white;
}

.question-number {
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 1rem;
}

.option-item {
    margin: 0.5rem 0;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-item:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-color);
}

.option-item.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.option-item.correct {
    background-color: var(--success-color) !important;
    border-color: var(--success-color) !important;
    color: white;
}

.option-item.incorrect {
    background-color: var(--danger-color) !important;
    border-color: var(--danger-color) !important;
    color: white;
}

/* Timer */
.exam-timer {
    position: fixed;
    top: 90px;
    right: 20px;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.timer-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.timer-warning {
    color: var(--warning-color) !important;
}

.timer-danger {
    color: var(--danger-color) !important;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 2rem;
}

.progress {
    height: 10px;
    border-radius: 5px;
}

/* Statistics */
.stats-card {
    background: linear-gradient(45deg, var(--primary-color), var(--info-color));
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

.stats-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Dashboard */
.dashboard-widget {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Forms */
.form-floating {
    margin-bottom: 1rem;
}

.btn-custom {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Enhanced Buttons */
.btn-custom-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--info-color));
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-custom-gradient:hover {
    background: linear-gradient(45deg, var(--info-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Leaderboard */
.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rank-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

.rank-1 { background: #ffd700; color: #333; }
.rank-2 { background: #c0c0c0; color: #333; }
.rank-3 { background: #cd7f32; color: white; }
.rank-other { background: var(--light-color); color: var(--dark-color); }

/* Step by Step Process */
.step-number {
    font-size: 1.5rem;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.process-step {
    position: relative;
    padding: 2rem 0;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    transform: translateY(-50%);
}

/* Privacy and Terms Styles */
.terms-nav .nav-link {
    color: var(--dark-color);
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.terms-nav .nav-link:hover,
.terms-nav .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

/* Table Enhancements */
.table-hover tbody tr:hover td {
    background-color: rgba(13, 110, 253, 0.05);
}

.table-bordered th,
.table-bordered td {
    border-color: #dee2e6;
}

/* Testimonial Cards */
.testimonial-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-left-color: var(--success-color);
    transform: translateX(5px);
}

.testimonial-card .card-body {
    position: relative;
}

.testimonial-card .card-body::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: -10px;
    opacity: 0.2;
    font-family: Georgia, serif;
}

/* Additional Styles for Rich Content Pages */

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #ffffff;
        --card-bg: #2d2d2d;
    }
    
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    .card {
        background-color: var(--card-bg);
        border-color: #404040;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }
    
    .hero-section,
    .hero-section-small {
        background: none !important;
        color: #000 !important;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}

/* Focus indicators */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .exam-timer {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 1rem;
    }
    
    .question-card {
        padding: 1rem;
    }
    
    .option-item {
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .feature-card .card-body {
        padding: 1.5rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

.pulse {
    animation: pulse 2s infinite;
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Auth Pages */
.auth-page {
    font-family: 'Sora', sans-serif;
    color: #0f172a;
    background: #f8fafc;
}

.auth-page h1,
.auth-page h2,
.auth-page h3,
.auth-page h4,
.auth-page h5,
.auth-page h6 {
    font-family: 'Bricolage Grotesque', sans-serif;
    letter-spacing: -0.01em;
}

.auth-section {
    --auth-primary: #3b82f6;
    --auth-secondary: #0ea5e9;
    --auth-accent: #f97316;
    --auth-ink: #0f172a;
    --auth-muted: #475569;
    --auth-soft: #eef2ff;
    position: relative;
    padding: 5.5rem 0 4.5rem;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), transparent 55%),
        radial-gradient(circle at 85% 10%, rgba(14, 165, 233, 0.18), transparent 45%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.auth-section::before {
    content: '';
    position: absolute;
    inset: -40% -10% auto auto;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.22), transparent 65%);
    opacity: 0.8;
    pointer-events: none;
    animation: auth-float 14s ease-in-out infinite;
}

.auth-section::after {
    content: '';
    position: absolute;
    inset: auto auto -25% -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22), transparent 60%);
    opacity: 0.7;
    pointer-events: none;
    animation: auth-float 18s ease-in-out infinite reverse;
}

.auth-shell {
    position: relative;
    z-index: 1;
}

.auth-side {
    background: linear-gradient(135deg, #111827 0%, #4338ca 45%, #0ea5e9 100%);
    color: #f8fafc;
    border-radius: 28px;
    padding: 2.8rem 2.6rem;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    height: 100%;
    animation: auth-reveal 0.8s ease both;
}

.auth-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.auth-title {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-lead {
    font-size: 1rem;
    color: rgba(248, 250, 252, 0.85);
    margin-bottom: 0;
}

.auth-highlights {
    display: grid;
    gap: 1rem;
}

.auth-highlight {
    display: flex;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.auth-highlight i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.auth-highlight h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.auth-highlight p {
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.75);
    margin-bottom: 0;
}

.auth-side-footer {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: auto;
    font-size: 0.95rem;
}

.auth-side-footer a {
    color: #fbbf24;
    font-weight: 600;
    text-decoration: none;
}

.auth-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    padding: 2.6rem;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.7);
    animation: auth-reveal 0.8s ease 0.1s both;
}

.auth-page .alert-container {
    margin-bottom: 1rem;
}

.auth-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-card-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--auth-ink);
}

.auth-eyebrow {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: var(--auth-secondary);
    margin-bottom: 0.4rem;
}

.auth-subtitle {
    color: var(--auth-muted);
    margin-bottom: 0;
}

.auth-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
    margin-top: 0.9rem;
    color: var(--auth-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.auth-meta i {
    color: var(--auth-primary);
    margin-right: 0.35rem;
}

.auth-badge {
    background: var(--auth-soft);
    color: var(--auth-primary);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

.auth-form .form-floating {
    margin-bottom: 0;
}

.auth-group {
    border: none;
    padding: 0;
    margin: 0 0 1.6rem;
}

.auth-group legend {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--auth-ink);
    margin-bottom: 0.4rem;
}

.auth-group-sub {
    color: var(--auth-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.auth-field {
    position: relative;
}

.auth-field .form-control {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    padding-left: 3rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.auth-field label {
    padding-left: 3rem;
    color: var(--auth-muted);
}

.auth-field .auth-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 4;
    pointer-events: none;
}

.auth-field .form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.auth-field .form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.12);
}

.auth-field .form-control.is-valid {
    border-color: #22c55e;
    box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.12);
}

.auth-password .form-control {
    padding-right: 3.5rem;
}

.auth-toggle {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: var(--auth-soft);
    color: var(--auth-primary);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.auth-toggle:hover {
    background: rgba(59, 130, 246, 0.2);
}

.auth-toggle:focus-visible {
    outline: 2px solid var(--auth-primary);
    outline-offset: 2px;
}

.auth-help {
    color: var(--auth-muted);
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

.auth-strength {
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1rem 1.2rem;
    display: grid;
    gap: 0.75rem;
}

.auth-strength-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--auth-muted);
}

.auth-strength-header strong {
    font-weight: 700;
    color: var(--auth-ink);
}

.auth-strength-meter {
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
    overflow: hidden;
}

.auth-strength-bar {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #94a3b8;
    transition: width 0.3s ease, background 0.3s ease;
}

.auth-strength-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.auth-strength-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 0.75rem;
    color: var(--auth-muted);
    font-weight: 600;
}

.auth-strength-item::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.6);
}

.auth-strength-item.is-met {
    color: #16a34a;
    border-color: rgba(22, 163, 74, 0.25);
}

.auth-strength-item.is-met::before {
    background: #22c55e;
}

.auth-feedback {
    min-height: 18px;
    margin-top: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #ef4444;
}

.auth-feedback.is-error {
    color: #ef4444;
}

.auth-feedback.is-valid {
    color: #16a34a;
}

.auth-check {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.auth-check .form-check-input {
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    margin-top: 0.2rem;
}

.auth-check .form-check-input:checked {
    background-color: var(--auth-primary);
    border-color: var(--auth-primary);
}

.auth-check .form-check-input.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 0.15rem rgba(239, 68, 68, 0.12);
}

.auth-check label {
    color: var(--auth-muted);
}

.auth-legal {
    margin-top: 0.5rem;
    padding: 1rem 0;
    border-top: 1px dashed rgba(148, 163, 184, 0.3);
    display: grid;
    gap: 0.6rem;
}

.auth-legal-note {
    font-size: 0.82rem;
    color: var(--auth-muted);
}

.auth-submit {
    background: linear-gradient(135deg, var(--auth-primary), #8b5cf6);
    border: none;
    border-radius: 16px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.85rem 1.2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.25);
}

.auth-submit:focus-visible {
    outline: 2px solid var(--auth-primary);
    outline-offset: 2px;
}

.auth-trust {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: center;
    color: var(--auth-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.auth-trust i {
    color: var(--auth-primary);
}

.auth-alt {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--auth-muted);
}

.auth-alt a {
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none;
}

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

@keyframes auth-reveal {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
    .auth-section {
        padding: 4.5rem 0 3.5rem;
    }

    .auth-card,
    .auth-side {
        padding: 2.1rem;
    }

    .auth-meta {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-section::before,
    .auth-section::after,
    .auth-card,
    .auth-side {
        animation: none;
    }
}

/* Document Pages (Privacy, Terms, FAQ) */
.doc-page {
    --doc-ink: #0f172a;
    --doc-muted: #475569;
    --doc-primary: #0ea5e9;
    --doc-accent: #f97316;
    --doc-soft: #f8fafc;
    --doc-border: rgba(148, 163, 184, 0.25);
    font-family: 'Sora', sans-serif;
    color: var(--doc-ink);
    background: #ffffff;
}

.doc-page h1,
.doc-page h2,
.doc-page h3,
.doc-page h4,
.doc-page h5,
.doc-page h6 {
    font-family: 'Bricolage Grotesque', sans-serif;
    letter-spacing: -0.01em;
}

.doc-page .text-muted {
    color: var(--doc-muted) !important;
}

.doc-hero {
    position: relative;
    padding: 5.5rem 0 4.5rem;
    background:
        radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.25), transparent 50%),
        radial-gradient(circle at 85% 10%, rgba(249, 115, 22, 0.2), transparent 45%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    overflow: hidden;
}

.doc-hero::before,
.doc-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.06);
    opacity: 0.7;
    pointer-events: none;
}

.doc-hero::before {
    width: 280px;
    height: 280px;
    top: -120px;
    right: 10%;
}

.doc-hero::after {
    width: 220px;
    height: 220px;
    bottom: -120px;
    left: 12%;
}

.doc-hero__card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--doc-border);
    border-radius: 28px;
    padding: 2.6rem;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(8px);
    animation: doc-rise 0.6s ease both;
}

.doc-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    color: var(--doc-primary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.doc-hero__title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.doc-hero__lead {
    color: var(--doc-muted);
    font-size: 1.1rem;
    margin-bottom: 1.4rem;
}

.doc-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.9rem;
    border-radius: 12px;
    background: var(--doc-soft);
    border: 1px solid var(--doc-border);
    color: var(--doc-ink);
    font-size: 0.9rem;
    font-weight: 500;
}

.doc-hero__grid {
    position: relative;
    z-index: 1;
}

.doc-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.25rem;
}

.doc-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: var(--doc-ink);
    font-size: 0.78rem;
    font-weight: 600;
}

.doc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.doc-hero__actions .btn {
    border-radius: 999px;
    font-weight: 600;
}

.doc-hero__aside {
    background: #ffffff;
    border: 1px solid var(--doc-border);
    border-radius: 26px;
    padding: 2rem;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.12);
    position: relative;
    overflow: hidden;
    animation: doc-rise 0.6s ease 0.2s both;
}

.doc-hero__aside::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.12), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.12), transparent 50%);
    pointer-events: none;
}

.doc-hero__aside > * {
    position: relative;
    z-index: 1;
}

.doc-hero__aside-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--doc-muted);
    margin-bottom: 1rem;
}

.doc-hero__stat-grid {
    display: grid;
    gap: 0.75rem;
}

.doc-hero__stat {
    background: #ffffff;
    border: 1px solid var(--doc-border);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    gap: 0.75rem;
}

.doc-hero__stat span {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--doc-muted);
}

.doc-hero__stat strong {
    color: var(--doc-ink);
    font-size: 0.95rem;
}

.doc-hero__stat a {
    color: inherit;
    text-decoration: none;
}

.doc-hero__stat a:hover {
    color: var(--doc-primary);
}

.doc-hero__aside-note {
    margin-top: 1.25rem;
    color: var(--doc-muted);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.doc-breadcrumb {
    background: #ffffff;
    border-bottom: 1px solid var(--doc-border);
}

.doc-breadcrumb .breadcrumb {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.doc-breadcrumb a {
    color: var(--doc-muted);
    text-decoration: none;
}

.doc-breadcrumb a:hover {
    color: var(--doc-primary);
}

.doc-breadcrumb a:focus-visible {
    outline: 2px solid var(--doc-primary);
    outline-offset: 2px;
    border-radius: 6px;
}

.doc-body {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.doc-nav {
    position: sticky;
    top: 110px;
    background: #ffffff;
    border: 1px solid var(--doc-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    animation: doc-rise 0.6s ease 0.1s both;
}

.doc-nav__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--doc-muted);
    margin-bottom: 1rem;
}

.doc-nav__link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    color: var(--doc-ink);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.doc-nav__link::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--doc-border);
}

.doc-nav__link:hover {
    background: rgba(14, 165, 233, 0.12);
    color: var(--doc-primary);
}

.doc-nav__link:focus-visible {
    outline: 2px solid var(--doc-primary);
    outline-offset: 2px;
}

.doc-summary {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 20px;
    padding: 1.6rem;
    margin-bottom: 2rem;
}

.doc-summary h3 {
    font-size: 1.15rem;
    margin-bottom: 0.9rem;
}

.doc-summary__list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--doc-muted);
}

.doc-summary__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.doc-summary__list li i {
    color: var(--doc-primary);
    margin-top: 0.2rem;
}

.doc-section {
    background: #ffffff;
    border: 1px solid var(--doc-border);
    border-radius: 24px;
    padding: 2.2rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
    margin-bottom: 2rem;
    scroll-margin-top: 120px;
    animation: doc-rise 0.6s ease 0.15s both;
}

.doc-section:last-child {
    margin-bottom: 0;
}

.doc-section h2 {
    font-size: 1.55rem;
    margin-bottom: 1rem;
}

.doc-section p {
    color: var(--doc-muted);
}

.doc-section .lead {
    color: var(--doc-ink);
    font-weight: 500;
}

.doc-section a {
    color: var(--doc-primary);
    text-decoration: none;
    font-weight: 600;
}

.doc-section a:hover {
    color: var(--doc-accent);
}

.doc-section ul {
    color: var(--doc-muted);
    padding-left: 1.2rem;
}

.doc-callout {
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-left: 4px solid var(--doc-primary);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    margin: 1.6rem 0;
}

.doc-callout--accent {
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.25);
    border-left-color: var(--doc-accent);
}

.doc-callout--warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.25);
    border-left-color: #f59e0b;
}

.doc-callout--success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.25);
    border-left-color: #22c55e;
}

.doc-info-card {
    background: var(--doc-soft);
    border: 1px dashed var(--doc-border);
    border-radius: 18px;
    padding: 1.4rem;
    height: 100%;
}

.doc-data-card {
    --card-accent: #0ea5e9;
    background: #ffffff;
    border: 1px solid var(--doc-border);
    border-radius: 22px;
    padding: 1.6rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    height: 100%;
}

.doc-data-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.doc-data-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--card-accent), rgba(255, 255, 255, 0.2));
    color: white;
}

.doc-data-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--doc-muted);
}

.doc-data-card__list li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.5rem;
}

.doc-data-card__list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--card-accent);
}

.doc-accordion .accordion-item {
    border: 1px solid var(--doc-border);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.doc-accordion .accordion-button {
    font-weight: 600;
    background: #ffffff;
    color: var(--doc-ink);
}

.doc-accordion .accordion-button:not(.collapsed) {
    background: rgba(14, 165, 233, 0.1);
    color: var(--doc-ink);
    box-shadow: none;
}

.doc-accordion .accordion-button:focus-visible {
    outline: 2px solid var(--doc-primary);
    outline-offset: 2px;
}

.doc-accordion .accordion-body {
    color: var(--doc-muted);
}

.doc-security-card {
    background: var(--doc-soft);
    border: 1px solid var(--doc-border);
    border-radius: 20px;
    padding: 1.4rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    height: 100%;
}

.doc-security-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(14, 165, 233, 0.15);
    color: var(--doc-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.doc-right-card {
    --card-accent: #0ea5e9;
    background: #ffffff;
    border: 1px solid var(--doc-border);
    border-radius: 18px;
    padding: 1.2rem;
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    height: 100%;
}

.doc-right-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.04);
    color: var(--card-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.doc-right-card.right-success { --card-accent: #22c55e; }
.doc-right-card.right-primary { --card-accent: #2563eb; }
.doc-right-card.right-danger { --card-accent: #ef4444; }
.doc-right-card.right-warning { --card-accent: #f59e0b; }

.doc-contact-card {
    background: #ffffff;
    border: 1px solid var(--doc-border);
    border-radius: 18px;
    padding: 1.4rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    height: 100%;
}

.doc-contact-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--doc-muted);
    margin-bottom: 0.5rem;
}

.doc-contact-item i {
    color: var(--doc-primary);
}

.doc-page .table {
    border-color: var(--doc-border);
}

.doc-page .table th,
.doc-page .table td {
    border-color: var(--doc-border);
}

.doc-page .table thead th {
    background: #0f172a;
    color: #ffffff;
}

.doc-page .list-group-item {
    border-color: var(--doc-border);
    color: var(--doc-muted);
    background: transparent;
}

.faq-search {
    background: #ffffff;
    border: 1px solid var(--doc-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.faq-search .form-control {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.faq-search .form-control:focus {
    border-color: var(--doc-primary);
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.18);
}

.faq-search .btn {
    border-radius: 12px;
    font-weight: 600;
}

.faq-category {
    background: #ffffff;
    border: 1px solid var(--doc-border);
    border-radius: 20px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--doc-ink);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    height: 100%;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
    color: var(--doc-primary);
}

.faq-category:focus-visible {
    outline: 2px solid var(--doc-primary);
    outline-offset: 3px;
}

.faq-category i {
    font-size: 1.6rem;
    color: var(--doc-primary);
}

.faq-category small {
    color: var(--doc-muted);
}

@keyframes doc-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
    .doc-nav {
        position: static;
    }
}

@media (max-width: 768px) {
    .doc-hero__card {
        padding: 2rem;
    }
    .doc-section {
        padding: 1.8rem;
    }
    .doc-nav {
        margin-bottom: 1.5rem;
    }
    .doc-hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .doc-hero__card,
    .doc-nav,
    .doc-section {
        animation: none;
    }
}

/* Profile page */
.profile-page {
    --profile-primary: #667eea;
    --profile-secondary: #764ba2;
    --profile-accent: #00b894;
    --profile-warm: #fdcb6e;
    --profile-ink: #1f2433;
    --profile-soft: #f6f7ff;
    color: var(--profile-ink);
}

.profile-page .profile-hero {
    padding: 90px 0 110px;
    background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-secondary) 55%, #3f2b96 100%);
    position: relative;
    overflow: hidden;
}

.profile-page .profile-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 45%);
}

.profile-page .profile-hero .container {
    position: relative;
    z-index: 2;
}

.profile-page .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    margin-bottom: 16px;
}

.profile-page .profile-hero-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 28px;
    padding: 28px;
    backdrop-filter: blur(18px);
    box-shadow: 0 25px 60px rgba(12, 18, 60, 0.35);
}

.profile-page .profile-hero-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.profile-page .profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #2b2d42;
    box-shadow: 0 12px 25px rgba(255, 154, 158, 0.35);
}

.profile-page .profile-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.profile-page .profile-hero-metrics .metric {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 12px;
    text-align: center;
}

.profile-page .profile-hero-metrics span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
}

.profile-page .profile-hero-metrics strong {
    font-size: 1.2rem;
    font-weight: 700;
}

.profile-page .profile-hero-footer {
    margin-top: 16px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.profile-page .profile-breadcrumb {
    background: var(--profile-soft);
    padding: 16px 0;
}

.profile-page .profile-breadcrumb .breadcrumb-item a {
    color: var(--profile-secondary);
    text-decoration: none;
    font-weight: 600;
}

.profile-page .profile-stats {
    padding: 30px 0 10px;
}

.profile-page .stat-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(19, 23, 64, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-page .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    border-radius: 2px;
}

.profile-page .stat-card.purple::before { background: linear-gradient(90deg, #667eea, #764ba2); }
.profile-page .stat-card.green::before { background: linear-gradient(90deg, #00b894, #00cec9); }
.profile-page .stat-card.orange::before { background: linear-gradient(90deg, #fdcb6e, #e17055); }
.profile-page .stat-card.blue::before { background: linear-gradient(90deg, #74b9ff, #0984e3); }

.profile-page .stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(19, 23, 64, 0.15);
}

.profile-page .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    font-size: 1.6rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.profile-page .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-page .stat-label {
    margin-bottom: 0;
    color: #6c757d;
}

.profile-page .profile-card {
    border: none;
    border-radius: 26px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.profile-page .profile-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 20px 28px;
}

.profile-page .profile-form .form-control {
    border: 2px solid #eef1ff;
    border-radius: 14px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.profile-page .profile-form .form-control:focus {
    border-color: var(--profile-primary);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.2);
}

.profile-page .btn-gradient {
    background: linear-gradient(135deg, var(--profile-primary), var(--profile-secondary));
    border: none;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-page .btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.35);
    color: white;
}

.profile-page .btn-gradient:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.profile-page .side-card {
    border: none;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.profile-page .side-card-header {
    background: linear-gradient(135deg, #e9eefc, #f5f6ff);
    border: none;
    padding: 18px 22px;
    color: var(--profile-ink);
}

.profile-page .side-card-header.warning {
    background: linear-gradient(135deg, #fff4df, #ffe8c7);
}

.profile-page .alert {
    border-radius: 14px;
    border-left: 4px solid;
}

.profile-page .alert-success {
    border-left-color: #00b894;
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.12), rgba(0, 206, 201, 0.12));
}

.profile-page .alert-danger {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.12), rgba(255, 118, 117, 0.12));
}

.profile-page a:focus-visible,
.profile-page button:focus-visible,
.profile-page input:focus-visible,
.profile-page textarea:focus-visible,
.profile-page select:focus-visible {
    outline: 3px solid rgba(102, 126, 234, 0.4);
    outline-offset: 2px;
}

@media (max-width: 992px) {
    .profile-page .profile-hero { padding: 70px 0 80px; }
    .profile-page .profile-hero-card { margin-top: 10px; }
}

@media (max-width: 768px) {
    .profile-page .profile-hero-metrics { grid-template-columns: 1fr; }
    .profile-page .stat-card { padding: 22px; }
    .profile-page .stat-number { font-size: 2rem; }
}

/* Settings page */
.settings-page {
    --settings-primary: #fd7e14;
    --settings-secondary: #ffb347;
    --settings-accent: #1abc9c;
    --settings-violet: #6f42c1;
    --settings-ink: #1f2433;
    --settings-soft: #f8f7ff;
    color: var(--settings-ink);
}

.settings-page .settings-hero {
    padding: 90px 0 110px;
    background: linear-gradient(135deg, #ff9a3d 0%, #ff7e5f 45%, #f857a6 100%);
    position: relative;
    overflow: hidden;
}

.settings-page .settings-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
}

.settings-page .settings-hero .container {
    position: relative;
    z-index: 2;
}

.settings-page .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    margin-bottom: 16px;
}

.settings-page .settings-hero-card {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 24px;
    backdrop-filter: blur(18px);
    box-shadow: 0 25px 60px rgba(45, 23, 23, 0.25);
    display: grid;
    gap: 16px;
}

.settings-page .hero-card-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.settings-page .hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
}

.settings-page .settings-breadcrumb {
    background: var(--settings-soft);
    padding: 16px 0;
}

.settings-page .settings-breadcrumb .breadcrumb-item a {
    color: #f857a6;
    text-decoration: none;
    font-weight: 600;
}

.settings-page .settings-tabs {
    padding: 16px 0 10px;
}

.settings-page .settings-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.settings-page .tab-pill {
    padding: 10px 18px;
    border-radius: 999px;
    background: white;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    text-decoration: none;
    color: var(--settings-ink);
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.settings-page .tab-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    color: var(--settings-ink);
}

.settings-page .tab-pill.danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.settings-page .settings-highlights {
    padding: 20px 0 10px;
}

.settings-page .highlight-card {
    background: white;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
    height: 100%;
}

.settings-page .highlight-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 126, 95, 0.15), rgba(248, 87, 166, 0.15));
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.settings-page .settings-card {
    background: white;
    border-radius: 26px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
}

.settings-page .settings-card-header {
    padding: 22px 26px;
    background: linear-gradient(135deg, rgba(255, 154, 61, 0.12), rgba(255, 126, 95, 0.12));
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.settings-page .settings-card-header.accent {
    background: linear-gradient(135deg, rgba(26, 188, 156, 0.16), rgba(52, 152, 219, 0.12));
}

.settings-page .settings-card-header.violet {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.15), rgba(232, 62, 140, 0.12));
}

.settings-page .settings-card-header.danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(255, 118, 117, 0.12));
}

.settings-page .settings-card-body {
    padding: 26px;
}

.settings-page .settings-form .form-control {
    border: 2px solid #eef1ff;
    border-radius: 14px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.settings-page .settings-form .form-control:focus {
    border-color: #ff7e5f;
    box-shadow: 0 0 0 0.2rem rgba(255, 126, 95, 0.2);
}

.settings-page .settings-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #f7f8ff;
    margin-bottom: 16px;
}

.settings-page .toggle-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.settings-page .toggle-text {
    color: #6c757d;
    font-size: 0.9rem;
}

.settings-page .form-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
}

.settings-page .btn-gradient {
    background: linear-gradient(135deg, #ff9a3d, #ff7e5f);
    border: none;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.settings-page .btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 126, 95, 0.35);
    color: white;
}

.settings-page .btn-sky {
    background: linear-gradient(135deg, #36d1dc, #5b86e5);
    border: none;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.settings-page .btn-sky:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(91, 134, 229, 0.35);
    color: white;
}

.settings-page .btn-violet {
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
    border: none;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.settings-page .btn-violet:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(111, 66, 193, 0.35);
    color: white;
}

.settings-page .btn-sky:disabled,
.settings-page .btn-violet:disabled,
.settings-page .btn-gradient:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.settings-page .danger-panel {
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(255, 118, 117, 0.1));
    border-left: 4px solid #dc3545;
    margin-bottom: 20px;
}

.settings-page .settings-side-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.settings-page .settings-side-header {
    padding: 18px 22px;
    background: linear-gradient(135deg, #f5f6ff, #fff);
}

.settings-page .settings-side-body {
    padding: 22px;
}

.settings-page .danger-modal {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(255, 118, 117, 0.1));
}

.settings-page a:focus-visible,
.settings-page button:focus-visible,
.settings-page input:focus-visible,
.settings-page textarea:focus-visible,
.settings-page select:focus-visible {
    outline: 3px solid rgba(248, 87, 166, 0.4);
    outline-offset: 2px;
}

@media (max-width: 992px) {
    .settings-page .settings-hero { padding: 70px 0 80px; }
}

@media (max-width: 768px) {
    .settings-page .settings-tab-list { justify-content: center; }
    .settings-page .settings-toggle { flex-direction: column; align-items: flex-start; }
}

/* Exam results page */
.results-page {
    --results-primary: #1f6feb;
    --results-secondary: #00b894;
    --results-soft: #f4f8ff;
    --results-ink: #1f2433;
    color: var(--results-ink);
}

.results-page .results-hero {
    padding: 90px 0 110px;
    background: linear-gradient(135deg, #1f6feb 0%, #00b894 100%);
    position: relative;
    overflow: hidden;
}

.results-page .results-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 45%);
}

.results-page .results-hero .container {
    position: relative;
    z-index: 2;
}

.results-page .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    margin-bottom: 16px;
}

.results-page .results-hero-card {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 26px;
    padding: 26px;
    backdrop-filter: blur(18px);
    box-shadow: 0 25px 60px rgba(9, 28, 45, 0.3);
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.results-page .latest-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 16px;
    opacity: 0.9;
}

.results-page .latest-date {
    font-weight: 600;
}

.results-page .latest-score {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.results-page .latest-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    text-align: center;
    font-size: 0.9rem;
}

.results-page .latest-details span {
    display: block;
    opacity: 0.8;
}

.results-page .latest-details strong {
    font-size: 1.1rem;
}

.results-page .latest-footer {
    margin-top: 16px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.results-page .empty-latest {
    text-align: center;
}

.results-page .empty-latest .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.results-page .results-breadcrumb {
    background: var(--results-soft);
    padding: 16px 0;
}

.results-page .results-breadcrumb .breadcrumb-item a {
    color: #1f6feb;
    text-decoration: none;
    font-weight: 600;
}

.results-page .results-stats {
    padding: 30px 0 10px;
}

.results-page .stat-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.results-page .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    border-radius: 2px;
}

.results-page .stat-card.blue::before { background: linear-gradient(90deg, #1f6feb, #5b86e5); }
.results-page .stat-card.green::before { background: linear-gradient(90deg, #00b894, #00cec9); }
.results-page .stat-card.orange::before { background: linear-gradient(90deg, #fdcb6e, #e17055); }
.results-page .stat-card.purple::before { background: linear-gradient(90deg, #6c5ce7, #a29bfe); }

.results-page .stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

.results-page .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    font-size: 1.6rem;
    background: linear-gradient(135deg, rgba(31, 111, 235, 0.1), rgba(0, 184, 148, 0.1));
}

.results-page .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1f6feb, #00b894);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-page .stat-label {
    margin-bottom: 0;
    color: #6c757d;
}

.results-page .results-insights {
    padding: 10px 0 20px;
}

.results-page .insight-card {
    background: white;
    border-radius: 26px;
    padding: 26px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    height: 100%;
}

.results-page .insight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.results-page .insight-bars {
    display: grid;
    gap: 14px;
}

.results-page .insight-row {
    display: grid;
    grid-template-columns: 140px 1fr 70px;
    align-items: center;
    gap: 14px;
    font-weight: 600;
}

.results-page .progress-track {
    height: 10px;
    background: #eef3ff;
    border-radius: 999px;
    overflow: hidden;
}

.results-page .progress-fill {
    height: 100%;
    border-radius: 999px;
}

.results-page .progress-fill.average {
    background: linear-gradient(90deg, #1f6feb, #5b86e5);
}

.results-page .progress-fill.best {
    background: linear-gradient(90deg, #00b894, #00cec9);
}

.results-page .trend-card {
    display: grid;
    gap: 16px;
}

.results-page .trend-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.results-page .trend-range {
    font-weight: 700;
    color: #1f6feb;
}

.results-page .trend-chart {
    background: #f5f8ff;
    border-radius: 18px;
    padding: 16px;
    display: grid;
    place-items: center;
    min-height: 110px;
}

.results-page .trend-line {
    fill: none;
    stroke: #1f6feb;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.results-page .trend-dot {
    fill: #00b894;
    stroke: white;
    stroke-width: 2;
}

.results-page .trend-empty {
    color: #6c757d;
    font-weight: 600;
}

.results-page .trend-metrics {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-weight: 600;
}

.results-page .trend-metrics span {
    display: block;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 4px;
}

.results-page .trend-delta.delta-up strong { color: #00b894; }
.results-page .trend-delta.delta-down strong { color: #e74c3c; }
.results-page .trend-delta.delta-neutral strong { color: #6c757d; }

.results-page .trend-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #6c757d;
    font-size: 0.9rem;
}

.results-page .results-table-card {
    background: white;
    border-radius: 26px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.results-page .results-table-header {
    padding: 22px 26px;
    background: linear-gradient(135deg, rgba(31, 111, 235, 0.08), rgba(0, 184, 148, 0.08));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.results-page .results-filter-bar {
    padding: 16px 26px;
    border-bottom: 1px solid #eef1f7;
    background: #f9fbff;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}

.results-page .results-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.results-page .filter-btn {
    border: none;
    padding: 8px 14px;
    border-radius: 999px;
    background: white;
    font-weight: 600;
    color: #1f2433;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.results-page .filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.results-page .filter-btn.active {
    background: linear-gradient(135deg, #1f6feb, #00b894);
    color: white;
}

.results-page .filter-count {
    margin-left: 6px;
    font-weight: 700;
}

.results-page .filter-meta {
    color: #6c757d;
    font-weight: 600;
}

.results-page .results-table-body {
    padding: 20px 26px 26px;
}

.results-page .results-table thead th {
    font-weight: 700;
    color: #495057;
    border-bottom: 1px solid #eef1f7;
}

.results-page .results-table tbody tr:hover {
    background: #f7faff;
}

.results-page .exam-type {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
}

.results-page .exam-type.type-tyt { background: rgba(31, 111, 235, 0.12); color: #1f6feb; }
.results-page .exam-type.type-ayt { background: rgba(0, 184, 148, 0.12); color: #00b894; }
.results-page .exam-type.type-practice { background: rgba(253, 203, 110, 0.2); color: #e17055; }
.results-page .exam-type.type-timed { background: rgba(108, 92, 231, 0.15); color: #6c5ce7; }
.results-page .exam-type.type-default { background: rgba(108, 117, 125, 0.12); color: #6c757d; }

.results-page .score-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
}

.results-page .score-pill.score-high { background: rgba(0, 184, 148, 0.15); color: #00b894; }
.results-page .score-pill.score-mid { background: rgba(253, 203, 110, 0.2); color: #e17055; }
.results-page .score-pill.score-low { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }

.results-page .latest-score.score-high { color: #2ecc71; }
.results-page .latest-score.score-mid { color: #f39c12; }
.results-page .latest-score.score-low { color: #e74c3c; }

.results-page .empty-state {
    padding: 40px 0;
}

.results-page .empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.results-page .filter-empty {
    text-align: center;
    padding: 32px 0 10px;
}

.results-page .filter-empty .empty-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.results-page a:focus-visible,
.results-page button:focus-visible,
.results-page input:focus-visible,
.results-page textarea:focus-visible,
.results-page select:focus-visible {
    outline: 3px solid rgba(31, 111, 235, 0.4);
    outline-offset: 2px;
}

@media (max-width: 992px) {
    .results-page .results-hero { padding: 70px 0 80px; }
}

@media (max-width: 768px) {
    .results-page .latest-details { grid-template-columns: 1fr; }
    .results-page .insight-row {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .results-page .trend-metrics {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-page *,
    .settings-page *,
    .results-page * {
        animation: none !important;
        transition: none !important;
    }
}

/* Exam start page */
.exam-start-page {
    --exam-accent: #667eea;
}

.exam-start-page .exam-card {
    border: none;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.exam-start-page .exam-header {
    background: linear-gradient(135deg, var(--exam-accent), rgba(255, 255, 255, 0.12));
    color: white;
    padding: 40px;
}

.exam-start-page .info-box {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.exam-start-page .info-box i {
    color: var(--exam-accent);
}

.exam-start-page .info-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

.exam-start-page .rules-box {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.12), rgba(0, 201, 255, 0.12));
    border: none;
    border-radius: 16px;
    padding: 22px;
}

.exam-start-page .rules-box i {
    color: var(--exam-accent);
}

.exam-start-page .btn-exam-start {
    background: linear-gradient(135deg, var(--exam-accent), rgba(0, 0, 0, 0.15));
    color: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.15);
}

.exam-start-page .btn-exam-start:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.2);
}

.exam-start-page .btn-exam-secondary {
    border-radius: 16px;
}

.exam-start-page .exam-type-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exam-start-page .exam-type-card i {
    color: var(--exam-color);
}

.exam-start-page .exam-type-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.exam-start-page a:focus-visible,
.exam-start-page button:focus-visible {
    outline: 3px solid rgba(102, 126, 234, 0.4);
    outline-offset: 2px;
}

/* Exam session page */
.exam-session-page .exam-container {
    max-width: 1200px;
    margin: 0 auto;
}

.exam-session-page .exam-header h4 {
    font-weight: 700;
}

.exam-session-page .exam-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(220, 53, 69, 0.1);
}

.exam-session-page .exam-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.exam-session-page .exam-card-header {
    background: linear-gradient(135deg, rgba(31, 111, 235, 0.1), rgba(0, 184, 148, 0.1));
    border: none;
}

.exam-session-page .question-nav {
    max-height: 320px;
    overflow-y: auto;
}

.exam-session-page .question-btn {
    width: 40px;
    height: 40px;
    margin: 4px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    background: white;
    color: #6c757d;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exam-session-page .question-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.exam-session-page .question-btn.current {
    background: #1f6feb;
    color: white;
    border-color: #1f6feb;
}

.exam-session-page .question-btn.answered {
    background: #00b894;
    color: white;
    border-color: #00b894;
}

.exam-session-page .question-btn.flagged {
    background: #ffc107;
    color: #212529;
    border-color: #ffc107;
}

.exam-session-page .exam-legend {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.exam-session-page .exam-progress {
    display: grid;
    gap: 10px;
}

.exam-session-page .exam-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6c757d;
}

.exam-session-page .exam-content {
    min-height: 520px;
}

.exam-session-page .option-btn {
    width: 100%;
    text-align: left;
    margin-bottom: 12px;
    padding: 15px 18px;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 12px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.exam-session-page .option-btn:hover {
    border-color: #1f6feb;
    background: #f8f9fa;
}

.exam-session-page .option-btn.selected {
    border-color: #1f6feb;
    background: #e3f2fd;
    color: #1f6feb;
}

.exam-session-page a:focus-visible,
.exam-session-page button:focus-visible {
    outline: 3px solid rgba(31, 111, 235, 0.4);
    outline-offset: 2px;
}

@media (max-width: 992px) {
    .exam-session-page .question-nav {
        max-height: 260px;
    }
}

@media (max-width: 768px) {
    .exam-session-page .exam-progress-meta {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
}
