/* ==========================================================================
   ENT BOT WEBSITE DESIGN SYSTEM & CORE UTILITIES (Vanilla CSS)
   ========================================================================== */

:root {
    /* Color Palette (HSL Tailored Hues) */
    --bg-dark: 222, 47%, 7%;        /* #090d16 */
    --bg-card: 222, 40%, 12%;       /* #111827 */
    --bg-card-hover: 222, 35%, 16%; /* #1e293b */
    --primary: 243, 75%, 59%;       /* #4f46e5 (Indigo) */
    --primary-glow: 243, 75%, 59%, 0.15;
    --accent: 262, 83%, 58%;        /* #8b5cf6 (Violet) */
    --accent-glow: 262, 83%, 58%, 0.15;
    --text-main: 210, 40%, 96%;     /* #f3f4f6 */
    --text-muted: 215, 20%, 65%;    /* #9ca3af */
    --success: 142, 71%, 45%;       /* #10b981 */
    --danger: 350, 89%, 60%;        /* #f43f5e */
    --warning: 38, 92%, 50%;        /* #f59e0b */
    
    /* Font Families */
    --font-heading: 'Comfortaa', sans-serif;
    --font-body: 'Comfortaa', sans-serif;
    
    /* Layout Sizes */
    --header-height: 80px;
    --border-radius: 16px;
    --transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: hsl(var(--bg-dark));
    color: hsl(var(--text-main));
    font-family: var(--font-body);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Decorative Glow Backgrounds */
.blur-bg {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.bg-primary {
    background-color: hsl(var(--primary));
    top: -50px;
    left: -100px;
}

.bg-secondary {
    background-color: hsl(var(--accent));
    bottom: -100px;
    right: -100px;
}

/* Header & Navigation Ribbon */
header {
    height: 64px;
    background: rgba(10, 15, 30, 0.88);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 26px;
    color: hsl(var(--primary));
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.4px;
    white-space: nowrap;
    color: #fff;
}

.accent-text {
    color: #38bdf8;
    background: linear-gradient(135deg, #38bdf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glass Pill Navigation Ribbon */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 20px;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 4px 6px;
    border-radius: 26px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
    flex-wrap: nowrap;
    white-space: nowrap;
}

.mobile-nav {
    display: none;
}

/* DROPDOWN NAVIGATION MENU */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* Uniform Pill Nav Item Styling */
.nav-link, .nav-dropbtn {
    height: 36px;
    line-height: 36px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 18px;
    border: 1px solid transparent;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-heading);
    white-space: nowrap;
    box-sizing: border-box;
    background: transparent;
}

.nav-link:hover, .nav-dropbtn:hover, .nav-dropdown:hover .nav-dropbtn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-link.active, .nav-dropdown.active .nav-dropbtn {
    color: #38bdf8;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(168, 85, 247, 0.18));
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.drop-icon {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.25s ease;
    margin-left: 2px;
}

.nav-dropdown:hover .drop-icon {
    transform: rotate(180deg);
    opacity: 1;
    color: #38bdf8;
}

/* Glassmorphism Dropdown Popup Cards */
.nav-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(13, 20, 38, 0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-width: 310px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(56, 189, 248, 0.1);
    border-radius: 16px;
    padding: 8px;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown:hover .nav-dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown item styling */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.25);
    transform: translateX(3px);
}

.dropdown-item i {
    font-size: 16px;
    color: #38bdf8;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.dropdown-item div {
    display: flex;
    flex-direction: column;
}

.dropdown-item span {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-heading);
    line-height: 1.2;
}

.dropdown-item small {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
    line-height: 1.2;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.premium-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Buttons */
.btn {
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    color: #fff;
    box-shadow: 0 8px 24px hsla(var(--primary), 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px hsla(var(--primary), 0.5);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid hsla(var(--text-main), 0.15);
    color: hsl(var(--text-main));
}

.btn-outline:hover {
    background-color: hsla(var(--text-main), 0.05);
    border-color: hsla(var(--text-main), 0.3);
}

.btn-premium {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 14px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Sections */
main {
    padding-top: 40px;
    padding-bottom: 80px;
    min-height: calc(100vh - var(--header-height) - 100px);
}

.hidden-section {
    display: none !important;
}

.active-section {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-header p {
    color: hsl(var(--text-muted));
    font-size: 16px;
}

.header-icon {
    margin-right: 8px;
}

/* Glassmorphism Containers */
.glass-box {
    background-color: hsla(var(--bg-card), 0.65);
    backdrop-filter: blur(16px);
    border: 1px solid hsla(var(--text-main), 0.07);
    border-radius: var(--border-radius);
    padding: 32px;
}

/* Hero/Home Section */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
    padding: 65px 0 40px 0;
    margin-bottom: 80px;
}

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

.badge-new {
    background-color: hsla(var(--primary), 0.15);
    color: hsl(var(--accent));
    border: 1px solid hsla(var(--primary), 0.25);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 58px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, hsl(var(--primary)) 20%, hsl(var(--accent)) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: hsl(var(--text-muted));
    font-size: 18px;
    margin-bottom: 44px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.main-visual-circle {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 45px hsla(var(--primary), 0.45);
}

.inner-circle {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background-color: hsl(var(--bg-dark));
    display: flex;
    justify-content: center;
    align-items: center;
}

.brain-icon {
    font-size: 96px;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: floatBrain 6s infinite ease-in-out;
}

.stats-preview-card {
    position: absolute;
    background-color: hsla(var(--bg-card), 0.96);
    border: 1px solid hsla(var(--text-main), 0.1);
    padding: 16px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    top: 50px;
    left: 20px;
    animation: floatCard1 5s infinite ease-in-out;
    z-index: 10;
}

.stats-preview-card.float-2 {
    top: 280px;
    right: 20px;
    left: auto;
    animation: floatCard2 5s infinite ease-in-out;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.stats-preview-card h4 {
    font-size: 13px;
    color: hsl(var(--text-muted));
    font-weight: 500;
}

.stats-val {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 17px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background-color: hsl(var(--bg-card));
    border: 1px solid hsla(var(--text-main), 0.05);
    padding: 36px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: hsla(var(--primary), 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.bg-indigo-soft {
    background-color: rgba(79, 70, 229, 0.1);
    color: hsl(var(--primary));
}

.bg-purple-soft {
    background-color: rgba(139, 92, 246, 0.1);
    color: hsl(var(--accent));
}

.bg-cyan-soft {
    background-color: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: hsl(var(--text-muted));
    font-size: 15px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.learn-more {
    color: hsl(var(--primary));
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-card:hover .learn-more {
    gap: 12px;
}

/* Exam Simulator Layout */
.setup-box {
    margin-bottom: 40px;
}

.setup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.setup-col h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.subject-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subject-card {
    background-color: hsla(var(--text-main), 0.03);
    border: 1px solid hsla(var(--text-main), 0.06);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.subject-card:hover {
    background-color: hsla(var(--text-main), 0.06);
    border-color: hsla(var(--text-main), 0.15);
}

.subject-card.active {
    background-color: hsla(var(--primary), 0.1);
    border-color: hsl(var(--primary));
}

.subj-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: hsla(var(--text-main), 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.subject-card.active .subj-icon {
    background-color: hsl(var(--primary));
    color: #fff;
}

.subject-card.locked {
    opacity: 0.6;
    border-style: dashed;
}

.lock-badge {
    color: #f59e0b;
    margin-left: auto;
}

.option-selectors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.selector-btn {
    border: 1px solid hsla(var(--text-main), 0.1);
    background-color: hsla(var(--text-main), 0.02);
    color: hsl(var(--text-muted));
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.selector-btn:hover {
    background-color: hsla(var(--text-main), 0.05);
    color: hsl(var(--text-main));
}

.selector-btn.active {
    border-color: hsl(var(--accent));
    background-color: hsla(var(--accent), 0.1);
    color: hsl(var(--text-main));
}

.margin-top-large {
    margin-top: 28px;
}

/* Quiz UI Box */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.quiz-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quiz-subject-badge {
    background-color: hsla(var(--primary), 0.15);
    color: hsl(var(--primary));
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

.quiz-progress-text {
    color: hsl(var(--text-muted));
    font-size: 14px;
    font-weight: 500;
}

.quiz-timer {
    background-color: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.25);
    color: hsl(var(--danger));
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    padding: 6px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quiz-timer.urgent {
    animation: pulseDanger 1s infinite alternate;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: hsla(var(--text-main), 0.05);
    border-radius: 10px;
    margin-bottom: 36px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
    border-radius: 10px;
    transition: width 0.3s ease;
}

.quiz-body {
    margin-bottom: 40px;
}

.question-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 28px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.option-btn {
    border: 1px solid hsla(var(--text-main), 0.07);
    background-color: hsla(var(--text-main), 0.02);
    color: hsl(var(--text-main));
    font-family: var(--font-body);
    font-size: 16px;
    padding: 18px 24px;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 16px;
}

.option-btn:hover {
    background-color: hsla(var(--text-main), 0.05);
    border-color: hsla(var(--text-main), 0.15);
}

.option-btn.selected {
    border-color: hsl(var(--primary));
    background-color: hsla(var(--primary), 0.1);
}

.option-letter {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background-color: hsla(var(--text-main), 0.06);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    color: hsl(var(--text-muted));
}

.option-btn.selected .option-letter {
    background-color: hsl(var(--primary));
    color: #fff;
}

.quiz-footer {
    display: flex;
    justify-content: space-between;
}

/* Results Box */
.result-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.result-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.result-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid hsl(var(--success));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.result-score {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 800;
    color: hsl(var(--success));
}

.result-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: hsl(var(--text-muted));
    font-weight: 600;
}

.result-header h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.result-meta-text {
    color: hsl(var(--text-muted));
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.result-review-section {
    text-align: left;
    border-top: 1px solid hsla(var(--text-main), 0.1);
    padding-top: 36px;
}

.result-review-section h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    background-color: hsla(var(--text-main), 0.02);
    border-left: 4px solid hsl(var(--danger));
    border-radius: 0 10px 10px 0;
    padding: 20px;
}

.review-item.correct {
    border-left-color: hsl(var(--success));
}

.review-q-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.review-q-text {
    font-weight: 600;
}

.review-badge {
    font-size: 13px;
    font-weight: 700;
}

.review-badge.correct {
    color: hsl(var(--success));
}

.review-badge.wrong {
    color: hsl(var(--danger));
}

.review-ans-info {
    margin-bottom: 12px;
    font-size: 15px;
}

.review-explanation {
    background-color: hsla(var(--text-main), 0.03);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: hsl(var(--text-muted));
}

/* University Insides Screen */
.uni-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.uni-tab {
    background-color: hsla(var(--text-main), 0.03);
    border: 1px solid hsla(var(--text-main), 0.08);
    color: hsl(var(--text-muted));
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.uni-tab:hover {
    background-color: hsla(var(--text-main), 0.06);
    color: hsl(var(--text-main));
}

.uni-tab.active {
    background-color: hsla(var(--primary), 0.15);
    border-color: hsl(var(--primary));
    color: hsl(var(--text-main));
}

/* Market Box */
.market-overview-box {
    margin-bottom: 40px;
}

.market-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.market-icon {
    font-size: 22px;
    color: hsl(var(--primary));
}

.market-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}

.market-desc {
    color: hsl(var(--text-muted));
    margin-bottom: 24px;
}

.market-details {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    border-top: 1px solid hsla(var(--text-main), 0.07);
    padding-top: 24px;
}

.market-stat-col h4 {
    font-size: 15px;
    margin-bottom: 12px;
    color: hsl(var(--text-main));
    font-weight: 600;
}

.market-stat-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.market-stat-col li {
    font-size: 14px;
    color: hsl(var(--text-muted));
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.market-stat-col li::before {
    content: "•";
    color: hsl(var(--primary));
    font-weight: bold;
}

.salary-column {
    display: flex;
    flex-direction: column;
}

.salary-tier {
    display: flex;
    justify-content: space-between;
    background-color: hsla(var(--text-main), 0.03);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    font-size: 14px;
}

.tier-name {
    color: hsl(var(--text-muted));
}

.tier-val {
    color: hsl(var(--success));
    font-weight: 700;
}

/* University Cards Grid */
.uni-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.uni-card {
    background-color: hsl(var(--bg-card));
    border: 1px solid hsla(var(--text-main), 0.05);
    border-radius: var(--border-radius);
    padding: 28px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.uni-card:hover {
    transform: translateY(-5px);
    border-color: hsla(var(--accent), 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.uni-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.uni-logo-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: hsla(var(--text-main), 0.04);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: hsl(var(--primary));
}

.uni-card-header-text h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.uni-city {
    font-size: 13px;
    color: hsl(var(--text-muted));
}

.uni-card p {
    color: hsl(var(--text-muted));
    font-size: 14px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.uni-quick-rankings {
    display: flex;
    gap: 16px;
    border-top: 1px solid hsla(var(--text-main), 0.05);
    padding-top: 16px;
}

.quick-rank-item {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-rank-item i {
    color: hsl(var(--warning));
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(5, 8, 16, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 30px 12px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    animation: fadeIn 0.3s ease-out;
}

.modal-box {
    background-color: hsl(var(--bg-card));
    border: 1px solid hsla(var(--text-main), 0.08);
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: hsl(var(--text-muted));
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: hsl(var(--text-main));
}

.modal-header-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.uni-logo-large {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background-color: hsla(var(--text-main), 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: hsl(var(--primary));
}

.modal-header-section h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
}

.modal-uni-city {
    color: hsl(var(--text-muted));
    font-size: 14px;
    margin-top: 4px;
}

.modal-divider {
    border: 0;
    height: 1px;
    background-color: hsla(var(--text-main), 0.07);
    margin: 24px 0;
}

.modal-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
}

.modal-main-details h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: hsl(var(--text-main));
}

.modal-main-details p {
    color: hsl(var(--text-muted));
    font-size: 14px;
    margin-bottom: 16px;
}

.modal-insides-text {
    line-height: 1.7;
    white-space: pre-line;
}

.modal-rankings-panel {
    background-color: hsla(var(--text-main), 0.03);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid hsla(var(--text-main), 0.05);
}

.modal-rankings-panel h3 {
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: 700;
}

.ranking-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 12px;
}

.ranking-row span {
    color: hsl(var(--text-muted));
}

.ranking-row strong {
    color: hsl(var(--accent));
}

/* Premium Modal specific */
.premium-modal-box {
    max-width: 420px;
    text-align: center;
    padding: 24px 20px;
}

.premium-crown-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(245, 158, 11, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 16px;
}

.crown-modal-icon {
    font-size: 30px;
    color: #fbbf24;
}

.premium-modal-box h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.premium-modal-box p {
    color: hsl(var(--text-muted));
    font-size: 13.5px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.premium-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.text-green {
    color: hsl(var(--success));
}

.payment-info-box {
    border-top: 1px solid hsla(var(--text-main), 0.08);
    padding-top: 18px;
}

.price-tag {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: hsl(var(--warning));
    display: block;
    margin-bottom: 12px;
}

.price-tag small {
    font-size: 14px;
    font-weight: 500;
    color: hsl(var(--text-muted));
}

.payment-instructions {
    font-size: 13px !important;
    background-color: hsla(var(--text-main), 0.03);
    padding: 12px;
    border-radius: 8px;
}

.payment-instructions code {
    color: hsl(var(--warning));
    font-weight: bold;
}

.demo-premium-activation {
    margin-top: 24px;
    border-top: 1px dashed hsla(var(--text-main), 0.1);
    padding-top: 20px;
}

.demo-alert-text {
    font-size: 12px !important;
    color: hsl(var(--text-muted)) !important;
    margin-bottom: 12px !important;
}

/* User Statistics Modal specific */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.stat-card {
    background-color: hsla(var(--text-main), 0.02);
    border: 1px solid hsla(var(--text-main), 0.05);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.stat-lbl {
    font-size: 12px;
    color: hsl(var(--text-muted));
    display: block;
    margin-bottom: 6px;
}

.text-indigo {
    color: hsl(var(--primary));
}

.exam-history-list {
    margin-top: 12px;
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    background-color: hsla(var(--text-main), 0.015);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    border-left: 3px solid hsl(var(--primary));
}

.history-subject {
    font-weight: 600;
}

.history-score {
    color: hsl(var(--success));
    font-weight: bold;
}

.empty-text {
    font-size: 13px;
    color: hsl(var(--text-muted));
    text-align: center;
    padding: 16px 0;
}

/* Leaderboard Page */
.leaderboard-container {
    max-width: 800px;
    margin: 0 auto;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 80px 1fr 140px 120px;
    font-weight: 700;
    color: hsl(var(--text-muted));
    border-bottom: 1px solid hsla(var(--text-main), 0.07);
    padding-bottom: 16px;
    margin-bottom: 12px;
    font-size: 14px;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.leader-row {
    display: grid;
    grid-template-columns: 80px 1fr 140px 120px;
    padding: 16px 0;
    align-items: center;
    border-bottom: 1px solid hsla(var(--text-main), 0.03);
    font-size: 15px;
    transition: var(--transition);
}

.leader-row:hover {
    background-color: hsla(var(--text-main), 0.02);
}

.leader-row.me {
    background-color: hsla(var(--primary), 0.08);
    font-weight: 600;
    border-radius: 8px;
    border-bottom-color: transparent;
}

.col-rank {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    padding-left: 12px;
}

.col-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.col-score {
    font-weight: bold;
}

/* Footer */
footer {
    background-color: hsla(var(--bg-card), 0.5);
    border-top: 1px solid hsla(var(--text-main), 0.05);
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: hsl(var(--text-muted));
}

.social-links a {
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.social-links a:hover {
    color: hsl(var(--accent));
}

/* Utility Animations */
.animate-bounce {
    animation: bounce 2s infinite;
}

.hidden {
    display: none !important;
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes pulseGlow {
    from { box-shadow: 0 10px 40px rgba(79, 70, 229, 0.3); }
    to { box-shadow: 0 20px 60px rgba(139, 92, 246, 0.5); }
}

@keyframes floatBrain {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(8px) rotate(1.5deg); }
}

@keyframes pulseDanger {
    from { box-shadow: 0 0 10px rgba(244, 63, 94, 0.2); }
    to { box-shadow: 0 0 20px rgba(244, 63, 94, 0.45); }
}

/* Responsive Grid / Layouts */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-desc {
        max-width: 100%;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .setup-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .uni-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content-grid {
        grid-template-columns: 1fr;
    }
    
    .market-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* My History & Subject Analytics styles */
.analytics-subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.analytics-subj-card {
    background-color: hsl(var(--bg-card));
    border: 1px solid hsla(var(--text-main), 0.05);
    border-radius: 14px;
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.analytics-subj-card:hover {
    transform: translateY(-4px);
    border-color: hsla(var(--primary), 0.35);
}

.analytics-subj-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.analytics-subj-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
}

.analytics-subj-accuracy {
    font-size: 16px;
    font-weight: 800;
    color: hsl(var(--primary));
}

.analytics-subj-accuracy.high {
    color: hsl(var(--success));
}

.analytics-subj-accuracy.low {
    color: hsl(var(--danger));
}

.progress-bar-flat-container {
    width: 100%;
    height: 6px;
    background-color: hsla(var(--text-main), 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-flat-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.bg-success-gradient {
    background: linear-gradient(90deg, hsl(var(--success)), #34d399);
}

.bg-indigo-gradient {
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
}

.bg-danger-gradient {
    background: linear-gradient(90deg, hsl(var(--danger)), #fb7185);
}

.analytics-subj-meta {
    font-size: 13px;
    color: hsl(var(--text-muted));
    display: flex;
    justify-content: space-between;
}

/* History table layout */
.history-table-container {
    overflow: hidden;
}

.history-table-header {
    margin-bottom: 20px;
}

.history-table-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}

.history-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.history-table th, .history-table td {
    padding: 16px;
    border-bottom: 1px solid hsla(var(--text-main), 0.05);
}

.history-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    color: hsl(var(--text-muted));
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-table tbody tr {
    transition: var(--transition);
}

.history-table tbody tr:hover {
    background-color: hsla(var(--text-main), 0.015);
}

.history-table td {
    color: hsl(var(--text-main));
}

.history-table td.empty-text {
    color: hsl(var(--text-muted));
    text-align: center;
    padding: 40px;
}

.text-center {
    text-align: center;
}

/* Clickable Leaderboard styles */
.leader-row {
    cursor: pointer;
}

/* Login screen overlay */
.login-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.login-box {
    width: 90%;
    max-width: 440px;
    padding: 36px;
    border-radius: 20px;
    background: hsla(var(--bg-card), 0.65);
    border: 1px solid hsla(var(--text-main), 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: modalSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-header {
    text-align: center;
    margin-bottom: 8px;
}

.login-logo-icon {
    font-size: 40px;
    color: hsl(var(--primary));
    margin-bottom: 12px;
}

.login-header h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}

.login-header p {
    font-size: 13.5px;
    color: hsl(var(--text-muted));
    line-height: 1.4;
}

.login-error {
    background-color: hsla(var(--danger), 0.15);
    color: hsl(var(--danger));
    padding: 12px;
    border-radius: 8px;
    border: 1px solid hsla(var(--danger), 0.25);
    font-size: 13px;
    text-align: center;
    font-weight: 500;
}

.login-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-form-group label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: hsl(var(--text-muted));
}

.login-form-group input {
    background-color: hsla(var(--text-main), 0.03);
    border: 1px solid hsla(var(--text-main), 0.08);
    color: hsl(var(--text-main));
    padding: 14px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition);
}

.login-form-group input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsla(var(--primary), 0.15);
    background-color: hsla(var(--text-main), 0.05);
}

.btn-full-width {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 15px;
}

.login-help {
    background-color: hsla(var(--text-main), 0.02);
    border: 1px dashed hsla(var(--text-main), 0.1);
    padding: 16px;
    border-radius: 12px;
    font-size: 12.5px;
    line-height: 1.5;
    color: hsl(var(--text-muted));
}

.login-help code {
    background-color: hsla(var(--text-main), 0.05);
    padding: 3px 6px;
    border-radius: 4px;
    color: hsl(var(--primary));
    font-family: monospace;
    font-weight: bold;
}

/* Leaderboard Platform tabs */
.leaderboard-platform-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.lead-platform-tab {
    background: hsla(var(--bg-card), 0.4);
    border: 1px solid hsla(var(--text-main), 0.06);
    color: hsl(var(--text-muted));
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lead-platform-tab:hover {
    background: hsla(var(--bg-card), 0.7);
    color: hsl(var(--text-main));
}

.lead-platform-tab.active {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: #fff;
    box-shadow: 0 8px 20px hsla(var(--primary), 0.25);
}

/* Platform Source Badge for History Log */
.badge-source {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-source.website {
    background-color: hsla(var(--primary), 0.12);
    color: hsl(var(--primary));
}

.badge-source.telegram {
    background-color: rgba(59, 130, 246, 0.12);
    color: rgb(59, 130, 246);
}

/* Neon Teenage Vibe Theme Overrides (Without deleting any old rules) */
:root {
    --bg-dark: 275, 45%, 5%;        /* Deep Cyber Dark */
    --bg-card: 275, 30%, 9%;        /* Dark Purple Card */
    --bg-card-hover: 275, 25%, 13%; /* Neon hover bg */
    --primary: 326, 100%, 60%;      /* Neon Cyber Pink (#ff33a3) */
    --primary-glow: 326, 100%, 60%, 0.25;
    --accent: 185, 100%, 48%;       /* Neon Cyber Cyan (#00f0ff) */
    --accent-glow: 185, 100%, 48%, 0.25;
    --success: 120, 100%, 60%;      /* Neon Green */
    --danger: 355, 100%, 60%;       /* Neon Red */
    --warning: 45, 100%, 55%;       /* Neon Yellow */
}

/* Neon Text Glow Utilities */
.gradient-text, .accent-text {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px hsla(var(--primary), 0.3);
}

.logo-text {
    text-shadow: 0 0 15px hsla(var(--primary), 0.5);
}

/* Neon Borders & Glow on Cards */
.glass-box, .uni-card, .subject-card, .stat-card, .login-box, .modal-box, .review-item, .history-item {
    border: 1px solid hsla(var(--primary), 0.15) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), 
                0 0 15px hsla(var(--primary), 0.05),
                inset 0 0 15px hsla(var(--accent), 0.05) !important;
    transition: var(--transition);
}

/* Apply expensive backdrop blur only to main panels and modals */
.glass-box, .login-box, .modal-box {
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

/* Small cards use solid background instead of blur to prevent GPU lag */
.uni-card, .subject-card, .stat-card, .review-item, .history-item {
    background-color: hsla(var(--bg-card), 0.96) !important;
}

.uni-card:hover, .subject-card:hover, .stat-card:hover, .review-item:hover, .history-item:hover {
    border-color: hsl(var(--accent)) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-3px);
}

.subject-card.active, .selector-btn.active {
    border-color: hsl(var(--primary)) !important;
    box-shadow: 0 0 20px hsla(var(--primary), 0.4),
                inset 0 0 10px hsla(var(--primary), 0.2) !important;
    background-color: hsla(var(--primary), 0.15) !important;
}

/* Custom Neon Button Glows */
.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent))) !important;
    box-shadow: 0 0 15px hsla(var(--primary), 0.4) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    box-shadow: 0 0 25px hsla(var(--accent), 0.6) !important;
    transform: translateY(-2px);
}

.btn-premium {
    background: linear-gradient(135deg, #ffd700, #ff8c00) !important;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.5) !important;
    border: none !important;
}

.btn-premium:hover {
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.8) !important;
}

/* Grant Chance Calculator styling */
.calculator-box {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calculator-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.calculator-icon {
    font-size: 32px;
    color: hsl(var(--primary));
    text-shadow: 0 0 10px hsla(var(--primary), 0.4);
}

.calculator-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.calculator-header p {
    font-size: 13px;
    color: hsl(var(--text-muted));
}

.calculator-inputs {
    display: grid;
    grid-template-columns: 1fr 1.5fr auto;
    gap: 16px;
    align-items: end;
}

.calc-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-form-group label {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    color: hsl(var(--text-muted));
}

.calc-form-group input, .calc-form-group select {
    background-color: hsla(var(--text-main), 0.03);
    border: 1px solid hsla(var(--text-main), 0.08);
    color: hsl(var(--text-main));
    padding: 12px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition);
}

.calc-form-group input:focus, .calc-form-group select:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsla(var(--primary), 0.15);
}

.calculator-inputs .btn {
    padding: 12px 24px;
    height: 46px;
    justify-content: center;
}

.calculator-results {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px dashed hsla(var(--text-main), 0.1);
}

.calculator-results h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: hsl(var(--text-main));
}

.results-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.calc-result-card {
    background: hsla(var(--text-main), 0.02);
    border: 1px solid hsla(var(--text-main), 0.05);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.calc-result-card:hover {
    border-color: hsla(var(--primary), 0.2);
    background: hsla(var(--primary), 0.03);
}

.calc-uni-info h5 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.calc-uni-info p {
    font-size: 12px;
    color: hsl(var(--text-muted));
}

.calc-chance-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calc-chance-badge.high {
    background-color: hsla(var(--success), 0.15);
    color: hsl(var(--success));
    border: 1px solid hsla(var(--success), 0.25);
    box-shadow: 0 0 10px hsla(var(--success), 0.2);
}

.calc-chance-badge.medium {
    background-color: hsla(var(--warning), 0.15);
    color: hsl(var(--warning));
    border: 1px solid hsla(var(--warning), 0.25);
    box-shadow: 0 0 10px hsla(var(--warning), 0.2);
}

.calc-chance-badge.low {
    background-color: hsla(var(--danger), 0.15);
    color: hsl(var(--danger));
    border: 1px solid hsla(var(--danger), 0.25);
    box-shadow: 0 0 10px hsla(var(--danger), 0.2);
}

@media (max-width: 768px) {
    .calculator-inputs {
        grid-template-columns: 1fr;
    }
    .results-list {
        grid-template-columns: 1fr;
    }
}

/* Formula 3D Flip Cards */
.formulas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.formula-card-container {
    perspective: 1000px;
    height: 180px;
    cursor: pointer;
}

.formula-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.formula-card-container:hover .formula-card,
.formula-card-container.flipped .formula-card {
    transform: rotateY(180deg);
}

.formula-card-front, .formula-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid hsla(var(--border), 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.formula-card-front {
    background: hsla(var(--bg-card), 0.98);
    color: hsl(var(--text));
}

.formula-card-back {
    background: linear-gradient(135deg, hsla(var(--primary-dark), 0.95), hsla(var(--bg-card), 0.98));
    color: #fff;
    transform: rotateY(180deg);
}

.formula-math-expr {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.formula-variables {
    font-size: 11px;
    color: hsl(var(--text-muted));
    text-align: center;
    margin-top: 5px;
    line-height: 1.4;
}

/* Collapsible Formula Categories */
.formula-category-block {
    background: hsla(var(--bg-card), 0.7);
    border: 1px solid hsla(var(--border), 0.4);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.formula-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: hsl(var(--text));
    background: transparent;
    transition: background 0.2s ease;
    user-select: none;
}

.formula-category-header:hover {
    background: hsla(var(--border), 0.15);
}

.formula-category-header i {
    transition: transform 0.3s ease;
    color: hsl(var(--primary));
}

.formula-category-block.active {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 15px hsla(var(--primary), 0.15);
}

.formula-category-block.active .formula-category-header i {
    transform: rotate(180deg);
}

.formula-category-body {
    display: none;
    padding: 24px;
    border-top: 1px solid hsla(var(--border), 0.3);
    background: hsla(var(--bg-card), 0.3);
}

.formula-category-block.active .formula-category-body {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.formula-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.formula-item-card {
    background: hsla(var(--bg-card), 0.95);
    border: 1px solid hsla(var(--border), 0.3);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow-x: auto;
}

.formula-item-card:hover {
    transform: translateY(-3px);
    border-color: hsl(var(--primary));
    box-shadow: 0 6px 20px hsla(var(--primary), 0.15);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Grid for Study Abroad */
.abroad-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
}

.abroad-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

/* Responsive Media Overwrites for Mobile and Mini Apps */
@media (max-width: 968px) {
    .abroad-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile Header Layout */
    header {
        height: auto !important;
        padding: 8px 12px !important;
    }
    
    .header-container {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: stretch !important;
    }
    
    .header-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .desktop-nav {
        display: none !important;
    }
    
    .mobile-nav {
        display: flex !important;
        width: 100% !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 4px 6px !important;
        margin: 0 !important;
        scrollbar-width: none !important; /* Firefox */
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start !important;
        gap: 6px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.07) !important;
        border-radius: 20px !important;
        box-sizing: border-box !important;
    }
    
    .mobile-nav::-webkit-scrollbar {
        display: none !important;
    }
    
    .mobile-nav .nav-link {
        height: 32px !important;
        line-height: 32px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        flex-shrink: 0 !important;
        border-radius: 16px !important;
        background: transparent !important;
        color: #cbd5e1 !important;
        border: 1px solid transparent !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
    }
    
    .mobile-nav .nav-link:hover, .mobile-nav .nav-link.active {
        color: #38bdf8 !important;
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.2)) !important;
        border-color: rgba(56, 189, 248, 0.35) !important;
    }
    
    .header-actions {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 6px !important;
        width: auto !important;
        flex-wrap: nowrap !important;
    }

    .header-actions button, .header-actions .theme-dropdown, .header-actions .bg-dropdown {
        margin-left: 0 !important;
    }
    
    /* Horizontal swipe subtabs (Europe, Leaderboard, Formulas) */
    .leaderboard-platform-tabs {
        display: flex !important;
        width: calc(100% + 32px) !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 6px 16px !important;
        margin: 0 -16px !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start !important;
        gap: 10px !important;
    }
    
    .leaderboard-platform-tabs::-webkit-scrollbar {
        display: none !important;
    }
    
    .lead-platform-tab {
        flex-shrink: 0 !important;
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
    
    /* Force overlays and tall boxes to be scrollable */
    .login-screen-overlay, .modal-overlay {
        align-items: flex-start !important;
        overflow-y: auto !important;
        padding: 24px 0 !important;
    }
    
    .login-box, .modal-box {
        margin: auto !important;
        max-height: none !important;
        width: 90% !important;
        padding: 24px 16px !important;
    }

    /* Small screen question text resizing */
    .question-text {
        font-size: 18px !important;
        margin-bottom: 20px !important;
    }

    /* Adjust page margins */
    .container {
        padding: 0 16px !important;
    }

    .glass-box {
        padding: 16px !important;
    }
}

@media (max-width: 576px) {
    /* Leaderboard table columns layout optimization */
    .leaderboard-header, .leader-row {
        grid-template-columns: 50px 1fr 90px 80px !important;
        font-size: 13px !important;
    }
    .col-rank, .leader-row .col-rank {
        padding-left: 4px !important;
    }
}

/* Custom Leaflet Map styling to match light theme */
.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1e293b !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    font-family: 'Inter', sans-serif !important;
    padding: 6px !important;
}
.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
.leaflet-container a.leaflet-popup-close-button {
    color: #64748b !important;
    font-size: 16px !important;
    padding: 8px 8px 0 0 !important;
}
.leaflet-container a.leaflet-popup-close-button:hover {
    color: #0f172a !important;
}

/* SlideIn Animation for Grok practice prompt */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium styling for Grok AI output */
.grok-solution-text {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 14.5px;
    line-height: 1.8;
    color: #e2e8f0;
}

.grok-solution-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
    margin: 24px 0 12px 0;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 8px;
}

.grok-solution-text h3::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 18px;
    background: linear-gradient(to bottom, hsl(var(--primary)), hsl(var(--accent)));
    border-radius: 3px;
}

.grok-solution-text h4 {
    font-size: 14.5px;
    font-weight: 600;
    color: #e0e7ff;
    margin: 22px 0 12px 0;
    font-family: var(--font-heading);
    border-left: 4px solid #6366f1;
    padding: 8px 16px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0) 100%);
    border-radius: 4px 8px 8px 4px;
}

.grok-solution-text p {
    margin-bottom: 12px;
}

.grok-solution-text ul, .grok-solution-text ol {
    margin: 8px 0 16px 20px;
}

.grok-solution-text li {
    margin-bottom: 8px;
}

.grok-solution-text strong {
    color: #f8fafc;
    font-weight: 600;
}

.grok-solution-text .katex-display {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
    overflow-x: auto;
}

.grok-copy-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.btn-copy-solution {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
}

.btn-copy-solution:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

/* Fallback for KaTeX syntax/parsing issues */
.katex-fallback {
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
}

/* Keyframes for rotating disc animation */
@keyframes rotateDisc {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Scroll-triggered reveal animations */
.reveal-on-scroll, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-on-scroll {
    transform: translateY(30px) scale(0.99);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

/* Revealed active states */
.reveal-on-scroll.revealed, .reveal-left.revealed, .reveal-right.revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Hover effects for showcase items to make them feel responsive and alive */
.showcase-item {
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
}

.showcase-item:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-4px) scale(1.01) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   MULTI-THEME STYLING SYSTEM
   ========================================================================== */

/* Light Theme Variables */
body.theme-light {
    --bg-dark: 220, 20%, 97%;          /* #f8f9fa */
    --bg-card: 0, 0%, 100%;             /* #ffffff */
    --bg-card-hover: 220, 15%, 94%;     /* #f1f3f5 */
    --primary: 243, 75%, 52%;           /* #3b30d8 */
    --primary-glow: 243, 75%, 52%, 0.08;
    --accent: 262, 83%, 48%;            /* #7c3aed */
    --accent-glow: 262, 83%, 48%, 0.08;
    --text-main: 222, 47%, 12%;         /* #111827 */
    --text-muted: 215, 16%, 42%;        /* #4b5563 */
}

/* Light Theme Overrides */
body.theme-light header {
    background: rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

body.theme-light .glass-box,
body.theme-light .uni-card,
body.theme-light .subject-card,
body.theme-light .stat-card,
body.theme-light .login-box,
body.theme-light .modal-box,
body.theme-light .review-item,
body.theme-light .history-item {
    background-color: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light input,
body.theme-light textarea,
body.theme-light select {
    background-color: rgba(0, 0, 0, 0.03) !important;
    color: hsl(var(--text-main)) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.theme-light input::placeholder,
body.theme-light textarea::placeholder {
    color: rgba(0, 0, 0, 0.4) !important;
}

body.theme-light .btn-secondary {
    background-color: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: hsl(var(--text-main)) !important;
}

body.theme-light .btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.08) !important;
}

body.theme-light footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    background: rgba(255, 255, 255, 0.9) !important;
}

/* Neon Cyberpunk Theme Variables */
body.theme-cyberpunk {
    --bg-dark: 320, 60%, 2%;            /* #050004 (deep neon black) */
    --bg-card: 320, 45%, 7%;            /* #12030f */
    --bg-card-hover: 320, 40%, 11%;     /* #1f061b */
    --primary: 328, 100%, 54%;          /* Hot Pink (#ff007f) */
    --primary-glow: 328, 100%, 54%, 0.2;
    --accent: 180, 100%, 50%;           /* Neon Cyan (#00ffff) */
    --accent-glow: 180, 100%, 50%, 0.2;
    --text-main: 0, 0%, 100%;           /* Pure white text */
    --text-muted: 180, 25%, 75%;        /* Cyan-gray */
}

/* Cyberpunk Neon Overrides */
body.theme-cyberpunk .glass-box,
body.theme-cyberpunk .uni-card,
body.theme-cyberpunk .subject-card,
body.theme-cyberpunk .stat-card,
body.theme-cyberpunk .login-box,
body.theme-cyberpunk .modal-box,
body.theme-cyberpunk .review-item,
body.theme-cyberpunk .history-item {
    border: 1px solid hsla(var(--primary), 0.3) !important;
    box-shadow: 0 0 15px hsla(var(--primary), 0.15) !important;
    background-color: rgba(18, 3, 15, 0.8) !important;
}

body.theme-cyberpunk h1, 
body.theme-cyberpunk h2, 
body.theme-cyberpunk h3 {
    text-shadow: 0 0 8px hsla(var(--primary), 0.5);
}

body.theme-cyberpunk input,
body.theme-cyberpunk textarea,
body.theme-cyberpunk select {
    border: 1px solid hsla(var(--accent), 0.3) !important;
    background: rgba(0, 0, 0, 0.6) !important;
    box-shadow: 0 0 8px hsla(var(--accent), 0.1);
}

body.theme-cyberpunk input:focus,
body.theme-cyberpunk textarea:focus,
body.theme-cyberpunk select:focus {
    border-color: hsl(var(--accent)) !important;
    box-shadow: 0 0 12px hsla(var(--accent), 0.3) !important;
}

/* Dropdown Hover styling */
.theme-dropdown:hover .theme-dropdown-content,
.bg-dropdown:hover .bg-dropdown-content,
.bg-dropdown:hover #bg-dropdown-content {
    display: block !important;
}

.theme-select-btn:hover,
.bg-select-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

body.theme-light .theme-dropdown-content {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

body.theme-light .theme-select-btn {
    color: #111827 !important;
}

body.theme-light .theme-select-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Slate Theme Variables (No Neon, Highly Readable) */
body.theme-slate {
    --bg-dark: 222, 47%, 9%;           /* Slate-900 (#0b0f19) */
    --bg-card: 222, 35%, 14%;          /* Slate-800 (#151c2c) */
    --bg-card-hover: 222, 30%, 18%;    /* Slate-700 (#1d273a) */
    --primary: 215, 20%, 52%;          /* Slate-500 (#64748b) */
    --primary-glow: 215, 20%, 52%, 0;  /* No glow */
    --accent: 210, 15%, 62%;           /* Slate-400 (#94a3b8) */
    --accent-glow: 210, 15%, 62%, 0;   /* No glow */
    --text-main: 210, 40%, 98%;        /* Slate-50 (#f8fafc) */
    --text-muted: 215, 16%, 76%;       /* Slate-300 (#cbd5e1) */
}

/* Slate Overrides */
body.theme-slate .glass-box,
body.theme-slate .uni-card,
body.theme-slate .subject-card,
body.theme-slate .stat-card,
body.theme-slate .login-box,
body.theme-slate .modal-box,
body.theme-slate .review-item,
body.theme-slate .history-item {
    background-color: hsl(var(--bg-card)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important; /* No glow */
}

body.theme-slate h1,
body.theme-slate h2,
body.theme-slate h3,
body.theme-slate .accent-text,
body.theme-slate .gradient-text {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: hsl(var(--text-main)) !important;
    text-shadow: none !important; /* No text glow */
}

body.theme-slate .badge-new {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: hsl(var(--text-main)) !important;
}

body.theme-slate .btn-primary {
    background: hsl(var(--primary)) !important;
    border-color: hsl(var(--primary)) !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* Tutors Match Cards Styles */
.tutor-card-layout {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

.tutor-photo-col {
    position: relative;
    width: 45%;
    height: 100%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.tutor-info-col {
    width: 55%;
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    text-align: left;
    background: rgba(15, 23, 42, 0.98);
    overflow-y: auto;
}

.tutor-info-col::-webkit-scrollbar {
    width: 4px;
}
.tutor-info-col::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .tutor-card-layout {
        flex-direction: column;
    }
    .tutor-photo-col {
        width: 100%;
        height: 200px;
    }
    .tutor-info-col {
        width: 100%;
        height: calc(100% - 200px);
        padding: 16px;
    }
}

/* ==========================================================================
   MOBILE & PREMIUM DESIGN CUSTOMIZATIONS
   ========================================================================== */

/* Premium Cyber Turquoise & Electric Violet Header Button */
@keyframes proCyberShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes proCrownPulse {
    0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.9)); }
    50% { transform: scale(1.22) rotate(-8deg); filter: drop-shadow(0 0 10px rgba(217, 70, 239, 1)); }
}

#btn-buy-premium,
#btn-buy-premium-settings,
#btn-buy-premium-drawer,
.btn-premium-header {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 35%, #8b5cf6 70%, #d946ef 100%) !important;
    background-size: 200% 200% !important;
    animation: proCyberShimmer 4s ease infinite !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 800 !important;
    font-size: 11px !important;
    font-family: var(--font-heading) !important;
    letter-spacing: 0.2px !important;
    border-radius: 14px !important;
    padding: 0 8px !important;
    height: 28px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 3px 12px rgba(6, 182, 212, 0.35), 0 0 10px rgba(217, 70, 239, 0.25) !important;
    white-space: nowrap !important;
}

#btn-buy-premium i,
#btn-buy-premium-settings i,
.btn-premium-header i {
    animation: proCrownPulse 2.5s ease-in-out infinite !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
}

#btn-buy-premium:hover,
#btn-buy-premium-settings:hover,
.btn-premium-header:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.65), 0 0 22px rgba(217, 70, 239, 0.55) !important;
}

#btn-buy-premium:hover i,
#btn-buy-premium-settings:hover i,
.btn-premium-header:hover i {
    color: #ffffff !important;
}

/* Global Music Player Styling & Bug-Free Timeline Scrubber */
#global-music-player {
    width: 320px !important;
    height: 60px !important;
    box-sizing: border-box !important;
    border-radius: 30px !important;
}

#player-seek-slider {
    -webkit-appearance: none !important;
    appearance: none !important;
    height: 3px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px !important;
    outline: none !important;
    cursor: pointer !important;
}

#player-seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: #c084fc !important;
    box-shadow: 0 0 8px rgba(192, 132, 252, 0.8) !important;
    cursor: pointer !important;
    transition: transform 0.15s !important;
}

#player-seek-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3) !important;
}

@media (max-width: 768px) {
    #global-music-player {
        bottom: 14px !important;
        right: 10px !important;
        left: auto !important;
        width: 290px !important;
        height: 56px !important;
        box-sizing: border-box !important;
        padding: 4px 10px 6px !important;
        border-radius: 28px !important;
    }
    
    #global-music-player.mobile-visible {
        display: flex !important;
    }
}

/* ML Course Mobile Responsiveness */
@media (max-width: 768px) {
    #sec-ml-course .grok-container {
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    #sec-ml-course .grok-container > div:first-child {
        width: 100% !important;
        max-height: none !important;
        padding: 14px !important;
    }
    
    #ml-course-weeks-list {
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        max-height: none !important;
        padding-bottom: 8px !important;
        gap: 10px !important;
        scroll-snap-type: x mandatory;
    }
    
    .ml-week-item {
        flex-shrink: 0 !important;
        width: 160px !important;
        height: 70px !important;
        padding: 8px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        scroll-snap-align: start;
    }
    
    .ml-week-item span {
        font-size: 9px !important;
    }
    
    .ml-week-item div {
        font-size: 11.5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin-top: 2px !important;
    }
    
    #sec-ml-course .grok-container > div:last-child {
        padding: 16px !important;
        width: 100% !important;
    }
    
    #ml-course-content-pane {
        max-height: 480px !important;
        font-size: 13.5px !important;
        line-height: 1.6 !important;
    }
}

/* ==========================================================================
   MOBILE MENU DRAWER & HAMBURGER STYLES
   ========================================================================== */

/* Hamburger Menu Button */
.hamburger-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: none; /* Hidden on desktop */
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    outline: none;
}

.hamburger-btn:hover {
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #38bdf8 !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25) !important;
}

/* Mobile Drawer Panel */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 310px;
    background: rgba(13, 20, 38, 0.98);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(100%);
    box-sizing: border-box;
}

.mobile-drawer.drawer-open {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 16px;
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s ease;
    outline: none;
}

.mobile-drawer-close:hover {
    background: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.4);
    color: #f43f5e;
}

.mobile-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px 120px !important;
    display: flex;
    flex-direction: column;
}

.drawer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.drawer-nav-item i {
    width: 16px;
    font-size: 14px;
    text-align: center;
}

.drawer-nav-item:hover, .drawer-nav-item.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(168, 85, 247, 0.15));
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    transform: translateX(3px);
}

.drawer-section-title {
    font-size: 11px;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 8px;
}

/* Backdrop overlay */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1024px) {
    .hamburger-btn {
        display: flex !important;
    }
    
    .mobile-nav {
        display: none !important; /* Hide older scrolling scroller */
    }
    
    .desktop-nav {
        display: none !important; /* Hide crowded desktop navigation on tablet/netbook screens */
    }
    
    .header-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .logo {
        gap: 6px !important;
    }
    
    .logo-text {
        font-size: 16px !important;
        white-space: nowrap !important;
    }
    
    .logo-icon {
        font-size: 20px !important;
    }
    
    .header-actions .theme-dropdown,
    .header-actions .bg-dropdown,
    .header-actions #btn-login-open,
    .header-actions #btn-logout {
        display: none !important; /* Managed by mobile drawer instead */
    }
    
    .header-actions {
        width: auto !important;
        margin-top: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
    }
}

/* Collapse PRO button text on mobile screens to save space and lock layout */
@media (max-width: 480px) {
    .btn-buy-text {
        display: none !important;
    }
    #btn-buy-premium::after {
        content: "PRO" !important;
        font-weight: 800 !important;
        font-size: 12.5px !important;
        margin-left: 2px !important;
    }
    #btn-buy-premium {
        padding: 8px 12px !important;
        gap: 4px !important;
    }
}

/* Make premium purchase modal extremely compact and user-friendly on mobile screens */
@media (max-width: 768px) {
    .premium-modal-box {
        max-width: 350px !important;
        padding: 14px 12px !important;
        margin: 10px auto !important;
        border-radius: 12px !important;
    }
    .premium-modal-box h2 {
        font-size: 16px !important;
        margin-bottom: 4px !important;
    }
    .premium-modal-box p {
        font-size: 11px !important;
        margin-bottom: 10px !important;
        line-height: 1.35 !important;
    }
    .premium-crown-container {
        width: 38px !important;
        height: 38px !important;
        margin-bottom: 8px !important;
    }
    .premium-crown-container i {
        font-size: 16px !important;
    }
    .premium-benefits {
        padding: 8px !important;
        gap: 6px !important;
        margin-bottom: 10px !important;
        border-radius: 6px !important;
    }
    .benefit-item {
        font-size: 10.5px !important;
        line-height: 1.3 !important;
    }
    .benefit-item i {
        font-size: 12px !important;
        margin-top: 0 !important;
    }
    .payment-info-box {
        padding-top: 10px !important;
    }
    .price-tag {
        font-size: 18px !important;
        margin: 2px 0 8px !important;
    }
    .kaspi-payment-card {
        padding: 8px !important;
        margin-bottom: 10px !important;
        border-radius: 6px !important;
    }
    #btn-copy-kaspi-num {
        padding: 4px 8px !important;
        font-size: 10.5px !important;
        border-radius: 4px !important;
    }
    .demo-premium-activation {
        margin-bottom: 6px !important;
    }
    .demo-premium-activation div {
        padding: 8px !important;
        margin-bottom: 8px !important;
        border-radius: 6px !important;
    }
    .demo-premium-activation div p {
        font-size: 10px !important;
        line-height: 1.35 !important;
    }
    #btn-contact-admin-premium {
        padding: 8px !important;
        font-size: 11.5px !important;
        border-radius: 6px !important;
    }
}

/* ==========================================================================
   DESKTOP SETTINGS & PRO MENU STYLE SYSTEM
   ========================================================================== */
.desktop-settings-container {
    position: relative;
    display: inline-block;
    z-index: 1010;
}

@media (max-width: 768px) {
    .desktop-settings-container {
        display: none !important;
    }
}

#btn-desktop-settings-toggle {
    height: 38px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    font-family: var(--font-heading) !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(168, 85, 247, 0.14)) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    outline: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.2) !important;
}

#btn-desktop-settings-toggle:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(56, 189, 248, 0.7) !important;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(168, 85, 247, 0.25)) !important;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4) !important;
}

.desktop-settings-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 330px;
    background: rgba(11, 17, 33, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
    transform-origin: top right;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 1200;
}

.desktop-settings-dropdown-content.active {
    display: flex !important;
    animation: settingsCardPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes settingsCardPop {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.settings-header-banner {
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(168, 85, 247, 0.12));
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-header-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
}

.settings-header-subtitle {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settings-section-title {
    font-size: 11px;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.settings-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 1px 0;
}

.settings-profile-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-avatar-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.settings-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.settings-user-name {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-heading);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.settings-user-status {
    font-size: 10.5px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.theme-select-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.theme-select-grid .theme-select-btn {
    width: 100% !important;
    text-align: left !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    padding: 7px 10px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-family: var(--font-heading) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.theme-select-grid .theme-select-btn:hover,
.theme-select-grid .theme-select-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(168, 85, 247, 0.15)) !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2) !important;
    transform: translateY(-1px) !important;
}

.settings-field-label {
    font-size: 10.5px;
    color: #94a3b8;
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-select-custom {
    width: 100% !important;
    background: rgba(15, 23, 42, 0.9) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    outline: none !important;
    font-family: var(--font-heading) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.settings-select-custom:focus,
.settings-select-custom:hover {
    border-color: rgba(56, 189, 248, 0.5) !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2) !important;
}

.settings-upload-btn {
    width: 100% !important;
    margin-top: 6px !important;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(168, 85, 247, 0.12)) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    color: #38bdf8 !important;
    padding: 8px 10px !important;
    font-family: var(--font-heading) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
}

.settings-upload-btn:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(168, 85, 247, 0.22)) !important;
    border-color: rgba(56, 189, 248, 0.6) !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3) !important;
}

.bg-select-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.bg-select-list::-webkit-scrollbar {
    width: 4px;
}

.bg-select-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.bg-select-list .bg-select-btn {
    width: 100% !important;
    text-align: left !important;
    background: none !important;
    border: none !important;
    color: #cbd5e1 !important;
    padding: 6px 8px !important;
    font-family: var(--font-heading) !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s !important;
}

.bg-select-list .bg-select-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}

/* Premium buy button display settings */
#btn-buy-premium,
#btn-buy-premium-settings,
#btn-buy-premium-drawer,
.btn-premium-header {
    display: inline-flex !important;
}

#btn-buy-premium.hidden,
#btn-buy-premium-settings.hidden,
#btn-buy-premium-drawer.hidden,
.btn-premium-header.hidden {
    display: none !important;
}

/* International Universities Database Table Styles */
.world-unis-table th, 
.world-unis-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    vertical-align: middle;
}

.world-unis-table tbody tr {
    transition: background-color 0.2s;
}

.world-unis-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.world-unis-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.world-unis-badge-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.world-unis-badge-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.world-unis-badge-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.world-unis-badge-info {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

@media (max-width: 900px) {
    .world-unis-table-wrapper {
        display: none !important;
    }
    .world-unis-cards-wrapper {
        display: flex !important;
    }
}

/* Informative Homepage Enhancements */
.ent-countdown-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
    backdrop-filter: blur(10px);
}

.countdown-icon {
    font-size: 24px;
    color: hsl(var(--primary));
    animation: pulse 2s infinite;
}

.countdown-text {
    font-size: 14px;
    color: hsl(var(--text-muted));
    font-weight: 500;
}

.countdown-timer-span {
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* Roadmap Grid */
.roadmap-timeline-section {
    margin-top: 60px;
    text-align: left;
}

.roadmap-timeline-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
}

.roadmap-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-left: 20px;
    border-left: 2px dashed rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.roadmap-step {
    position: relative;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s;
    cursor: pointer;
}

.roadmap-step:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: hsla(var(--primary), 0.2);
    transform: translateX(5px);
}

.roadmap-step::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 26px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: hsl(var(--primary));
    box-shadow: 0 0 10px hsl(var(--primary));
    border: 3px solid #000;
}

.roadmap-step-num {
    font-size: 11px;
    font-weight: bold;
    color: hsl(var(--primary));
    text-transform: uppercase;
    letter-spacing: 1px;
}

.roadmap-step-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 4px 0 8px 0;
}

.roadmap-step-desc {
    font-size: 13.5px;
    color: hsl(var(--text-muted));
    line-height: 1.5;
}

/* Subject Hub Grid */
.subject-hub-section {
    margin-top: 60px;
    text-align: left;
}

.subject-hub-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
}

.subject-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.subject-hub-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.subject-hub-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.subject-hub-icon-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subject-hub-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.subject-hub-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.subject-hub-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.subject-hub-card p {
    font-size: 13px;
    color: hsl(var(--text-muted));
    line-height: 1.5;
    margin: 0;
}

.subject-hub-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 14px;
    font-size: 12px;
    color: hsl(var(--text-muted));
}

.subject-hub-stats span strong {
    color: #fff;
}

/* User Live Analytics Card */
.live-analytics-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 20px;
    padding: 24px;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    backdrop-filter: blur(10px);
}

.live-analytics-info {
    text-align: left;
}

.live-analytics-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.live-analytics-info p {
    font-size: 13.5px;
    color: hsl(var(--text-muted));
    line-height: 1.5;
    margin: 0;
}

.live-analytics-stats {
    display: flex;
    gap: 32px;
}

.analytics-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.analytics-stat-val {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.analytics-stat-lbl {
    font-size: 11px;
    color: hsl(var(--text-muted));
    text-transform: uppercase;
    font-weight: 600;
}

@media (max-width: 768px) {
    .live-analytics-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .live-analytics-info {
        text-align: center;
    }
    .live-analytics-stats {
        justify-content: space-around;
    }
}

/* Syllabus Section Styling */
.syllabus-container {
    display: flex;
    gap: 24px;
}

.syllabus-subject-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.01);
    color: #94a3b8;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.syllabus-subject-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.08);
}

.syllabus-subject-btn.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.syllabus-topic-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.2s;
}

.syllabus-topic-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

.syllabus-topic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 12px;
}

.syllabus-topic-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
}

.syllabus-topic-chevron {
    font-size: 12px;
    color: hsl(var(--text-muted));
    transition: transform 0.2s;
}

.syllabus-topic-card.expanded .syllabus-topic-chevron {
    transform: rotate(180deg);
}

.syllabus-topic-body {
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    display: none;
    flex-direction: column;
    gap: 16px;
}

.syllabus-topic-card.expanded .syllabus-topic-body {
    display: flex;
}

.notes-editor-textarea {
    width: 100%;
    height: 150px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #e2e8f0;
    font-family: sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
    resize: vertical;
}

.notes-editor-textarea:focus {
    border-color: hsla(var(--primary), 0.5);
    outline: none;
    box-shadow: 0 0 10px hsla(var(--primary), 0.15);
}

@media (max-width: 900px) {
    .syllabus-container {
        flex-direction: column;
    }
    .syllabus-sidebar {
        width: 100% !important;
        max-height: 250px !important;
    }
}

/* Kazakhstan Exams Analytics Section */
.analytics-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.stats-card-premium {
    position: relative;
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
    overflow: hidden;
}

.stats-card-premium:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 10.5px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-badge.ent {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.card-badge.ielts {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.card-badge.sat {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.stats-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-card-premium h3 {
    margin: 0 0 16px 0;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-heading);
}

.stats-data-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stats-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 8px;
}

.stats-data-row strong {
    color: #fff;
}

/* Estimator Form Grid */
.estimator-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

/* Comparison Table Cells styling */
.comparison-table td {
    padding: 14px 16px;
    font-size: 13.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comparison-table th {
    padding: 14px 16px;
    font-size: 13.5px;
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.success-cell i {
    color: #34d399;
}

.fail-cell i {
    color: #f43f5e;
}

.warning-cell i {
    color: #fbbf24;
}

@media (max-width: 768px) {
    .estimator-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   NEW PREMIUM THEMES (Gold, Cosmic, Mint, Sakura)
   ========================================================================== */

/* 1. Gold Theme Variables & Overrides (Luxury Gold) */
body.theme-gold {
    --bg-dark: 35, 20%, 6%;             /* Deep golden-charcoal */
    --bg-card: 35, 15%, 11%;            /* Warm dark gold grey */
    --bg-card-hover: 35, 15%, 15%;      /* Lighter gold grey */
    --primary: 43, 80%, 52%;            /* Gold */
    --primary-glow: 43, 80%, 52%, 0.15;
    --accent: 45, 90%, 60%;             /* Bright sand gold */
    --accent-glow: 45, 90%, 60%, 0.15;
    --text-main: 43, 40%, 95%;          /* Cream white */
    --text-muted: 43, 15%, 72%;         /* Muted gold-grey */
}

body.theme-gold .glass-box,
body.theme-gold .uni-card,
body.theme-gold .subject-card,
body.theme-gold .stat-card,
body.theme-gold .login-box,
body.theme-gold .modal-box,
body.theme-gold .review-item,
body.theme-gold .history-item {
    border: 1px solid rgba(223, 170, 32, 0.25) !important;
    box-shadow: 0 0 20px rgba(223, 170, 32, 0.08) !important;
    background-color: rgba(28, 24, 20, 0.85) !important;
}

body.theme-gold h1, 
body.theme-gold h2, 
body.theme-gold h3,
body.theme-gold .accent-text,
body.theme-gold .gradient-text {
    background: linear-gradient(135deg, #ffe066 0%, #dfaa20 50%, #b45309 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0 0 10px rgba(223, 170, 32, 0.15);
}

body.theme-gold input,
body.theme-gold textarea,
body.theme-gold select {
    border: 1px solid rgba(223, 170, 32, 0.25) !important;
    background: rgba(20, 18, 15, 0.7) !important;
    color: hsl(var(--text-main)) !important;
}

body.theme-gold input:focus,
body.theme-gold textarea:focus,
body.theme-gold select:focus {
    border-color: rgba(223, 170, 32, 0.8) !important;
    box-shadow: 0 0 10px rgba(223, 170, 32, 0.3) !important;
}

/* 2. Cosmic Theme Variables & Overrides (Nebula Purple & Blue) */
body.theme-cosmic {
    --bg-dark: 260, 40%, 5%;            /* Deep galactic void */
    --bg-card: 260, 35%, 10%;           /* Nebula dark violet */
    --bg-card-hover: 260, 30%, 15%;     /* Lighter nebula */
    --primary: 282, 80%, 60%;           /* Magenta-violet */
    --primary-glow: 282, 80%, 60%, 0.2;
    --accent: 195, 90%, 55%;            /* Cosmic cyan */
    --accent-glow: 195, 90%, 55%, 0.2;
    --text-main: 260, 20%, 97%;         /* Lavender white */
    --text-muted: 260, 15%, 75%;        /* Lavender muted grey */
}

body.theme-cosmic .glass-box,
body.theme-cosmic .uni-card,
body.theme-cosmic .subject-card,
body.theme-cosmic .stat-card,
body.theme-cosmic .login-box,
body.theme-cosmic .modal-box,
body.theme-cosmic .review-item,
body.theme-cosmic .history-item {
    border: 1px solid rgba(211, 81, 231, 0.25) !important;
    box-shadow: 0 0 20px rgba(211, 81, 231, 0.12) !important;
    background-color: rgba(22, 15, 41, 0.85) !important;
}

body.theme-cosmic h1, 
body.theme-cosmic h2, 
body.theme-cosmic h3,
body.theme-cosmic .accent-text,
body.theme-cosmic .gradient-text {
    background: linear-gradient(135deg, #d351e7 0%, #b5179e 50%, #2cd1f0 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0 0 12px rgba(211, 81, 231, 0.2);
}

body.theme-cosmic input,
body.theme-cosmic textarea,
body.theme-cosmic select {
    border: 1px solid rgba(211, 81, 231, 0.25) !important;
    background: rgba(14, 10, 26, 0.7) !important;
    color: hsl(var(--text-main)) !important;
}

body.theme-cosmic input:focus,
body.theme-cosmic textarea:focus,
body.theme-cosmic select:focus {
    border-color: rgba(44, 209, 240, 0.8) !important;
    box-shadow: 0 0 10px rgba(44, 209, 240, 0.3) !important;
}

/* 3. Mint Theme Variables & Overrides (Fresh Sage & Emerald) */
body.theme-mint {
    --bg-dark: 165, 30%, 6%;            /* Deep mint forest */
    --bg-card: 165, 20%, 11%;           /* Deep mint grey */
    --bg-card-hover: 165, 18%, 15%;     /* Hover state */
    --primary: 155, 65%, 48%;           /* Mint green */
    --primary-glow: 155, 65%, 48%, 0.15;
    --accent: 172, 70%, 45%;            /* Teal */
    --accent-glow: 172, 70%, 45%, 0.15;
    --text-main: 155, 20%, 96%;         /* Minty cream white */
    --text-muted: 155, 12%, 75%;        /* Muted sage */
}

body.theme-mint .glass-box,
body.theme-mint .uni-card,
body.theme-mint .subject-card,
body.theme-mint .stat-card,
body.theme-mint .login-box,
body.theme-mint .modal-box,
body.theme-mint .review-item,
body.theme-mint .history-item {
    border: 1px solid rgba(27, 187, 130, 0.22) !important;
    box-shadow: 0 0 15px rgba(27, 187, 130, 0.08) !important;
    background-color: rgba(20, 34, 28, 0.85) !important;
}

body.theme-mint h1, 
body.theme-mint h2, 
body.theme-mint h3,
body.theme-mint .accent-text,
body.theme-mint .gradient-text {
    background: linear-gradient(135deg, #a7f3d0 0%, #1bbb82 50%, #14b8a6 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

body.theme-mint input,
body.theme-mint textarea,
body.theme-mint select {
    border: 1px solid rgba(27, 187, 130, 0.25) !important;
    background: rgba(12, 22, 18, 0.7) !important;
    color: hsl(var(--text-main)) !important;
}

body.theme-mint input:focus,
body.theme-mint textarea:focus,
body.theme-mint select:focus {
    border-color: rgba(27, 187, 130, 0.8) !important;
    box-shadow: 0 0 10px rgba(27, 187, 130, 0.3) !important;
}

/* 4. Sakura Theme Variables & Overrides (Soft Pink Cherry) */
body.theme-sakura {
    --bg-dark: 345, 25%, 6%;            /* Deep cherry wood */
    --bg-card: 345, 18%, 11%;           /* Dark cherry card */
    --bg-card-hover: 345, 15%, 15%;     /* Lighter cherry card */
    --primary: 340, 75%, 65%;           /* Cherry Pink */
    --primary-glow: 340, 75%, 65%, 0.15;
    --accent: 355, 80%, 75%;            /* Soft rose */
    --accent-glow: 355, 80%, 75%, 0.15;
    --text-main: 340, 20%, 96%;         /* Soft white-pink */
    --text-muted: 340, 12%, 78%;        /* Muted rose grey */
}

body.theme-sakura .glass-box,
body.theme-sakura .uni-card,
body.theme-sakura .subject-card,
body.theme-sakura .stat-card,
body.theme-sakura .login-box,
body.theme-sakura .modal-box,
body.theme-sakura .review-item,
body.theme-sakura .history-item {
    border: 1px solid rgba(235, 98, 151, 0.22) !important;
    box-shadow: 0 0 15px rgba(235, 98, 151, 0.08) !important;
    background-color: rgba(28, 18, 21, 0.85) !important;
}

body.theme-sakura h1, 
body.theme-sakura h2, 
body.theme-sakura h3,
body.theme-sakura .accent-text,
body.theme-sakura .gradient-text {
    background: linear-gradient(135deg, #fbcfe8 0%, #eb6297 50%, #fca5a5 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0 0 8px rgba(235, 98, 151, 0.15);
}

body.theme-sakura input,
body.theme-sakura textarea,
body.theme-sakura select {
    border: 1px solid rgba(235, 98, 151, 0.25) !important;
    background: rgba(20, 12, 14, 0.7) !important;
    color: hsl(var(--text-main)) !important;
}

body.theme-sakura input:focus,
body.theme-sakura textarea:focus,
body.theme-sakura select:focus {
    border-color: rgba(235, 98, 151, 0.8) !important;
    box-shadow: 0 0 10px rgba(235, 98, 151, 0.3) !important;
}

/* Screener Table Row Hover Styles */
.screener-tr:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}







/* Responsive Desktop Header Ribbon Adaptation */
@media (max-width: 1400px) {
    .header-container {
        gap: 8px;
        padding: 0 12px;
    }
    .desktop-nav {
        gap: 2px;
        padding: 3px 4px;
    }
    .nav-link, .nav-dropbtn {
        padding: 0 10px;
        font-size: 12px;
        height: 34px;
        line-height: 34px;
    }
    .header-actions {
        gap: 6px;
    }
    .btn-buy-text {
        font-size: 11px;
    }
    #desktop-settings-btn-text {
        font-size: 11px;
    }
}

@media (max-width: 1200px) {
    .logo-text {
        font-size: 15px;
    }
    .logo-icon {
        font-size: 20px;
    }
    .nav-link, .nav-dropbtn {
        padding: 0 7px;
        font-size: 11px;
    }
    .btn-premium-header {
        padding: 6px 10px;
        font-size: 11px;
    }
    .lang-switcher-container button {
        padding: 4px 8px !important;
        font-size: 10px !important;
    }
}


/* Full-Width Edge-to-Edge Header Ribbon Layout */
header .header-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 32px !important;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 20px;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 4px 6px;
    border-radius: 26px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
    flex-wrap: nowrap;
    white-space: nowrap;
}
