/* ==========================================
   DESIGN SYSTEM - NEO-BRUTALIST VARIABLES
   ========================================== */
:root {
    /* Color Tokens (Dark Mode Default) */
    --surface-lowest: #0E0E0E;
    --surface-low: #1B1B1B;
    --surface-mid: #1F1F1F;
    --outline-variant: #444748;
    --on-surface: #E2E2E2;
    --on-surface-muted: #C4C7C8;
    --dgt-red: #CC3333;
    --dgt-blue: #3366CC;
    --dgt-yellow: #FFCC00;
    --brand-orange: #F97316;
    --text-primary: #FFFFFF;
    --text-inverse: #0E0E0E;
    
    /* Layout & Spacing */
    --unit: 4px;
    --container-max: 1280px;
    --margin-mobile: 16px;
    --margin-desktop: 64px;
    --gutter: 24px;
    
    /* Radii */
    --radius-sm: 2px;
    --radius-default: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Variables Override */
html.light {
    --surface-lowest: #FFFFFF;
    --surface-low: #F5F5F7;
    --surface-mid: #EEEEEE;
    --outline-variant: #D1D1D6;
    --on-surface: #1C1C1E;
    --on-surface-muted: #8E8E93;
    --text-primary: #000000;
    --text-inverse: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--surface-lowest);
    color: var(--on-surface);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

/* Typography Classes */
.display-lg {
    font-family: 'Geist', sans-serif;
    font-size: clamp(38px, 6vw, 76px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.headline-md {
    font-family: 'Geist', sans-serif;
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.headline-sm {
    font-family: 'Geist', sans-serif;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
    line-height: 1.3;
}

.body-lg {
    font-family: 'Inter', sans-serif;
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 400;
    line-height: 1.6;
}

.body-md {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.label-mono-sm {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    line-height: 1;
    text-transform: uppercase;
}

.label-mono-md {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================
   LAYOUT STRUCTURE
   ========================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--margin-mobile);
    padding-right: var(--margin-mobile);
}

@media (min-width: 1024px) {
    .container {
        padding-left: var(--margin-desktop);
        padding-right: var(--margin-desktop);
    }
}

.section-border {
    border-bottom: 1px solid var(--outline-variant);
}

/* Helper styles */
.highlight-orange {
    color: var(--brand-orange);
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

.uppercase {
    text-transform: uppercase;
}

.hidden {
    display: none !important;
}

/* ==========================================
   COMPONENTS
   ========================================== */

/* Buttons */
.btn-primary {
    background-color: var(--text-primary);
    color: var(--text-inverse);
    border: none;
    font-family: 'Geist', sans-serif;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    letter-spacing: 0.05em;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    background-color: var(--outline-variant);
    color: var(--on-surface-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-ghost {
    background-color: transparent;
    border: 1px solid var(--outline-variant);
    color: var(--text-primary);
    font-family: 'Geist', sans-serif;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    letter-spacing: 0.1em;
    transition: var(--transition-fast);
}

.btn-ghost:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    background-color: rgba(249, 115, 22, 0.05);
}

/* ==========================================
   TOP BAR & NAVIGATION
   ========================================== */
.top-bar {
    background-color: var(--brand-orange);
    color: #FFFFFF;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.logo-area:hover {
    transform: scale(1.03);
}

.logo-icon {
    fill: currentColor;
}

.logo-text {
    font-family: 'Geist', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 12px;
    position: relative;
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 12px;
    right: 12px;
    height: 1px;
    background-color: #FFFFFF;
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

.btn-link:hover::after {
    transform: scaleX(1);
}

.btn-register {
    background-color: #FFFFFF;
    color: var(--brand-orange);
    padding: 8px 16px;
    border-radius: var(--radius-default);
    font-weight: 700;
    transition: var(--transition-fast);
}

.btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-theme-toggle {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    padding: 6px;
    border-radius: var(--radius-default);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main Navigation Grid */
.main-nav {
    background-color: var(--surface-low);
    border-bottom: 1px solid var(--outline-variant);
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    text-align: center;
}

@media (min-width: 640px) {
    .nav-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

.nav-item {
    border-right: 1px solid var(--outline-variant);
}

.nav-item:last-child {
    border-right: none;
}

.nav-link {
    display: flex;
    flex-col: column;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 4px;
    color: var(--on-surface-muted);
    transition: var(--transition-fast);
}

.nav-link:hover {
    background-color: var(--surface-mid);
    color: var(--brand-orange);
}

.nav-icon {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.nav-link:hover .nav-icon {
    transform: translateY(-2px);
}

@media (max-width: 639px) {
    .hide-mobile {
        display: none !important;
    }
}

/* ==========================================
   DYNAMIC HERO SECTION
   ========================================== */
.hero {
    position: relative;
    border-bottom: 1px solid var(--outline-variant);
    overflow: hidden;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(14, 14, 14, 0.4) 0%, rgba(14, 14, 14, 0.9) 80%);
}

html.light .hero-overlay {
    background: radial-gradient(circle at 70% 30%, rgba(245, 245, 247, 0.3) 0%, rgba(245, 245, 247, 0.9) 80%);
}

.hero-container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Floating Signs */
.floating-signs {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 48px;
    margin-bottom: 24px;
}

.traffic-sign {
    height: 100%;
    aspect-ratio: 1/1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transition: transform var(--transition-fast);
}

.traffic-sign:hover {
    transform: scale(1.2) rotate(15deg);
    cursor: pointer;
}

/* Animations for signs */
@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.animate-rotate-rect {
    animation: rotate-slow 10s linear infinite;
    transform-origin: center;
}

.animate-spin-arrow {
    animation: rotate-slow 12s linear infinite reverse;
    transform-origin: center;
}

.animate-bounce-slow {
    animation: float-sign 4s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: float-sign 5s ease-in-out infinite 1s;
}

.tagline-badge {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}

html.light .tagline-badge {
    border-color: rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--on-surface);
}

.tagline-badge span {
    color: #FFFFFF;
}

html.light .tagline-badge span {
    color: var(--on-surface);
}

.hero-title {
    color: #FFFFFF;
    margin-bottom: 16px;
}

html.light .hero-title {
    color: var(--on-surface);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

html.light .hero-subtitle {
    color: var(--on-surface-muted);
}

.pulse-indicators {
    display: flex;
    gap: 8px;
}

.indicator {
    height: 3px;
    width: 32px;
    background-color: rgba(255, 255, 255, 0.2);
}

.indicator.active {
    background-color: var(--brand-orange);
    box-shadow: 0 0 8px var(--brand-orange);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Centered Hero Layout Styles */
.hero-centered {
    grid-template-columns: 1fr !important;
    text-align: center;
}

.hero-centered .hero-content {
    align-items: center;
    margin: 0 auto;
    max-width: 800px;
}

.hero-centered .floating-signs {
    justify-content: center;
}

.hero-centered .pulse-indicators {
    justify-content: center;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Small Container for Quiz Widget on subpages */
.container-small {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}

/* Quiz Card Widget */
.hero-widget-area {
    width: 100%;
}

.quiz-card {
    background-color: var(--surface-low);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-default);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.quiz-card:hover {
    border-color: var(--brand-orange);
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.15);
}

.quiz-header {
    background-color: var(--surface-mid);
    padding: 12px 18px;
    border-bottom: 1px solid var(--outline-variant);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-orange {
    color: var(--brand-orange);
}

.quiz-body {
    padding: 24px;
}

.quiz-sign-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.sign-visual {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.quiz-question {
    font-family: 'Geist', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    background-color: var(--surface-lowest);
    border: 1px solid var(--outline-variant);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-align: left;
    transition: var(--transition-fast);
    color: var(--on-surface);
}

.quiz-option:hover:not(.disabled) {
    border-color: var(--brand-orange);
    background-color: rgba(249, 115, 22, 0.05);
}

.quiz-option.selected {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

.quiz-option.correct {
    border-color: #2E7D32;
    background-color: rgba(46, 125, 50, 0.15);
    color: #81C784;
}

.quiz-option.incorrect {
    border-color: #C62828;
    background-color: rgba(198, 40, 40, 0.15);
    color: #E57373;
}

.quiz-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid var(--outline-variant);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-btn {
    width: 100%;
}

.quiz-feedback {
    padding: 10px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    animation: scale-up 0.3s ease;
}

.quiz-feedback.success {
    background-color: rgba(46, 125, 50, 0.1);
    border: 1px solid #2E7D32;
    color: #81C784;
}

.quiz-feedback.error {
    background-color: rgba(198, 40, 40, 0.1);
    border: 1px solid #C62828;
    color: #E57373;
}

@keyframes scale-up {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Screen Shake for error */
.shake {
    animation: shake-anim 0.4s ease;
}

@keyframes shake-anim {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Success neon pulse */
.pulse-green {
    animation: green-glow 1.5s infinite;
}

@keyframes green-glow {
    0%, 100% { box-shadow: 0 10px 40px rgba(46, 125, 50, 0.15); border-color: #2E7D32; }
    50% { box-shadow: 0 10px 40px rgba(46, 125, 50, 0.3); border-color: #81C784; }
}

/* ==========================================
   WELCOME SECTION
   ========================================== */
.welcome-section {
    padding: 80px 0;
}

.container-medium {
    max-width: 900px;
}

.welcome-title {
    text-align: center;
    margin-bottom: 48px;
}

.welcome-highlight {
    color: var(--brand-orange);
    position: relative;
}

.welcome-highlight::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: rgba(249, 115, 22, 0.3);
}

.welcome-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .welcome-content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
}

.welcome-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.welcome-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.border-left-orange {
    border-left: 2px solid var(--brand-orange);
    padding-left: 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--on-surface);
}

.start-btn {
    align-self: flex-start;
    margin-top: 12px;
    width: 100%;
}

@media (min-width: 768px) {
    .start-btn {
        width: auto;
    }
}

/* ==========================================
   MODULES (SERVICES GRID)
   ========================================== */
.modules-section {
    padding: 80px 0;
}

.modules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .modules-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.module-card {
    background-color: var(--surface-low);
    border: 1px solid var(--outline-variant);
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.module-card:hover {
    transform: translateY(-8px);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.module-accent-bar {
    height: 8px;
    width: 100%;
}

.bg-orange { background-color: var(--brand-orange); }
.bg-blue { background-color: var(--dgt-blue); }
.bg-yellow { background-color: var(--dgt-yellow); }

.module-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.module-tag {
    color: var(--on-surface-muted);
    margin-bottom: 12px;
    display: block;
}

.module-title {
    margin-bottom: 16px;
    transition: color var(--transition-fast);
}

.module-card:hover .module-title {
    color: var(--brand-orange);
}

.module-image-container {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: var(--surface-mid);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
}

.module-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter var(--transition-smooth), transform var(--transition-smooth);
}

.module-card:hover .module-image {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.module-content p {
    color: var(--on-surface-muted);
    font-size: 14px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.module-link-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-orange);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    transition: transform var(--transition-fast);
}

.module-card:hover .module-link-action {
    transform: translateX(4px);
}

.arrow-icon {
    transition: transform var(--transition-fast);
}

.module-card:hover .arrow-icon {
    transform: translateX(2px);
}

/* ==========================================
   STATS BANNER
   ========================================== */
.stats-section {
    padding: 80px 0;
    background-color: var(--surface-lowest);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.stat-label {
    color: var(--on-surface-muted);
    margin-bottom: 12px;
    transition: color var(--transition-fast);
}

.stat-item:hover .stat-label {
    color: var(--brand-orange);
}

.stat-number {
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.03em;
    transition: transform var(--transition-fast);
}

.stat-item:hover .stat-number {
    transform: scale(1.05);
}

.stat-subtitle {
    color: var(--on-surface-muted);
    font-size: 11px;
}

@media (min-width: 768px) {
    .border-middle {
        border-left: 1px solid var(--outline-variant);
        border-right: 1px solid var(--outline-variant);
    }
}

@media (max-width: 767px) {
    .stat-item {
        border-bottom: 1px solid var(--outline-variant);
    }
    .stat-item:last-child {
        border-bottom: none;
    }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: var(--surface-lowest);
    border-top: 1px solid var(--outline-variant);
    padding: 40px 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
    }
}

.footer-copyright {
    color: var(--on-surface-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: var(--on-surface-muted);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-link:hover {
    color: var(--brand-orange);
    transform: translateY(-1px);
}

/* ==========================================
   SCROLL REVEAL EFFECTS
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.98);
    filter: blur(2px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* ==========================================
   COMPACT STUDY MATERIALS (MANUAL) VIEW OVERRIDES
   ========================================== */
#manual-view .grid {
    gap: 16px !important;
}

@media (min-width: 640px) {
    #manual-view .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 768px) {
    #manual-view .grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    #manual-view .grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

#manual-view .tilt-card {
    padding: 16px !important;
    gap: 12px !important;
}

#manual-view .tilt-card .material-symbols-outlined {
    font-size: 28px !important; /* Smaller icon size */
}

#manual-view .tilt-card h2 {
    font-size: 15px !important; /* Smaller header font size */
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

#manual-view .tilt-card .tilt-card-content {
    gap: 12px !important;
}

#manual-view .tilt-card .mt-auto {
    padding-top: 12px !important;
}

/* ==========================================
   PREMIUM EXAM PROGRESS GRID STYLES
   ========================================== */
.premium-progress-container {
    margin-bottom: 20px;
    background-color: var(--surface-low);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-default);
    padding: 16px;
    width: 100%;
}

.premium-timer-badge {
    background-color: var(--surface-mid);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--outline-variant);
    color: var(--dgt-yellow);
    font-weight: bold;
}

.premium-grid-btn {
    height: 32px;
    width: 100%;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--outline-variant);
    background-color: transparent;
    color: var(--on-surface-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.premium-grid-btn:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    background-color: rgba(249, 115, 22, 0.05);
}

.premium-grid-btn.correct {
    background-color: rgba(46, 125, 50, 0.15) !important;
    border-color: #2E7D32 !important;
    color: #81C784 !important;
}

.premium-grid-btn.incorrect {
    background-color: rgba(198, 40, 40, 0.15) !important;
    border-color: #C62828 !important;
    color: #E57373 !important;
}

/* ==========================================
   PREMIUM CHECKOUT STYLES
   ========================================== */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

/* Invoice Receipt styling */
.invoice-card {
    background-color: var(--surface-low);
    border: 2px dashed var(--outline-variant);
    border-radius: var(--radius-md);
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.invoice-header {
    border-bottom: 1px solid var(--outline-variant);
    padding-bottom: 16px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invoice-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.invoice-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--on-surface);
}

.check-icon {
    color: var(--brand-orange);
    font-weight: bold;
}

.invoice-divider {
    height: 1px;
    background-image: linear-gradient(to right, var(--outline-variant) 50%, transparent 50%);
    background-size: 8px 1px;
    background-repeat: repeat-x;
    margin: 24px 0;
}

.invoice-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-family: 'JetBrains Mono', monospace;
}

/* Checkout Form styling */
.checkout-form-card {
    background-color: var(--surface-mid);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-md);
    padding: 32px;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(129, 199, 132, 0.1);
    color: #81C784;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid #81C784;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.flex-1 {
    flex: 1;
}

.neo-input {
    width: 100%;
    background-color: var(--surface-lowest);
    border: 1px solid var(--outline-variant);
    color: var(--text-primary);
    padding: 12px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.neo-input:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 1px var(--brand-orange);
}

.neo-input.input-error {
    border-color: var(--dgt-red);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .neo-input {
    padding-right: 48px;
}

.input-icon {
    position: absolute;
    right: 16px;
}

.payment-error {
    color: var(--dgt-red);
}

/* Processing Bar Animation */
.checkout-progress-bar {
    width: 100%;
    height: 4px;
    background-color: var(--surface-lowest);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.checkout-progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--brand-orange);
    transition: width 0.3s ease-out;
}

.pulse-green {
    animation: pulse-green-anim 1s infinite;
}

@keyframes pulse-green-anim {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(129, 199, 132, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(129, 199, 132, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(129, 199, 132, 0); }
}

.success-icon-wrapper {
    background-color: rgba(129, 199, 132, 0.1);
    border-radius: 50%;
    padding: 16px;
    display: inline-flex;
}

/* Tilt Card Animations (from Stitch) */
.tilt-card {
    transition: transform 0.1s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}
.tilt-card:hover {
    box-shadow: 0 10px 30px -10px rgba(255, 204, 0, 0.15);
    z-index: 10;
}
.tilt-card-content {
    transform: translatez(30px);
}

/* Premium Dashboard - Circular Chart */
.circular-chart {
    display: block;
    margin: 10px auto;
    max-width: 80%;
    max-height: 250px;
}
.circle-bg {
    fill: none;
    stroke: #1F1F1F;
    stroke-width: 3.8;
}
.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
}
@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}
.percentage {
    fill: #FFCC00;
    font-family: "Geist", sans-serif;
    font-size: 0.5em;
    text-anchor: middle;
    font-weight: 700;
}

/* Gradient for hover states */
.hover-bg-gradient:hover {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.1) 0%, rgba(31, 31, 31, 1) 100%);
}

/* Premium Test View Styles */
.test-wrapper {
    min-height: calc(100vh - 120px);
    padding: 80px 0;
    display: flex;
    align-items: center;
}

.welcome-highlight {
    color: var(--brand-orange);
    position: relative;
}

.welcome-highlight::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: rgba(249, 115, 22, 0.3);
}

.border-left-orange {
    border-left: 2px solid var(--brand-orange);
    padding-left: 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--on-surface);
}

/* Premium Test Code Layout Styles */
.option-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.timer-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}
