/* ==========================================================================
   Scory - CSS Design System & Stylesheet
   ========================================================================== */

/* --- Custom Variables & Theme --- */
:root {
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Premium Dark Theme Color Palette */
    --bg-primary: #090d16;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    --glass-bg: rgba(17, 24, 39, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Accents */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.15);
    
    --secondary: #a855f7;
    --secondary-hover: #9333ea;
    --secondary-glow: rgba(168, 85, 247, 0.15);
    
    --accent-gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    
    /* System States */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --info: #0ea5e9;
    --info-bg: rgba(14, 165, 233, 0.1);
    
    /* Text Colors */
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Interactive */
    --card-hover: rgba(255, 255, 255, 0.02);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Borders & Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* Box Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.3);
    
    /* Subjects Custom Colors */
    --color-math: #ec4899;
    --color-critical: #3b82f6;
    --color-social: #f59e0b;
    --color-science: #10b981;
    --color-english: #8b5cf6;
}

/* --- Global Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

button {
    font-family: var(--font-sans);
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    color: inherit;
    transition: all var(--transition-fast);
}

input, select, textarea {
    font-family: var(--font-sans);
    outline: none;
    border: none;
    color: inherit;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--primary-hover);
}

/* --- Layout Wrapper --- */
#app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Header / Navigation --- */
#main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 75px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.5s ease-out;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.3));
    animation: pulseGlow 3s infinite ease-in-out;
}
.logo-icon svg {
    width: 100%;
    height: 100%;
}
.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.logo-text .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.nav-link i {
    font-size: 1rem;
}
.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
.nav-link.active {
    color: var(--text-primary);
    background: var(--accent-gradient);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.nav-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Gamification Badges */
.stat-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    animation: fadeIn 0.4s ease-out;
}
.streak-badge {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}
.streak-badge i {
    animation: fireWiggle 1s infinite alternate;
}
.xp-badge {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}

/* Profile Dropdown */
.profile-dropdown-container {
    position: relative;
}
.profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
}
.profile-trigger:hover, .profile-trigger.active {
    background: rgba(255, 255, 255, 0.06);
}
.profile-trigger img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--bg-tertiary);
}
.username-text {
    font-size: 0.9rem;
    font-weight: 600;
}
.profile-dropdown-container i {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.profile-dropdown.show {
    display: flex;
}
.dropdown-header {
    padding: 0.4rem 0.6rem;
}
.dropdown-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.dropdown-header span {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}
.badge-free {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}
.badge-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}
.profile-dropdown hr {
    border: 0;
    border-top: 1px solid var(--glass-border);
    margin: 4px 0;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
    width: 100%;
    text-align: left;
}
.dropdown-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}
.dropdown-item i {
    font-size: 1rem;
}

/* --- Main View Mounting Area --- */
#main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* --- Loader Component --- */
.loader-container {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}
.custom-loader {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(99, 102, 241, 0.1);
    border-top-color: var(--primary);
    animation: spin 1s infinite linear;
}

/* --- Login / Signup View --- */
.login-view-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: calc(100vh - 120px);
}
.login-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 100%;
    max-width: 460px;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    animation: scaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}
.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 12px rgba(0, 210, 255, 0.4));
}
.login-logo svg {
    width: 100%;
    height: 100%;
}
.login-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.login-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.login-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
}
.login-tab-btn {
    flex: 1;
    padding: 0.6rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.login-tab-btn.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-sm);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}
.input-wrapper {
    position: relative;
}
.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}
.auth-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}
.auth-input:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.submit-btn {
    width: 100%;
    padding: 0.9rem;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    margin-top: 0.5rem;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.submit-btn:active {
    transform: translateY(0);
}

/* --- Dashboard View --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    animation: fadeIn 0.5s ease-out;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.dashboard-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    position: relative;
    overflow: hidden;
}
.welcome-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    z-index: 0;
}
.welcome-content {
    position: relative;
    z-index: 1;
}
.welcome-content h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}
.welcome-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.welcome-badge {
    background: var(--accent-gradient);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
}
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.panel-title i {
    color: var(--primary);
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all var(--transition-fast);
}
.stat-card:hover {
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.12);
}
.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.stat-icon.global {
    background: var(--primary-glow);
    color: var(--primary);
}
.stat-icon.tests {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}
.stat-info {
    display: flex;
    flex-direction: column;
}
.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Subject Scores List */
.subject-scores-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.subject-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.subject-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
}
.subject-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot.math { background: var(--color-math); }
.dot.critical { background: var(--color-critical); }
.dot.social { background: var(--color-social); }
.dot.science { background: var(--color-science); }
.dot.english { background: var(--color-english); }

.subject-val {
    color: var(--text-primary);
}
.subject-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}
.subject-bar-fill {
    height: 100%;
    border-radius: 4px;
    width: 0%; /* Animated via script */
    transition: width 1s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Streaks & Leveling Side Panel */
.gamification-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.level-progress-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
}
.level-circle-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem auto;
}
.level-svg {
    transform: rotate(-90deg);
}
.level-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 8;
}
.level-circle-fill {
    fill: none;
    stroke: url(#level-gradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314; /* Animated by JS */
    transition: stroke-dashoffset 1s ease-out;
}
.level-num-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.25rem;
    font-weight: 800;
}
.level-progress-info h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}
.level-progress-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.weekly-activity {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}
.activity-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.day-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}
.day-dot.active {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

/* Achievements List */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    gap: 0.75rem;
}
.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    cursor: pointer;
    position: relative;
}
.badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    filter: grayscale(1);
    transition: all var(--transition-normal);
}
.badge-item.unlocked .badge-icon {
    filter: none;
    color: white;
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}
.badge-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    max-width: 65px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.badge-item.unlocked .badge-name {
    color: var(--text-primary);
}

/* Debilidades & Study Plan */
.debilidad-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    margin-bottom: 0.75rem;
}
.debilidad-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
}
.debilidad-label i {
    color: var(--danger);
}
.debilidad-action {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Study Plan */
.study-plan-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.plan-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.plan-generate-btn {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: white;
}
.plan-generate-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}
.plan-task {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
}
.plan-task input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--primary);
}
.task-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.task-title {
    font-weight: 600;
    font-size: 0.9rem;
}
.task-subj {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    align-self: flex-start;
    font-weight: 700;
}
.task-subj.math { background: rgba(236, 72, 153, 0.15); color: var(--color-math); }
.task-subj.critical { background: rgba(59, 130, 246, 0.15); color: var(--color-critical); }
.task-subj.social { background: rgba(245, 158, 11, 0.15); color: var(--color-social); }
.task-subj.science { background: rgba(16, 185, 129, 0.15); color: var(--color-science); }
.task-subj.english { background: rgba(139, 92, 246, 0.15); color: var(--color-english); }

/* --- Simulator View --- */
.simulator-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.4s ease-out;
}

/* Exam Card Grid (Lobby) */
.exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.exam-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    transition: all var(--transition-normal);
}
.exam-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.exam-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.exam-title-group h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.exam-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.exam-meta-pill {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.pill-free {
    background: var(--success-bg);
    color: var(--success);
}
.pill-premium {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}
.exam-meta-row {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.exam-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.exam-meta-item i {
    color: var(--primary);
}
.start-exam-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: white;
    font-weight: 700;
    text-align: center;
}
.start-exam-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}
.start-exam-btn.locked {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Simulator Active Screen */
.sim-active-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    min-height: 600px;
}
@media (max-width: 900px) {
    .sim-active-container {
        grid-template-columns: 1fr;
    }
}
.sim-workspace {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.sim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
}
.sim-progress-bar-bg {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin: 0 1.5rem;
    overflow: hidden;
}
.sim-progress-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    width: 0%;
    transition: width 0.3s ease;
}
.sim-timer {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--warning);
}
.sim-timer.urgent {
    color: var(--danger);
    animation: flashRed 1s infinite alternate;
}

/* Question Area */
.question-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
}
.question-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.subject-pill {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}
.subject-pill.math { background: var(--color-math); }
.subject-pill.critical { background: var(--color-critical); }
.subject-pill.social { background: var(--color-social); }
.subject-pill.science { background: var(--color-science); }
.subject-pill.english { background: var(--color-english); }

.question-text {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
}
.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.option-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    text-align: left;
    transition: all var(--transition-fast);
}
.option-button:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255,255,255,0.2);
}
.option-button.selected {
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}
.option-letter {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}
.option-button.selected .option-letter {
    background: var(--primary);
    border-color: transparent;
    color: white;
}
.option-text {
    font-size: 0.95rem;
    flex: 1;
}

/* Exam Controls */
.sim-controls {
    display: flex;
    justify-content: space-between;
}
.sim-btn {
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sim-btn-secondary {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
}
.sim-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}
.sim-btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}
.sim-btn-primary:hover {
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}
.sim-btn-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.sim-btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Sidebar Questions Navigator */
.sim-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.questions-nav-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.questions-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}
.nav-q-btn {
    aspect-ratio: 1;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}
.nav-q-btn:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
}
.nav-q-btn.answered {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success);
}
.nav-q-btn.current {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

/* Exam Results Screen */
.results-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: scaleUp 0.4s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.results-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
}
.results-score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--bg-tertiary) 40%, transparent 100%);
    border: 4px solid var(--primary);
    box-shadow: var(--shadow-glow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: float 4s infinite ease-in-out;
}
.results-score-num {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.results-score-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.results-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 800px;
}
@media (max-width: 600px) {
    .results-breakdown-grid {
        grid-template-columns: 1fr;
    }
}
.result-sub-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}
.result-sub-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.result-sub-score {
    font-size: 1.5rem;
    font-weight: 800;
}
.results-actions {
    display: flex;
    gap: 1rem;
}

/* --- AI Tutor View --- */
.tutor-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    height: calc(100vh - 150px);
    min-height: 600px;
    animation: fadeIn 0.4s ease-out;
}
@media (max-width: 900px) {
    .tutor-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
}
.tutor-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.recent-errors-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.error-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    flex: 1;
    padding-right: 4px;
}
.error-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.error-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 102, 241, 0.2);
}
.error-card.active {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--primary);
}
.error-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.error-card-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.tutor-chat-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.01);
}
.tutor-avatar-large {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}
.tutor-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
}
.tutor-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--success);
}
.tutor-status .pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: dotPulse 1.5s infinite alternate;
}

.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.chat-msg {
    display: flex;
    gap: 1rem;
    max-width: 85%;
    animation: messageSlideIn 0.3s ease-out;
}
.chat-msg.assistant {
    align-self: flex-start;
}
.chat-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}
.chat-msg.assistant .msg-avatar {
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
}
.chat-msg.user .msg-avatar {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
}
.msg-bubble {
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.5;
}
.chat-msg.assistant .msg-bubble {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-top-left-radius: 2px;
}
.chat-msg.user .msg-bubble {
    background: var(--primary);
    color: white;
    border-top-right-radius: 2px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

.tutor-suggestions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.5rem 1.5rem;
}
.suggestion-chip {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}
.suggestion-chip:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--text-primary);
}

.chat-input-area {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.005);
}
.chat-textarea {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    resize: none;
    height: 45px;
    color: var(--text-primary);
    line-height: 1.4;
    transition: all var(--transition-fast);
}
.chat-textarea:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.35);
}
.chat-send-btn {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
}
.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

/* --- Payments / Premium View --- */
.payments-container {
    animation: fadeIn 0.4s ease-out;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
.pricing-header {
    text-align: center;
}
.pricing-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.pricing-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
.pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all var(--transition-normal);
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.pricing-card.premium-featured {
    border-color: var(--secondary);
    background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.12), var(--glass-bg));
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
}
.featured-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.3);
}

.pricing-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.pricing-price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.pricing-price span {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    list-style: none;
    margin-bottom: 2rem;
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.pricing-features li i {
    color: var(--success);
    font-size: 1.05rem;
}
.pay-btn {
    width: 100%;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
}
.pay-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}
.pricing-card.premium-featured .pay-btn {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}
.pricing-card.premium-featured .pay-btn:hover {
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.35);
}

/* --- Checkout / Payment Gateway Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.checkout-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 580px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}
.modal-overlay.active .checkout-modal {
    transform: scale(1);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.01);
}
.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}
.close-modal-btn {
    font-size: 1.25rem;
    color: var(--text-muted);
}
.close-modal-btn:hover {
    color: var(--text-primary);
}

.checkout-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.checkout-summary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.summary-name {
    font-weight: 700;
}
.summary-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--warning);
}

.payment-method-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}
.method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 0.5rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    font-size: 0.75rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}
.method-btn:hover {
    background: rgba(255, 255, 255, 0.04);
}
.method-btn.selected {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--text-primary);
}
.method-btn i {
    font-size: 1.4rem;
}
.method-btn.nequi i { color: #d946ef; }
.method-btn.daviplata i { color: #ef4444; }
.method-btn.pse i { color: #f59e0b; }
.method-btn.cc i { color: #0ea5e9; }

/* Dynamic Payment Forms */
.payment-form-container {
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid var(--glass-border);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.payment-form-view {
    display: none;
    flex-direction: column;
    gap: 1rem;
    animation: fadeIn 0.3s ease-out;
}
.payment-form-view.active {
    display: flex;
}

.checkout-btn {
    width: 100%;
    padding: 0.9rem;
    background: var(--success);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}
.checkout-btn:hover {
    background: #059669;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

/* Simulated CC Layout */
.cc-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

/* Payment Processing Animation overlay inside modal */
.payment-process-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 10;
}
.payment-process-overlay.active {
    display: flex;
}
.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success-bg);
    border: 3px solid var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--success);
    animation: checkmarkGrow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Notifications Toast --- */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 2000;
}
.toast {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 280px;
    max-width: 400px;
    animation: toastSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.toast i {
    font-size: 1.25rem;
}
.toast-success { border-left: 4px solid var(--success); }
.toast-success i { color: var(--success); }
.toast-info { border-left: 4px solid var(--info); }
.toast-info i { color: var(--info); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-warning i { color: var(--warning); }
.toast-danger { border-left: 4px solid var(--danger); }
.toast-danger i { color: var(--danger); }
.toast-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* --- Animations Definitions --- */
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.6)); }
}
@keyframes fireWiggle {
    from { transform: scale(1) rotate(-5deg); }
    to { transform: scale(1.1) rotate(5deg); }
}
@keyframes dotPulse {
    from { opacity: 0.4; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1.1); }
}
@keyframes flashRed {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes checkmarkGrow {
    from { transform: scale(0); }
    to { transform: scale(1); }
}
@keyframes toastSlideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes messageSlideIn {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- Custom Utilities --- */
.hidden {
    display: none !important;
}
