/* AI4Students - Custom Styles */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --deep-blue: #0a1628;
    --deep-blue-light: #0f2744;
    --deep-blue-mid: #1a3a5c;
    --gold: #d4a017;
    --gold-light: #f5c518;
    --gold-glow: #ffd700;
    --iran-green: #239f40;
    --iran-red: #da0000;
    --iran-white: #ffffff;
    --neural-line: rgba(212, 160, 23, 0.15);
    --circuit-glow: rgba(245, 197, 24, 0.4);
}

* {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--deep-blue);
    color: #e2e8f0;
    overflow-x: hidden;
}

/* ===== Loading Overlay ===== */
#loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(ellipse at center, #0f2744 0%, var(--deep-blue) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

#loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-logo-stage {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-logo-stage .site-logo {
    position: relative;
    z-index: 2;
}

.loading-logo-glow {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.35) 0%, rgba(35, 159, 64, 0.12) 45%, transparent 70%);
    animation: loadingGlowPulse 2.4s ease-in-out infinite;
    z-index: 0;
}

.loading-logo-orbit {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    z-index: 1;
}

.loading-logo-orbit--1 {
    inset: 0;
    border-top-color: var(--gold-light);
    border-right-color: rgba(245, 197, 24, 0.15);
    animation: spin 2s linear infinite;
}

.loading-logo-orbit--2 {
    inset: 14px;
    border-bottom-color: var(--iran-green);
    border-left-color: rgba(35, 159, 64, 0.15);
    animation: spin 2.8s linear infinite reverse;
}

.loading-logo-orbit--3 {
    inset: 28px;
    border-top-color: var(--iran-red);
    border-right-color: rgba(218, 0, 0, 0.12);
    animation: spin 3.6s linear infinite;
}

.loading-status-text {
    margin-top: 0.5rem;
    color: var(--gold-light);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.loading-dots::after {
    content: '';
    animation: loadingDots 1.4s steps(4, end) infinite;
}

@keyframes loadingDots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
}

@keyframes loadingGlowPulse {
    0%, 100% { opacity: 0.7; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Legacy loader (kept for compatibility) */
.ai-loader {
    position: relative;
    width: 120px;
    height: 120px;
}

.ai-loader-ring {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.ai-loader-ring:nth-child(2) {
    inset: 12px;
    border-top-color: var(--iran-green);
    animation-duration: 1.8s;
    animation-direction: reverse;
}

.ai-loader-ring:nth-child(3) {
    inset: 24px;
    border-top-color: var(--iran-red);
    animation-duration: 2.4s;
}

.ai-loader-core {
    position: absolute;
    inset: 36px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

.ai-loader-nodes {
    position: absolute;
    inset: 0;
}

.ai-loader-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold-light);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--circuit-glow);
    animation: node-pulse 1.5s ease-in-out infinite;
}

.ai-loader-node:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.ai-loader-node:nth-child(2) { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 0.5s; }
.ai-loader-node:nth-child(3) { left: 0; top: 50%; transform: translateY(-50%); animation-delay: 1s; }
.ai-loader-node:nth-child(4) { right: 0; top: 50%; transform: translateY(-50%); animation-delay: 1.5s; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes node-pulse {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ===== Typing Animation ===== */
.typing-text {
    display: inline;
    border-left: 3px solid var(--gold-light);
    animation: blink-cursor 0.8s step-end infinite;
    padding-left: 2px;
}

@keyframes blink-cursor {
    0%, 100% { border-color: var(--gold-light); }
    50% { border-color: transparent; }
}

/* ===== Countdown Glow ===== */
.countdown-box {
    background: linear-gradient(135deg, rgba(15, 39, 68, 0.9), rgba(26, 58, 92, 0.8));
    border: 1px solid rgba(212, 160, 23, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.countdown-box:hover {
    border-color: var(--gold);
    box-shadow: 0 0 25px rgba(212, 160, 23, 0.3);
    transform: translateY(-2px);
}

.countdown-number {
    background: linear-gradient(180deg, var(--gold-glow), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(245, 197, 24, 0.5);
    animation: countdown-pulse 2s ease-in-out infinite;
}

@keyframes countdown-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

/* ===== Circuit Board Background ===== */
.circuit-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.circuit-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, var(--neural-line) 1px, transparent 1px),
        linear-gradient(var(--neural-line) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: circuit-drift 20s linear infinite;
}

.circuit-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(35, 159, 64, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(218, 0, 0, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(212, 160, 23, 0.1) 0%, transparent 60%);
}

.circuit-lines {
    position: absolute;
    inset: 0;
}

.circuit-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    height: 1px;
    opacity: 0;
    animation: circuit-flow 4s ease-in-out infinite;
}

.circuit-line:nth-child(1) { top: 20%; width: 40%; right: 0; animation-delay: 0s; }
.circuit-line:nth-child(2) { top: 45%; width: 60%; left: 0; animation-delay: 1.5s; }
.circuit-line:nth-child(3) { top: 70%; width: 50%; right: 10%; animation-delay: 3s; }
.circuit-line:nth-child(4) { top: 85%; width: 35%; left: 20%; animation-delay: 0.8s; }

@keyframes circuit-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

@keyframes circuit-flow {
    0% { opacity: 0; transform: scaleX(0); }
    50% { opacity: 0.6; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(0); }
}

/* ===== Neural Network Background ===== */
.neural-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.neural-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: neural-float 8s ease-in-out infinite;
}

.neural-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.2), transparent);
    transform-origin: left center;
    animation: neural-pulse-line 3s ease-in-out infinite;
}

@keyframes neural-float {
    0%, 100% { transform: translate(0, 0); opacity: 0.2; }
    25% { transform: translate(10px, -15px); opacity: 0.5; }
    50% { transform: translate(-5px, 10px); opacity: 0.3; }
    75% { transform: translate(15px, 5px); opacity: 0.4; }
}

@keyframes neural-pulse-line {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.4; }
}

/* ===== Instructor Cards ===== */
.instructor-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.instructor-card:hover {
    transform: translateY(-8px) scale(1.05);
}

.instructor-photo {
    border: 3px solid transparent;
    background: linear-gradient(var(--deep-blue), var(--deep-blue)) padding-box,
                linear-gradient(135deg, var(--iran-green), var(--gold), var(--iran-red)) border-box;
    transition: all 0.3s ease;
}

.instructor-card:hover .instructor-photo {
    box-shadow: 0 0 30px rgba(212, 160, 23, 0.4);
}

/* ===== News Carousel ===== */
.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(212, 160, 23, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-dot.active {
    background: var(--gold);
    box-shadow: 0 0 10px var(--circuit-glow);
    transform: scale(1.3);
}

/* ===== Buttons ===== */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--deep-blue);
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-gold:hover::before {
    transform: translateX(100%);
}

.btn-gold:hover {
    box-shadow: 0 0 25px rgba(212, 160, 23, 0.5);
    transform: translateY(-2px);
}

.btn-gold:active,
.btn-outline-gold:active,
.btn-interactive:active {
    transform: scale(0.96) translateY(0);
    transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-interactive {
    position: relative;
    overflow: hidden;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: btn-ripple 0.55s ease-out forwards;
    pointer-events: none;
}

@keyframes btn-ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

.btn-gold.is-loading,
.btn-outline-gold.is-loading {
    pointer-events: none;
    opacity: 0.88;
}

.btn-spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(10, 22, 40, 0.2);
    border-top-color: var(--deep-blue);
    border-radius: 50%;
    animation: btn-spin 0.65s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--deep-blue);
    box-shadow: 0 0 20px rgba(212, 160, 23, 0.4);
}

/* ===== Cards ===== */
.glass-card {
    background: rgba(15, 39, 68, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 160, 23, 0.15);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(212, 160, 23, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ===== Navbar ===== */
.navbar-glass {
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--iran-green), var(--gold), var(--iran-red));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ===== Iran Flag Accent ===== */
.iran-accent {
    background: linear-gradient(180deg, var(--iran-green) 33%, var(--iran-white) 33%, var(--iran-white) 66%, var(--iran-red) 66%);
    height: 3px;
}

/* ===== Live Badge ===== */
.live-badge {
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(218, 0, 0, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(218, 0, 0, 0); }
}

.live-dot {
    animation: live-blink 1.5s ease-in-out infinite;
}

@keyframes live-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ===== Progress Bars ===== */
.progress-bar {
    height: 8px;
    background: rgba(15, 39, 68, 0.8);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--iran-green), var(--gold));
    border-radius: 4px;
    transition: width 1s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== Sidebar ===== */
.sidebar {
    background: linear-gradient(180deg, var(--deep-blue) 0%, var(--deep-blue-light) 100%);
    border-left: 1px solid rgba(212, 160, 23, 0.1);
}

.sidebar-link {
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(212, 160, 23, 0.1);
    border-right-color: var(--gold);
    color: var(--gold-light);
}

.sidebar-nav-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    max-height: 100%;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    touch-action: pan-y;
}

body.scroll-locked .sidebar-nav-scroll,
body.manage-menu-open .manage-sidebar .sidebar-nav-scroll,
body.dashboard-menu-open .dashboard-sidebar .sidebar-nav-scroll {
    touch-action: pan-y;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

.dashboard-sidebar > div,
.manage-sidebar > div {
    min-height: 0;
    height: 100%;
    max-height: 100dvh;
}

.sidebar-nav-scroll::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav-scroll::-webkit-scrollbar-thumb {
    background: rgba(212, 160, 23, 0.25);
    border-radius: 4px;
}

@media (min-width: 1024px) {
    .manage-sidebar,
    .dashboard-sidebar {
        overflow: hidden;
    }
}

/* ===== Forms ===== */
.form-input {
    background: rgba(22, 48, 78, 0.92);
    border: 1px solid rgba(212, 160, 23, 0.38);
    color: #f8fafc;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}

.page-auth .form-input,
.auth-card .form-input {
    background: rgba(18, 42, 72, 0.98);
    border-color: rgba(245, 197, 24, 0.42);
    color: #ffffff;
}

.page-auth .form-input:focus,
.auth-card .form-input:focus {
    background: rgba(24, 52, 88, 1);
    border-color: var(--gold-light);
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

.form-input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

/* ===== Feature Icons ===== */
.feature-icon {
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.2), rgba(35, 159, 64, 0.1));
    transition: all 0.3s ease;
}

.glass-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.4), rgba(35, 159, 64, 0.2));
    transform: rotate(5deg) scale(1.1);
}

/* ===== Hero Poster ===== */
.hero-poster {
    filter: drop-shadow(0 0 40px rgba(212, 160, 23, 0.3));
    animation: hero-float 6s ease-in-out infinite;
}

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

/* ===== Sponsors Section ===== */
.sponsors-section {
    position: relative;
}

.sponsors-grid {
    position: relative;
}

.sponsor-logo-item {
    transition: all 0.4s ease;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    background: rgba(15, 39, 68, 0.4);
    border: 1px solid rgba(212, 160, 23, 0.1);
}

.sponsor-logo-item:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: rgba(212, 160, 23, 0.35);
    box-shadow: 0 8px 32px rgba(212, 160, 23, 0.12);
    background: rgba(15, 39, 68, 0.7);
}

.sponsor-logo-university img {
    filter: drop-shadow(0 0 12px rgba(212, 160, 23, 0.2));
    transition: filter 0.3s ease;
}

.sponsor-logo-university:hover img {
    filter: drop-shadow(0 0 20px rgba(212, 160, 23, 0.4));
}

/* ===== FAQ Accordion ===== */
.faq-item .faq-answer {
    animation: faq-slide 0.3s ease;
}

@keyframes faq-slide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.session-card {
    border: 1px solid rgba(212, 160, 23, 0.08);
    transition: all 0.3s ease;
}

.session-card:hover {
    border-color: rgba(212, 160, 23, 0.25);
    transform: translateY(-2px);
}

/* ===== Auth Steps ===== */
.auth-steps {
    direction: ltr;
}

.auth-step {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
    background: rgba(15, 39, 68, 0.8);
    border: 2px solid rgba(212, 160, 23, 0.2);
    color: #64748b;
    transition: all 0.3s ease;
}

.auth-step.active {
    background: rgba(212, 160, 23, 0.2);
    border-color: #d4a017;
    color: #f5c518;
    box-shadow: 0 0 16px rgba(212, 160, 23, 0.3);
}

.auth-step-line {
    width: 2rem;
    height: 2px;
    background: rgba(212, 160, 23, 0.15);
    transition: background 0.3s ease;
}

.auth-step-line.active {
    background: linear-gradient(90deg, #d4a017, #239f40);
}

.auth-card {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.auth-form-enter {
    animation: auth-step-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes auth-step-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sponsor-logo-img {
    filter: drop-shadow(0 0 10px rgba(212, 160, 23, 0.15));
    transition: filter 0.35s ease, transform 0.35s ease;
}

.sponsor-logo-link:hover .sponsor-logo-img {
    filter: drop-shadow(0 0 18px rgba(212, 160, 23, 0.35));
    transform: scale(1.04);
}

/* ===== Auth Page Compact ===== */
.auth-page {
    padding-top: 0.5rem;
}

.auth-card-compact {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.auth-card-compact.glass-card:hover {
    transform: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.form-input-compact {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.auth-step-sm {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.7rem;
}

.auth-step-line-sm {
    width: 1.25rem;
}

.visual-captcha-compact .visual-captcha-wrap {
    margin: 0;
}

.visual-captcha-compact .flex.items-center.justify-between {
    margin-bottom: 0.5rem;
}

.visual-captcha-compact .visual-captcha-box {
    border-radius: 0.75rem;
    min-height: 100px;
}

.visual-captcha-compact .visual-captcha-box canvas {
    width: 100% !important;
    height: 100px !important;
    max-height: none;
    display: block;
}

.visual-captcha-compact .text-xs.text-slate-500 {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.65rem;
}

.visual-captcha-compact input[name="captcha_answer"] {
    margin-top: 0.5rem;
    padding: 0.55rem 0.75rem;
    font-size: 1.15rem;
    line-height: 1.2;
}

.auth-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 22, 40, 0.88);
    backdrop-filter: blur(6px);
    border-radius: inherit;
}

.auth-loading-overlay.is-active {
    display: flex;
}

.auth-phone-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.65rem;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, rgba(15, 39, 68, 0.9), rgba(26, 58, 92, 0.6));
    border: 1px solid rgba(212, 160, 23, 0.22);
}

.auth-phone-bar-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.auth-phone-bar-icon {
    flex-shrink: 0;
    color: #f5c518;
    display: flex;
}

.auth-phone-bar-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.auth-phone-bar-label {
    font-size: 0.65rem;
    color: #94a3b8;
    line-height: 1.2;
}

.auth-phone-bar-number {
    font-size: 0.85rem;
    color: #f5c518;
    letter-spacing: 0.05em;
}

.auth-phone-verified {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(35, 159, 64, 0.25);
    color: #86efac;
    font-size: 0.7rem;
    font-weight: bold;
}

.auth-change-phone-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.55rem;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(10, 22, 40, 0.5);
    border: 1px solid rgba(212, 160, 23, 0.25);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.auth-change-phone-btn:hover {
    color: #f5c518;
    border-color: rgba(212, 160, 23, 0.5);
    background: rgba(212, 160, 23, 0.1);
    transform: translateY(-1px);
}

.auth-loading-box {
    text-align: center;
}

.btn-spinner-lg {
    width: 2rem;
    height: 2rem;
    border-width: 3px;
}

.btn-gold.is-loading,
.btn-outline-gold.is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0.75;
}

.auth-swal-popup {
    font-family: Vazirmatn, Tahoma, sans-serif !important;
    direction: rtl;
}

.auth-inline-alert {
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: right;
    animation: fadeInUp 0.3s ease;
}

.auth-inline-alert--error {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

.auth-inline-alert--success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #bbf7d0;
}

.auth-inline-alert--warning,
.auth-inline-alert--info {
    background: rgba(212, 160, 23, 0.12);
    border: 1px solid rgba(245, 197, 24, 0.35);
    color: #fde68a;
}

.page-auth main {
    min-height: calc(100dvh - 4rem);
}

.page-auth .footer-wave {
    display: none;
}

.page-auth #django-messages {
    display: none;
}

@media (max-width: 640px) {
    .page-auth .global-bg-layer {
        opacity: 0.5;
    }

    .auth-page {
        min-height: calc(100dvh - 4rem);
        align-items: flex-start;
        padding-top: 0.75rem;
        padding-bottom: 1rem;
    }

    .auth-card-compact {
        max-height: calc(100dvh - 5rem);
        overflow-y: auto;
    }
}

.otp-timer-ring {
    transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.otp-timer-ring.otp-urgent {
    border-color: rgba(218, 0, 0, 0.6);
    color: #fca5a5;
    box-shadow: 0 0 12px rgba(218, 0, 0, 0.25);
    animation: otp-pulse 1s ease-in-out infinite;
}

.otp-timer-ring.otp-expired {
    border-color: rgba(100, 116, 139, 0.4);
    color: #64748b;
}

@keyframes otp-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.otp-code-input:focus {
    letter-spacing: 0.5em;
    box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.35);
}

.field-error-hint {
    color: #fca5a5;
    font-size: 0.7rem;
    margin-top: 0.2rem;
}

.form-input.input-error {
    border-color: rgba(218, 0, 0, 0.55);
    box-shadow: 0 0 0 1px rgba(218, 0, 0, 0.25);
}

.iframe-wrapper {
    background: rgba(15, 39, 68, 0.5);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--deep-blue);
}

::-webkit-scrollbar-thumb {
    background: var(--deep-blue-mid);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

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

/* ===== Table ===== */
.data-table th {
    background: rgba(15, 39, 68, 0.8);
    border-bottom: 2px solid rgba(212, 160, 23, 0.3);
}

.data-table tr:hover td {
    background: rgba(212, 160, 23, 0.05);
}

/* ===== Status Badges ===== */
.badge-open { background: rgba(35, 159, 64, 0.2); color: #4ade80; }
.badge-progress { background: rgba(212, 160, 23, 0.2); color: var(--gold-light); }
.badge-resolved { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge-closed { background: rgba(100, 116, 139, 0.2); color: #94a3b8; }
.badge-pending { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

/* ===== Lesson Tree ===== */
.lesson-tree-item {
    border-right: 2px solid rgba(212, 160, 23, 0.2);
    transition: all 0.3s ease;
}

.lesson-tree-item:hover {
    border-right-color: var(--gold);
    background: rgba(212, 160, 23, 0.05);
}

.lesson-tree-item.completed {
    border-right-color: var(--iran-green);
}

/* ===== Footer ===== */
.footer-wave {
    position: relative;
}

.footer-wave::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--iran-green), var(--gold), var(--iran-red));
}

/* ===== Animations Utility ===== */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* ===== Chart Container ===== */
.chart-container {
    background: rgba(15, 39, 68, 0.6);
    border: 1px solid rgba(212, 160, 23, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
}

/* ===== Global Animated Background ===== */
.page-animated-bg {
    position: relative;
}

.page-animated-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(35, 159, 64, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(245, 197, 24, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(218, 0, 0, 0.05) 0%, transparent 50%);
    animation: bgShift 12s ease-in-out infinite alternate;
}

.global-bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.global-bg-layer .circuit-bg {
    position: absolute;
    inset: 0;
    opacity: 0.15;
}

.global-bg-layer .neural-bg {
    position: absolute;
    inset: 0;
    opacity: 0.2;
}

@keyframes bgShift {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

/* ===== Backpack Logo ===== */
.logo-backpack-wrap {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logo-float 3.8s ease-in-out infinite;
}

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

.logo-backpack-wrap--sm  { width: 44px;  height: 44px; }
.logo-backpack-wrap--md  { width: 64px;  height: 64px; }
.logo-backpack-wrap--lg  { width: 96px;  height: 96px; }
.logo-backpack-wrap--footer { width: 88px; height: 88px; }
.logo-backpack-wrap--loader { width: 140px; height: 140px; }

.logo-backpack-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(245, 197, 24, 0.35));
    transition: transform 0.35s ease, filter 0.35s ease;
}

.group:hover .logo-backpack-img {
    transform: scale(1.06) translateY(-2px);
    filter: drop-shadow(0 8px 22px rgba(245, 197, 24, 0.5));
}

.logo-backpack-glow {
    position: absolute;
    inset: -8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.2) 0%, transparent 68%);
    z-index: 0;
    animation: logoGlowBreath 3.5s ease-in-out infinite;
    pointer-events: none;
}

.logo-backpack-wrap--footer .logo-backpack-glow {
    inset: -12%;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.28) 0%, rgba(35, 159, 64, 0.1) 50%, transparent 72%);
}

.logo-backpack-wrap--loader .logo-backpack-glow {
    inset: -5%;
    animation: loadingGlowPulse 2.4s ease-in-out infinite;
}

.site-logo--footer {
    padding: 0.75rem 0;
}

.site-logo--footer .logo-brand-cycle {
    height: 1.5em;
}

.site-logo--loader {
    gap: 0;
}

@keyframes logoGlowBreath {
    0%, 100% { opacity: 0.65; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1.04); }
}

/* ===== Dashboard Mascot ===== */
.dashboard-mascot {
    position: relative;
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.dashboard-mascot-glow {
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.25) 0%, transparent 70%);
    animation: logoGlowBreath 3.5s ease-in-out infinite;
    pointer-events: none;
}

.dashboard-mascot-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(245, 197, 24, 0.35));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.dashboard-mascot:hover .dashboard-mascot-img {
    transform: scale(1.15) translateY(-4px);
    filter: drop-shadow(0 12px 28px rgba(245, 197, 24, 0.55));
}

@media (max-width: 640px) {
    .dashboard-mascot {
        width: 56px;
        height: 56px;
    }
}

/* ===== About Page Mascot ===== */
.about-mascot {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.about-mascot-orbit {
    position: absolute;
    inset: -12%;
    border-radius: 50%;
    border: 1px dashed rgba(245, 197, 24, 0.25);
    animation: aboutOrbitSpin 18s linear infinite;
    pointer-events: none;
}

.about-mascot-glow {
    position: absolute;
    inset: -8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.3) 0%, rgba(0, 166, 81, 0.08) 45%, transparent 72%);
    animation: logoGlowBreath 3.5s ease-in-out infinite;
    pointer-events: none;
}

.about-mascot-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 28px rgba(245, 197, 24, 0.4));
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.45s ease;
    animation: aboutMascotFloat 4s ease-in-out infinite;
}

.about-mascot-heart {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    opacity: 0;
    z-index: 4;
    color: #ef4444;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    pointer-events: none;
    filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.5));
}

.about-mascot-heart-svg {
    width: 2.5rem;
    height: 2.5rem;
}

.about-mascot:hover .about-mascot-img,
.about-mascot:focus-visible .about-mascot-img {
    transform: scale(1.08) translateY(-6px) rotate(-2deg);
    filter: drop-shadow(0 16px 36px rgba(245, 197, 24, 0.6));
}

.about-mascot:hover .about-mascot-heart,
.about-mascot:focus-visible .about-mascot-heart {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    animation: heartBeat 0.9s ease-in-out infinite;
}

.about-mascot:hover .about-mascot-glow,
.about-mascot:focus-visible .about-mascot-glow {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, rgba(245, 197, 24, 0.35) 40%, transparent 72%);
}

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

@keyframes aboutOrbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes heartBeat {
    0%, 100% { transform: translateX(-50%) scale(1); }
    25% { transform: translateX(-50%) scale(1.18); }
    50% { transform: translateX(-50%) scale(1); }
    75% { transform: translateX(-50%) scale(1.12); }
}

@media (max-width: 640px) {
    .about-mascot {
        width: 160px;
        height: 160px;
    }
    .about-mascot--compact {
        width: 120px;
        height: 120px;
    }
}

/* ===== Article / News Pages ===== */
.article-page {
    position: relative;
}

.article-breadcrumb a {
    transition: color 0.2s ease;
}

.article-header {
    text-align: center;
    margin-bottom: 2rem;
}

.article-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: rgba(212, 160, 23, 0.15);
    color: var(--gold-light);
    border: 1px solid rgba(212, 160, 23, 0.3);
    margin-bottom: 1rem;
}

.article-badge-featured {
    background: linear-gradient(135deg, rgba(35, 159, 64, 0.2), rgba(212, 160, 23, 0.2));
    border-color: rgba(245, 197, 24, 0.45);
}

.article-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 1rem;
}

.article-summary {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.7;
    max-width: 42rem;
    margin: 0 auto 1.25rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: #64748b;
}

.article-hero {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    margin-bottom: 2rem;
    aspect-ratio: 16 / 9;
}

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

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 25, 47, 0.6) 100%);
    pointer-events: none;
}

.article-body {
    line-height: 1.9;
}

.article-body img {
    border-radius: 0.75rem;
}

/* CMS / static page rich HTML (help, about, etc.) */
.cms-rich-content {
    line-height: 1.9;
    color: #cbd5e1;
}

.cms-rich-content h2,
.cms-rich-content h3,
.cms-rich-content h4 {
    color: #fff;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.cms-rich-content h3 {
    font-size: 1.25rem;
}

.cms-rich-content p {
    margin-bottom: 1rem;
}

.cms-rich-content a {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cms-rich-content a:hover {
    color: #fff;
}

.cms-rich-content ul,
.cms-rich-content ol {
    margin: 1rem 0;
    padding-right: 1.5rem;
}

.cms-rich-content li {
    margin-bottom: 0.5rem;
}

.cms-rich-content .info-box {
    direction: rtl;
    max-width: 100%;
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: rgba(15, 39, 68, 0.75);
    border: 1px solid rgba(212, 160, 23, 0.25);
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cms-rich-content .info-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.cms-rich-content .info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cms-rich-content .info-item:first-child {
    padding-top: 0;
}

.cms-rich-content .info-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: var(--gold-light);
}

.cms-rich-content .info-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.85;
    color: #94a3b8;
}

.cms-rich-content .help-grid {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (min-width: 640px) {
    .cms-rich-content .help-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cms-rich-content .help-card {
    padding: 1.25rem;
    border-radius: 1rem;
    background: rgba(26, 58, 92, 0.5);
    border: 1px solid rgba(212, 160, 23, 0.15);
    transition: border-color 0.25s ease;
}

.cms-rich-content .help-card:hover {
    border-color: rgba(245, 197, 24, 0.35);
}

.cms-rich-content .help-card h3 {
    margin-top: 0;
    font-size: 1rem;
}

.cms-rich-content code {
    background: rgba(0, 0, 0, 0.35);
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
    font-size: 0.85em;
    direction: ltr;
    display: inline-block;
}

.cms-rich-content pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
}

.cms-rich-content pre code {
    background: none;
    padding: 0;
}

.cms-rich-content blockquote {
    border-right: 3px solid var(--gold);
    padding: 0.75rem 1.25rem;
    margin: 1.25rem 0;
    background: rgba(212, 160, 23, 0.08);
    border-radius: 0 0.75rem 0.75rem 0;
    color: #e2e8f0;
}

/* Auth mode tabs */
.auth-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.35rem;
    background: rgba(15, 39, 68, 0.6);
    border-radius: 0.75rem;
    border: 1px solid rgba(212, 160, 23, 0.15);
}

.auth-mode-tab {
    display: block;
    text-align: center;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    transition: all 0.25s ease;
}

.auth-mode-tab:hover {
    color: #e2e8f0;
}

.auth-mode-tab.is-active {
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.25), rgba(245, 197, 24, 0.15));
    color: var(--gold-light);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* News cards */
.news-card {
    display: block;
    border-radius: 1.25rem;
    overflow: hidden;
    background: rgba(15, 39, 68, 0.65);
    border: 1px solid rgba(212, 160, 23, 0.15);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 197, 24, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(245, 197, 24, 0.08);
}

.news-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.news-card-media--short {
    aspect-ratio: 16 / 9;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.06);
}

.news-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 39, 68, 0.9), rgba(212, 160, 23, 0.15));
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(245, 197, 24, 0.35);
}

.news-card-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 25, 47, 0.75) 100%);
    pointer-events: none;
}

.news-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    background: rgba(212, 160, 23, 0.9);
    color: #0f2744;
    font-weight: 700;
}

.news-card-badge--category {
    background: rgba(15, 39, 68, 0.85);
    color: var(--gold-light);
    border: 1px solid rgba(212, 160, 23, 0.35);
}

.news-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.news-card-date {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.news-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.45;
    margin-bottom: 0.5rem;
    transition: color 0.25s ease;
}

.news-card:hover .news-card-title {
    color: var(--gold-light);
}

.news-card-summary {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--gold-light);
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.news-card:hover .news-card-link {
    opacity: 1;
    transform: translateX(0);
}

/* Blog cards (same visual language as news) */
.blog-card {
    display: block;
    border-radius: 1.25rem;
    overflow: hidden;
    background: rgba(15, 39, 68, 0.65);
    border: 1px solid rgba(212, 160, 23, 0.15);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 197, 24, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(245, 197, 24, 0.08);
}

.blog-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.06);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 39, 68, 0.9), rgba(212, 160, 23, 0.15));
}

.blog-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 25, 47, 0.75) 100%);
    pointer-events: none;
}

.blog-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    background: rgba(15, 39, 68, 0.85);
    color: var(--gold-light);
    border: 1px solid rgba(212, 160, 23, 0.35);
    font-weight: 600;
}

.blog-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.blog-card-date {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.45;
    margin-bottom: 0.5rem;
    transition: color 0.25s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--gold-light);
}

.blog-card-summary {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--gold-light);
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.blog-card:hover .blog-card-link {
    opacity: 1;
    transform: translateX(0);
}

/* Content dedication footer */
.content-dedication {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.content-dedication-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.content-dedication-label {
    font-size: 0.8rem;
    color: #64748b;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.content-dedication-typing {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 36rem;
}

.content-dedication-text {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #64748b;
    max-width: 28rem;
}

.about-mascot--compact {
    width: 140px;
    height: 140px;
}

.contact-mascot-wrap {
    min-height: 280px;
}

/* Share buttons */
.share-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
    border: none;
}

.share-btn-primary {
    background: linear-gradient(135deg, rgba(35, 159, 64, 0.85), rgba(212, 160, 23, 0.85));
    color: #fff;
}

.share-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 197, 24, 0.25);
}

.share-btn-secondary {
    background: rgba(15, 39, 68, 0.8);
    color: #cbd5e1;
    border: 1px solid rgba(212, 160, 23, 0.25);
}

.share-btn-secondary:hover {
    border-color: rgba(245, 197, 24, 0.45);
    color: var(--gold-light);
}

.share-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: rgba(15, 39, 68, 0.95);
    color: var(--gold-light);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(212, 160, 23, 0.35);
    font-size: 0.875rem;
    z-index: 9999;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.share-toast.visible {
    transform: translateX(-50%) translateY(0);
}

/* Legacy inline SVG logo (kept for reference) */
.logo-icon-wrap {
    position: relative;
    flex-shrink: 0;
}

.logo-icon-inner {
    position: relative;
    width: 100%;
    height: 100%;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(245, 197, 24, 0.4));
}

.logo-node {
    animation: nodePulse 2s ease-in-out infinite;
}

.logo-node:nth-child(2) { animation-delay: 0.3s; }
.logo-node:nth-child(3) { animation-delay: 0.6s; }

.logo-pulse-ring {
    position: absolute;
    inset: -4px;
    border: 2px solid rgba(245, 197, 24, 0.3);
    border-radius: 50%;
    animation: pulseRing 2s ease-out infinite;
}

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

@keyframes nodePulse {
    0%, 100% { opacity: 1; r: 3; }
    50% { opacity: 0.6; }
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 0; }
}

.logo-title {
    background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

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

/* ===== Select Dropdown Fix ===== */
select.form-input {
    background-color: rgba(15, 39, 68, 0.95);
    color: #e2e8f0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f5c518'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 16px;
    padding-left: 36px;
}

select.form-input option {
    background-color: #0f2744;
    color: #e2e8f0;
    padding: 8px;
}

/* ===== Floating Nav (mobile: bottom bar, desktop: side rail) ===== */
.floating-nav {
    position: fixed;
    z-index: 45;
    display: flex;
    gap: 4px;
    padding: 8px 10px;
    background: rgba(15, 39, 68, 0.94);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(212, 160, 23, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(245, 197, 24, 0.08);
    transition: all 0.3s ease;
    /* mobile: bottom center */
    bottom: 16px;
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
    flex-direction: row;
    border-radius: 999px;
    max-width: calc(100vw - 24px);
    overflow-x: auto;
}

.floating-nav a {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 10px;
    color: #94a3b8;
    white-space: nowrap;
    transition: all 0.25s ease;
    text-align: center;
    border-bottom: 2px solid transparent;
}

.floating-nav a:hover,
.floating-nav a.active {
    background: rgba(212, 160, 23, 0.12);
    color: var(--gold-light);
    border-bottom-color: var(--gold);
}

@media (min-width: 1024px) {
    .floating-nav {
        right: 16px;
        left: auto;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        border-radius: 16px;
        max-width: none;
        overflow-x: visible;
        padding: 10px 8px;
        gap: 6px;
    }
    .floating-nav a {
        padding: 10px 14px;
        font-size: 11px;
        border-radius: 10px;
        border-bottom: none;
        border-right: 3px solid transparent;
    }
    .floating-nav a:hover,
    .floating-nav a.active {
        border-right-color: var(--gold);
        border-bottom-color: transparent;
        transform: translateX(-3px);
    }
}

/* ===== Logo Brand Cycle ===== */
.logo-orbit-ring {
    position: absolute;
    inset: -6px;
    border: 1px dashed rgba(245, 197, 24, 0.35);
    border-radius: 50%;
    animation: logoOrbit 8s linear infinite;
}

.logo-orbit-ring-2 {
    inset: -10px;
    border-color: rgba(35, 159, 64, 0.25);
    animation-direction: reverse;
    animation-duration: 12s;
}

@keyframes logoOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-brand-cycle {
    position: relative;
    height: 1.35em;
    overflow: hidden;
}

.logo-text-wrap .logo-brand-cycle.text-lg {
    height: 1.4em;
}

.logo-brand-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    line-height: 1.3;
    font-size: inherit;
}

.logo-brand-item.logo-brand-active {
    opacity: 1;
    transform: translateY(0);
    animation: shimmer 4s linear infinite;
}

.logo-pulse-ring-2 {
    animation-delay: 1s;
    border-color: rgba(35, 159, 64, 0.25);
}

.logo-wire {
    stroke-dasharray: 4 2;
    animation: wirePulse 2s ease-in-out infinite;
}

@keyframes wirePulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.logo-ai-text {
    animation: aiTextGlow 2s ease-in-out infinite alternate;
}

@keyframes aiTextGlow {
    from { opacity: 0.85; }
    to { opacity: 1; }
}

/* ===== Slogan Dots ===== */
.slogan-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.4);
    transition: all 0.3s ease;
    cursor: default;
}

.slogan-dot.active {
    background: var(--gold-light);
    box-shadow: 0 0 8px rgba(245, 197, 24, 0.6);
    transform: scale(1.3);
}

.typing-cursor {
    color: var(--gold-light);
    animation: blink 1s step-end infinite;
    font-weight: 300;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ===== Visual Captcha ===== */
.visual-captcha-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.visual-captcha-box:hover {
    transform: scale(1.01);
    box-shadow: 0 0 24px rgba(245, 197, 24, 0.15);
}

.visual-captcha-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
    animation: captchaShine 3s ease-in-out infinite;
    pointer-events: none;
}

#captcha-canvas.captcha-loading {
    opacity: 0.5;
    filter: blur(2px);
}

@keyframes captchaShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* ===== Floating Particles ===== */
.floating-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

.particle.gold { background: radial-gradient(circle, rgba(245,197,24,0.6), transparent); }
.particle.green { background: radial-gradient(circle, rgba(35,159,64,0.5), transparent); }
.particle.blue { background: radial-gradient(circle, rgba(100,180,255,0.4), transparent); }

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.global-bg-layer .circuit-line {
    animation-duration: 8s;
}

.aurora-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(35,159,64,0.07), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(245,197,24,0.06), transparent);
    animation: auroraMove 20s ease-in-out infinite alternate;
}

@keyframes auroraMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(2%, -2%) scale(1.05); }
}

/* ===== Course Timeline ===== */
.course-timeline {
    margin-top: 0.5rem;
}

.timeline-track {
    display: grid;
    gap: 0;
}

@media (min-width: 768px) {
    .timeline-track {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 0;
    }
}

.timeline-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
}

@media (min-width: 768px) {
    .timeline-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 0.5rem;
    }
}

.timeline-dot-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding-top: 0.35rem;
}

@media (min-width: 768px) {
    .timeline-dot-wrap {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        padding-top: 0;
    }
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--iran-green), var(--gold-light));
    box-shadow: 0 0 12px rgba(245, 197, 24, 0.5);
    flex-shrink: 0;
    z-index: 1;
}

.timeline-line {
    width: 2px;
    flex: 1;
    min-height: 2.5rem;
    background: linear-gradient(180deg, var(--gold), rgba(212, 160, 23, 0.2));
    margin: 4px 0;
}

@media (min-width: 768px) {
    .timeline-line {
        width: auto;
        height: 2px;
        min-height: 0;
        flex: 1;
        margin: 0 0;
        position: absolute;
        top: 7px;
        left: calc(50% + 10px);
        right: calc(-50% + 10px);
        background: linear-gradient(90deg, var(--gold), rgba(212, 160, 23, 0.2));
    }
    .timeline-step:last-child .timeline-line { display: none; }
}

.timeline-card {
    flex: 1;
    background: rgba(15, 39, 68, 0.7);
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 768px) {
    .timeline-card {
        margin-bottom: 0;
        margin-top: 0.75rem;
        width: 100%;
    }
}

.timeline-card:hover {
    border-color: rgba(245, 197, 24, 0.45);
    box-shadow: 0 4px 20px rgba(245, 197, 24, 0.08);
}

.timeline-title {
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.timeline-period {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.35rem;
}

.timeline-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
    background: rgba(212, 160, 23, 0.2);
    color: #f5c518;
    border: 1px solid rgba(212, 160, 23, 0.35);
}
.timeline-badge--past {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border-color: rgba(100, 116, 139, 0.25);
}
.timeline-badge--upcoming {
    background: rgba(26, 58, 92, 0.4);
    color: #94a3b8;
    border-color: rgba(45, 90, 142, 0.4);
}

.timeline-step--current .timeline-dot {
    background: #d4a017;
    box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.25), 0 0 20px rgba(212, 160, 23, 0.4);
    animation: timeline-pulse 2s ease-in-out infinite;
}
.timeline-step--current .timeline-card {
    border-color: rgba(212, 160, 23, 0.45);
    background: rgba(212, 160, 23, 0.08);
    transform: scale(1.02);
}
.timeline-step--past .timeline-dot {
    background: #475569;
}
.timeline-step--past .timeline-card {
    opacity: 0.65;
}
.timeline-step--upcoming .timeline-dot {
    background: #1e3a5f;
    border: 2px solid #2d5a8e;
}

@keyframes timeline-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.25), 0 0 16px rgba(212, 160, 23, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(212, 160, 23, 0.15), 0 0 24px rgba(212, 160, 23, 0.5); }
}

.course-started-banner {
    animation: welcomePop 0.5s ease-out;
}

/* ===== Dashboard Breadcrumb ===== */
.breadcrumb-nav {
    padding: 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-sep {
    color: #475569;
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--gold-light);
}

.breadcrumb-current {
    color: var(--gold-light);
    font-weight: 600;
}

.sidebar-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    object-fit: cover;
    border: 2px solid rgba(212, 160, 23, 0.35);
}

/* ===== Iran Province Map ===== */
.iran-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 6px;
    max-height: 320px;
    overflow-y: auto;
    padding: 4px;
}

.iran-province-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    border-radius: 8px;
    border: 1px solid;
    min-height: 56px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.iran-province-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(245, 197, 24, 0.15);
    z-index: 1;
}

.iran-province-name {
    font-size: 9px;
    color: #e2e8f0;
    line-height: 1.2;
    text-align: center;
}

.iran-province-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-light);
    margin-top: 2px;
}

.stat-card {
    transition: border-color 0.25s ease;
}

.stat-card:hover {
    border-color: rgba(212, 160, 23, 0.25);
}

.staff-quick-link:hover {
    transform: translateY(-2px);
}

/* Dashboard welcome modal */
.welcome-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.welcome-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.welcome-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(8px);
}

.welcome-modal-card {
    animation: welcomePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(212, 160, 23, 0.35);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    max-height: min(90dvh, 28rem);
    overflow-y: auto;
}

.exercise-error-card {
    animation: modalPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.welcome-modal-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.2) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes welcomePop {
    from { opacity: 0; transform: scale(0.9) translateY(16px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Live session alert popup */
.live-session-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.live-session-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}
.live-session-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.88);
    backdrop-filter: blur(6px);
}
.live-session-modal-card {
    animation: welcomePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(218, 0, 0, 0.15), 0 24px 80px rgba(0, 0, 0, 0.5);
}
.live-session-modal-header {
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.08) 0%, transparent 100%);
}
.live-join-option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(15, 39, 68, 0.55);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    text-align: right;
}
.live-join-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.live-join-option--sso {
    border-color: rgba(16, 185, 129, 0.35);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 39, 68, 0.6) 100%);
}
.live-join-option--sso:hover {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.15);
}
.live-join-option--manual {
    border-color: rgba(212, 160, 23, 0.3);
}
.live-join-option--manual:hover {
    border-color: rgba(212, 160, 23, 0.5);
}
.live-join-option-icon {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
    width: 2.25rem;
    text-align: center;
}
.live-join-option-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.live-join-option-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}
.live-join-option-desc {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.45;
}
.live-join-option-arrow {
    color: #64748b;
    font-size: 1rem;
    flex-shrink: 0;
}
.session-attendance {
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.7rem;
    line-height: 1.3;
    max-width: 9rem;
}
.session-attendance-label {
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    display: inline-block;
    width: fit-content;
}
.session-attendance-detail {
    color: #64748b;
    font-size: 0.65rem;
}
.session-attendance--present .session-attendance-label {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
}
.session-attendance--joined .session-attendance-label {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}
.session-attendance--absent .session-attendance-label {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
}
.session-attendance--prep .session-attendance-label {
    background: rgba(168, 85, 247, 0.15);
    color: #d8b4fe;
}
.session-attendance--pending .session-attendance-label {
    color: #475569;
}
.session-attendance--unknown .session-attendance-label {
    background: rgba(100, 116, 139, 0.12);
    color: #94a3b8;
}
.session-attendance--open .session-attendance-label {
    background: rgba(212, 160, 23, 0.15);
    color: var(--gold-light);
}
.session-video-btn svg {
    opacity: 0.9;
}
.sessions-row--has-video .session-video-btn {
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.15);
}
.sessions-row--has-video {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.06) 0%, transparent 40%);
}

/* Dashboard quick access cards */
.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(26, 58, 92, 0.5);
    border: 1px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    text-align: center;
}

.quick-link-card:hover {
    border-color: rgba(212, 160, 23, 0.35);
    background: rgba(26, 58, 92, 0.75);
    transform: translateY(-2px);
}

.quick-link-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 160, 23, 0.12);
    color: var(--gold-light);
    border: 1px solid rgba(212, 160, 23, 0.2);
}

.quick-link-icon--green {
    background: rgba(35, 159, 64, 0.12);
    color: #4ade80;
    border-color: rgba(35, 159, 64, 0.25);
}

.quick-link-icon--gold {
    background: rgba(245, 197, 24, 0.12);
    color: var(--gold-light);
    border-color: rgba(245, 197, 24, 0.25);
}

.quick-link-icon--blue {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.25);
}

.quick-link-icon--purple {
    background: rgba(168, 85, 247, 0.12);
    color: #d8b4fe;
    border-color: rgba(168, 85, 247, 0.25);
}

/* Dashboard / manage mobile sidebar */
.dashboard-sidebar,
.manage-sidebar {
    display: flex;
    flex-direction: column;
}

@media (max-width: 1023px) {
    .dashboard-sidebar,
    .manage-sidebar {
        display: none;
        transform: translate3d(100%, 0, 0);
        transition: transform 0.3s ease;
    }

    .dashboard-sidebar.open,
    .manage-sidebar.open {
        display: flex;
        transform: translate3d(0, 0, 0);
        pointer-events: auto;
    }

    .dashboard-mobile-overlay,
    .manage-mobile-overlay {
        display: none;
    }

    .dashboard-mobile-overlay.open,
    .manage-mobile-overlay.open {
        display: block;
    }
}

@media (min-width: 1024px) {
    .dashboard-sidebar,
    .manage-sidebar {
        display: flex !important;
        transform: none !important;
        pointer-events: auto;
    }

    .dashboard-mobile-overlay,
    .manage-mobile-overlay {
        display: none !important;
    }
}

.dashboard-mobile-overlay,
.manage-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.75);
    backdrop-filter: blur(4px);
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.dashboard-mobile-overlay.open,
.manage-mobile-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

body.dashboard-menu-open,
body.manage-menu-open,
body.scroll-locked {
    overflow: hidden;
    touch-action: none;
}

@media (max-width: 1023px) {
    html {
        height: auto;
    }

    body.dashboard-body,
    body.manage-body {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        min-height: 100dvh;
    }

    body.dashboard-body.dashboard-menu-open,
    body.manage-body.manage-menu-open,
    body.scroll-locked {
        position: fixed;
        width: 100%;
        left: 0;
        right: 0;
    }

    .dashboard-main,
    .manage-main {
        min-width: 0;
        flex: 1 1 auto;
    }
}

#dashboard-mobile-toggle,
#manage-mobile-toggle {
    position: relative;
    z-index: 60;
}

/* Online sessions table */
.sessions-table-wrap {
    background: rgba(15, 39, 68, 0.45);
}

.sessions-table thead {
    background: rgba(26, 58, 92, 0.7);
}

.sessions-table th {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}

.sessions-table td {
    padding: 0.85rem 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    vertical-align: middle;
}

.sessions-row {
    transition: background 0.2s ease;
}

.sessions-row--past {
    opacity: 0.45;
}

.sessions-row--past .sessions-cell-title {
    color: #64748b;
}

.sessions-row--upcoming {
    background: rgba(15, 39, 68, 0.3);
}

.sessions-row--today {
    background: rgba(212, 160, 23, 0.08);
}

.sessions-row--today .sessions-cell-title {
    color: var(--gold-light);
}

.sessions-row--live {
    background: rgba(220, 38, 38, 0.1);
    opacity: 1;
}

.sessions-row--live .sessions-cell-title {
    color: #fff;
}

.session-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.session-badge--live {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.session-badge--today {
    background: rgba(212, 160, 23, 0.2);
    color: var(--gold-light);
}

.session-badge--upcoming {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.session-badge--past {
    background: rgba(100, 116, 139, 0.15);
    color: #64748b;
}

.session-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 1.5s ease infinite;
}
