/* ==========================================================================
   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: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3.5px solid #34d399;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 25px rgba(52, 211, 153, 0.25);
    background: rgba(52, 211, 153, 0.05);
}

.result-score {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: #34d399;
    line-height: 1.1;
}

.result-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(226, 232, 240, 0.7);
    font-weight: 700;
    margin-top: 4px;
}

.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 {
    margin-top: 10px;
    font-size: 13px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.75) !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    border-left: 3.5px solid #38bdf8 !important;
    line-height: 1.55 !important;
    text-align: left !important;
}

.review-explanation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.review-explanation-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 13px;
    color: #38bdf8;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.review-explanation-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 13px;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.review-explanation-tag {
    font-size: 11px;
    font-weight: 700;
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.review-explanation-body {
    color: #e2e8f0;
    font-size: 13.5px;
    line-height: 1.65;
    font-weight: 400;
}

    .review-explanation {
        padding: 12px 14px !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
    .review-explanation-header {
        margin-bottom: 8px;
        padding-bottom: 6px;
    }
    .review-explanation-title {
        font-size: 12px;
    }
    .review-explanation-tag {
        font-size: 10px;
        padding: 2px 8px;
    }
    .review-explanation-body {
        font-size: 13px;
    }


.review-explanation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.15);
}

.review-explanation-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 13px;
    color: #fbbf24;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.review-explanation-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(251, 191, 36, 0.18);
    border: 1px solid rgba(251, 191, 36, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    font-size: 13px;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.25);
}

.review-explanation-tag {
    font-size: 11px;
    font-weight: 700;
    color: rgba(251, 191, 36, 0.85);
    background: rgba(251, 191, 36, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.review-explanation-body {
    color: #e2e8f0;
    font-size: 13.5px;
    line-height: 1.65;
    font-weight: 400;
}

/* 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 & Pill Scroll Bar Design System */
.formula-pill-scroll-bar,
#formula-subject-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    padding: 10px 14px !important;
    border-radius: 22px !important;
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
    margin-bottom: 24px !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.4) rgba(15, 23, 42, 0.6);
}

.formula-pill-scroll-bar::-webkit-scrollbar,
#formula-subject-tabs::-webkit-scrollbar {
    height: 5px;
}

.formula-pill-scroll-bar::-webkit-scrollbar-track,
#formula-subject-tabs::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 10px;
}

.formula-pill-scroll-bar::-webkit-scrollbar-thumb,
#formula-subject-tabs::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #38bdf8, #a855f7, #fbbf24);
    border-radius: 10px;
}

.formula-pill-scroll-bar .lead-platform-tab,
#formula-subject-tabs .lead-platform-tab {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 9px 18px !important;
    border-radius: 16px !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.formula-pill-scroll-bar .lead-platform-tab:hover,
#formula-subject-tabs .lead-platform-tab:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px);
}

/* Neon Active States for Formula Tabs */
#formula-subject-tabs .lead-platform-tab.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(168, 85, 247, 0.25)) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.35) !important;
    transform: scale(1.02);
}

#formula-subject-tabs .lead-platform-tab[data-subject="math"].active {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.25)) !important;
    border-color: #fbbf24 !important;
    color: #fbbf24 !important;
    box-shadow: 0 4px 18px rgba(251, 191, 36, 0.35) !important;
}

#formula-subject-tabs .lead-platform-tab[data-subject="physics"].active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(2, 132, 199, 0.25)) !important;
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.35) !important;
}

#formula-subject-tabs .lead-platform-tab[data-subject="history_dates"].active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.25)) !important;
    border-color: #34d399 !important;
    color: #34d399 !important;
    box-shadow: 0 4px 18px rgba(52, 211, 153, 0.35) !important;
}

#formula-subject-tabs .lead-platform-tab[data-subject="history_master_hub"].active {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.3)) !important;
    border-color: #fbbf24 !important;
    color: #fbbf24 !important;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4) !important;
}

#formula-subject-tabs .lead-platform-tab[data-subject="world_history_dates"].active {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.25)) !important;
    border-color: #f87171 !important;
    color: #f87171 !important;
    box-shadow: 0 4px 18px rgba(248, 113, 113, 0.35) !important;
}

#formula-subject-tabs .lead-platform-tab[data-subject="geography"].active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25)) !important;
    border-color: #34d399 !important;
    color: #34d399 !important;
    box-shadow: 0 4px 18px rgba(52, 211, 153, 0.35) !important;
}

#formula-subject-tabs .lead-platform-tab[data-subject="chemistry"].active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(168, 85, 247, 0.25)) !important;
    border-color: #22d3ee !important;
    color: #22d3ee !important;
    box-shadow: 0 4px 18px rgba(34, 211, 238, 0.35) !important;
}

#formula-subject-tabs .lead-platform-tab[data-subject="history_glossary"].active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(147, 51, 234, 0.25)) !important;
    border-color: #c084fc !important;
    color: #c084fc !important;
    box-shadow: 0 4px 18px rgba(192, 132, 252, 0.35) !important;
}

#formula-subject-tabs .lead-platform-tab[data-subject="industry_kz"].active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.25)) !important;
    border-color: #fbbf24 !important;
    color: #fbbf24 !important;
    box-shadow: 0 4px 18px rgba(251, 191, 36, 0.35) !important;
}

.formula-category-block {
    background: hsla(var(--bg-card), 0.7);
    border: 1px solid hsla(var(--border), 0.4);
    border-radius: 18px;
    margin-bottom: 14px;
    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 18px hsla(var(--primary), 0.2);
}

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

.formula-category-body {
    display: none;
    padding: 20px;
    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: 14px;
    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;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.formula-item-card .katex-display,
.formula-item-card .katex {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

@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 .uni-card:hover,
body.theme-slate .subject-card:hover,
body.theme-slate .stat-card:hover,
body.theme-slate .review-item:hover,
body.theme-slate .history-item:hover {
    border-color: rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

body.theme-slate .subject-card.active,
body.theme-slate .selector-btn.active {
    border-color: hsl(var(--primary)) !important;
    box-shadow: 0 0 0 1px hsl(var(--primary)) !important;
    background-color: hsla(var(--primary), 0.15) !important;
}

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 .logo-text {
    text-shadow: none !important;
}

body.theme-slate .logo-icon {
    filter: none !important;
}

body.theme-slate .blur-bg {
    opacity: 0.1 !important;
}

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;
}

body.theme-slate .btn-primary:hover {
    background: hsl(215, 20%, 46%) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

body.theme-slate .btn-secondary {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: hsl(var(--text-main)) !important;
    box-shadow: none !important;
}

body.theme-slate .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.09) !important;
}

body.theme-slate input,
body.theme-slate textarea,
body.theme-slate select {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: hsl(var(--text-main)) !important;
    box-shadow: none !important;
}

body.theme-slate input:focus,
body.theme-slate textarea:focus,
body.theme-slate select:focus {
    border-color: hsl(var(--primary)) !important;
    box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.25) !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: #38bdf8 !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.9) !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;
}

/* ==========================================================================
   MOBILE OPTIMIZATIONS FOR HOME PAGE & CHEAT SHEETS (PHONES & TABLETS)
   ========================================================================== */

@media (max-width: 768px) {
    /* 1. Header & Navigation for Mobile */
    header .header-container {
        padding: 0 14px !important;
    }
    
    /* 2. Home Page Hero Layout Adjustments */
    #sec-home .hero {
        flex-direction: column !important;
        padding: 20px 16px !important;
        margin-bottom: 20px !important;
        border-radius: 20px !important;
        gap: 16px !important;
    }

    #sec-home .hero-content {
        max-width: 100% !important;
        width: 100% !important;
    }

    #sec-home .hero-content h1 {
        font-size: 22px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }

    #sec-home .hero-desc {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 16px !important;
    }

    #sec-home .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    #sec-home .hero-buttons .btn {
        width: 100% !important;
        justify-content: center !important;
        font-size: 13px !important;
        padding: 12px 16px !important;
        border-radius: 14px !important;
    }

    /* Hide large floating visual circle on phones to prevent vertical clutter */
    #sec-home .hero-visual {
        display: none !important;
    }

    /* 3. ENT Countdown Banner for Mobile */
    .ent-countdown-container {
        padding: 12px 14px !important;
        margin-bottom: 16px !important;
        border-radius: 16px !important;
        gap: 10px !important;
    }

    .countdown-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
    }

    .countdown-timer-span {
        font-size: 15px !important;
    }

    /* 4. Live Analytics Card for Mobile */
    .live-analytics-card {
        flex-direction: column !important;
        padding: 16px !important;
        gap: 14px !important;
        border-radius: 18px !important;
        margin-bottom: 20px !important;
    }

    .live-analytics-stats {
        display: flex !important;
        width: 100% !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }

    .analytics-stat-item {
        flex: 1 !important;
        text-align: center !important;
        padding: 10px 4px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border-radius: 12px !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .analytics-stat-val {
        font-size: 18px !important;
    }

    .analytics-stat-lbl {
        font-size: 11px !important;
    }

    /* 5. Question Bank Statistics Section for Mobile */
    .qbank-stats-container {
        padding: 16px !important;
        border-radius: 18px !important;
        margin: 20px 0 !important;
    }

    .qbank-stats-container > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
        padding-bottom: 12px !important;
    }

    .qbank-stats-container h2 {
        font-size: 18px !important;
    }

    .qbank-stats-container > div:first-child > div:last-child {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .qbank-stats-container > div:last-child {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* 6. Subject Hub & Features Grid for Mobile */
    .subject-hub-section, .roadmap-timeline-section {
        margin-top: 24px !important;
    }

    .subject-hub-title, .roadmap-timeline-title {
        font-size: 18px !important;
        margin-bottom: 14px !important;
    }

    .subject-hub-grid, .features-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .subject-hub-card, .feature-card {
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .roadmap-timeline {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .roadmap-step {
        width: 100% !important;
        padding: 16px !important;
        border-radius: 16px !important;
    }

    /* 7. Cheat Sheets & Subject Switcher Panel Mobile Scroll */
    #formula-subject-tabs,
    .formula-pill-scroll-bar {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 8px 10px !important;
        gap: 8px !important;
        border-radius: 18px !important;
        margin-bottom: 16px !important;
    }
    
    #formula-subject-tabs::-webkit-scrollbar,
    .formula-pill-scroll-bar::-webkit-scrollbar {
        height: 3px;
    }
    
    #formula-subject-tabs::-webkit-scrollbar-thumb,
    .formula-pill-scroll-bar::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.25);
        border-radius: 4px;
    }
    
    #formula-subject-tabs .lead-platform-tab,
    .formula-pill-scroll-bar .lead-platform-tab {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        padding: 8px 14px !important;
        font-size: 12px !important;
    }

    .formula-category-header {
        padding: 14px 16px !important;
        font-size: 14.5px !important;
    }

    .formula-category-body {
        padding: 14px !important;
    }

    .formula-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 10px !important;
    }

    .formula-item-card {
        min-height: 70px !important;
        padding: 12px !important;
        font-size: 13px !important;
    }

    .glossary-letters-bar {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 6px !important;
        padding-bottom: 6px !important;
    }

    .glossary-letters-bar button {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    /* 8. History Hub & Master Cheat Sheet Mobile Stack */
    .history-hub-content-box {
        gap: 14px !important;
    }
    
    .history-hub-content-box > div {
        padding: 14px !important;
    }

    /* 9. ENT by Subjects Section Mobile Optimizations */
    #sec-subject-tests .glass-box {
        padding: 18px 16px !important;
        border-radius: 18px !important;
    }

    #sec-subject-tests h2 {
        font-size: 20px !important;
    }

    #sec-subject-tests #st-subject-selector-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    #sec-subject-tests #st-workspace-box > div:nth-child(2) {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    #st-qcount-options, #st-time-options {
        justify-content: space-between !important;
    }

    #st-qcount-options .selector-btn, #st-time-options .selector-btn {
        flex: 1 !important;
        padding: 10px 4px !important;
        font-size: 12.5px !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    /* Ultra-small phones tweaks */
    body {
        font-size: 13px !important;
    }
    
    .section-header h2 {
        font-size: 18px !important;
    }
    
    button[onclick="copyHistoryHubText()"] {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .lead-platform-tab {
        font-size: 11.5px !important;
        padding: 6px 12px !important;
    }

    #sec-home .hero-content h1 {
        font-size: 20px !important;
    }
}


/* ==========================================================================
   ULTRA-PREMIUM BEAUTIFUL "ЗАПУСТИТЬ ТЕСТ" BUTTON & SUBJECT TESTS REDESIGN
   ========================================================================== */
#btn-start-exam-run, 
.btn-launch-glow {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%) !important;
    background-size: 200% auto !important;
    border: 1.5px solid rgba(52, 211, 153, 0.6) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    padding: 16px 36px !important;
    border-radius: 16px !important;
    cursor: pointer !important;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.45), 0 0 25px rgba(6, 182, 212, 0.35) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    overflow: hidden !important;
}

#btn-start-exam-run:hover, 
.btn-launch-glow:hover {
    background-position: right center !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 14px 35px rgba(16, 185, 129, 0.65), 0 0 35px rgba(56, 189, 248, 0.5) !important;
    border-color: #34d399 !important;
}

#btn-start-exam-run:active, 
.btn-launch-glow:active {
    transform: translateY(0) scale(0.99) !important;
}

#btn-start-exam-run::before, 
.btn-launch-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: all 0.6s ease;
}

#btn-start-exam-run:hover::before, 
.btn-launch-glow:hover::before {
    left: 140%;
}

/* ==========================================================================
   PREMIUM & POLISHED SUBJECT TESTS WORKSPACE & ACTION BUTTONS
   ========================================================================== */
.st-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}

.st-param-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.65) 0%, rgba(15, 23, 42, 0.75) 100%) !important;
    padding: 16px 18px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.st-param-card:hover {
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-1px) !important;
}

.st-param-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    letter-spacing: 0.2px !important;
}
.st-param-label.text-amber { color: #fbbf24 !important; }
.st-param-label.text-sky { color: #38bdf8 !important; }
.st-param-label.text-emerald { color: #34d399 !important; }

.st-custom-select {
    width: 100% !important;
    padding: 10px 14px !important;
    border-radius: 11px !important;
    background: #0f172a !important;
    color: #f8fafc !important;
    border: 1px solid rgba(251, 191, 36, 0.35) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    outline: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    height: 40px !important;
}
.st-custom-select:focus {
    border-color: #fbbf24 !important;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2) !important;
}

.st-chips-grid {
    display: grid !important;
    gap: 6px !important;
    width: 100% !important;
}
.st-chips-grid.count-5 {
    grid-template-columns: repeat(5, 1fr) !important;
}
.st-chips-grid.count-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

.st-chips-grid .selector-btn {
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 9px !important;
    text-align: center !important;
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.st-chips-grid .selector-btn:hover {
    background: rgba(30, 41, 59, 0.8) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px) !important;
}

#st-qcount-options .selector-btn.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.28) 0%, rgba(2, 132, 199, 0.4) 100%) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 12px rgba(56, 189, 248, 0.3) !important;
}

#st-time-options .selector-btn.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.28) 0%, rgba(5, 150, 105, 0.4) 100%) !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 12px rgba(52, 211, 153, 0.3) !important;
}

/* Actions Bar & Compact Solid Buttons */
.st-actions-bar {
    display: flex !important;
    gap: 14px !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin-top: 22px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.btn-st-compact-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: 1px solid rgba(52, 211, 153, 0.45) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 11px 24px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-transform: none !important;
    letter-spacing: 0.15px !important;
    min-width: 220px !important;
    max-width: 280px !important;
    height: 46px !important;
    flex: 1 1 220px !important;
}

.btn-st-compact-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    border-color: #34d399 !important;
}

.btn-st-compact-primary:active {
    transform: translateY(0) scale(0.99) !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2) !important;
}

.btn-st-compact-cram {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #f1f5f9 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 11px 24px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-transform: none !important;
    letter-spacing: 0.15px !important;
    min-width: 220px !important;
    max-width: 280px !important;
    height: 46px !important;
    flex: 1 1 220px !important;
}

.btn-st-compact-cram:hover {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%) !important;
    border-color: rgba(251, 191, 36, 0.5) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(251, 191, 36, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.btn-st-compact-cram:active {
    transform: translateY(0) scale(0.99) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.btn-st-icon-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 7px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    font-size: 11px !important;
    color: #ffffff !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

.btn-st-icon-pill.amber {
    background: rgba(251, 191, 36, 0.18) !important;
    color: #fbbf24 !important;
}

.btn-st-compact-cram:hover .btn-st-icon-pill.amber {
    background: rgba(251, 191, 36, 0.3) !important;
    color: #fef08a !important;
    transform: scale(1.1) !important;
}

.btn-st-compact-primary:hover .btn-st-icon-pill {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1) !important;
}

@media (max-width: 560px) {
    .st-actions-bar button {
        width: 100% !important;
        max-width: 100% !important;
    }
    .st-chips-grid .selector-btn {
        font-size: 11.5px !important;
        height: 36px !important;
    }
}

/* ==========================================================================
   SINGLE PAGE TEST PROMO BANNER (#sec-subject-tests)
   ========================================================================== */
.st-sp-promo-card {
    padding: 16px 20px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.25) 0%, rgba(15, 23, 42, 0.92) 100%) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.38) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), 0 0 16px rgba(56, 189, 248, 0.12) !important;
    margin-bottom: 20px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.st-sp-promo-card:hover {
    border-color: rgba(56, 189, 248, 0.7) !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35), 0 0 24px rgba(56, 189, 248, 0.25) !important;
    transform: translateY(-2px) !important;
}

.st-sp-promo-left {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.st-sp-promo-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background: rgba(56, 189, 248, 0.15) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    color: #38bdf8 !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2) !important;
}

.st-sp-promo-body {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.st-sp-promo-header {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 4px !important;
}

.st-sp-promo-title {
    margin: 0 !important;
    font-size: 15.5px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    letter-spacing: 0.2px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.st-sp-promo-badge {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.15) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    padding: 2px 8px !important;
    border-radius: 99px !important;
    white-space: nowrap !important;
}

.st-sp-promo-desc {
    margin: 0 !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.st-sp-promo-btn {
    padding: 10px 20px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
    height: 42px !important;
}

.st-sp-promo-btn:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5) !important;
}

@media (max-width: 720px) {
    .st-sp-promo-card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
        padding: 14px 16px !important;
    }
    .st-sp-promo-left {
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .st-sp-promo-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 17px !important;
        margin-top: 2px !important;
    }
    .st-sp-promo-header {
        gap: 6px !important;
        margin-bottom: 5px !important;
    }
    .st-sp-promo-title {
        font-size: 14.5px !important;
        white-space: normal !important;
    }
    .st-sp-promo-badge {
        font-size: 10.5px !important;
    }
    .st-sp-promo-desc {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
    .st-sp-promo-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 9px 16px !important;
        font-size: 13px !important;
        height: 40px !important;
    }
}


/* ==========================================================================
   MOBILE VIEWPORT OPTIMIZATIONS FOR ENT EXAM SIMULATOR & SINGLE PAGE TEST
   ========================================================================== */
@media (max-width: 768px) {
    /* ENT Simulator Setup Container */
    #sec-exam #exam-setup-box {
        padding: 18px 14px !important;
        border-radius: 18px !important;
    }

    #sec-exam .setup-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Subject Cards List on Mobile */
    #sec-exam .subject-options {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    #sec-exam .subject-card {
        padding: 12px 10px !important;
        border-radius: 14px !important;
        font-size: 12.5px !important;
        gap: 8px !important;
        flex-direction: column !important;
        text-align: center !important;
        justify-content: center !important;
    }

    #sec-exam .subject-card .subj-icon {
        font-size: 20px !important;
    }

    /* Parameter Selector Buttons (Count & Time) */
    #sec-exam #q-count-options, #sec-exam #time-options {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    #sec-exam #q-count-options .selector-btn, #sec-exam #time-options .selector-btn {
        width: 100% !important;
        padding: 12px 8px !important;
        font-size: 13px !important;
        text-align: center !important;
        border-radius: 12px !important;
    }

    /* Inline Subject Topic Breakdown Panel */
    #subject-inline-breakdown {
        padding: 14px 14px !important;
        margin-top: 16px !important;
        border-radius: 14px !important;
    }

    /* Start Simulation Launch Button */
    #btn-start-exam-run {
        width: 100% !important;
        padding: 16px 20px !important;
        font-size: 15px !important;
        border-radius: 16px !important;
        margin-top: 18px !important;
    }

    /* Quiz Screen Mobile Redesign */
    #sec-exam #exam-quiz-box {
        padding: 14px 12px !important;
        border-radius: 18px !important;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
        border: 1.5px solid rgba(56, 189, 248, 0.25) !important;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(56, 189, 248, 0.1) !important;
    }

    #exam-quiz-box .quiz-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px !important;
        background: rgba(15, 23, 42, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 14px !important;
        margin-bottom: 14px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    #exam-quiz-box .quiz-top-info {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }

    #exam-quiz-box .quiz-subject-badge {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
        padding: 8px 12px !important;
        font-size: 12.5px !important;
        font-weight: 800 !important;
        line-height: 1.35 !important;
        border-radius: 10px !important;
        white-space: normal !important;
        word-break: break-word !important;
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(168, 85, 247, 0.15)) !important;
        border: 1.5px solid rgba(56, 189, 248, 0.4) !important;
        color: #38bdf8 !important;
        box-shadow: 0 2px 10px rgba(56, 189, 248, 0.15) !important;
    }

    #exam-quiz-box .quiz-meta-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin: 0 !important;
        gap: 10px !important;
    }

    #exam-quiz-box .quiz-progress-text {
        display: inline-flex !important;
        align-items: center !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #cbd5e1 !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        padding: 5px 12px !important;
        border-radius: 20px !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    #exam-quiz-box .quiz-timer {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 12.5px !important;
        font-weight: 800 !important;
        color: #34d399 !important;
        background: rgba(16, 185, 129, 0.12) !important;
        border: 1px solid rgba(16, 185, 129, 0.35) !important;
        padding: 5px 12px !important;
        border-radius: 20px !important;
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.2) !important;
        margin: 0 0 0 auto !important;
        font-variant-numeric: tabular-nums !important;
        align-self: auto !important;
    }

    #exam-quiz-box .quiz-timer.urgent {
        background: rgba(244, 63, 94, 0.15) !important;
        border-color: rgba(244, 63, 94, 0.5) !important;
        color: #f43f5e !important;
        box-shadow: 0 0 14px rgba(244, 63, 94, 0.35) !important;
    }

    #exam-quiz-box .quiz-tts-control-bar {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    #exam-quiz-box .tts-select-wrapper {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        position: relative !important;
    }

    #exam-quiz-box .tts-select-wrapper .tts-icon {
        position: absolute !important;
        left: 10px !important;
        font-size: 12px !important;
        color: #38bdf8 !important;
        pointer-events: none !important;
        z-index: 2 !important;
    }

    #exam-quiz-box .select-tts-voice {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 38px !important;
        padding: 0 26px 0 28px !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        background: rgba(15, 23, 42, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center !important;
        color: #38bdf8 !important;
        border: 1px solid rgba(56, 189, 248, 0.35) !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    }

    #exam-quiz-box .btn-tts {
        flex: 0 0 auto !important;
        width: auto !important;
        height: 38px !important;
        padding: 0 13px !important;
        border-radius: 12px !important;
        font-size: 11.5px !important;
        font-weight: 800 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
        color: #070d19 !important;
        border: none !important;
        box-shadow: 0 3px 12px rgba(56, 189, 248, 0.35) !important;
        white-space: nowrap !important;
    }

    #exam-quiz-box .progress-bar-container {
        height: 5px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border-radius: 99px !important;
        margin-bottom: 16px !important;
        overflow: hidden !important;
    }

    #exam-quiz-box .progress-bar-fill {
        height: 100% !important;
        background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc) !important;
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.5) !important;
        border-radius: 99px !important;
    }

    #exam-quiz-box .question-text {
        font-size: 15.5px !important;
        font-weight: 700 !important;
        line-height: 1.55 !important;
        color: #f8fafc !important;
        margin-bottom: 16px !important;
    }

    #exam-quiz-box .options-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }

    #exam-quiz-box .option-btn {
        min-height: 50px !important;
        padding: 12px 14px !important;
        background: rgba(30, 41, 59, 0.45) !important;
        border: 1.5px solid rgba(148, 163, 184, 0.16) !important;
        border-radius: 14px !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        margin-bottom: 0 !important;
        transition: all 0.18s ease !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    #exam-quiz-box .option-btn:active {
        transform: scale(0.985) !important;
    }

    #exam-quiz-box .option-btn.selected {
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(99, 102, 241, 0.14)) !important;
        border-color: rgba(56, 189, 248, 0.75) !important;
        box-shadow: 0 4px 18px rgba(56, 189, 248, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
        transform: translateY(-1px) !important;
    }

    #exam-quiz-box .option-letter {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.07) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        color: #94a3b8 !important;
        font-weight: 800 !important;
        font-size: 12.5px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #exam-quiz-box .option-btn.selected .option-letter {
        background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
        border-color: #38bdf8 !important;
        color: #070d19 !important;
        font-weight: 900 !important;
        box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4) !important;
    }

    #exam-quiz-box .option-label-text {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #e2e8f0 !important;
        line-height: 1.45 !important;
    }

    #exam-quiz-box .quiz-footer {
        display: flex !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    #exam-quiz-box #btn-prev-question {
        flex: 1 1 0 !important;
        height: 42px !important;
        padding: 0 8px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        color: #cbd5e1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
    }

    #exam-quiz-box #btn-skip-question {
        flex: 1 1 0 !important;
        height: 42px !important;
        padding: 0 8px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        background: rgba(245, 158, 11, 0.08) !important;
        border: 1px solid rgba(245, 158, 11, 0.3) !important;
        color: #fbbf24 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #exam-quiz-box #btn-next-question {
        flex: 1.3 1 0 !important;
        height: 42px !important;
        padding: 0 10px !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        border-radius: 12px !important;
        background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
        color: #070d19 !important;
        border: none !important;
        box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
    }
}


/* ==========================================================================
   STRICT SINGLE-LINE DESKTOP HEADER & HIDE PRO BUTTONS
   ========================================================================== */

/* ==========================================================================
   DESKTOP PRO BUTTON & HAMBURGER DRAWER PRO BUTTON DISPLAY
   ========================================================================== */

@media (min-width: 769px) {
    #btn-buy-premium {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
    }
}

@media (max-width: 768px) {
    header #btn-buy-premium {
        display: none !important;
    }
    
    header #premium-indicator {
        display: none !important;
    }
}

#mobile-menu-drawer #btn-buy-premium-drawer {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 240px !important;
    height: 40px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(56, 189, 248, 0.25)) !important;
    color: #38bdf8 !important;
    border: 1.5px solid rgba(56, 189, 248, 0.6) !important;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3), 0 0 12px rgba(56, 189, 248, 0.2) !important;
}


header .header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 14px !important;
}

header nav {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 8px !important;
}

.header-actions {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 8px !important;
}


/* Hide PRO Active badge on mobile viewports for clean single-line header */
@media (max-width: 768px) {
    #premium-indicator,
    .premium-badge,
    #drawer-premium-active-msg,
    #desktop-premium-active-msg {
        display: none !important;
    }
}


/* ==========================================================================
   PREMIUM GLASSMORPHIC QUIZ HEADER & CUSTOM TTS CONTROL BAR
   ========================================================================== */

#exam-quiz-box .quiz-header {
    margin-bottom: 18px !important;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.9)) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(16px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.quiz-subject-badge {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.2)) !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    color: #38bdf8 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25) !important;
}

.quiz-progress-text {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
}

.quiz-meta-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#exam-quiz-box .quiz-timer {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #34d399 !important;
    padding: 5px 14px !important;
    background: rgba(52, 211, 153, 0.12) !important;
    border: 1px solid rgba(52, 211, 153, 0.35) !important;
    border-radius: 20px !important;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.2) !important;
    font-variant-numeric: tabular-nums !important;
}

.tts-select-wrapper {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-grow: 1 !important;
}

.tts-select-wrapper .tts-icon {
    position: absolute !important;
    left: 12px !important;
    color: #38bdf8 !important;
    font-size: 13px !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.select-tts-voice {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding: 7px 32px 7px 32px !important;
    border-radius: 12px !important;
    background: rgba(15, 23, 42, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center !important;
    color: #38bdf8 !important;
    border: 1.5px solid rgba(56, 189, 248, 0.4) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    font-family: var(--font-heading) !important;
    cursor: pointer !important;
    outline: none !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.select-tts-voice:hover,
.select-tts-voice:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4) !important;
    background-color: rgba(30, 41, 59, 0.95) !important;
}

.select-tts-voice option {
    background: #0f172a !important;
    color: #e2e8f0 !important;
    padding: 10px !important;
    font-weight: 600 !important;
}

.btn-tts {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 7px 16px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
    color: #0f172a !important;
    border: none !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    font-family: var(--font-heading) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35) !important;
}

.btn-tts:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5) !important;
    background: linear-gradient(135deg, #38bdf8, #7dd3fc) !important;
}

.btn-tts:active {
    transform: translateY(0) !important;
}

@media (min-width: 769px) {
    #exam-quiz-box .quiz-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 20px !important;
    }

    .quiz-top-info {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        flex-wrap: nowrap !important;
        width: auto !important;
    }

    .quiz-subject-badge {
        width: auto !important;
        max-width: 320px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .quiz-meta-row {
        display: inline-flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    #exam-quiz-box .quiz-timer {
        margin-left: 0 !important;
    }

    .quiz-tts-control-bar {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        width: auto !important;
    }

    .select-tts-voice {
        min-width: 175px !important;
        width: auto !important;
    }

    .btn-tts {
        width: auto !important;
    }
}

/* Mobile Quiz Screen Cascade Overrides */
@media (max-width: 768px) {
    #sec-exam #exam-quiz-box {
        padding: 14px 12px !important;
        border-radius: 18px !important;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
        border: 1.5px solid rgba(56, 189, 248, 0.25) !important;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(56, 189, 248, 0.1) !important;
    }

    #exam-quiz-box .quiz-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px !important;
        background: rgba(15, 23, 42, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 14px !important;
        margin-bottom: 14px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    #exam-quiz-box .quiz-top-info {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }

    #exam-quiz-box .quiz-subject-badge {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
        padding: 8px 12px !important;
        font-size: 12.5px !important;
        font-weight: 800 !important;
        line-height: 1.35 !important;
        border-radius: 10px !important;
        white-space: normal !important;
        word-break: break-word !important;
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(168, 85, 247, 0.15)) !important;
        border: 1.5px solid rgba(56, 189, 248, 0.4) !important;
        color: #38bdf8 !important;
        box-shadow: 0 2px 10px rgba(56, 189, 248, 0.15) !important;
    }

    #exam-quiz-box .quiz-meta-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin: 0 !important;
        gap: 10px !important;
    }

    #exam-quiz-box .quiz-progress-text {
        display: inline-flex !important;
        align-items: center !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #cbd5e1 !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        padding: 5px 12px !important;
        border-radius: 20px !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    #exam-quiz-box .quiz-timer {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 12.5px !important;
        font-weight: 800 !important;
        color: #34d399 !important;
        background: rgba(16, 185, 129, 0.12) !important;
        border: 1px solid rgba(16, 185, 129, 0.35) !important;
        padding: 5px 12px !important;
        border-radius: 20px !important;
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.2) !important;
        margin: 0 0 0 auto !important;
        font-variant-numeric: tabular-nums !important;
        align-self: auto !important;
    }

    #exam-quiz-box .quiz-timer.urgent {
        background: rgba(244, 63, 94, 0.15) !important;
        border-color: rgba(244, 63, 94, 0.5) !important;
        color: #f43f5e !important;
        box-shadow: 0 0 14px rgba(244, 63, 94, 0.35) !important;
    }

    #exam-quiz-box .quiz-tts-control-bar {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    #exam-quiz-box .tts-select-wrapper {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        position: relative !important;
    }

    #exam-quiz-box .tts-select-wrapper .tts-icon {
        position: absolute !important;
        left: 10px !important;
        font-size: 12px !important;
        color: #38bdf8 !important;
        pointer-events: none !important;
        z-index: 2 !important;
    }

    #exam-quiz-box .select-tts-voice {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 38px !important;
        padding: 0 26px 0 28px !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        background: rgba(15, 23, 42, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center !important;
        color: #38bdf8 !important;
        border: 1px solid rgba(56, 189, 248, 0.35) !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    }

    #exam-quiz-box .btn-tts {
        flex: 0 0 auto !important;
        width: auto !important;
        height: 38px !important;
        padding: 0 13px !important;
        border-radius: 12px !important;
        font-size: 11.5px !important;
        font-weight: 800 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
        color: #070d19 !important;
        border: none !important;
        box-shadow: 0 3px 12px rgba(56, 189, 248, 0.35) !important;
        white-space: nowrap !important;
    }

    #exam-quiz-box .progress-bar-container {
        height: 5px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border-radius: 99px !important;
        margin-bottom: 16px !important;
        overflow: hidden !important;
    }

    #exam-quiz-box .progress-bar-fill {
        height: 100% !important;
        background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc) !important;
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.5) !important;
        border-radius: 99px !important;
    }

    #exam-quiz-box .question-text {
        font-size: 15.5px !important;
        font-weight: 700 !important;
        line-height: 1.55 !important;
        color: #f8fafc !important;
        margin-bottom: 16px !important;
    }

    #exam-quiz-box .options-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }

    #exam-quiz-box .option-btn {
        min-height: 50px !important;
        padding: 12px 14px !important;
        background: rgba(30, 41, 59, 0.45) !important;
        border: 1.5px solid rgba(148, 163, 184, 0.16) !important;
        border-radius: 14px !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        margin-bottom: 0 !important;
        transition: all 0.18s ease !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    #exam-quiz-box .option-btn:active {
        transform: scale(0.985) !important;
    }

    #exam-quiz-box .option-btn.selected {
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(99, 102, 241, 0.14)) !important;
        border-color: rgba(56, 189, 248, 0.75) !important;
        box-shadow: 0 4px 18px rgba(56, 189, 248, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
        transform: translateY(-1px) !important;
    }

    #exam-quiz-box .option-letter {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.07) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        color: #94a3b8 !important;
        font-weight: 800 !important;
        font-size: 12.5px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #exam-quiz-box .option-btn.selected .option-letter {
        background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
        border-color: #38bdf8 !important;
        color: #070d19 !important;
        font-weight: 900 !important;
        box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4) !important;
    }

    #exam-quiz-box .option-label-text {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #e2e8f0 !important;
        line-height: 1.45 !important;
    }

    #exam-quiz-box .quiz-footer {
        display: flex !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    #exam-quiz-box #btn-prev-question {
        flex: 1 1 0 !important;
        height: 42px !important;
        padding: 0 8px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        color: #cbd5e1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
    }

    #exam-quiz-box #btn-skip-question {
        flex: 1 1 0 !important;
        height: 42px !important;
        padding: 0 8px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        background: rgba(245, 158, 11, 0.08) !important;
        border: 1px solid rgba(245, 158, 11, 0.3) !important;
        color: #fbbf24 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #exam-quiz-box #btn-next-question {
        flex: 1.3 1 0 !important;
        height: 42px !important;
        padding: 0 10px !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        border-radius: 12px !important;
        background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
        color: #070d19 !important;
        border: none !important;
        box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
    }
}


/* ==========================================================================
   GLOBAL CUSTOM GLASS SELECT DROPDOWN DESIGN
   ========================================================================== */

select,
.settings-select-custom,
#st-subtopic-select,
#sp-subject-select,
#calc-subjects,
#geo-sort-select,
#world-uni-filter-country,
#world-uni-filter-grant,
#est-major,
#smart-degree,
#smart-field,
#smart-country,
#smart-ielts,
#smart-budget {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px 14px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}

#st-subtopic-select {
    background-color: rgba(15, 23, 42, 0.95) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    color: #f8fafc !important;
    border: 1.5px solid rgba(251, 191, 36, 0.5) !important;
    border-radius: 12px !important;
    padding: 11px 38px 11px 16px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

#st-subtopic-select:hover,
#st-subtopic-select:focus {
    border-color: #fbbf24 !important;
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.35) !important;
    background-color: rgba(30, 41, 59, 0.95) !important;
}

#sp-subject-select {
    background-color: rgba(15, 23, 42, 0.95) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(52, 211, 153, 0.5) !important;
    border-radius: 12px !important;
    padding: 13px 40px 13px 16px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

#sp-subject-select:hover,
#sp-subject-select:focus {
    border-color: #34d399 !important;
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.35) !important;
    background-color: rgba(30, 41, 59, 0.95) !important;
}

select option {
    background: #0f172a !important;
    color: #f8fafc !important;
    padding: 10px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
}


/* ==========================================================================
   PREMIUM RESULT REVIEW CARDS DESIGN
   ========================================================================== */

.review-item {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.9)) !important;
    border-radius: 16px !important;
    padding: 16px 18px !important;
    margin-bottom: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.25s ease !important;
}

.review-item.correct {
    border-left: 4px solid #34d399 !important;
    border-color: rgba(52, 211, 153, 0.3) !important;
}

.review-item.wrong {
    border-left: 4px solid #f43f5e !important;
    border-color: rgba(244, 63, 94, 0.3) !important;
}

.review-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.review-badge.correct {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #34d399 !important;
    border: 1px solid rgba(52, 211, 153, 0.5) !important;
    padding: 4px 12px !important;
    border-radius: 99px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
}

.review-badge.wrong {
    background: rgba(244, 63, 94, 0.2) !important;
    color: #f43f5e !important;
    border: 1px solid rgba(244, 63, 94, 0.5) !important;
    padding: 4px 12px !important;
    border-radius: 99px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
}




.btn-tts i {
    font-size: 11px !important;
}

@media (max-width: 768px) {
    .btn-tts {
        padding: 3px 8px !important;
        font-size: 10.5px !important;
        border-radius: 99px !important;
        min-height: 26px !important;
    }

    .review-item {
        padding: 12px 14px !important;
        margin-bottom: 12px !important;
        border-radius: 14px !important;
    }

    .review-q-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .review-q-text {
        font-size: 13.5px !important;
        line-height: 1.45 !important;
        width: 100% !important;
    }

    .review-q-header > div {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .review-badge {
        font-size: 10.5px !important;
        padding: 3px 8px !important;
    }

    .review-explanation {
        padding: 10px 12px !important;
        font-size: 12px !important;
        line-height: 1.55 !important;
    }
}


/* ==========================================================================
   COLLAPSIBLE FLOATING MUSIC PLAYER DESIGN
   ========================================================================== */

#global-music-player {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#global-music-player.collapsed {
    width: 54px !important;
    height: 54px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: rgba(11, 17, 33, 0.96) !important;
    border: 2px solid rgba(56, 189, 248, 0.7) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.4) !important;
    cursor: pointer !important;
}

#global-music-player.collapsed #player-seek-slider,
#global-music-player.collapsed #player-track-info-clickable,
#global-music-player.collapsed #btn-player-prev,
#global-music-player.collapsed #btn-player-next {
    display: none !important;
}

#global-music-player.collapsed #player-disc {
    width: 50px !important;
    height: 50px !important;
    margin: 0 !important;
}

#global-music-player.collapsed #btn-player-toggle-collapse {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid rgba(56, 189, 248, 0.6) !important;
    width: 18px !important;
    height: 18px !important;
    font-size: 9px !important;
    color: #38bdf8 !important;
    z-index: 10 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
}


/* ==========================================================================
   ULTRA-PREMIUM FLOATING COLLAPSIBLE MUSIC PLAYER (POLISHED)
   ========================================================================== */

#global-music-player {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 320px !important;
    height: 60px !important;
    border-radius: 30px !important;
    border: 1.5px solid rgba(56, 189, 248, 0.4) !important;
    background: linear-gradient(135deg, rgba(11, 17, 33, 0.97), rgba(12, 28, 48, 0.97)) !important;
    backdrop-filter: blur(25px) !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.25) !important;
    padding: 6px 14px 8px !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    user-select: none !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@media (max-width: 480px) {
    #global-music-player {
        bottom: 14px !important;
        right: 14px !important;
        width: calc(100vw - 28px) !important;
        max-width: 320px !important;
    }
}

/* COLLAPSED STATE (Floating Glowing Disc Orb) */
#global-music-player.collapsed {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 2px solid rgba(168, 85, 247, 0.8) !important;
    background: radial-gradient(circle, rgba(30, 20, 50, 0.98), rgba(11, 17, 33, 0.98)) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(168, 85, 247, 0.5) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#global-music-player.collapsed .player-scrubber-row,
#global-music-player.collapsed #player-track-info-clickable,
#global-music-player.collapsed #btn-player-prev,
#global-music-player.collapsed #btn-player-next {
    display: none !important;
}

#global-music-player.collapsed .player-main-row {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

#global-music-player.collapsed .player-left-group {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#global-music-player.collapsed #player-disc {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    margin: 0 !important;
    box-shadow: none !important;
}

#global-music-player.collapsed #btn-player-toggle-collapse {
    position: absolute !important;
    top: -3px !important;
    right: -3px !important;
    background: #a855f7 !important;
    border: 2px solid #0f172a !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    font-size: 9px !important;
    color: #ffffff !important;
    z-index: 100 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#global-music-player.collapsed #btn-player-toggle-collapse i {
    transform: rotate(180deg) !important;
}

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

#player-disc.playing i {
    animation: spinDiscAnimation 4s linear infinite !important;
}


/* ==========================================================================
   SINGLE ROUND FLOATING DISC MUSIC PLAYER (NO OVERLAPPING BUTTONS)
   ========================================================================== */

#global-music-player.collapsed {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 2px solid rgba(56, 189, 248, 0.85) !important;
    background: #0b1121 !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(56, 189, 248, 0.5) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

#global-music-player.collapsed:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.7) !important;
}

/* Hide all extra controls in collapsed mode so ONLY the single disc is visible */
#global-music-player.collapsed .player-scrubber-row,
#global-music-player.collapsed #player-track-info-clickable,
#global-music-player.collapsed #btn-player-prev,
#global-music-player.collapsed #btn-player-play,
#global-music-player.collapsed #btn-player-next,
#global-music-player.collapsed #btn-player-toggle-collapse {
    display: none !important;
}

#global-music-player.collapsed .player-main-row,
#global-music-player.collapsed .player-left-group {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

#global-music-player.collapsed #player-disc {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
}


/* ================= =========================================
   ULTRA-PREMIUM GLOWING NEON TTS BUTTON DESIGN
   ========================================================== */
.btn-tts, .btn-tts-mini {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
    gap: 7px !important;
    padding: 7px 18px !important;
    border-radius: 30px !important;
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%) !important;
    color: #070d19 !important;
    border: 1px solid rgba(125, 211, 252, 0.6) !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    font-family: var(--font-heading, inherit) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    outline: none !important;
    user-select: none !important;
}

.btn-tts i, .btn-tts-mini i {
    font-size: 13px !important;
    color: #070d19 !important;
    transition: transform 0.2s ease !important;
}

.btn-tts:hover, .btn-tts-mini:hover {
    transform: translateY(-2px) scale(1.03) !important;
    background: linear-gradient(135deg, #38bdf8 0%, #7dd3fc 100%) !important;
    box-shadow: 0 6px 22px rgba(56, 189, 248, 0.65), inset 0 1px 0 #ffffff !important;
}

.btn-tts:hover i, .btn-tts-mini:hover i {
    transform: scale(1.15) !important;
}

.btn-tts:active, .btn-tts-mini:active {
    transform: translateY(0) scale(0.97) !important;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3) !important;
}

.btn-tts-mini {
    padding: 5px 14px !important;
    font-size: 11.5px !important;
}

@media (max-width: 768px) {
    .btn-tts {
        padding: 6px 14px !important;
        font-size: 11.5px !important;
        gap: 6px !important;
    }
}


/* ==========================================================
   ULTRA-PREMIUM ADMIN DASHBOARD STYLES
   ========================================================== */
.admin-filter-btn {
    padding: 6px 14px !important;
    border-radius: 20px !important;
    background: rgba(30, 41, 59, 0.8) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.admin-filter-btn:hover {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
}

.admin-filter-btn.active {
    background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
    color: #070d19 !important;
    border-color: rgba(125, 211, 252, 0.6) !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35) !important;
}

.admin-user-card-mobile {
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease;
}

.admin-user-card-mobile:hover {
    border-color: rgba(56, 189, 248, 0.35);
}

@media (max-width: 768px) {
    .admin-desktop-table-wrapper {
        display: none !important;
    }
    .admin-mobile-cards-wrapper {
        display: flex !important;
    }
}

/* ==========================================
   HISTORY MASTER HUB ULTRA-PREMIUM DESIGN
   ========================================== */
.history-hub-slide-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.85)) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    border-radius: 22px !important;
    padding: 20px !important;
    text-align: center !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(56, 189, 248, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-hub-slide-card:hover {
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55), 0 0 35px rgba(56, 189, 248, 0.2) !important;
}

.history-hub-slide-img-box {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    background: #0f172a;
}

.history-hub-slide-img-box img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    border-radius: 15px;
}

.history-hub-slide-img-box:hover img {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.history-hub-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.history-hub-slide-img-box:hover .history-hub-slide-overlay {
    opacity: 1;
}

.history-hub-slide-overlay-badge {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(6, 182, 212, 0.9));
    color: #0f172a;
    font-weight: 800;
    font-size: 12.5px;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transform: translateY(6px);
    transition: transform 0.3s ease;
}

.history-hub-slide-img-box:hover .history-hub-slide-overlay-badge {
    transform: translateY(0);
}

/* History Hub Tables */
.history-hub-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.history-hub-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: #cbd5e1;
    font-size: 13px;
    text-align: left;
}

.history-hub-table th {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.15)) !important;
    color: #fbbf24 !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    padding: 14px 16px !important;
    border-bottom: 2px solid rgba(251, 191, 36, 0.35) !important;
}

.history-hub-table td {
    padding: 13px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    vertical-align: middle !important;
}

.history-hub-table tr {
    transition: background 0.2s ease, transform 0.2s ease;
}

.history-hub-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.045) !important;
}

.history-hub-table tbody tr:last-child td {
    border-bottom: none !important;
}

.history-hub-time-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-family: 'JetBrains Mono', var(--font-mono), monospace;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.history-hub-capital-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #38bdf8;
    font-weight: 700;
}

.history-hub-ruler-tag {
    color: #e2e8f0;
    line-height: 1.5;
}

.history-hub-ruler-tag strong {
    color: #ffffff;
    font-weight: 800;
}

.history-hub-collapse-tag {
    color: #f87171;
    font-weight: 500;
    line-height: 1.4;
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
}

.history-hub-collapse-tag i {
    color: #ef4444;
    font-size: 11px;
    margin-top: 3px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .history-hub-table th,
    .history-hub-table td {
        padding: 10px 12px !important;
        font-size: 12px !important;
    }
    .history-hub-slide-card {
        padding: 14px !important;
        border-radius: 18px !important;
    }
}

/* ==========================================================================
   GLOBAL KATEX MATHEMATICAL FORMULA RENDERING & COLOR FIXES
   Ensures math formulas (fractions, roots, subscripts b_n, superscripts)
   render in bright, high-contrast Electric Cyan (#38bdf8) on dark themes
   ========================================================================== */
.katex {
    font-size: 1.08em !important;
    line-height: 1.2 !important;
    text-indent: 0 !important;
    color: #38bdf8 !important; /* Electric Cyan for maximum legibility */
    white-space: normal !important;
}

.katex * {
    color: inherit !important;
    border-color: currentColor !important;
}

.katex .katex-html {
    display: inline-block !important;
    line-height: 1.2 !important;
    vertical-align: baseline !important;
}

.katex .mfrac .frac-line {
    border-bottom-width: 0.08em !important;
    border-bottom-style: solid !important;
    border-bottom-color: #38bdf8 !important;
}

.katex-display {
    display: block !important;
    margin: 0.8em 0 !important;
    text-align: center !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    line-height: 1.2 !important;
}

.katex-formula-inline, .katex-inline {
    display: inline-block !important;
    vertical-align: baseline !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
    overflow-x: auto !important;
}

.katex-fallback {
    color: #38bdf8 !important;
    font-family: monospace !important;
    font-size: 0.95em !important;
}

/* ==========================================================================
   FOUNDER TELEGRAM VOICE NOTE CARD
   ========================================================================== */
.founder-voice-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.92) 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 22px;
    padding: 20px 24px;
    margin: 28px 0;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 24px rgba(56, 189, 248, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.founder-voice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, #818cf8, transparent);
    opacity: 0.9;
}

.founder-voice-card:hover {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45), 0 0 28px rgba(56, 189, 248, 0.15);
}

.fvc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.fvc-author-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fvc-avatar-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.fvc-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #38bdf8;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.fvc-avatar-fallback {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(56, 189, 248, 0.6);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.fvc-verified-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0284c7;
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.fvc-author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fvc-author-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fvc-author-name strong {
    font-size: 16px;
    font-weight: 800;
    color: #f8fafc;
}

.fvc-uni-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.fvc-author-role {
    font-size: 12.5px;
    color: hsl(var(--text-muted));
    font-weight: 500;
}

.fvc-tg-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(38, 166, 230, 0.15);
    border: 1px solid rgba(38, 166, 230, 0.35);
    color: #29b6f6;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
}

/* Audio Player Row */
.fvc-player-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.fvc-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: none;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.fvc-play-btn:hover {
    transform: scale(1.06);
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

.fvc-play-btn:active {
    transform: scale(0.96);
}

.fvc-play-btn.playing {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.6);
}

/* Waveform Container */
.fvc-waveform-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 3px;
    height: 38px;
    cursor: pointer;
    padding: 4px 0;
    user-select: none;
    -webkit-user-select: none;
}

.fvc-bar {
    flex: 1;
    min-width: 2px;
    max-width: 5px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 3px;
    transition: background-color 0.12s ease, transform 0.12s ease;
}

.fvc-bar.active {
    background: #38bdf8;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.4);
}

.fvc-waveform-wrap:hover .fvc-bar {
    background: rgba(255, 255, 255, 0.35);
}

.fvc-waveform-wrap:hover .fvc-bar.active {
    background: #38bdf8;
}

/* Controls Right (Timer & Speed) */
.fvc-controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.fvc-timer {
    font-size: 13px;
    font-weight: 700;
    color: hsl(var(--text-muted));
    font-variant-numeric: tabular-nums;
    min-width: 32px;
    text-align: right;
}

.fvc-speed-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fvc-speed-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.fvc-speed-btn.fast {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* Footer Caption */
.fvc-footer-caption {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: hsl(var(--text-muted));
    line-height: 1.5;
    padding: 0 4px;
}

.fvc-quote-icon {
    color: #38bdf8;
    font-size: 11px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Light Theme overrides */
body.theme-light .founder-voice-card {
    background: #ffffff;
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

body.theme-light .founder-voice-card::before {
    background: linear-gradient(90deg, transparent, #0284c7, #6366f1, transparent);
}

body.theme-light .fvc-author-name strong {
    color: #0f172a;
}

body.theme-light .fvc-player-row {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .fvc-bar {
    background: #cbd5e1;
}

body.theme-light .fvc-bar.active {
    background: #0284c7;
    box-shadow: none;
}

body.theme-light .fvc-speed-btn {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #334155;
}

body.theme-light .fvc-verified-badge {
    border-color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .founder-voice-card {
        padding: 16px;
        margin: 20px 0;
        border-radius: 18px;
    }
    .fvc-header {
        margin-bottom: 12px;
    }
    .fvc-player-row {
        padding: 10px 12px;
        gap: 10px;
    }
    .fvc-play-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .fvc-author-name strong {
        font-size: 15px;
    }
    .fvc-footer-caption {
        font-size: 12px;
    }
}

/* ==========================================================================
   TELEGRAM VIDEO CIRCLE (КРУЖОЧЕК) & FOUNDER MEDIA CARD STYLES
   ========================================================================== */
.fmc-tabs-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.6);
    padding: 4px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fmc-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: none;
    color: hsl(var(--text-muted));
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.fmc-tab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.fmc-tab-btn.active {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.fmc-tab-time {
    font-size: 10.5px;
    font-weight: 600;
    opacity: 0.85;
    background: rgba(0, 0, 0, 0.2);
    padding: 1px 6px;
    border-radius: 10px;
}

.fmc-panel {
    animation: fmcFadeIn 0.3s ease forwards;
}

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

/* Video Circle Card Layout */
.tg-circle-card-layout {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 10px 4px;
}

/* Round Telegram Video Note Player */
.tg-circle-player-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tg-circle-player-wrap:hover {
    transform: scale(1.03);
}

.tg-circle-player-wrap:active {
    transform: scale(0.98);
}

/* SVG Progress Ring */
.tg-circle-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transform: rotate(-90deg);
}

.tg-circle-bg-ring {
    fill: none;
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 4.5px;
}

.tg-circle-bar-ring {
    fill: none;
    stroke: #38bdf8;
    stroke-width: 5px;
    stroke-linecap: round;
    stroke-dasharray: 465;
    stroke-dashoffset: 465;
    transition: stroke-dashoffset 0.15s linear;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7));
}

/* Inner Circle Container for Video */
.tg-circle-inner {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 144px;
    height: 144px;
    border-radius: 50%;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.tg-circle-inner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Play overlay on video */
.tg-circle-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(1.5px);
    transition: opacity 0.25s ease;
    border-radius: 50%;
}

.tg-circle-player-wrap.playing .tg-circle-overlay {
    opacity: 0;
    pointer-events: none;
}

.tg-circle-player-wrap.playing:hover .tg-circle-overlay {
    opacity: 1;
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.45);
}

.tg-circle-play-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 18px rgba(14, 165, 233, 0.6);
    transition: transform 0.2s ease;
}

.tg-circle-player-wrap:hover .tg-circle-play-icon-box {
    transform: scale(1.1);
}

.tg-circle-badge-timer {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    z-index: 3;
}

.tg-circle-mute-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 11.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}

.tg-circle-mute-btn:hover {
    background: #0284c7;
    border-color: #38bdf8;
    transform: scale(1.1);
}

/* Video Details Right Side */
.tg-circle-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tg-circle-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
}

.tg-circle-title {
    font-size: 18px;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
    line-height: 1.35;
}

.tg-circle-desc {
    font-size: 13.5px;
    color: hsl(var(--text-muted));
    line-height: 1.55;
    margin: 0;
}

.tg-circle-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.btn-tg-circle-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 800;
    padding: 9px 18px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-tg-circle-play:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

.btn-tg-circle-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-tg-circle-switch:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

/* Sales Head Theme Enhancements */
.tg-circle-bar-ring.sales-bar-ring {
    stroke: #10b981;
    filter: drop-shadow(0 0 7px rgba(16, 185, 129, 0.75));
}

.tg-circle-tag.sales-tag {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.tg-circle-play-icon-box.sales-play-icon {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.55);
}

.btn-tg-circle-play.sales-play-btn {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-tg-circle-play.sales-play-btn:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.fmc-tab-btn.fmc-tab-sales.active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
    color: #ffffff;
}

/* Student Review Voice Note Enhancements */
.fmc-tab-btn.fmc-tab-review.active {
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.4);
    color: #ffffff;
}

.student-review-card-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 6px 4px;
}

.student-review-header-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.srh-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(236, 72, 153, 0.15);
    border: 1px solid rgba(236, 72, 153, 0.35);
    color: #f472b6;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.srh-sub {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.fvc-player-row.student-theme {
    background: rgba(30, 27, 75, 0.55);
    border: 1px solid rgba(236, 72, 153, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.fvc-play-btn.student-play-btn {
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.45);
}

.fvc-play-btn.student-play-btn:hover {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    box-shadow: 0 6px 22px rgba(236, 72, 153, 0.65);
}

.student-waveform .fvc-bar.active {
    background: linear-gradient(to top, #ec4899, #c084fc);
}

.fvc-speed-btn.student-speed-btn:hover,
.fvc-speed-btn.student-speed-btn.fast {
    background: #ec4899;
    border-color: #f472b6;
    color: #fff;
}

.fvc-footer-caption.student-caption {
    background: rgba(236, 72, 153, 0.08);
    border: 1px solid rgba(236, 72, 153, 0.2);
    color: #f1f5f9;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
}

.fvc-quote-icon.student-quote-icon {
    color: #ec4899;
}

/* Light Theme Overrides */
body.theme-light .fmc-tabs-wrap {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .fmc-tab-btn {
    color: #64748b;
}

body.theme-light .fmc-tab-btn.active {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
}

body.theme-light .fmc-tab-btn.fmc-tab-sales.active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
}

body.theme-light .fmc-tab-btn.fmc-tab-review.active {
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    color: #ffffff;
}

body.theme-light .fvc-player-row.student-theme {
    background: #fdf2f8;
    border-color: rgba(236, 72, 153, 0.3);
}

body.theme-light .fvc-footer-caption.student-caption {
    background: #fdf2f8;
    border-color: rgba(236, 72, 153, 0.25);
    color: #334155;
}

body.theme-light .tg-circle-bg-ring {
    stroke: rgba(0, 0, 0, 0.08);
}

body.theme-light .tg-circle-title {
    color: #0f172a;
}

body.theme-light .btn-tg-circle-switch {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .fmc-header,
    .fvc-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .fmc-tabs-wrap {
        width: 100%;
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        justify-content: flex-start;
        padding: 4px;
    }
    .fmc-tabs-wrap::-webkit-scrollbar {
        display: none;
    }
    .fmc-tab-btn {
        flex: 1 0 auto;
        white-space: nowrap;
        justify-content: center;
        padding: 7px 11px;
        font-size: 11.5px;
    }
    .tg-circle-card-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
    }
    .tg-circle-player-wrap {
        width: 144px;
        height: 144px;
    }
    .tg-circle-inner {
        width: 128px;
        height: 128px;
    }
    .tg-circle-tag {
        margin: 0 auto;
    }
    .tg-circle-title {
        font-size: 16.5px;
    }
    .tg-circle-desc {
        font-size: 13px;
    }
    .tg-circle-actions {
        justify-content: center;
        width: 100%;
    }
    .btn-tg-circle-play,
    .btn-tg-circle-switch {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   MUSIC SECTION - POPULAR ARTISTS CHIPS & FILTER TABS
   ========================================================================== */
.artist-chip-btn:hover {
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #38bdf8 !important;
    transform: translateY(-1px);
}

.artist-chip-btn:active {
    transform: translateY(0) scale(0.96);
}

#popular-artists-chips-container::-webkit-scrollbar,
#music-artists-filter-tabs::-webkit-scrollbar {
    display: none;
}

/* ==========================================================================
   CRAM SECTION CONTROLS BAR RESPONSIVE LAYOUT (#sec-cram)
   ========================================================================== */
.cram-controls-bar {
    padding: 16px 20px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(52, 211, 153, 0.3);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.cram-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 260px;
}

.cram-actions-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cram-counts-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cram-counter-badge {
    font-size: 13px;
    font-weight: 800;
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(52, 211, 153, 0.3);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.cram-per-page-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cram-label {
    font-size: 12.5px;
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
}

.cram-select-per-page {
    padding: 7px 12px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.95);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.35);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.cram-select-per-page:hover {
    border-color: rgba(52, 211, 153, 0.6);
}

.cram-voice-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cram-voice-box .select-tts-voice {
    padding: 7px 12px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.95);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.cram-voice-box .select-tts-voice:hover {
    border-color: rgba(56, 189, 248, 0.6);
}

@media (max-width: 768px) {
    .cram-controls-bar {
        padding: 14px 16px;
        gap: 12px;
    }
    .cram-search-box {
        width: 100%;
        min-width: 100%;
        flex: none;
    }
    .cram-actions-group {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .cram-counts-group {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    .cram-per-page-box {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .cram-voice-box {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
    }
    .cram-voice-box .select-tts-voice {
        flex: 1;
        min-width: 0;
    }
}

/* ==========================================================================
   ONLINE STORE / SHOP SECTION (#sec-shop)
   ========================================================================== */
.shop-hero-card {
    padding: 28px 32px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.12) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(244, 63, 94, 0.35);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.shop-hero-card::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.25) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(40px);
}

.shop-hero-content {
    flex: 1;
    min-width: 280px;
}

.shop-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.4);
    border-radius: 99px;
    color: #f43f5e;
    font-size: 11.5px;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-hero-title {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 8px 0;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.shop-hero-subtitle {
    color: #94a3b8;
    font-size: 14px;
    margin: 0 0 18px 0;
    max-width: 650px;
    line-height: 1.6;
}

.shop-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-shop-add-product {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #fff;
    border: none;
    font-weight: 800;
    font-size: 13.5px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(244, 63, 94, 0.4);
    transition: all 0.25s ease;
}

.btn-shop-add-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.55);
}

.btn-shop-contact-owner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.8);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-shop-contact-owner:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #fff;
}

.shop-hero-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-stat-box {
    background: rgba(15, 23, 42, 0.8);
    padding: 14px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    min-width: 110px;
    backdrop-filter: blur(10px);
}

.shop-stat-value {
    font-size: 24px;
    font-weight: 900;
    color: #f43f5e;
    font-family: var(--font-heading);
}

.shop-stat-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Controls Bar */
.shop-controls-bar {
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.shop-search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 240px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 14px;
}

.shop-search-wrapper i {
    color: #f43f5e;
    font-size: 14px;
}

.shop-search-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
}

.shop-categories-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0;
}

.shop-categories-scroll::-webkit-scrollbar {
    display: none;
}

.shop-cat-btn {
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.7);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.shop-cat-btn:hover {
    color: #fff;
    border-color: rgba(244, 63, 94, 0.4);
    background: rgba(244, 63, 94, 0.1);
}

.shop-cat-btn.active {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.25) 0%, rgba(225, 29, 72, 0.4) 100%);
    color: #fff;
    border-color: #f43f5e;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.3);
}

/* Products Grid */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.shop-product-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.shop-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(244, 63, 94, 0.2);
    border-color: rgba(244, 63, 94, 0.45);
}

.shop-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: rgba(10, 15, 30, 0.7);
    cursor: pointer;
}

.shop-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s ease;
    display: block;
}

.shop-product-card:hover .shop-card-img {
    transform: scale(1.03);
}

.shop-photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    opacity: 0.85;
    transition: all 0.2s;
    z-index: 5;
}

.shop-photo-nav:hover {
    opacity: 1;
    background: #f43f5e;
    border-color: #f43f5e;
    transform: translateY(-50%) scale(1.1);
}

.shop-photo-nav.prev { left: 10px; }
.shop-photo-nav.next { right: 10px; }

.shop-photo-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 99px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 4;
}

.shop-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.4);
    z-index: 4;
}

.shop-stock-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #34d399;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 4;
}

.shop-stock-pill.out-of-stock {
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.shop-card-thumbs {
    display: flex;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(10, 15, 30, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
}

.shop-card-thumbs::-webkit-scrollbar {
    display: none;
}

.shop-thumb-item {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    background: #1e293b;
}

.shop-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-thumb-item:hover {
    border-color: rgba(244, 63, 94, 0.5);
    transform: scale(1.05);
}

.shop-thumb-item.active {
    border-color: #f43f5e;
    box-shadow: 0 0 8px rgba(244, 63, 94, 0.5);
}

.shop-card-body {
    padding: 16px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.shop-card-category {
    font-size: 11px;
    font-weight: 800;
    color: #f43f5e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.shop-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 8px 0;
    line-height: 1.4;
    cursor: pointer;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-card-title:hover {
    color: #f43f5e;
}

.shop-card-desc {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0 0 14px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.shop-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.shop-price-wrapper {
    display: flex;
    flex-direction: column;
}

.shop-price-val {
    font-size: 21px;
    font-weight: 900;
    color: #34d399;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.btn-shop-details {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.7);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-shop-details:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: #f43f5e;
    color: #fff;
    transform: scale(1.05);
}

.shop-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-shop-order-tg {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-shop-order-tg:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
    color: #fff;
    transform: translateY(-1px);
}

.btn-shop-delete-prod {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-shop-delete-prod:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    transform: scale(1.05);
}

/* Empty State */
.shop-empty-box {
    padding: 60px 20px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    text-align: center;
    margin: 30px 0;
}

.shop-empty-box h3 {
    font-size: 18px;
    color: #fff;
    margin: 14px 0 6px 0;
}

.shop-empty-box p {
    color: #94a3b8;
    font-size: 13.5px;
    margin: 0 0 20px 0;
}

/* Modals */
.shop-modal-box {
    max-width: 680px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(244, 63, 94, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.shop-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
    text-align: left;
}

.shop-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f43f5e;
    font-size: 22px;
    flex-shrink: 0;
}

.shop-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #fff;
    font-weight: 800;
}

.shop-modal-header p {
    margin: 4px 0 0 0;
    font-size: 12.5px;
    color: #94a3b8;
}

.shop-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    text-align: left;
}

.shop-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-form-group.full-width {
    grid-column: span 2;
}

.shop-form-group label {
    font-size: 12.5px;
    font-weight: 700;
    color: #cbd5e1;
}

.shop-form-group input,
.shop-form-group select,
.shop-form-group textarea {
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.shop-form-group input:focus,
.shop-form-group select:focus,
.shop-form-group textarea:focus {
    border-color: #f43f5e;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.25);
}

.shop-upload-zone {
    border: 2px dashed rgba(244, 63, 94, 0.4);
    background: rgba(244, 63, 94, 0.05);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.shop-upload-zone:hover {
    background: rgba(244, 63, 94, 0.1);
    border-color: #f43f5e;
}

.shop-preview-thumb-box {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #0f172a;
}

.shop-preview-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-preview-tag {
    position: absolute;
    bottom: 2px;
    left: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 9px;
    text-align: center;
    border-radius: 4px;
    padding: 1px 0;
}

.btn-remove-preview-photo {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    border: none;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.shop-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

/* Detail Modal */
.shop-detail-modal-box {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1.5px solid rgba(244, 63, 94, 0.35);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

.shop-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    text-align: left;
}

.shop-detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-detail-main-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-detail-main-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.shop-detail-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.shop-detail-thumb-item {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.shop-detail-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-detail-thumb-item:hover {
    border-color: rgba(244, 63, 94, 0.5);
}

.shop-detail-thumb-item.active {
    border-color: #f43f5e;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.4);
}

.shop-detail-info {
    display: flex;
    flex-direction: column;
}

.shop-detail-title {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 14px 0;
    line-height: 1.35;
    font-family: var(--font-heading);
}

.shop-detail-price-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 14px;
    padding: 12px 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.shop-detail-price-val {
    font-size: 28px;
    font-weight: 900;
    color: #34d399;
    font-family: var(--font-heading);
}

.shop-detail-price-note {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

.shop-detail-desc-block {
    margin-bottom: 18px;
}

.shop-detail-desc-block h4 {
    font-size: 13.5px;
    color: #cbd5e1;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.shop-detail-desc-block p {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.shop-detail-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.shop-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: #cbd5e1;
}

.shop-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.btn-shop-order-tg-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 14.5px;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
    transition: all 0.2s;
}

.btn-shop-order-tg-large:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: translateY(-2px);
    color: #fff;
}

.btn-shop-order-wa-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px;
    border-radius: 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    transition: all 0.2s;
}

.btn-shop-order-wa-large:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    color: #fff;
}

@media (max-width: 768px) {
    .shop-hero-card {
        padding: 20px 18px;
    }
    .shop-hero-title {
        font-size: 22px;
    }
    .shop-hero-actions {
        width: 100%;
    }
    .btn-shop-add-product,
    .btn-shop-contact-owner {
        width: 100%;
        justify-content: center;
    }
    .shop-products-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .shop-form-grid {
        grid-template-columns: 1fr;
    }
    .shop-form-group.full-width {
        grid-column: span 1;
    }
    .shop-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

