/* ============================================================
   CYBERZONE PRO — APP-STYLE DESIGN SYSTEM v3.0
   ============================================================ */

/* 1. FONTS & RESET */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Color Palette — DARK LEARNING GREEN THEME */
    --primary:        #00ff88;
    --primary-dark:   #00cc6a;
    --accent:         #00f2fe;
    --accent-dark:    #00c4cc;
    --purple:         #10b981;
    --purple-light:   #34d399;
    --warning:        #f59e0b;
    --danger:         #ef4444;
    --success:        #00ff88;
    --info:           #00f2fe;

    /* Backgrounds */
    --bg-body:        #02080a;
    --bg-app:         #04110d;
    --bg-surface:     #0a1a12;
    --bg-card:        #0c1f15;
    --bg-card-hover:  #123324;
    --bg-glass:       rgba(0,255,136,0.04);
    --bg-glass-strong:rgba(0,255,136,0.09);
    --bg-sidebar:     #041410;
    --bg-topbar:      rgba(2,10,8,0.92);

    /* Text */
    --text-primary:   #ecfff6;
    --text-secondary: #8fb8a8;
    --text-muted:     #3f5c50;

    /* Borders */
    --border:         rgba(0,255,136,0.10);
    --border-active:  rgba(0,255,136,0.45);

    /* Gradients */
    --grad-primary:   linear-gradient(135deg, #00ff88, #00c472);
    --grad-accent:    linear-gradient(135deg, #00f2fe, #00c4cc);
    --grad-purple:    linear-gradient(135deg, #10b981, #34d399);
    --grad-danger:    linear-gradient(135deg, #ef4444, #f97316);
    --grad-dark:      linear-gradient(180deg, #041410 0%, #02080a 100%);

    /* Shadows */
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.4);
    --shadow-md:      0 4px 20px rgba(0,0,0,0.5);
    --shadow-lg:      0 8px 40px rgba(0,0,0,0.6);
    --shadow-glow:    0 0 30px rgba(0,255,136,0.2);
    --shadow-accent:  0 0 30px rgba(0,255,136,0.2);

    /* App Layout */
    --topbar-height:  60px;
    --sidebar-width:  240px;
    --sidebar-collapsed: 68px;
    --bottomnav-height: 72px;

    /* Typography */
    --font-ui:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-code:      'JetBrains Mono', 'Courier New', monospace;

    /* Spacing */
    --radius-sm:      8px;
    --radius-md:      12px;
    --radius-lg:      16px;
    --radius-xl:      24px;
    --radius-full:    9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4,0,0.2,1);
    --transition:      250ms cubic-bezier(0.4,0,0.2,1);
    --transition-slow: 400ms cubic-bezier(0.4,0,0.2,1);
}

/* LIGHT THEME (DAY MODE) OVERRIDES */
[data-theme="light"] {
    --primary:        #059669;
    --primary-dark:   #047857;
    --accent:         #0284c7;
    --accent-dark:    #0369a1;
    --purple:         #0d9488;
    --purple-light:   #14b8a6;
    --warning:        #d97706;
    --danger:         #dc2626;
    --success:        #059669;
    --info:           #0284c7;

    /* Backgrounds */
    --bg-body:        #f1f5f9;
    --bg-app:         #f8fafc;
    --bg-surface:     #ffffff;
    --bg-card:        #ffffff;
    --bg-card-hover:  #f1f5f9;
    --bg-glass:       rgba(0,0,0,0.03);
    --bg-glass-strong:rgba(0,0,0,0.06);
    --bg-sidebar:     #ffffff;
    --bg-topbar:      rgba(255,255,255,0.98);

    /* Text */
    --text-primary:   #0f172a;
    --text-secondary: #334155;
    --text-muted:     #64748b;

    /* Borders */
    --border:         #cbd5e1;
    --border-active:  #059669;

    /* Gradients */
    --grad-primary:   linear-gradient(135deg, #047857, #059669);
    --grad-accent:    linear-gradient(135deg, #0284c7, #38bdf8);
    --grad-purple:    linear-gradient(135deg, #0d9488, #2dd4bf);
    --grad-danger:    linear-gradient(135deg, #dc2626, #f97316);
    --grad-dark:      linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);

    /* Shadows */
    --shadow-sm:      0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:      0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg:      0 10px 30px rgba(0,0,0,0.12);
    --shadow-glow:    0 0 20px rgba(5,150,105,0.15);
    --shadow-accent:  0 0 20px rgba(2,132,199,0.15);
}

/* Light Mode Core & Typography Overrides */
[data-theme="light"] body,
[data-theme="light"] #appShell,
[data-theme="light"] .app-main,
[data-theme="light"] .main-content {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="light"] strong,
[data-theme="light"] b {
    color: #0f172a !important;
}

[data-theme="light"] p,
[data-theme="light"] span,
[data-theme="light"] div,
[data-theme="light"] li {
    color: inherit;
}

[data-theme="light"] .text-muted,
[data-theme="light"] small,
[data-theme="light"] .subtitle {
    color: #64748b !important;
}

/* Announcement Banner in Light Mode */
[data-theme="light"] .announcement-banner {
    background: linear-gradient(135deg, #047857, #059669) !important;
    color: #ffffff !important;
}
[data-theme="light"] .announcement-banner * {
    color: #ffffff !important;
}

/* Form Controls & Inputs in Light Mode */
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea,
[data-theme="light"] .acf-input,
[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .chat-input,
[data-theme="light"] .community-chat-input {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] .form-input:focus {
    border-color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
    color: #94a3b8 !important;
}

[data-theme="light"] .form-label,
[data-theme="light"] label {
    color: #334155 !important;
    font-weight: 600;
}

/* Navigation, Sidebar & Topbar in Light Mode */
[data-theme="light"] .topbar,
[data-theme="light"] .app-sidebar,
[data-theme="light"] .bottom-tab-bar {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .topbar-title,
[data-theme="light"] .topbar-brand,
[data-theme="light"] .sidebar-brand {
    color: #0f172a !important;
}

[data-theme="light"] .topbar-search input {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .sidebar-section-label {
    color: #64748b !important;
}

[data-theme="light"] .nav-item {
    color: #334155 !important;
}

[data-theme="light"] .nav-item:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

[data-theme="light"] .nav-item.active {
    background: #d1fae5 !important;
    color: #047857 !important;
    font-weight: 700;
}

[data-theme="light"] .sidebar-user-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

/* Hero & Welcome Sections in Light Mode */
[data-theme="light"] .view-hero,
[data-theme="light"] .hero-section,
[data-theme="light"] .welcome-card,
[data-theme="light"] .hero-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
}

[data-theme="light"] .hero-title {
    color: #0f172a !important;
}

[data-theme="light"] .hero-desc {
    color: #334155 !important;
}

[data-theme="light"] .hero-eyebrow {
    background: #d1fae5 !important;
    border-color: #a7f3d0 !important;
    color: #047857 !important;
}

[data-theme="light"] .hero-stat-val {
    color: #0f172a !important;
}

[data-theme="light"] .hero-stat-lbl {
    color: #64748b !important;
}

/* Cards & Containers in Light Mode */
[data-theme="light"] .modal-card,
[data-theme="light"] .course-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .review-card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .pay-summary-box,
[data-theme="light"] .vip-order-card,
[data-theme="light"] .pay-ref-box,
[data-theme="light"] .pay-info-box,
[data-theme="light"] .cert-preview-card,
[data-theme="light"] .certificate-card,
[data-theme="light"] .admin-card,
[data-theme="light"] .glass-card,
[data-theme="light"] .card,
[data-theme="light"] .dashboard-card,
[data-theme="light"] .lesson-item,
[data-theme="light"] .module-header,
[data-theme="light"] .notice-card,
[data-theme="light"] .kpi-card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .course-card:hover,
[data-theme="light"] .card:hover,
[data-theme="light"] .stat-card:hover {
    border-color: #059669 !important;
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.12) !important;
}

[data-theme="light"] .course-title,
[data-theme="light"] .card-title,
[data-theme="light"] .pricing-title,
[data-theme="light"] .stat-val,
[data-theme="light"] .stat-value,
[data-theme="light"] .kpi-val {
    color: #0f172a !important;
}

[data-theme="light"] .course-desc,
[data-theme="light"] .stat-label,
[data-theme="light"] .card-subtitle,
[data-theme="light"] .kpi-lbl {
    color: #64748b !important;
}

/* Buttons in Light Mode */
[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #047857, #059669) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25) !important;
}

[data-theme="light"] .btn-primary:hover {
    background: linear-gradient(135deg, #065f46, #047857) !important;
    color: #ffffff !important;
}

[data-theme="light"] .btn-accent {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
}

[data-theme="light"] .btn-ghost,
[data-theme="light"] .topbar-icon-btn {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}

[data-theme="light"] .btn-ghost:hover,
[data-theme="light"] .topbar-icon-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] .btn-outline {
    background: #ffffff !important;
    border: 1px solid #059669 !important;
    color: #047857 !important;
}

[data-theme="light"] .btn-outline:hover {
    background: #f0fdf4 !important;
    color: #047857 !important;
}

/* Category Pills & Tabs in Light Mode */
[data-theme="light"] .cat-pill,
[data-theme="light"] .filter-btn,
[data-theme="light"] .banner-cat-chip {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .cat-pill:hover,
[data-theme="light"] .filter-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

[data-theme="light"] .cat-pill.active,
[data-theme="light"] .filter-btn.active {
    background: #059669 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
}

[data-theme="light"] .tab-btn {
    color: #64748b !important;
}

[data-theme="light"] .tab-btn.active {
    color: #059669 !important;
    border-bottom-color: #059669 !important;
}

/* Payment Gateway Cards in Light Mode */
[data-theme="light"] .pay-method-card,
[data-theme="light"] .deposit-method-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .pay-method-card.active,
[data-theme="light"] .deposit-method-card.active {
    border-color: #059669 !important;
    background: #f0fdf4 !important;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2) !important;
}

/* Badges & Status Tags in Light Mode */
[data-theme="light"] .badge,
[data-theme="light"] .status-badge {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .badge-pending,
[data-theme="light"] .badge-warning {
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
}

[data-theme="light"] .badge-approved,
[data-theme="light"] .badge-success {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

[data-theme="light"] .badge-rejected,
[data-theme="light"] .badge-danger {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fca5a5 !important;
}

/* Chat & AI Windows in Light Mode */
[data-theme="light"] .community-chat-wrap,
[data-theme="light"] .chat-box,
[data-theme="light"] .ai-chat-window,
[data-theme="light"] .chat-drawer {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .chat-msg,
[data-theme="light"] .chat-message,
[data-theme="light"] .community-chat-msg {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] .chat-msg.mine,
[data-theme="light"] .chat-message.user {
    background: #d1fae5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #064e3b !important;
}

/* Lesson Player, Course Details in Light Mode */
[data-theme="light"] .course-player-wrap,
[data-theme="light"] .course-detail-wrap,
[data-theme="light"] .lesson-sidebar,
[data-theme="light"] .course-curriculum {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] .lesson-item {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155 !important;
}

[data-theme="light"] .lesson-item:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
}

[data-theme="light"] .lesson-item.active {
    background: #ecfdf5 !important;
    color: #047857 !important;
    font-weight: 700;
}

/* Tables in Light Mode */
[data-theme="light"] table {
    background: #ffffff !important;
    color: #0f172a !important;
}

[data-theme="light"] th {
    background: #f8fafc !important;
    color: #334155 !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

[data-theme="light"] td {
    border-bottom: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] tr:hover {
    background: #f1f5f9 !important;
}

[data-theme="light"] .admin-side-btn {
    color: #334155 !important;
}

[data-theme="light"] .admin-side-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

[data-theme="light"] .admin-side-btn.active {
    background: #d1fae5 !important;
    color: #047857 !important;
    font-weight: 700;
}

/* Modal Overlay & Cards in Light Mode */
[data-theme="light"] .modal-overlay {
    background: rgba(15, 23, 42, 0.6) !important;
}

/* Code Blocks & Terminal Windows in Light Mode */
[data-theme="light"] code,
[data-theme="light"] pre,
[data-theme="light"] .code-box,
[data-theme="light"] .copy-box,
[data-theme="light"] .terminal-window {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

/* Footer in Light Mode */
[data-theme="light"] .app-footer,
[data-theme="light"] .footer,
[data-theme="light"] .footer-wrap {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] .footer-link,
[data-theme="light"] .footer a {
    color: #475569 !important;
}

[data-theme="light"] .footer-link:hover,
[data-theme="light"] .footer a:hover {
    color: #059669 !important;
}

/* Override neon text colors in Light Mode for high legibility */
[data-theme="light"] .text-primary-glow,
[data-theme="light"] [style*="color:#00ff88"],
[data-theme="light"] [style*="color: #00ff88"],
[data-theme="light"] [style*="color:#00ff88 !important"],
[data-theme="light"] [style*="color: #00ff88 !important"] {
    color: #059669 !important;
}

[data-theme="light"] [style*="color:#00f2fe"],
[data-theme="light"] [style*="color: #00f2fe"] {
    color: #0284c7 !important;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-ui);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

button { font-family: var(--font-ui); cursor: pointer; border: none; outline: none; }
input, textarea, select { font-family: var(--font-ui); }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   2. SPLASH SCREEN
   ============================================================ */
#appSplash {
    position: fixed;
    inset: 0;
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
#appSplash.hidden {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}
.splash-logo {
    font-family: var(--font-code);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}
.splash-logo span { color: var(--primary); }
.splash-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.splash-loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-top: 2.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   3. APP SHELL LAYOUT
   ============================================================ */
#appShell {
    display: grid;
    grid-template-areas:
        "topbar topbar"
        "sidebar content";
    grid-template-columns: auto 1fr;
    grid-template-rows: var(--topbar-height) 1fr;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ============================================================
   4. TOP APP BAR
   ============================================================ */
#appTopBar {
    grid-area: topbar;
    height: var(--topbar-height);
    background: linear-gradient(90deg,
        rgba(2,10,8,0.97) 0%,
        rgba(4,14,10,0.95) 50%,
        rgba(2,10,8,0.97) 100%) !important;
    backdrop-filter: blur(32px) saturate(1.8);
    -webkit-backdrop-filter: blur(32px) saturate(1.8);
    border-bottom: 1px solid rgba(0,255,136,0.06) !important;
    box-shadow: 0 1px 0 rgba(0,255,136,0.04), 0 8px 32px -8px rgba(0,0,0,0.4) !important;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.8rem;
    z-index: 1000;
    position: relative;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    padding-left: 0.2rem;
}

.sidebar-toggle-btn {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
}
.sidebar-toggle-btn:hover { background: var(--bg-glass-strong); color: var(--text-primary); }

.app-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--grad-accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #060b14;
    font-size: 0.9rem;
}
.brand-name {
    font-family: var(--font-code);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.04em;
}
.brand-name .highlight { color: var(--primary); }
.brand-version {
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(0,255,136,0.12);
    color: var(--primary);
    border: 1px solid rgba(0,255,136,0.25);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
}

.topbar-center {
    flex: 1;
    max-width: 500px;
    margin: 0 auto;
}

.app-search-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.45rem 1rem;
    transition: var(--transition);
}
.app-search-bar:focus-within {
    border-color: var(--border-active);
    box-shadow: 0 0 0 3px rgba(0,255,136,0.1);
}
.app-search-bar i { color: var(--text-muted); font-size: 0.85rem; }
.app-search-bar input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.88rem;
}
.app-search-bar input::placeholder { color: var(--text-muted); }
.search-kbd {
    font-size: 0.68rem;
    font-family: var(--font-code);
    color: var(--text-muted);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
}
.search-results-dropdown {
    position: absolute;
    top: calc(var(--topbar-height) - 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    max-height: 360px;
    overflow-y: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 500;
    display: none;
}
.search-results-dropdown.show { display: block; }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.topbar-icon-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}
.topbar-icon-btn:hover { background: var(--bg-glass-strong); color: var(--text-primary); }
.topbar-icon-btn .notif-dot {
    position: absolute;
    top: 7px; right: 7px;
    width: 7px; height: 7px;
    background: var(--danger);
    border-radius: 50%;
    border: 1.5px solid var(--bg-topbar);
}

.topbar-notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 330px;
    max-width: calc(100vw - 24px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 55px rgba(0,0,0,0.55);
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(16px);
}
.topbar-notif-dropdown .admin-notif-head {
    padding: 0.7rem 0.95rem;
    font-weight: 800;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-glass);
}
.topbar-notif-dropdown .admin-notif-item.unread {
    background: rgba(0,242,254,0.07);
    border-left: 2px solid var(--primary);
}

/* ---------- Related Labs (course detail page) ---------- */
.cd-related {
    margin-top: 1.8rem;
    padding-bottom: 0.5rem;
}
.cd-related-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.cd-related-head i { color: var(--primary); }
.cd-related-head span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}
.cd-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 1rem;
}
.cd-rel-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}
.cd-rel-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 242, 254, 0.25);
}
.cd-rel-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.cd-rel-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.cd-rel-card:hover .cd-rel-thumb { transform: scale(1.05); }
.cd-rel-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.55rem;
    border-radius: 99px;
}
.cd-rel-badge.free { background: rgba(0, 255, 136, 0.9); color: #04210f; }
.cd-rel-badge.vip { background: rgba(245, 158, 11, 0.95); color: #1c1200; }
.cd-rel-body { padding: 0.8rem 0.9rem 0.95rem; }
.cd-rel-title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.3em;
}
.cd-rel-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.66rem;
    color: var(--text-muted);
    margin-top: 0.45rem;
}
.cd-rel-meta span:first-child { color: #fbbf24; }
.cd-rel-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin-top: 0.55rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent);
}
.cd-rel-free { color: var(--success); font-size: 0.72rem; }
.cd-rel-lessons {
    font-size: 0.64rem;
    font-weight: 600;
    color: var(--text-muted);
}
@media (max-width: 560px) {
    .cd-related-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.8rem; }
    .cd-related-head { font-size: 0.95rem; }
}

.topbar-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.7rem 0.3rem 0.4rem;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}
.topbar-user-btn:hover { border-color: var(--border-active); }
.user-avatar-sm {
    width: 28px; height: 28px;
    background: var(--grad-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}
.user-name-sm {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   5. SIDEBAR NAVIGATION
   ============================================================ */
#appSidebar {
    grid-area: sidebar;
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width var(--transition-slow);
    z-index: 100;
}
#appSidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 0.85rem 0.7rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.2rem;
    transition: var(--transition);
}
.sidebar-brand:hover { background: var(--bg-glass); }
.sidebar-brand-icon {
    width: 30px; height: 30px;
    background: var(--grad-accent);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: #060b14;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.sidebar-brand-name {
    font-family: var(--font-code);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-brand-name .highlight { color: var(--primary); }
#appSidebar.collapsed .sidebar-brand {
    justify-content: center;
    padding: 0.9rem 0.4rem;
}
#appSidebar.collapsed .sidebar-brand-name { display: none; }

.sidebar-section-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.7rem 0.8rem 0.3rem;
    transition: opacity var(--transition);
}
#appSidebar.collapsed .sidebar-section-label { opacity: 0; }

.sidebar-nav {
    flex: 1;
    padding: 0.3rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
    white-space: nowrap;
    position: relative;
    text-decoration: none;
}
.sidebar-nav-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    transition: var(--transition);
}
.sidebar-nav-item span { transition: opacity var(--transition); }
.sidebar-nav-item .nav-badge {
    margin-left: auto;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}
.nav-badge.green { background: rgba(16,185,129,0.2); color: var(--success); }
.nav-badge.yellow { background: rgba(245,158,11,0.2); color: var(--warning); }
.nav-badge.red { background: rgba(239,68,68,0.2); color: var(--danger); }

.sidebar-nav-item:hover {
    background: var(--bg-glass-strong);
    color: var(--text-primary);
}
.sidebar-nav-item.active {
    background: linear-gradient(135deg, rgba(0,255,136,0.12), rgba(0,255,136,0.08));
    color: var(--primary);
    border: 1px solid rgba(0,255,136,0.15);
}
.sidebar-nav-item.active i { color: var(--primary); }
.sidebar-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 3px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}
#appSidebar.collapsed .sidebar-nav {
    padding-left: 0;
    padding-right: 0;
}
#appSidebar.collapsed .sidebar-nav-item {
    justify-content: center;
    gap: 0;
    padding: 0.55rem 0 !important;
    margin: 0.1rem 0 !important;
}
#appSidebar.collapsed .sidebar-nav-item span,
#appSidebar.collapsed .sidebar-nav-item .nav-badge {
    display: none;
}

.sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0.6rem;
}

.sidebar-footer {
    padding: 0.5rem 0.5rem 0.7rem;
    border-top: 1px solid var(--border);
}
.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}
.sidebar-user-card:hover { border-color: var(--border-active); }
.sidebar-user-avatar {
    width: 36px; height: 36px;
    background: var(--grad-accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-weight: 700; color: #000;
    flex-shrink: 0;
}
.sidebar-user-info { overflow: hidden; flex: 1; }
.sidebar-user-name {
    font-size: 0.85rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-role {
    font-size: 0.72rem; color: var(--text-muted);
}
#appSidebar.collapsed .sidebar-user-card { padding: 0.5rem; justify-content: center; }
#appSidebar.collapsed .sidebar-user-info { display: none; }

/* ============================================================
   6. MAIN CONTENT AREA
   ============================================================ */
#appContent {
    grid-area: content;
    overflow: hidden;
    position: relative;
    background: var(--bg-app);
}

/* App Views (pages) */
.app-view {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
}
.app-view.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Scrollbar styling */
.app-view::-webkit-scrollbar { width: 5px; }
.app-view::-webkit-scrollbar-track { background: transparent; }
.app-view::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
.app-view::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ============================================================
   7. BOTTOM TAB BAR (Mobile)
   ============================================================ */
#bottomTabBar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottomnav-height);
    background: rgba(10,15,26,0.97);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding: 0 0.5rem;
    align-items: stretch;
    justify-content: space-around;
}

.bottom-tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    position: relative;
}
.bottom-tab-btn i { font-size: 1.25rem; transition: var(--transition); }
.bottom-tab-btn .tab-pip {
    position: absolute;
    top: 8px;
    width: 4px; height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}
.bottom-tab-btn.active { color: var(--primary); }
.bottom-tab-btn.active .tab-pip { opacity: 1; }
.bottom-tab-btn.active i { transform: translateY(-2px); }
.bottom-tab-btn .tab-notif {
    position: absolute;
    top: 6px; right: calc(50% - 14px);
    background: var(--danger);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    width: 14px; height: 14px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--bg-topbar);
}

/* ============================================================
   8. VIEW: HOME
   ============================================================ */
.view-hero {
    position: relative;
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(135deg, rgba(0,255,136,0.05) 0%, rgba(0,255,136,0.03) 50%, transparent 100%);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.view-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,255,136,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.view-hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(0,255,136,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(0,255,136,0.08);
    border: 1px solid rgba(0,255,136,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}
.hero-eyebrow .pulse-dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-ring 1.5s ease-in-out infinite;
}
@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,136,0.6); }
    50% { box-shadow: 0 0 0 5px rgba(0,255,136,0); }
}

.hero-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}
.hero-title .grad { background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: 1.5rem;
}

.hero-cta-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}

.hero-stats-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.hero-stat-val span { color: var(--primary); }
.hero-stat-lbl { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Section Wrapper */
.view-section {
    padding: 1.8rem 2rem;
}
.view-section + .view-section {
    padding-top: 0;
}

.section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}
.section-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-heading i { color: var(--primary); font-size: 0.9rem; }
.section-view-all {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
}
.section-view-all:hover { color: var(--accent); }

/* Category Pills */
.pill-scroll-row {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scrollbar-width: none;
}
.pill-scroll-row::-webkit-scrollbar { display: none; }

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
}
.cat-pill:hover { background: var(--bg-glass-strong); color: var(--text-primary); }
.cat-pill.active {
    background: rgba(0,255,136,0.1);
    border-color: rgba(0,255,136,0.3);
    color: var(--primary);
}

/* ============================================================
   9. COURSE CARDS — Netflix / Udemy Style
   ============================================================ */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
}
.courses-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
}

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}
.course-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,255,136,0.2);
    box-shadow: var(--shadow-md), 0 0 30px rgba(0,255,136,0.06);
}
.course-card:active { transform: scale(0.98); }

.card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-surface);
}
.card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.course-card:hover .card-thumb img { transform: scale(1.04); }

.card-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-play-btn {
    width: 44px; height: 44px;
    background: rgba(0,255,136,0.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #000;
    font-size: 1rem;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
    padding-left: 3px;
}
.course-card:hover .card-play-btn {
    opacity: 1;
    transform: scale(1);
}

.card-badges {
    position: absolute;
    top: 0.5rem; left: 0.5rem;
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-category {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}

.card-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-instructor {
    font-size: 0.77rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-meta-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.card-rating { color: var(--warning); font-weight: 600; }
.card-rating i { font-size: 0.7rem; }

.card-progress-bar {
    height: 3px;
    background: var(--bg-glass-strong);
    border-radius: 2px;
    overflow: hidden;
}
.card-progress-fill {
    height: 100%;
    background: var(--grad-primary);
    border-radius: 2px;
    transition: width 0.6s ease;
}

.card-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.card-price {
    font-size: 0.85rem;
    font-weight: 800;
}
.card-price.free { color: var(--accent); }
.card-price.paid { color: var(--text-primary); }
.card-price.paid s { color: var(--text-muted); font-size: 0.72rem; font-weight: 400; margin-right: 0.3rem; }

/* Featured/Wide card */
.course-card.featured {
    display: flex;
    flex-direction: row;
    grid-column: 1 / -1;
    max-height: 220px;
}
.course-card.featured .card-thumb {
    width: 340px;
    flex-shrink: 0;
    aspect-ratio: auto;
}
.course-card.featured .card-body {
    padding: 1.5rem;
}

/* ============================================================
   10. HORIZONTAL SCROLL ROWS (Netflix-style)
   ============================================================ */
.hscroll-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.6rem;
    scrollbar-width: none;
    margin: 0 -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}
.hscroll-row::-webkit-scrollbar { display: none; }
.hscroll-row .course-card {
    flex-shrink: 0;
    width: 240px;
}

/* ============================================================
   11. STATS / KPI CARDS
   ============================================================ */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
}
.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: var(--transition);
}
.kpi-card:hover { border-color: rgba(0,255,136,0.2); transform: translateY(-2px); }
.kpi-icon-wrap {
    width: 42px; height: 42px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.kpi-icon-wrap.cyan { background: rgba(0,255,136,0.12); color: var(--primary); }
.kpi-icon-wrap.green { background: rgba(0,255,136,0.12); color: var(--accent); }
.kpi-icon-wrap.purple { background: rgba(124,58,237,0.15); color: var(--purple-light); }
.kpi-icon-wrap.yellow { background: rgba(245,158,11,0.12); color: var(--warning); }
.kpi-icon-wrap.red { background: rgba(239,68,68,0.12); color: var(--danger); }
.kpi-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.kpi-lbl { font-size: 0.75rem; color: var(--text-muted); }
.kpi-delta {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--success);
    display: flex; align-items: center; gap: 0.2rem;
}
.kpi-delta.down { color: var(--danger); }

/* ============================================================
   12. VIEW: COURSES (Browse)
   ============================================================ */
.courses-view-header {
    padding: 1.5rem 2rem 0;
}
.courses-filter-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}
.filter-select {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-family: var(--font-ui);
    padding: 0.45rem 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}
.filter-select:focus { outline: none; border-color: var(--border-active); }

/* ============================================================
   13. VIEW: MY LEARNING (Dashboard)
   ============================================================ */
.my-learning-header {
    padding: 1.5rem 2rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.greeting-block .greeting-time {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}
.greeting-block .greeting-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}
.greeting-block .greeting-name span { color: var(--primary); }

.learning-tab-bar {
    display: flex;
    gap: 0.25rem;
    padding: 0 2rem;
    margin-top: 1.2rem;
    border-bottom: 1px solid var(--border);
}
.learning-tab-btn {
    padding: 0.6rem 1.1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: -1px;
}
.learning-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.learning-tab-btn:hover { color: var(--text-primary); }

/* Progress Card */
.in-progress-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    gap: 0;
    transition: var(--transition);
    cursor: pointer;
}
.in-progress-card:hover {
    border-color: rgba(0,255,136,0.2);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.in-progress-thumb {
    width: 120px;
    flex-shrink: 0;
    object-fit: cover;
}
.in-progress-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.in-progress-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}
.in-progress-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.in-progress-bar-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.in-progress-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-glass-strong);
    border-radius: 2px;
    overflow: hidden;
}
.in-progress-fill {
    height: 100%;
    background: var(--grad-primary);
    border-radius: 2px;
}
.in-progress-pct {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}
.continue-btn {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0,255,136,0.08);
    border: 1px solid rgba(0,255,136,0.2);
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
}
.continue-btn:hover { background: rgba(0,255,136,0.16); }

/* ============================================================
   14. VIEW: COMMUNITY
   ============================================================ */
.community-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    height: 100%;
}
.community-chat-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: calc(100vh - var(--topbar-height) - 3rem);
}
.chat-panel-header {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.2);
}
.chat-panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.live-badge {
    font-size: 0.62rem;
    font-weight: 800;
    background: rgba(239,68,68,0.2);
    color: var(--danger);
    border: 1px solid rgba(239,68,68,0.3);
    padding: 2px 7px;
    border-radius: var(--radius-full);
    animation: pulse-badge 1s ease infinite alternate;
}
@keyframes pulse-badge {
    from { opacity: 1; }
    to { opacity: 0.6; }
}
.chat-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.chat-messages-area::-webkit-scrollbar { width: 3px; }
.chat-messages-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.chat-msg-item {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}
.chat-msg-item.own { flex-direction: row-reverse; }
.chat-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--grad-purple);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; color: #fff;
    flex-shrink: 0;
}
.chat-bubble {
    max-width: 75%;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border);
    border-radius: 12px 12px 12px 4px;
    padding: 0.6rem 0.9rem;
}
.chat-msg-item.own .chat-bubble {
    background: rgba(0,255,136,0.1);
    border-color: rgba(0,255,136,0.2);
    border-radius: 12px 12px 4px 12px;
}
.chat-sender {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.2rem;
}
.chat-text { font-size: 0.85rem; line-height: 1.45; }
.chat-time { font-size: 0.65rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Community page — full-page photo background */
#viewCommunity {
    background: url('community-chat.png?v=1') center / cover no-repeat fixed;
}
#viewCommunity::before {
    content: '';
    position: sticky;
    top: 0;
    display: block;
    width: 100%;
    height: 100vh;
    margin-bottom: -100vh;
    background: linear-gradient(180deg, rgba(3,10,7,0.80) 0%, rgba(3,12,8,0.72) 45%, rgba(4,15,10,0.86) 100%);
    pointer-events: none;
    z-index: 0;
}
#viewCommunity .community-layout {
    position: relative;
    z-index: 1;
}
.community-chat-panel, .community-sidebar-panel {
    background: rgba(8, 22, 16, 0.82);
    backdrop-filter: blur(14px);
}
.community-chat-panel .chat-panel-header {
    background: rgba(2, 10, 7, 0.55);
}
.chat-input-bar {
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.6rem;
    align-items: center;
}
.chat-input {
    flex: 1;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.55rem 1rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}
.chat-input:focus { border-color: var(--border-active); }
.chat-send-btn {
    width: 38px; height: 38px;
    background: var(--grad-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #000;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: var(--transition);
}
.chat-send-btn:hover { transform: scale(1.05); box-shadow: var(--shadow-glow); }

.community-sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.community-panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.1rem;
}
.community-panel-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
}

.online-user-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
}
.online-user-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--bg-surface);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700;
    position: relative;
}
.online-dot {
    position: absolute;
    bottom: -1px; right: -1px;
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    border: 1.5px solid var(--bg-card);
}
.online-dot.vip-dot {
    background: var(--warning);
    box-shadow: 0 0 6px rgba(245,158,11,0.8);
}
.online-user-name { font-size: 0.8rem; font-weight: 600; }
.online-user-role { font-size: 0.68rem; color: var(--text-muted); }

/* ============================================================
   15. VIEW: PROFILE
   ============================================================ */
.profile-view {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}
.profile-cover {
    height: 160px;
    background: linear-gradient(135deg, rgba(0,255,136,0.15), rgba(124,58,237,0.15));
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    margin-bottom: 3.5rem;
}
.profile-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1200&q=40') center/cover;
    opacity: 0.15;
}
.profile-avatar-wrap {
    position: absolute;
    bottom: -36px;
    left: 2rem;
}
.profile-avatar-lg {
    width: 80px; height: 80px;
    background: var(--grad-primary);
    border-radius: 50%;
    border: 4px solid var(--bg-app);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 800; color: #000;
}
.profile-avatar-cam {
    position: absolute; right: -2px; bottom: 6px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--grad-accent); color: #000;
    border: 2px solid var(--bg-app);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; cursor: pointer;
    transition: transform 0.15s ease;
}
.profile-avatar-cam:hover { transform: scale(1.12); }
.edit-avatar-preview {
    width: 68px; height: 68px; flex: 0 0 68px;
    background: var(--grad-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800; color: #000;
}

.profile-info-block {
    margin-bottom: 1.5rem;
}
.profile-name {
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.profile-username { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; }
.profile-badges-row { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.6rem; }

.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}
.profile-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
}
.profile-stat-val { font-size: 1.4rem; font-weight: 800; }
.profile-stat-lbl { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.2rem; }

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
}
.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}
.settings-item:last-child { border-bottom: none; }
.settings-item:hover { background: var(--bg-glass); }
.settings-item-left { display: flex; align-items: center; gap: 0.8rem; }
.settings-item-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
}
.settings-item-title { font-size: 0.88rem; font-weight: 600; }
.settings-item-desc { font-size: 0.72rem; color: var(--text-muted); }
.settings-item-right { color: var(--text-muted); font-size: 0.85rem; }

/* Toggle switch */
.toggle-switch { position: relative; display: inline-block; width: 42px; height: 22px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
    position: absolute; inset: 0;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}
.toggle-track::before {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    background: var(--text-muted);
    border-radius: 50%;
    top: 2px; left: 2px;
    transition: var(--transition);
}
.toggle-switch input:checked + .toggle-track { background: rgba(0,255,136,0.2); border-color: var(--primary); }
.toggle-switch input:checked + .toggle-track::before { background: var(--primary); transform: translateX(20px); }

/* ============================================================
   16. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-ui);
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
    background: var(--grad-primary);
    color: #000;
    box-shadow: 0 4px 15px rgba(0,255,136,0.25);
}
.btn-primary:hover { box-shadow: 0 6px 25px rgba(0,255,136,0.4); filter: brightness(1.05); }

.btn-accent {
    background: var(--grad-accent);
    color: #000;
    box-shadow: 0 4px 15px rgba(0,255,136,0.25);
}
.btn-accent:hover { box-shadow: 0 6px 25px rgba(0,255,136,0.4); }

.btn-ghost {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg-glass-strong); color: var(--text-primary); border-color: var(--border-active); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-active);
    color: var(--primary);
}
.btn-outline:hover { background: rgba(0,255,136,0.08); }

.btn-danger-ghost {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.25);
    color: var(--danger);
}
.btn-danger-ghost:hover { background: rgba(239,68,68,0.18); }

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.78rem; }
.btn-lg { padding: 0.8rem 1.8rem; font-size: 0.95rem; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }
.btn-round { border-radius: var(--radius-full); }

/* ============================================================
   17. BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
}
.badge-live   { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.25); }
.badge-hot    { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.25); }
.badge-new    { background: rgba(16,185,129,0.15); color: var(--success); border: 1px solid rgba(16,185,129,0.25); }
.badge-vip    { background: rgba(124,58,237,0.15); color: var(--purple-light); border: 1px solid rgba(124,58,237,0.25); }
.badge-free   { background: rgba(0,255,136,0.1); color: var(--primary); border: 1px solid rgba(0,255,136,0.2); }
.badge-premium { background: rgba(245,158,11,0.12); color: var(--warning); border: 1px solid rgba(245,158,11,0.25); }
.badge-approved { background: rgba(16,185,129,0.12); color: var(--success); border: 1px solid rgba(16,185,129,0.25); }
.badge-pending  { background: rgba(245,158,11,0.12); color: var(--warning); border: 1px solid rgba(245,158,11,0.25); }
.badge-rejected { background: rgba(239,68,68,0.12); color: var(--danger); border: 1px solid rgba(239,68,68,0.25); }
.badge-cancelled{ background: rgba(148,163,184,0.12); color: var(--text-secondary); border: 1px solid rgba(148,163,184,0.25); }

/* ============================================================
   18. FORM COMPONENTS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.form-label .req { color: var(--danger); }
.form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: var(--font-ui);
    outline: none;
    transition: var(--transition);
}
.form-input:focus {
    border-color: var(--border-active);
    box-shadow: 0 0 0 3px rgba(0,255,136,0.1);
}
.form-input::placeholder { color: var(--text-muted); }
.form-hint { font-size: 0.72rem; color: var(--text-muted); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* ============================================================
   19. MODALS — Bottom Sheets on Mobile, Centered on Desktop
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.active, .modal-overlay.show { display: flex; }

.modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-box.wide { max-width: 860px; }
.modal-box.fullscreen { max-width: 1100px; height: 90vh; }

.modal-header {
    padding: 1.3rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.modal-close {
    width: 32px; height: 32px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.modal-close:hover { background: var(--bg-glass-strong); color: var(--text-primary); }
.modal-body { padding: 1.5rem; }
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
}

/* Auth Modal */
.auth-modal-body { padding: 2rem; text-align: center; }
.auth-icon {
    width: 60px; height: 60px;
    background: var(--grad-primary);
    border-radius: var(--radius-xl);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #000;
    margin: 0 auto 1.2rem;
}
.auth-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.3rem; }
.auth-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.auth-tabs {
    display: flex;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 3px;
    margin-bottom: 1.5rem;
}
.auth-tab-btn {
    flex: 1;
    padding: 0.5rem;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.auth-tab-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.auth-form { display: flex; flex-direction: column; gap: 0.8rem; text-align: left; }
.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-input-icon { position: absolute; left: 0.9rem; color: var(--text-muted); font-size: 0.85rem; }
.auth-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: var(--font-ui);
    outline: none;
    transition: var(--transition);
}
.auth-input:focus { border-color: var(--border-active); box-shadow: 0 0 0 3px rgba(0,255,136,0.1); }
.auth-input::placeholder { color: var(--text-muted); }
.auth-hint {
    background: rgba(0,255,136,0.06);
    border: 1px dashed rgba(0,255,136,0.2);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.9rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: left;
}
.auth-hint strong { color: var(--primary); }

/* Course Player Modal */
.player-modal-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    height: 100%;
}
.player-video-col {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.player-video-wrap {
    position: relative;
    background: #000;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
}
.player-video-wrap iframe {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%; /* Pushes top title bar and bottom logo outside overflow container */
    border: none;
    pointer-events: none; /* Touches/clicks intercepted by .custom-player-ui layer */
}

/* ============================================================
   WHITE-LABEL CUSTOM PLAYER CONTROLS
   YouTube's native chrome is disabled via controls=0; this branded
   layer drives the player through the YouTube IFrame API on ALL devices.
   ============================================================ */
.custom-player-ui {
    position: absolute;
    inset: 0;
    z-index: 4; /* above iframe, below .video-lock-overlay (z-index 5) */
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
    pointer-events: auto;
}
.pc-poster {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
    background: radial-gradient(120% 120% at 50% 0%, #0e1626 0%, #05090f 100%);
    background-size: cover;
    background-position: center;
}
.pc-center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    color: #04120b;
    background: linear-gradient(135deg, var(--primary, #00ff88), var(--accent, #00f2fe));
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5), 0 0 0 7px rgba(255, 255, 255, 0.14);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pc-center-btn:hover {
    transform: translate(-50%, -50%) scale(1.07);
    box-shadow: 0 12px 40px rgba(0, 255, 136, 0.35), 0 0 0 7px rgba(255, 255, 255, 0.2);
}
.pc-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.7rem;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0) 0%, rgba(3, 7, 18, 0.72) 48%, rgba(3, 7, 18, 0.94) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: auto;
}
.custom-player-ui:hover .pc-bar { opacity: 1; }
.pc-btn {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
    padding: 0;
}
.pc-btn:hover { background: rgba(255, 255, 255, 0.28); }
.pc-time {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 600;
    color: #e8edf5;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.pc-seek {
    flex: 1;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.22);
    outline: none;
    cursor: pointer;
}
.pc-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary, #00ff88);
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.pc-seek::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary, #00ff88);
    border: 2px solid #fff;
}
/* Fullscreen the WRAPPER (not the iframe) so our custom bar stays on top */
.player-video-wrap:fullscreen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    background: #000;
}
.player-video-wrap:fullscreen iframe { width: 100%; height: 100%; }
.player-video-wrap:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    background: #000;
}
/* Touch / mobile devices: keep white-label controls active */
@media (hover: none) {
    .pc-bar { opacity: 1; }
}
.video-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6,11,20,0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-align: center;
    padding: 1.5rem;
    z-index: 5;
}
.video-lock-overlay .lock-icon {
    font-size: 2.5rem;
    color: var(--warning);
}
.player-info-col {
    padding: 1.2rem;
    border-top: 1px solid var(--border);
    overflow-y: auto;
}
.player-sidebar-col {
    border-left: 1px solid var(--border);
    overflow-y: auto;
    padding: 0;
}
/* Mobile Player Control Bar — video-adjacent on phones, hidden on desktop.
   Fixed to the bottom of the screen while the course modal is open so the
   Playlist / Prev / Next / Files actions are ALWAYS one tap away (no scrolling
   the whole lesson page to find them). */
.player-mobile-bar {
    display: none;
}
@media (max-width: 768px) {
    .player-mobile-bar {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 120;
        gap: 0.4rem;
        padding: 0.5rem 0.6rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
        background: rgba(10, 12, 16, 0.96);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid var(--border);
        box-shadow: 0 -8px 24px rgba(0,0,0,0.35);
    }
    .pmb-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
        padding: 0.55rem 0.3rem;
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--text-secondary);
        background: rgba(255,255,255,0.05);
        border: 1px solid var(--border);
        border-radius: 10px;
        transition: all .2s ease;
        min-width: 0;
        white-space: nowrap;
    }
    .pmb-btn:active { transform: scale(0.96); background: rgba(255,255,255,0.12); }
    .pmb-btn.pmb-main {
        background: var(--grad-primary);
        color: #000;
        border-color: transparent;
        flex: 1.4;
    }
    .pmb-btn.pmb-disabled { opacity: 0.35; pointer-events: none; }
    /* leave room so the fixed bar never covers the last lesson/resources
       (includes iPhone home-indicator safe area) */
    .player-info-col { padding-bottom: calc(4.2rem + env(safe-area-inset-bottom, 0px)); }
    .player-sidebar-col { padding-bottom: calc(4.2rem + env(safe-area-inset-bottom, 0px)); }
}
.playlist-header {
    padding: 0.8rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.playlist-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
}
.playlist-item:hover { background: var(--bg-glass); }
.playlist-item.active { background: rgba(0,255,136,0.08); border-left: 2px solid var(--primary); }
.playlist-item-num {
    font-family: var(--font-code);
    font-size: 0.72rem;
    color: var(--text-muted);
    width: 20px;
    flex-shrink: 0;
    text-align: right;
}
.playlist-item-title { flex: 1; line-height: 1.3; }
.playlist-item-dur { font-family: var(--font-code); font-size: 0.68rem; color: var(--text-muted); flex-shrink: 0; }
.playlist-item-check { color: var(--success); font-size: 0.75rem; flex-shrink: 0; }
.playlist-item.completed { opacity: 0.75; }
.playlist-item.completed .playlist-item-title { color: var(--text-muted); }
.playlist-item.completed .playlist-item-num { color: var(--success); }
.playlist-item.active.completed { background: rgba(0, 255, 136, 0.06); border-left: 2px solid var(--success); opacity: 1; }
.btn-success-ghost {
    background: transparent;
    border: 1px solid var(--success);
    color: var(--success);
}
.btn-success-ghost:hover { background: rgba(0,255,136,0.12); }

/* Admin Panel */
#adminPanelOverlay {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    background: #090d16;
}
.admin-panel-shell {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    background: #090d16;
    overflow: hidden;
}
.admin-app-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.admin-topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
    flex-shrink: 0;
}
.admin-layout-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.admin-side-nav {
    width: 220px;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    padding: 0.8rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: rgba(0,0,0,0.15);
    transition: width 0.25s ease, padding 0.25s ease;
}
.admin-side-btn {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}
.admin-side-btn:hover { background: var(--bg-glass); color: var(--text-primary); }
.admin-side-btn.active { background: rgba(0,255,136,0.1); color: var(--primary); border: 1px solid rgba(0,255,136,0.15); }
.admin-side-btn i { width: 16px; text-align: center; font-size: 0.9rem; flex-shrink: 0; }
.admin-side-badge { margin-left: auto; font-size: 0.6rem; font-weight: 800; padding: 2px 6px; border-radius: var(--radius-full); }
.admin-sidebar-toggle {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}
.admin-sidebar-toggle:hover { background: rgba(0,255,136,0.1); color: var(--primary); border-color: rgba(0,255,136,0.2); }
.admin-nav-group-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 0.6rem 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: opacity 0.2s ease, width 0.25s ease;
    overflow: hidden;
    white-space: nowrap;
}
.admin-nav-group-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* --- Collapsed sidebar --- */
.admin-panel-shell.sidebar-collapsed .admin-side-nav { width: 56px; padding: 0.6rem 0.4rem; }
.admin-panel-shell.sidebar-collapsed .admin-side-btn { justify-content: center; padding: 0.65rem; gap: 0; font-size: 0; }
.admin-panel-shell.sidebar-collapsed .admin-side-btn i { width: auto; font-size: 1rem; }
.admin-panel-shell.sidebar-collapsed .admin-nav-group-label { opacity: 0; width: 0; padding: 0; pointer-events: none; }
.admin-panel-shell.sidebar-collapsed .admin-side-badge { display: none; }
.admin-panel-shell.sidebar-collapsed .admin-side-btn::after {
    content: attr(data-tip);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.admin-panel-shell.sidebar-collapsed .admin-side-btn:hover::after { opacity: 1; font-size: 0.75rem; }
.admin-main-content { flex: 1; overflow-y: auto; padding: 1.5rem; }
.admin-tab-section { display: none; }
.admin-tab-section.active { display: block; }
.admin-page-title { margin-bottom: 1.2rem; }
.admin-page-title h2 { font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.admin-page-title p { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Admin Sub Navigation (Settings sub-tabs) */
.admin-subnav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.8rem;
}
.admin-subnav-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
}
.admin-subnav-btn:hover { background: var(--bg-glass); color: var(--text-primary); }
.admin-subnav-btn.active { background: rgba(0,255,136,0.1); color: var(--primary); border-color: rgba(0,255,136,0.3); }

.admin-sub-panel { display: none; }
.admin-sub-panel.active { display: block; }


/* Admin Tables */
.admin-table-wrap { border-radius: var(--radius-md); border: 1px solid var(--border); overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.admin-table th {
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.3);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
}
.admin-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--text-secondary);
    vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--bg-glass); }
.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

/* Admin card */
.admin-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
}
.admin-info-card h4 {
    font-size: 0.88rem; font-weight: 700;
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
}

/* Add course form */
.add-course-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 700px) { .add-course-form { grid-template-columns: 1fr; } }
.add-course-col { display: flex; flex-direction: column; gap: 1rem; }
.acf-group { display: flex; flex-direction: column; gap: 0.4rem; }
.acf-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.acf-label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 0.4rem; }
.acf-label .req { color: var(--danger); }
.acf-input {
    padding: 0.65rem 0.9rem;
    background: rgba(10,15,26,0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: var(--font-ui);
    width: 100%;
    outline: none;
    transition: var(--transition);
}
.acf-input:focus { border-color: var(--border-active); box-shadow: 0 0 0 3px rgba(0,255,136,0.1); }

/* Live video-URL validation states (admin course builder) */
.module-url-input.url-ok { border-color: rgba(0,255,136,0.6); }
.module-url-input.url-ok:focus { box-shadow: 0 0 0 3px rgba(0,255,136,0.12); }
.module-url-input.url-warn { border-color: rgba(255,193,7,0.65); }
.module-url-input.url-warn:focus { box-shadow: 0 0 0 3px rgba(255,193,7,0.12); }
.module-url-input.url-bad { border-color: rgba(255,71,87,0.75); box-shadow: 0 0 0 3px rgba(255,71,87,0.12); }
@keyframes moduleUrlShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.module-url-input.url-bad { animation: moduleUrlShake 0.25s ease; }
.acf-hint { font-size: 0.72rem; color: var(--text-muted); }
.toggle-pay-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-primary); cursor: pointer; user-select: none; }
.toggle-pay-label input { width: 1rem; height: 1rem; accent-color: var(--danger, #ef4444); cursor: pointer; }

/* Course rating & review */
.course-review-stars { display: flex; align-items: center; gap: 0.3rem; }
.course-review-stars .star-input { font-size: 1.4rem; color: var(--border-active); cursor: pointer; transition: transform 0.15s ease, color 0.15s ease; }
.course-review-stars .star-input:hover, .course-review-stars .star-input.active { color: #fbbf24; transform: scale(1.15); }
.course-review-input { width: 100%; padding: 0.6rem 0.8rem; background: rgba(10,15,26,0.6); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-primary); font-size: 0.85rem; font-family: var(--font-ui); margin-top: 0.5rem; outline: none; resize: vertical; }
.course-review-input:focus { border-color: var(--border-active); box-shadow: 0 0 0 3px rgba(0,255,136,0.1); }
.review-sm-note { font-size: 0.8rem; }
.crz-item { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.6rem 0.75rem; }
.crz-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: 0 0 30px; }
.crz-avatar-ph { display: flex; align-items: center; justify-content: center; background: var(--grad-purple); color: #000; font-size: 0.75rem; font-weight: 800; }
.crz-item-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-bottom: 0.3rem; }
.crz-item-stars { color: #fbbf24; font-size: 0.75rem; letter-spacing: 1px; }
.crz-item-own { font-size: 0.62rem; color: var(--primary); border: 1px solid rgba(0,255,136,0.3); border-radius: 20px; padding: 0.1rem 0.4rem; }
.crz-item-name { font-size: 0.78rem; font-weight: 700; color: var(--text-primary); }
.crz-item-coursename { font-size: 0.68rem; color: var(--text-muted); }
.crz-item-text { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.45; }
.crz-item-meta { font-size: 0.65rem; color: var(--text-muted); margin-top: 0.25rem; }
/* Course detail review summary + form */
.crz-form { background: rgba(0,255,136,0.04); border: 1px solid rgba(0,255,136,0.2); border-radius: var(--radius-md); padding: 0.7rem 0.8rem; margin-bottom: 0.7rem; }
.crz-form-title { font-size: 0.82rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.3rem; }
.crz-summary { display: flex; gap: 1.2rem; align-items: center; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.7rem 0.9rem; margin-bottom: 0.7rem; }
.crz-summary-score { text-align: center; flex: 0 0 auto; }
.crz-avg { font-size: 1.9rem; font-weight: 900; line-height: 1; color: var(--text-primary); }
.crz-avg-stars { color: #fbbf24; font-size: 0.8rem; letter-spacing: 1px; margin: 0.15rem 0; }
.crz-avg-count { font-size: 0.68rem; color: var(--text-muted); }
.crz-dist { flex: 1; display: flex; flex-direction: column; gap: 0.22rem; }
.crz-dist-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; color: var(--text-secondary); }
.crz-dist-label { flex: 0 0 2.2rem; text-align: right; }
.crz-dist-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 20px; overflow: hidden; }
.crz-dist-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #fbbf24); border-radius: 20px; }
.crz-dist-count { flex: 0 0 1.2rem; color: var(--text-muted); font-size: 0.66rem; }
@media (max-width: 560px) { .crz-summary { flex-direction: column; gap: 0.6rem; align-items: stretch; } .crz-dist-label { flex-basis: 1.8rem; } }
.acf-submit-bar { display: flex; justify-content: flex-end; gap: 0.8rem; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }

/* Admin activity feed */
.act-feed { display: flex; flex-direction: column; gap: 0.7rem; }
.act-item { display: flex; align-items: center; gap: 0.7rem; font-size: 0.82rem; color: var(--text-secondary); }
.act-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.act-dot.green { background: var(--success); box-shadow: 0 0 8px var(--success); }
.act-dot.blue { background: var(--info); box-shadow: 0 0 8px var(--info); }
.act-dot.yellow { background: var(--warning); box-shadow: 0 0 8px var(--warning); }
.act-dot.red { background: var(--danger); box-shadow: 0 0 8px var(--danger); }

/* Bar chart */
.admin-bar-chart {
    display: flex; align-items: flex-end;
    height: 140px; gap: 0.5rem;
    padding-top: 0.8rem;
}
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 0.3rem; }
.bar-fill { width: 100%; max-width: 24px; background: rgba(0,255,136,0.15); border-radius: 4px 4px 0 0; border: 1px solid rgba(0,255,136,0.25); transition: height 0.4s ease; }
.bar-fill.active { background: linear-gradient(180deg, var(--primary), rgba(0,255,136,0.4)); box-shadow: 0 0 12px rgba(0,255,136,0.3); }
.bar-col span { font-size: 0.68rem; color: var(--text-muted); }

/* KPI mini grid */
.admin-kpi-row, .admin-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.8rem; margin-bottom: 1.2rem; }

/* Admin notification dropdown (bell in the admin topbar) */
.admin-notif-dropdown {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 300;
    width: 300px; max-height: 380px; overflow-y: auto;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: 0 18px 50px rgba(0,0,0,0.55);
    padding: 0.6rem;
}
.admin-notif-item {
    display: flex; align-items: flex-start; gap: 0.6rem;
    padding: 0.55rem 0.6rem; border-radius: var(--radius-md);
    font-size: 0.78rem; color: var(--text-secondary); cursor: pointer;
    transition: var(--transition);
}
.admin-notif-item:hover { background: var(--bg-glass); color: var(--text-primary); }
.admin-notif-item .notif-ic { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; }
.admin-notif-item .notif-t { font-weight: 700; color: var(--text-primary); font-size: 0.8rem; }
.admin-notif-item .notif-s { font-size: 0.68rem; color: var(--text-muted); }
.admin-notif-head {
    font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted); padding: 0.3rem 0.6rem;
}

/* Audit log badges */
.audit-badge {
    display: inline-block; font-size: 0.62rem; font-weight: 800;
    padding: 2px 8px; border-radius: var(--radius-full); letter-spacing: 0.03em;
}
.audit-badge.course   { background: rgba(0,255,136,0.15); color: var(--primary); }
.audit-badge.payout   { background: rgba(245,158,11,0.18); color: var(--warning); }
.audit-badge.cadet    { background: rgba(16,185,129,0.18); color: var(--success); }
.audit-badge.security { background: rgba(239,68,68,0.18); color: var(--danger); }
.audit-badge.settings { background: rgba(124,58,237,0.2); color: var(--purple-light); }
.audit-badge.cert     { background: rgba(0,255,136,0.16); color: var(--success); }
.audit-badge.backup   { background: rgba(0,255,136,0.12); color: var(--primary); }
.audit-badge.login    { background: rgba(255,255,255,0.08); color: var(--text-secondary); }
.audit-badge.other    { background: rgba(255,255,255,0.08); color: var(--text-secondary); }

/* Payment modal */
.pay-methods-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-height: 210px;
    overflow-y: auto;
    padding-right: 4px;
}
.pay-methods-row::-webkit-scrollbar { width: 4px; }
.pay-methods-row::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
.pay-method-card {
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer; transition: var(--transition); font-size: 0.72rem; color: var(--text-muted);
    font-weight: 600; text-align: center;
}
.pay-method-card:hover { border-color: var(--border-active); color: var(--text-primary); }
.pay-method-card.active { border-color: var(--primary); background: rgba(0,255,136,0.08); color: var(--primary); }
.pay-method-card img { width: 40px; height: 28px; object-fit: contain; }
.pay-method-card i { font-size: 1.3rem; }
.pay-method-card .pay-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 28px;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--primary);
    background: rgba(0,255,136,0.12);
    border: 1px solid rgba(0,255,136,0.25);
}

.pay-info-box {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.pay-info-box ol { margin-top: 0.6rem; margin-left: 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; }

/* "What you're getting" summary */
.pay-summary-box {
    background: linear-gradient(135deg, rgba(0,242,254,0.08), rgba(0,255,136,0.05));
    border: 1px solid rgba(0,242,254,0.18);
    border-radius: var(--radius-md);
    padding: 0.8rem 0.9rem;
    margin-bottom: 1rem;
}
.pay-summary-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.pay-summary-feats {
    margin: 0.55rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    font-size: 0.74rem;
    color: var(--text-muted);
}
.pay-summary-feats li { display: flex; align-items: flex-start; gap: 0.4rem; }
.pay-summary-feats li i { color: var(--accent); margin-top: 0.1rem; }
.pay-bdt-hint {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.12rem 0.4rem;
    vertical-align: middle;
    white-space: nowrap;
}

/* How-it-works steps strip */
.pay-steps {
    display: flex;
    align-items: stretch;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}
.pay-step {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.55rem 0.6rem;
}
.pay-step-num {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #000;
    font-size: 0.68rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.05rem;
}
.pay-step-txt { display: flex; flex-direction: column; gap: 0.1rem; }
.pay-step-txt b { font-size: 0.74rem; color: var(--text-primary); }
.pay-step-txt span { font-size: 0.62rem; color: var(--text-muted); line-height: 1.3; }
.pay-step-arrow {
    flex: none;
    display: flex;
    align-items: center;
    color: var(--border-active);
    font-size: 0.8rem;
}

/* Success state */
.pay-ref-box {
    min-width: 130px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.9rem;
    text-align: center;
}
.pay-ref-lbl { font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.pay-ref-val { font-size: 0.95rem; font-weight: 800; color: var(--primary); margin-top: 0.15rem; word-break: break-all; }

/* Referral Program */
.referral-link-box {
    background: linear-gradient(135deg, rgba(0,242,254,0.06), rgba(0,255,136,0.06));
    border: 1px solid rgba(0,242,254,0.25);
    border-radius: var(--radius-lg);
    padding: 0.8rem 0.9rem;
}
.referral-link-box input:focus { outline: 2px solid rgba(0,242,254,0.4); }

/* My VIP Orders */
.vip-order-card .confirming {
    background: rgba(239,68,68,0.25) !important;
    border-color: var(--danger) !important;
    color: #fff !important;
    animation: czp-pulse 1s ease-in-out infinite;
}
@keyframes czp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.vip-order-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.85rem;
    transition: var(--transition);
}
.vip-order-card:hover { border-color: var(--border-active); }
.vip-order-card code { color: var(--primary); font-size: 0.68rem; word-break: break-all; }

@media (max-width: 480px) {
    .pay-steps { flex-direction: column; }
    .pay-step-arrow { transform: rotate(90deg); justify-content: center; padding: 0.1rem 0; }
}

/* Deposit modal */
.deposit-balance-display {
    text-align: center;
    background: rgba(0,255,136,0.06);
    border: 1px solid rgba(0,255,136,0.15);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1.2rem;
}
.deposit-balance-label { font-size: 0.75rem; color: var(--text-muted); }
.deposit-balance-val { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1.1; }

/* Wallet deposit method selector */
.deposit-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 4px;
}
.deposit-method-grid::-webkit-scrollbar { width: 4px; }
.deposit-method-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
.deposit-method-card {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer; transition: var(--transition);
    font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
}
.deposit-method-card:hover { border-color: var(--border-active); color: var(--text-primary); }
.deposit-method-card.active { border-color: var(--accent); background: rgba(0,255,136,0.06); color: var(--accent); }
.deposit-method-card i { font-size: 1.1rem; }

/* User panel modal */
.user-panel-layout {
    display: flex; flex-direction: column;
    height: 85vh;
}
.user-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
    flex-shrink: 0;
}
.user-panel-tabs {
    display: flex; gap: 0.2rem;
    padding: 0.6rem 1.5rem;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    flex-shrink: 0;
    scrollbar-width: none;
}
.user-panel-tabs::-webkit-scrollbar { display: none; }
.user-panel-tab-btn {
    padding: 0.5rem 1rem; background: none; border: none;
    border-radius: var(--radius-md); color: var(--text-muted);
    font-size: 0.82rem; font-weight: 600; cursor: pointer;
    transition: var(--transition); white-space: nowrap;
}
.user-panel-tab-btn.active { background: rgba(0,255,136,0.1); color: var(--primary); }
.user-panel-tab-btn:hover { color: var(--text-primary); }
.user-panel-content { flex: 1; overflow-y: auto; padding: 1.5rem; }
.user-tab-section { display: none; }
.user-tab-section.active { display: block; }

/* ============================================================
   20. TOAST NOTIFICATIONS
   ============================================================ */
#toastContainer {
    position: fixed;
    top: calc(var(--topbar-height) + 12px);
    right: 16px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 340px;
}
.toast {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn 0.3s ease;
    font-size: 0.84rem;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.warning .toast-icon { color: var(--warning); }
.toast-info { color: var(--primary); }
.toast-text { color: var(--text-secondary); line-height: 1.4; }
.toast-text strong { color: var(--text-primary); display: block; margin-bottom: 0.15rem; font-size: 0.88rem; }
@keyframes toastSlideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   21. AI CHATBOT WIDGET
   ============================================================ */
#aiChatbotWidget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
    /* BUGFIX: don't let the (invisible) chat panel container block clicks
       on underlying UI (Enroll buttons, filters, etc.). Only the FAB button
       and the opened panel should capture pointer events. */
    pointer-events: none;
}

.ai-fab-btn {
    pointer-events: auto;
}

.ai-fab-btn {
    width: 52px; height: 52px;
    background: var(--grad-primary);
    border-radius: 50%;
    border: none;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,255,136,0.4);
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.ai-fab-btn:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(0,255,136,0.5); }
.ai-fab-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(0,255,136,0.3);
    animation: fab-pulse 2s ease-in-out infinite;
}
@keyframes fab-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.3; }
}

.ai-chat-panel {
    width: 320px;
    height: 420px;
    background: var(--bg-surface);
    border: 1px solid var(--border-active);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.85) translateY(20px);
    transform-origin: bottom right;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
}
.ai-chat-panel.show {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}
.ai-chat-header {
    padding: 0.8rem 1rem;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 0.6rem;
}
.ai-avatar-icon {
    width: 34px; height: 34px;
    background: var(--grad-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #000; font-size: 0.9rem;
}
.ai-online-dot { color: var(--success); font-size: 0.7rem; }
.ai-chat-close { margin-left: auto; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; transition: var(--transition); }
.ai-chat-close:hover { color: var(--text-primary); }
.ai-messages { flex: 1; padding: 0.8rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.6rem; }
.ai-messages::-webkit-scrollbar { width: 3px; }
.ai-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.ai-msg { max-width: 88%; font-size: 0.82rem; line-height: 1.45; }
.ai-msg.bot { align-self: flex-start; background: var(--bg-glass-strong); border: 1px solid var(--border); padding: 0.55rem 0.8rem; border-radius: 12px 12px 12px 4px; }
.ai-msg.user { align-self: flex-end; background: rgba(0,255,136,0.1); border: 1px solid rgba(0,255,136,0.2); padding: 0.55rem 0.8rem; border-radius: 12px 12px 4px 12px; }
.ai-suggestions { padding: 0.4rem 0.8rem; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ai-typing { display: inline-flex; gap: 4px; align-items: center; }
.ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--primary, #00f2fe); animation: aiTyping 1s infinite ease-in-out; }
.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiTyping { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.ai-sug-chip {
    font-size: 0.7rem; padding: 0.3rem 0.6rem;
    background: var(--bg-glass); border: 1px solid var(--border);
    border-radius: var(--radius-full); color: var(--text-secondary);
    cursor: pointer; transition: var(--transition);
}
.ai-sug-chip:hover { border-color: var(--border-active); color: var(--primary); }
.ai-input-row {
    display: flex; gap: 0.4rem; padding: 0.7rem;
    border-top: 1px solid var(--border); background: rgba(0,0,0,0.2);
}
.ai-input {
    flex: 1; background: var(--bg-glass); border: 1px solid var(--border);
    border-radius: var(--radius-full); padding: 0.5rem 0.9rem;
    color: var(--text-primary); font-size: 0.82rem; outline: none; transition: var(--transition);
}
.ai-input:focus { border-color: var(--border-active); }
.ai-send-btn {
    width: 32px; height: 32px; background: var(--grad-primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #000; font-size: 0.8rem; flex-shrink: 0; transition: var(--transition);
}
.ai-send-btn:hover { transform: scale(1.08); }

/* ============================================================
   22. VERIFY SECTION (inside home view)
   ============================================================ */
.verify-card {
    background: linear-gradient(135deg, rgba(0,255,136,0.05), rgba(0,255,136,0.03));
    border: 1px solid rgba(0,255,136,0.15);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.verify-icon-wrap {
    width: 64px; height: 64px;
    background: var(--grad-primary);
    border-radius: var(--radius-xl);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #000;
    flex-shrink: 0;
}
.verify-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.verify-content p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.verify-input-row { display: flex; gap: 0.5rem; }
.verify-input-row input {
    flex: 1; min-width: 0;
    padding: 0.6rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary); font-size: 0.85rem; outline: none;
    transition: var(--transition);
}
.verify-input-row input:focus { border-color: var(--border-active); }
.cert-verify-result { margin-top: 0.8rem; font-size: 0.82rem; }

/* ============================================================
   23. NEWS CARDS
   ============================================================ */
.news-grid-list { display: flex; flex-direction: column; gap: 0.8rem; }
.news-item {
    display: flex; gap: 0.9rem; align-items: flex-start;
    padding: 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer; transition: var(--transition);
}
.news-item:hover { border-color: rgba(0,255,136,0.2); transform: translateX(3px); }
.news-item-thumb {
    width: 80px; height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover; flex-shrink: 0;
}
.news-item-body { flex: 1; }
.news-item-tag { font-size: 0.65rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; }
.news-item-title { font-size: 0.85rem; font-weight: 700; line-height: 1.3; margin: 0.2rem 0; }
.news-item-meta { font-size: 0.72rem; color: var(--text-muted); }

/* ============================================================
   24. TESTIMONIAL CARDS
   ============================================================ */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    display: flex; flex-direction: column; gap: 0.8rem;
    transition: var(--transition);
}
.review-card:hover { transform: translateY(-3px); border-color: rgba(0,255,136,0.15); }
.review-stars { display: flex; gap: 0.2rem; color: var(--warning); font-size: 0.8rem; }
.review-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55; flex: 1; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--border); }
.review-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--bg-surface);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700;
}
.review-name { font-size: 0.82rem; font-weight: 700; }
.review-course { font-size: 0.7rem; color: var(--text-muted); }
.review-earned { font-size: 0.7rem; color: var(--success); font-weight: 600; }

/* ============================================================
   25. PRICING CARDS
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; max-width: 800px; }
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.8rem;
    display: flex; flex-direction: column; gap: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.pricing-card.popular {
    border-color: rgba(0,255,136,0.3);
    background: linear-gradient(135deg, rgba(0,255,136,0.05), rgba(0,255,136,0.03));
}
.pricing-card.popular::before {
    content: 'BEST VALUE';
    position: absolute;
    top: 14px; right: -24px;
    background: var(--grad-primary);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 4px 32px;
    transform: rotate(45deg);
}
.plan-name { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted); text-transform: uppercase; }
.plan-price { font-size: 2.2rem; font-weight: 900; line-height: 1; }
.plan-price sup { font-size: 1rem; font-weight: 600; vertical-align: top; margin-top: 0.4rem; display: inline-block; }
.plan-price .period { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.plan-bdt {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 0.2rem;
}
.plan-bdt i { font-size: 0.62rem; margin-right: 0.15rem; }
.plan-desc { font-size: 0.8rem; color: var(--text-muted); }
.plan-features { display: flex; flex-direction: column; gap: 0.5rem; }
.plan-feature-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-secondary); }
.plan-feature-item i { color: var(--success); font-size: 0.75rem; flex-shrink: 0; }
.plan-feature-item.disabled { color: var(--text-muted); }
.plan-feature-item.disabled i { color: var(--text-muted); }

/* ============================================================
   26. UTILITY CLASSES
   ============================================================ */
.text-primary  { color: var(--primary) !important; }
.text-accent   { color: var(--accent) !important; }
.text-success  { color: var(--success) !important; }
.text-warning  { color: var(--warning) !important; }
.text-danger   { color: var(--danger) !important; }
.text-muted    { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-xs       { font-size: 0.75rem; }
.text-sm       { font-size: 0.85rem; }
.text-code     { font-family: var(--font-code); }
.font-bold     { font-weight: 700; }
.font-black    { font-weight: 900; }
.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-green {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.flex-1 { flex: 1; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }

/* ============================================================
   27. ANNOUNCEMENT BANNER
   ============================================================ */
#topBanner {
    background: linear-gradient(90deg, rgba(0,255,136,0.15), rgba(0,255,136,0.1), rgba(0,255,136,0.15));
    border-bottom: 1px solid rgba(0,255,136,0.2);
    padding: 0.4rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    position: relative;
    z-index: 1001;
    grid-area: topbar;
    height: 34px;
}
#topBanner.hidden { display: none; }
#topBanner.hidden ~ * { /* adjust layout when banner is hidden */ }

/* The announcement text is long ("ZERO-DAY SPECIAL..."). On phones the fixed
   34px bar can't fit it, so we scroll it as a marquee: the full message always
   passes in view and users can actually read it instead of seeing it clipped. */
#bannerText {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    text-overflow: ellipsis;
}
@media (max-width: 768px) {
    #bannerText {
        display: flex;
        align-items: center;
        overflow: hidden;
    }
    /* Seamless marquee: the inner content is duplicated, so translating
       -50% loops without a visible jump — the full announcement is always
       readable as it passes across the screen (no clipped left edge). */
    #bannerText .banner-scroll {
        display: inline-block;
        white-space: nowrap;
        min-width: 100%;
        animation: bannerScroll 22s linear infinite;
        will-change: transform;
    }
    /* Each half ends with the same ✦ separator, so translateX(-50%) lands on
       an identical boundary — the loop is perfectly seamless (no jump). */
    #bannerText .banner-scroll-inner {
        display: inline-block;
        white-space: nowrap;
    }
    @keyframes bannerScroll {
        0%   { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }
    @media (prefers-reduced-motion: reduce) {
        #bannerText .banner-scroll { animation: none; }
    }
}
.banner-close-btn {
    background: none; border: none; color: var(--primary);
    cursor: pointer; font-size: 0.85rem; padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm); transition: var(--transition);
}
.banner-close-btn:hover { background: rgba(0,255,136,0.1); }

/* App shell with banner */
#appShell.with-banner {
    grid-template-rows: 34px var(--topbar-height) 1fr;
    grid-template-areas:
        "banner banner"
        "topbar topbar"
        "sidebar content";
}

/* ============================================================
   28. RESPONSIVE — MOBILE APP MODE
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }

    body { overflow: hidden; }

    #appShell {
        grid-template-areas:
            "topbar"
            "content";
        grid-template-columns: 1fr;
        grid-template-rows: var(--topbar-height) 1fr;
    }

    #appSidebar {
        position: fixed;
        top: var(--topbar-height);
        left: 0;
        bottom: var(--bottomnav-height);
        z-index: 900;
        width: 260px;
        transform: translateX(-100%);
        transition: transform var(--transition-slow);
        border-right: 1px solid var(--border);
    }
    #appSidebar.mobile-open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }

    #appContent {
        padding-bottom: var(--bottomnav-height);
    }

    #bottomTabBar {
        display: flex;
    }

    .topbar-center { display: none; }
    .brand-version { display: none; }

    .view-hero { padding: 1.5rem 1rem 1.2rem; }
    .view-section { padding: 1.2rem 1rem; }
    .hscroll-row { margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; }
    .hscroll-row .course-card { width: 200px; }

    .courses-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
    .course-card.featured { flex-direction: column; max-height: none; }
    .course-card.featured .card-thumb { width: 100%; }

    .community-layout { grid-template-columns: 1fr; }
    .community-sidebar-panel { display: none; }
    .community-chat-panel { height: calc(100vh - var(--topbar-height) - var(--bottomnav-height) - 2rem); }

    .profile-stats-row { grid-template-columns: repeat(3, 1fr); }

    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal-box {
        max-height: 92vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        border-bottom: none;
    }
    .modal-box.fullscreen { height: 95vh; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }

    .player-modal-grid {
        /* Flexbox (not grid) so the playlist row takes its real content height
           on phones — grid auto-rows were collapsing the playlist to 1px. */
        display: flex;
        flex-direction: column;
        height: auto;
        max-height: none;
        overflow: visible;
    }
    .player-video-col {
        flex: 0 0 auto;
        overflow: visible;
        height: auto;
    }
    .player-info-col {
        flex: 0 0 auto;
        overflow: visible;
    }
    /* Mobile: playlist stacks BELOW the video (not hidden) so phone users can
       see & switch lessons. Collapsible so it doesn't dominate the screen. */
    .player-sidebar-col {
        flex: 0 0 auto;
        display: block;
        border-left: none;
        border-top: 1px solid var(--border);
        max-height: 45vh;
        transition: max-height .35s ease;
    }
    .player-sidebar-col.playlist-collapsed {
        max-height: 44px; /* header only */
        overflow: hidden;
    }

    .admin-two-col { grid-template-columns: 1fr; }
    .add-course-form { grid-template-columns: 1fr; }
    .admin-kpi-row, .admin-kpi-grid { grid-template-columns: 1fr 1fr; }

    .pay-methods-row { grid-template-columns: repeat(2, 1fr); }

    #aiChatbotWidget { bottom: calc(var(--bottomnav-height) + 0.8rem); right: 0.8rem; }
    .ai-chat-panel { width: calc(100vw - 1.6rem); }

    #toastContainer { top: calc(var(--topbar-height) + 8px); right: 8px; left: 8px; max-width: none; }

    .verify-card { flex-direction: column; gap: 1rem; text-align: center; }
    .verify-icon-wrap { margin: 0 auto; }

    .kpi-row { grid-template-columns: 1fr 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .courses-grid { grid-template-columns: 1fr; }
    .hero-stats-row { gap: 1.2rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .admin-kpi-row, .admin-kpi-grid { grid-template-columns: 1fr 1fr; }
    .user-panel-tabs { gap: 0; }
    .user-panel-tab-btn { padding: 0.45rem 0.7rem; font-size: 0.75rem; }
}

/* ============================================================
   29. MOBILE SIDEBAR OVERLAY
   ============================================================ */
#sidebarOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 899;
    backdrop-filter: blur(4px);
}
#sidebarOverlay.show { display: block; }

/* ============================================================
   30. SCROLLBAR (global)
   ============================================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ============================================================
   30b. ADMIN PAGE MODE — /admin is a real standalone page (big-platform
   style): the main site is hidden entirely and the console fills the
   screen like its own page (no dark backdrop / no blur / no rounded box).
   ============================================================ */
body.admin-page-mode #appShell {
    display: none !important;
}
body.admin-page-mode #adminPanelOverlay {
    position: fixed;
    inset: 0;
    background: var(--bg-surface);
    backdrop-filter: none;
    z-index: 2500;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
}
body.admin-page-mode .admin-panel-shell {
    width: 100%;
    max-width: none;
    height: 100vh;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
body.admin-page-mode .admin-topbar-row {
    border-radius: 0;
}
/* Modals opened from inside the admin console (login details, progress,
   confirm dialogs) must float ABOVE the admin panel, not behind it. */
body.admin-page-mode .modal-overlay.active {
    z-index: 2600;
}
body.admin-page-mode .modal-overlay.active .modal-box {
    box-shadow: 0 40px 120px -30px rgba(0,0,0,0.95), 0 0 60px -20px rgba(0,255,136,0.2);
}

/* ============================================================
   31b. INSTRUCTOR DASHBOARD (full-page mode, mirrors admin console)
   ============================================================ */
body.instructor-page-mode #appShell {
    display: none !important;
}
body.instructor-page-mode #instructorPanelOverlay {
    position: fixed;
    inset: 0;
    background: var(--bg-surface);
    backdrop-filter: none;
    z-index: 2500;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
}
body.instructor-page-mode .instructor-panel-shell {
    width: 100%;
    max-width: none;
    height: 100vh;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
body.instructor-page-mode .admin-topbar-row {
    border-radius: 0;
}
body.instructor-page-mode .modal-overlay.active {
    z-index: 2600;
}
#instructorPanelOverlay .admin-kpi-value {
    color: var(--accent);
}
#instructorPanelOverlay .admin-side-btn.active {
    background: linear-gradient(90deg, rgba(0,224,160,0.25), rgba(0,180,255,0.12));
    color: var(--accent);
}
/* Instructor KPI cards — same card look as the admin console's .kpi-card */
#instructorPanelOverlay .admin-kpi-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.05rem;
    background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    min-width: 0;
}
#instructorPanelOverlay .admin-kpi-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
#instructorPanelOverlay .admin-kpi-value {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
}
#instructorPanelOverlay .admin-kpi-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#instructorPanelOverlay .admin-kpi-card > div:last-child { min-width: 0; }

/* ============================================================
   31. ADMIN PANEL MODAL (fullscreen)
   ============================================================ */
#adminPanelOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    z-index: 2500;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
#adminPanelOverlay.active, #adminPanelOverlay.show { display: flex; }
.admin-panel-shell {
    width: 100%;
    max-width: 1300px;
    height: calc(100vh - 2rem);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

/* ============================================================
   32. PROGRESS & LOADING STATES
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-glass) 25%, var(--bg-glass-strong) 50%, var(--bg-glass) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.spinner {
    width: 24px; height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.spinner.sm { width: 16px; height: 16px; }
.spinner.lg { width: 40px; height: 40px; border-width: 3px; }

/* ============================================================
   33. EMPTY STATES
   ============================================================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    gap: 0.8rem;
}
.empty-state-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    opacity: 0.5;
}
.empty-state h4 { font-size: 1rem; font-weight: 700; }
.empty-state p { font-size: 0.83rem; color: var(--text-muted); max-width: 280px; }

/* ============================================================
   34. CERTIFICATE PRINT STYLES
   ============================================================ */
@media print {
    body * { visibility: hidden; }
    #certPrintArea, #certPrintArea * { visibility: visible; }
    #certPrintArea {
        position: fixed; inset: 0;
        background: #fff; color: #000;
        display: flex; align-items: center; justify-content: center;
    }
}
\n\n/* ============================================================
   35. 2026 QUALITY UPDATE - POLISH, ACCESSIBILITY, MOBILE
   ============================================================ */
:root {
    --bg-body: #030712;
    --bg-app: #07111f;
    --bg-card: rgba(15, 27, 46, 0.88);
    --bg-card-hover: rgba(24, 39, 65, 0.95);
    --border: rgba(148, 163, 184, 0.14);
    --border-active: rgba(0, 242, 254, 0.48);
    --shadow-glow: 0 0 45px rgba(0, 242, 254, 0.22);
}

body {
    background: radial-gradient(circle at 15% 10%, rgba(0, 242, 254, 0.12), transparent 30%), radial-gradient(circle at 85% 0%, rgba(124, 58, 237, 0.16), transparent 28%), linear-gradient(180deg, #030712 0%, #07111f 50%, #030712 100%);
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

#appTopBar, #appSidebar, .course-card, .pricing-card, .review-card, .kpi-card, .admin-card, .modal-box, .community-chat-panel, .community-sidebar-panel {
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.course-card, .pricing-card, .review-card, .kpi-card, .admin-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)), var(--bg-card);
    border-color: var(--border);
}

.course-card:hover, .pricing-card:hover, .review-card:hover, .kpi-card:hover, .admin-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-active);
    box-shadow: var(--shadow-glow);
}

.view-hero {
    background: linear-gradient(135deg, rgba(0,255,136,0.12) 0%, rgba(0,255,136,0.06) 45%, rgba(0,242,254,0.08) 100%), rgba(255,255,255,0.02);
}

.hero-title { max-width: 820px; }
.hero-desc { max-width: 680px; }
.btn-primary, .btn-accent, .primary-btn, .cta-primary { box-shadow: 0 12px 35px rgba(0, 242, 254, 0.22); }
input, textarea, select { min-height: 42px; }

@media (max-width: 400px) {
    #appTopBar { padding: 0 0.6rem; gap: 0.45rem; }
    /* Narrow phones: hide the least-important icon (news) and slim the brand so
       the right-side buttons and the full brand name fit on one line. */
    .topbar-right .topbar-icon-btn:nth-child(1) { display: none; }
    .brand-version { display: none; }
}
/* ============================================================
   PREMIUM POLISH — rating stars, hero animation, card depth
   ============================================================ */
.card-rating i { color: #fbbf24; } /* real gold stars like top course sites */
.card-meta-row { font-variant-numeric: tabular-nums; }

/* Course card: premium depth + top-edge accent on hover */
.course-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0,255,136,0.45), rgba(0,242,254,0.15) 40%, transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.course-card:hover::before { opacity: 1; }
.course-card:hover { box-shadow: var(--shadow-lg), 0 0 40px rgba(0,255,136,0.1); }

/* Hero: animated aurora + floating grid + gradient title shimmer */
.view-hero::before {
    animation: heroAurora 14s ease-in-out infinite alternate;
}
.view-hero::after {
    background:
        radial-gradient(circle, rgba(0,255,136,0.07) 1px, transparent 1px);
    background-size: 26px 26px;
    width: 100%; height: 100%;
    inset: 0;
    opacity: 0.4;
    /* slow drift — cheap, subtle texture behind the hero content */
    animation: heroGrid 60s linear infinite;
}
@keyframes heroAurora {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-60px, 30px) scale(1.15); }
}
@keyframes heroGrid {
    0%   { background-position: 0 0; }
    100% { background-position: 52px 26px; }
}
/* CTA buttons: subtle pulsing glow */
.hero-cta-row .btn-primary {
    animation: ctaPulse 3.2s ease-in-out infinite;
}
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 12px 35px rgba(0, 242, 254, 0.22); }
    50%      { box-shadow: 0 12px 45px rgba(0, 255, 136, 0.42); }
}
@media (prefers-reduced-motion: reduce) {
    .view-hero::before, .view-hero::after,
    .hero-cta-row .btn-primary { animation: none; }
}

@media (max-width: 340px) {
    /* Ultra-narrow: hide the theme toggle (notifications stay — more valuable)
       so even the smallest phones show the full brand with zero overflow. */
    .topbar-right .topbar-icon-btn:nth-child(3) { display: none; }
}

@media (max-width: 768px) {
    #appShell { height: 100dvh; }
    /* Topbar must never overflow the phone screen — allow the grid item and
       its flex children to shrink so nothing bleeds off the right edge. */
    #appTopBar { padding: 0 0.75rem; gap: 0.55rem; min-width: 0; }
    /* The brand text is the flexible part (ellipsis when tight); the right-side
       buttons keep their natural size so nothing spills off the screen. */
    .topbar-left { flex: 0 1 auto; min-width: 0; }
    .topbar-right { flex: 0 0 auto; gap: 0.35rem; }
    .topbar-icon-btn { width: 34px; height: 34px; flex-shrink: 0; }
    .app-brand { min-width: 0; }
    /* font-size handled by the end-of-file cascade block (narrowest LAST) */
    .brand-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }
    .topbar-user-btn { padding: 0.35rem; flex-shrink: 0; }
    .user-name-sm { display: none; }
    .hero-title { font-size: clamp(1.9rem, 10vw, 2.8rem); }
    .hero-desc { font-size: 0.95rem; }
    .hero-cta-row > * { flex: 1 1 100%; justify-content: center; }
    .hero-stats-row, .kpi-row, .profile-stats-row, .admin-kpi-row, .admin-kpi-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .courses-grid { grid-template-columns: 1fr; }
    .section-row { align-items: flex-start; gap: 0.75rem; flex-direction: column; }
    #bottomTabBar { padding-bottom: max(0.25rem, env(safe-area-inset-bottom)); height: calc(var(--bottomnav-height) + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}


/* ============================================================
   36. SMART ADMIN COURSE STUDIO UPDATE
   ============================================================ */
.smart-admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(0, 242, 254, 0.22);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(0,255,136,0.08), rgba(124,58,237,0.07));
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.2);
}
.smart-admin-toolbar strong {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}
.smart-admin-toolbar span {
    display: block;
    margin-top: 0.2rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
}
.smart-admin-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.lesson-builder-row,
.resource-builder-row {
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.lesson-builder-row:focus-within,
.resource-builder-row:focus-within {
    transform: translateY(-2px);
    border-color: var(--border-active) !important;
    background: rgba(0, 242, 254, 0.045) !important;
}
@media (max-width: 768px) {
    .smart-admin-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .smart-admin-actions {
        justify-content: stretch;
    }
    .smart-admin-actions .btn {
        flex: 1 1 calc(50% - 0.5rem);
    }
    .lesson-builder-row > div,
    .resource-builder-row {
        grid-template-columns: 1fr !important;
    }
}


/* ============================================================
   37. PROFESSIONAL ADMIN PANEL + ROLE MANAGER
   ============================================================ */
.admin-panel-shell {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(3, 7, 18, 0.98)),
        var(--bg-surface);
    border-color: rgba(0, 242, 254, 0.18);
}
.admin-topbar-row {
    background: linear-gradient(90deg, rgba(0,255,136,0.08), rgba(0,242,254,0.08));
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.admin-side-nav {
    background: rgba(3, 7, 18, 0.36);
    border-right: 1px solid rgba(148, 163, 184, 0.12);
}
.admin-side-btn {
    border: 1px solid transparent;
    border-radius: 12px;
    margin-bottom: 0.35rem;
}
.admin-side-btn:hover,
.admin-side-btn.active {
    background: linear-gradient(90deg, rgba(0,255,136,0.12), rgba(124,58,237,0.10));
    border-color: rgba(0,255,136,0.18);
}
.role-manager-grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 1rem;
    align-items: start;
}
.role-create-card {
    border-color: rgba(0,255,136,0.2) !important;
}
.role-create-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.9rem;
}
.compact-table {
    max-height: 460px;
    overflow: auto;
}
@media (max-width: 900px) {
    .role-manager-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   37b. ADMIN PANEL RESPONSIVE (all devices)
   ============================================================ */
@media (max-width: 900px) {
    .admin-panel-shell { max-width: 100vw; height: 100vh; border-radius: 0; }
    .admin-layout-body { flex-direction: column; overflow-y: auto; }
    /* Mobile: sidebar stays a compact vertical, grouped list (like desktop) —
       scrollable, so no tab is ever hidden off-screen. */
    .admin-side-nav {
        width: 100%;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: 42vh;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0.6rem 0.8rem;
        gap: 0.2rem;
        flex-shrink: 0;
        -webkit-overflow-scrolling: touch;
    }
    .admin-side-btn { flex-shrink: 0; white-space: nowrap; width: 100%; padding: 0.55rem 0.8rem; }
    .admin-side-badge { margin-left: 0.35rem; }
    .admin-nav-group { width: 100%; }
    /* Groups stay vertical — keep dividers and margins */
    .admin-nav-group + .admin-nav-group {
        margin-top: 0.55rem;
        padding-top: 0.55rem;
        border-top: 1px solid rgba(255,255,255,0.06);
    }
    .admin-nav-group-label {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .admin-main-content { padding: 1rem; }
    .admin-topbar-row { flex-wrap: wrap; gap: 0.5rem; padding: 0.6rem 0.9rem; }
    .admin-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .admin-topbar-row > div:first-child { flex-wrap: wrap; }
    .admin-topbar-row > div:nth-child(2) { gap: 0.6rem; font-size: 0.7rem; }
    .admin-kpi-row, .admin-kpi-grid { grid-template-columns: 1fr 1fr; }
    .admin-main-content { padding: 0.7rem; }
    /* Mobile: turn admin tables into stacked cards (big-platform style).
       Each td gets a data-label injected by JS; the row becomes a card. */
    .admin-table-wrap { overflow: visible; border: none; background: transparent; }
    .admin-table {
        min-width: 0;
        width: 100%;
        display: block;
        border: none;
        box-shadow: none;
        background: transparent;
    }
    .admin-table thead { display: none; }
    .admin-table tbody { display: block; }
    .admin-table tbody tr {
        display: block;
        background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
        border: 1px solid rgba(255,255,255,0.09);
        border-radius: 12px;
        padding: 0.7rem 0.9rem;
        margin-bottom: 0.6rem;
        box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    }
    .admin-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.8rem;
        padding: 0.35rem 0;
        border: none;
        font-size: 0.78rem;
        text-align: right;
        flex-wrap: wrap;
    }
    .admin-table tbody td::before {
        content: attr(data-label);
        font-size: 0.62rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
        flex-shrink: 0;
        text-align: left;
    }
    .admin-table tbody td .btn { margin: 0.15rem 0 0 auto; }
    .admin-table tbody td:last-child { border-top: 1px dashed rgba(255,255,255,0.08); padding-top: 0.6rem; margin-top: 0.3rem; }
}


/* ============================================================
   38. COURSE ADD STUDIO UI POLISH
   ============================================================ */
#adminTabAddcourse > .admin-page-title {
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(0,255,136,0.16);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0,255,136,0.08), rgba(0,255,136,0.04));
    margin-bottom: 1rem;
}
.course-studio-dashboard {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}
.course-studio-steps,
.course-live-preview-card {
    border: 1px solid rgba(148,163,184,0.16);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
    padding: 1rem;
}
.course-studio-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}
.studio-step {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem;
    border: 1px solid rgba(148,163,184,0.13);
    border-radius: 14px;
    color: var(--text-secondary);
    background: rgba(3,7,18,0.28);
}
.studio-step b {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,255,136,0.12);
    color: var(--primary);
}
.studio-step.active {
    color: var(--text-primary);
    border-color: rgba(0,255,136,0.35);
    box-shadow: 0 0 28px rgba(0,255,136,0.10);
}
.course-live-preview-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    align-items: stretch;
}
.preview-thumb {
    min-height: 120px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
    background: radial-gradient(circle at 30% 20%, rgba(0,255,136,0.18), rgba(15,23,42,0.8));
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(0,255,136,0.18);
}
.preview-body h3 {
    margin: 0.55rem 0 0.25rem;
    font-size: 1.15rem;
    line-height: 1.2;
}
.preview-body p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}
.preview-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.preview-checklist span {
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.045);
    color: var(--text-muted);
    font-size: 0.74rem;
}
.preview-checklist span.ok {
    background: rgba(0,255,136,0.10);
    color: var(--accent);
}
#addNewCourseForm {
    background: linear-gradient(180deg, rgba(3,7,18,0.18), rgba(3,7,18,0.04));
}
#adminTabAddcourse .acf-group {
    padding: 0.85rem;
    border: 1px solid rgba(148,163,184,0.10);
    border-radius: 14px;
    background: rgba(255,255,255,0.025);
}
#adminTabAddcourse .acf-label {
    margin-bottom: 0.45rem;
}
.acf-submit-bar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: linear-gradient(180deg, rgba(10,15,26,0.78), rgba(10,15,26,0.96));
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 1rem !important;
}
#videoRightClickShield {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 50px;
    z-index: 15;
    background: transparent;
    cursor: pointer;
    pointer-events: none; /* Never block native YouTube controls */
}
@media (max-width: 900px) {
    .course-studio-dashboard,
    .course-live-preview-card {
        grid-template-columns: 1fr;
    }
    .course-studio-steps {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 520px) {
    .course-studio-steps { grid-template-columns: 1fr; }
}

/* ============================================================
   PREMIUM V4 — WORLD-CLASS DESIGN LAYER
   Deep navy + aurora glow + glass + refined type. This layer sits
   on top of the base design system and only changes appearance
   (never behavior), so no feature is affected.
   ============================================================ */
:root {
    /* Richer, more premium palette */
    --premium-grad: linear-gradient(135deg, #00ff88 0%, #00c472 45%, #00ff88 100%);
    --premium-grad-soft: linear-gradient(135deg, rgba(0,255,136,0.16), rgba(124,58,237,0.14));
    --premium-glass: rgba(255,255,255,0.05);
    --premium-border: rgba(255,255,255,0.10);
    --premium-glow: 0 20px 60px -15px rgba(0,255,136,0.25);
    --font-display: 'Sora', 'Inter', sans-serif;
}

/* ---- Ambient aurora background (fixed, behind everything) ---- */
body {
    background:
        radial-gradient(1000px 500px at 85% -10%, rgba(124,58,237,0.16), transparent 60%),
        radial-gradient(900px 500px at -10% 20%, rgba(0,255,136,0.12), transparent 55%),
        radial-gradient(700px 600px at 50% 110%, rgba(0,255,136,0.08), transparent 60%),
        var(--bg-body) !important;
    background-attachment: fixed;
}
@media (max-width: 768px) {
    body { background-attachment: scroll; }
}

/* ---- Typography: display font for headings ---- */
h1, h2, h3, h4, .hero-title, .admin-page-title h2, .section-heading, .card-title, .brand-name {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

/* ---- Topbar: refined glass + bottom glow line ---- */
#appTopBar {
    background: rgba(8,12,22,0.82) !important;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid rgba(0,255,136,0.12);
}
#appTopBar::after {
    content: '';
    position: absolute;
    left: 10%; right: 10%; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,136,0.5), transparent);
    pointer-events: none;
}
.topbar-icon-btn {
    background: var(--premium-glass);
    border: 1px solid var(--premium-border);
    backdrop-filter: blur(8px);
    transition: all var(--transition);
}
.topbar-icon-btn:hover {
    border-color: rgba(0,255,136,0.4);
    box-shadow: 0 0 18px rgba(0,255,136,0.18);
    transform: translateY(-1px);
}
.app-search-bar {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid var(--premium-border) !important;
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}
.app-search-bar:focus-within {
    border-color: rgba(0,255,136,0.45) !important;
    box-shadow: 0 0 0 3px rgba(0,255,136,0.12), 0 0 24px rgba(0,255,136,0.12);
}

/* ---- Sidebar: premium glass + active glow ---- */
#appSidebar {
    background: rgba(10,15,26,0.72) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(255,255,255,0.06);
}
.sidebar-nav-item {
    position: relative;
    border: 1px solid transparent;
    transition: all var(--transition);
}
.sidebar-nav-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.08);
    transform: translateX(3px);
}
.sidebar-nav-item.active {
    background: linear-gradient(90deg, rgba(0,255,136,0.16), rgba(0,255,136,0.04));
    border-color: rgba(0,255,136,0.25);
    box-shadow: inset 0 0 20px rgba(0,255,136,0.06);
}
.sidebar-nav-item.active::before {
    content: '';
    position: absolute;
    left: -1px; top: 18%; bottom: 18%; width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--premium-grad);
    box-shadow: 0 0 12px rgba(0,255,136,0.7);
}

/* ---- Hero: premium headline + aurora + badge ---- */
.view-hero {
    background:
        radial-gradient(600px 300px at 80% 0%, rgba(124,58,237,0.18), transparent 60%),
        radial-gradient(500px 300px at 10% 100%, rgba(0,255,136,0.14), transparent 55%),
        linear-gradient(135deg, rgba(0,255,136,0.05), rgba(0,255,136,0.02), transparent);
    border-bottom: 1px solid rgba(0,255,136,0.10);
}
.hero-title {
    font-size: clamp(2.3rem, 4.6vw, 3.9rem);
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 0 40px rgba(0,255,136,0.18);
}
.hero-title .grad {
    background: var(--premium-grad);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: premium-shimmer 6s linear infinite;
}
@keyframes premium-shimmer {
    to { background-position: 200% center; }
}
.hero-eyebrow {
    background: rgba(0,255,136,0.10);
    border: 1px solid rgba(0,255,136,0.3);
    box-shadow: 0 0 24px rgba(0,255,136,0.12);
    backdrop-filter: blur(6px);
}
.hero-stat-val { font-family: var(--font-display); }

/* ---- Buttons: premium gradient + shine sweep ---- */
.btn { position: relative; overflow: hidden; }
.btn::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
    pointer-events: none;
}
.btn:hover::after { left: 120%; }
.btn-primary {
    background: var(--premium-grad) !important;
    background-size: 150% auto !important;
    box-shadow: 0 8px 30px -8px rgba(0,255,136,0.5) !important;
    transition: all var(--transition);
}
.btn-primary:hover {
    background-position: right center !important;
    box-shadow: 0 12px 40px -8px rgba(0,255,136,0.6) !important;
    transform: translateY(-2px);
}
.btn-ghost, .btn-outline {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.14) !important;
    backdrop-filter: blur(8px);
}

/* ---- Course cards: glass + gradient border glow on hover ---- */
.course-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 34px -18px rgba(0,0,0,0.7);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.course-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(0,255,136,0.35) !important;
    box-shadow: 0 22px 50px -18px rgba(0,255,136,0.3), var(--premium-glow);
}
.course-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(160deg, rgba(0,255,136,0.35), transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.course-card:hover::before { opacity: 1; }
.card-play-btn {
    background: var(--premium-grad) !important;
    box-shadow: 0 0 30px rgba(0,255,136,0.5);
}
.badge-free {
    background: linear-gradient(135deg, rgba(0,255,136,0.2), rgba(16,185,129,0.15));
    border: 1px solid rgba(0,255,136,0.3);
}
.badge-vip {
    background: linear-gradient(135deg, rgba(245,158,11,0.22), rgba(124,58,237,0.2));
    border: 1px solid rgba(245,158,11,0.35);
}

/* ---- Pricing cards ---- */
.pricing-card {
    background: linear-gradient(170deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    backdrop-filter: blur(12px);
    transition: all var(--transition-slow);
}
.pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,255,136,0.35) !important;
    box-shadow: var(--premium-glow);
}
.pricing-card.best {
    border-color: rgba(245,158,11,0.5) !important;
    box-shadow: 0 0 50px -12px rgba(245,158,11,0.35);
}

/* ---- KPI cards (admin dashboard) ---- */
.kpi-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}
.kpi-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0,255,136,0.3) !important;
    box-shadow: 0 14px 40px -14px rgba(0,255,136,0.25);
}
.kpi-icon-wrap {
    box-shadow: 0 6px 18px -6px rgba(0,0,0,0.6);
}

/* ---- Admin console premium ---- */
.admin-topbar-row {
    background: rgba(10,15,26,0.9) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,255,136,0.12);
}
.admin-side-btn {
    border: 1px solid transparent;
    transition: all var(--transition);
}
.admin-nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.admin-nav-group + .admin-nav-group {
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.admin-nav-group-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.15rem 0.5rem 0.3rem;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
}
.admin-nav-group-dot {
    width: 7px;
    height: 7px;
    border-radius: 99px;
    box-shadow: 0 0 8px rgba(0,255,136,0.35);
    flex-shrink: 0;
}

/* ---- Settings sub-tabs (General / Security / Backup) ---- */
.admin-subnav {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.admin-subnav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    backdrop-filter: blur(8px);
}
.admin-subnav-btn:hover {
    border-color: rgba(0,255,136,0.35);
    color: var(--text-primary);
    transform: translateY(-1px);
}
.admin-subnav-btn.active {
    background: linear-gradient(135deg, rgba(0,255,136,0.18), rgba(124,58,237,0.14));
    border-color: rgba(0,255,136,0.4);
    color: #fff;
    box-shadow: 0 0 20px rgba(0,255,136,0.15);
}
.admin-sub-panel {
    display: none;
    animation: premium-fade-in 0.25s ease;
}
.admin-sub-panel.active {
    display: block;
}
@keyframes premium-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.admin-side-btn:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.08);
    transform: translateX(3px);
}
.admin-side-btn.active {
    background: linear-gradient(90deg, rgba(0,255,136,0.16), rgba(0,255,136,0.04)) !important;
    border-color: rgba(0,255,136,0.3) !important;
    box-shadow: inset 3px 0 0 var(--primary), 0 0 20px rgba(0,255,136,0.08);
}
.admin-table {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px -20px rgba(0,0,0,0.8);
}
.admin-table thead th {
    background: linear-gradient(135deg, rgba(0,255,136,0.10), rgba(0,242,254,0.08)) !important;
    border-bottom: 1px solid rgba(0,255,136,0.2);
    letter-spacing: 0.04em;
}
.admin-table tbody tr {
    transition: background 0.2s ease;
}
.admin-table tbody tr:hover {
    background: rgba(0,255,136,0.04) !important;
}
.admin-info-card, .admin-page-title, .acf-input, .course-studio-card, .admin-table-wrap {
    transition: all var(--transition);
}
.admin-info-card {
    background: linear-gradient(165deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 40px -22px rgba(0,0,0,0.8);
}
.acf-input {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    backdrop-filter: blur(8px);
    transition: all var(--transition);
}
.acf-input:focus {
    border-color: rgba(0,255,136,0.5) !important;
    box-shadow: 0 0 0 3px rgba(0,255,136,0.12);
}
.bar-fill {
    background: linear-gradient(180deg, var(--primary), rgba(0,255,136,0.25)) !important;
    box-shadow: 0 0 14px rgba(0,255,136,0.25);
}

/* ---- Modals: premium glass ---- */
.modal-box, .admin-panel-shell {
    background: linear-gradient(175deg, rgba(19,29,46,0.98), rgba(10,15,26,0.98)) !important;
    border: 1px solid rgba(0,255,136,0.15) !important;
    box-shadow: 0 40px 120px -30px rgba(0,0,0,0.9), 0 0 60px -20px rgba(0,255,136,0.15) !important;
    backdrop-filter: blur(20px);
}
/* Light mode: modals must drop the dark premium-glass gradient (dark text
   overrides were already in place, so dark-on-dark was unreadable). */
html[data-theme="light"] .modal-box,
html[data-theme="light"] .admin-panel-shell {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: none !important;
}
/* Light mode: admin topbar + sidebar labels must drop the dark glass so the
   (already-dark) admin text overrides are readable. */
html[data-theme="light"] .admin-topbar-row {
    background: #ffffff !important;
    border-bottom: 1px solid #cbd5e1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}
html[data-theme="light"] .admin-nav-group-label {
    color: #475569 !important;
}
html[data-theme="light"] .admin-side-nav {
    background: #ffffff !important;
    border-right: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] .admin-page-title h2 {
    /* drop the dark-mode white-to-green gradient text so titles render solid */
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #0f172a !important;
    color: #0f172a !important;
}
html[data-theme="light"] .admin-page-title p {
    color: #64748b !important;
}
html[data-theme="light"] .admin-subnav-btn.active {
    background: #d1fae5 !important;
    border-color: #a7f3d0 !important;
    color: #047857 !important;
    box-shadow: none !important;
}
html[data-theme="light"] .modal-box .modal-title {
    color: #0f172a !important;
}
.modal-overlay, #adminPanelOverlay {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ---- Community + misc premium ---- */
.community-chat-panel, .community-sidebar-panel, .review-card, .news-card, .admin-table-wrap {
    background: linear-gradient(165deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    backdrop-filter: blur(10px);
}
.crz-item, .playlist-item, .quiz-option, .toggle-pay-label {
    transition: all var(--transition);
}
.crz-item:hover, .playlist-item:hover { background: rgba(255,255,255,0.04); }

/* ---- Scrollbar premium ---- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0,255,136,0.35), rgba(0,242,254,0.35));
    border-radius: 99px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(0,255,136,0.6), rgba(124,58,237,0.6)); background-clip: padding-box; }

/* ---- Splash premium ---- */
.splash-logo {
    background: var(--premium-grad);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: premium-shimmer 3s linear infinite;
}

/* ---- Responsive polish for all devices ---- */
@media (max-width: 768px) {
    .course-card:hover { transform: translateY(-4px); }
    .hero-title { font-size: clamp(1.8rem, 7vw, 2.5rem); }
    .view-section, .view-hero { padding-left: 1.2rem; padding-right: 1.2rem; }
    .sidebar-nav-item:hover { transform: none; }
    .admin-side-btn:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
/* ========== HERO BANNER IMAGE ========== */
.hero-banner-img {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,255,136,0.2);
    box-shadow: 0 0 40px rgba(0,255,136,0.08), 0 8px 32px rgba(0,0,0,0.5);
}
.hero-banner-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: brightness(1) saturate(1.05);
}
.hero-banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.45) 100%);
    mix-blend-mode: normal;
}
.hero-banner-content {
    position: absolute; inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    z-index: 2;
}
.hero-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #00ff88;
    background: rgba(0,255,136,0.12);
    border: 1px solid rgba(0,255,136,0.3);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.6rem;
    animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(0,255,136,0.2); }
    50% { box-shadow: 0 0 20px rgba(0,255,136,0.4); }
}
.hero-banner-title {
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.hero-banner-sub {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.4rem;
    letter-spacing: 0.05em;
}
.hero-banner-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
    margin-top: 0.8rem;
    max-width: 640px;
}
.banner-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #e0f2fe;
    background: rgba(0, 20, 40, 0.55);
    border: 1px solid rgba(0, 242, 254, 0.35);
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-full, 999px);
    backdrop-filter: blur(4px);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.12);
}
.banner-cat-chip i {
    color: #00f2fe;
}
@media (max-width: 600px) {
    .hero-banner-img { max-width: none; }
    .hero-banner-title { font-size: 1.2rem; }
    .hero-banner-sub { font-size: 0.7rem; }
    .banner-cat-chip { font-size: 0.6rem; padding: 0.28rem 0.55rem; }
    .hero-banner-cats { gap: 0.3rem; }
}

/* ---- Community full-page photo background: keep panels readable ---- */
.community-chat-panel, .community-sidebar-panel {
    background: rgba(6, 17, 13, 0.88) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}
.community-chat-panel .chat-panel-header {
    background: rgba(2, 9, 6, 0.6) !important;
}
.community-chat-panel .chat-input-bar {
    background: rgba(2, 9, 6, 0.55) !important;
}

/* ---- Community category channels ---- */
.chat-channel-bar {
    display: flex;
    gap: 0.45rem;
    padding: 0.6rem 0.8rem;
    overflow-x: auto;
    flex-shrink: 0;
    background: rgba(2, 10, 7, 0.5);
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
}
.chat-channel-bar::-webkit-scrollbar { display: none; }
.chat-channel-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    padding: 5px 12px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.chat-channel-chip:hover {
    background: rgba(0,255,136,0.1);
    color: var(--text-primary);
    border-color: rgba(0,255,136,0.35);
}
.chat-channel-chip.active {
    background: rgba(0,255,136,0.16);
    color: #00ff88;
    border-color: rgba(0,255,136,0.55);
    box-shadow: 0 0 14px rgba(0,255,136,0.18);
}

/* ============================================================
   BILLION-DOLLAR PREMIUM OVERHAUL v5.0
   Inspired by: Linear, Vercel, Stripe, Raycast
   ============================================================ */

/* ---- 1. AMBIENT BACKGROUND EFFECTS ---- */
body {
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(0,255,136,0.04) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 90%, rgba(0,242,254,0.03) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(124,58,237,0.02) 0%, transparent 60%),
        #02080a !important;
}
#appShell {
    position: relative;
}
#appShell::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 120% 80% at 10% 0%, rgba(0,255,136,0.05) 0%, transparent 50%),
        radial-gradient(ellipse 100% 60% at 90% 100%, rgba(0,242,254,0.035) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: ambient-drift 20s ease-in-out infinite alternate;
}
@keyframes ambient-drift {
    0% { opacity: 0.7; transform: scale(1) translateY(0); }
    100% { opacity: 1; transform: scale(1.05) translateY(-10px); }
}

/* ---- 2. TYPOGRAPHY OVERHAUL ---- */
.hero-title, .view-hero h1, .view-hero h2 {
    font-weight: 900 !important;
    letter-spacing: -0.04em !important;
    line-height: 1.1 !important;
}
.hero-title {
    font-size: clamp(2.2rem, 7vw, 3.8rem) !important;
    background: linear-gradient(135deg, #ffffff 0%, #00ff88 45%, #00f2fe 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    filter: drop-shadow(0 2px 12px rgba(0,255,136,0.15));
}
.hero-sub, .view-hero p {
    font-size: 1.05rem !important;
    color: rgba(255,255,255,0.55) !important;
    line-height: 1.6 !important;
    max-width: 560px;
}
.admin-page-title h2 {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    background: linear-gradient(135deg, #fff 30%, rgba(0,255,136,0.7) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-bottom: 0.3rem !important;
}
.admin-page-title p {
    font-size: 0.88rem !important;
    color: rgba(255,255,255,0.40) !important;
    letter-spacing: 0.01em;
}
h3, h4, h5 {
    letter-spacing: -0.02em;
}

/* ---- 3. CARD SYSTEM — DEPTH & GLASS ---- */
.course-card, .admin-info-card, .kpi-card, .pricing-card,
.review-card, .news-card, .crz-item, .activity-card {
    background: linear-gradient(168deg,
        rgba(255,255,255,0.06) 0%,
        rgba(255,255,255,0.02) 40%,
        rgba(255,255,255,0.005) 100%) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.03) inset,
        0 2px 4px rgba(0,0,0,0.2),
        0 8px 24px -8px rgba(0,0,0,0.4) !important;
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94) !important;
    position: relative;
    overflow: hidden;
}
.course-card::before, .admin-info-card::before, .kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.12) 30%,
        rgba(0,255,136,0.15) 50%,
        rgba(255,255,255,0.12) 70%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}
.course-card:hover, .admin-info-card:hover, .kpi-card:hover, .pricing-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(0,255,136,0.22) !important;
    box-shadow:
        0 0 0 1px rgba(0,255,136,0.08) inset,
        0 4px 8px rgba(0,0,0,0.3),
        0 20px 50px -12px rgba(0,0,0,0.5),
        0 0 40px -10px rgba(0,255,136,0.12) !important;
}
.course-card:hover::before, .admin-info-card:hover::before, .kpi-card:hover::before {
    opacity: 1;
}

/* ---- 4. KPI CARDS — ULTRA PREMIUM ---- */
.kpi-val {
    font-size: 2rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em !important;
    background: linear-gradient(135deg, #ffffff 0%, rgba(0,255,136,0.8) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    line-height: 1.1 !important;
}
.kpi-lbl {
    font-size: 0.75rem !important;
    color: rgba(255,255,255,0.40) !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 0.3rem;
}
.kpi-icon-wrap {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 20px -6px rgba(0,0,0,0.7) !important;
}
.kpi-card:hover .kpi-icon-wrap {
    transform: scale(1.1) rotate(-3deg);
}
.kpi-delta {
    font-size: 0.72rem !important;
    font-weight: 600;
}
.kpi-delta i { font-size: 0.65rem; }

/* ---- 5. ADMIN SIDEBAR — CINEMATIC ---- */
.admin-side-nav {
    background: linear-gradient(180deg,
        rgba(3,10,6,0.98) 0%,
        rgba(2,7,4,0.99) 50%,
        rgba(1,5,3,1) 100%) !important;
    border-right: 1px solid rgba(0,255,136,0.08) !important;
    padding: 0.5rem !important;
}
.admin-side-btn {
    border-radius: 12px !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    padding: 0.55rem 0.8rem !important;
    color: rgba(255,255,255,0.50) !important;
    transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94) !important;
    position: relative;
}
.admin-side-btn i {
    font-size: 0.85rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}
.admin-side-btn:hover {
    color: rgba(255,255,255,0.85) !important;
    background: rgba(255,255,255,0.05) !important;
    transform: none !important;
}
.admin-side-btn:hover i { opacity: 0.9; }
.admin-side-btn.active {
    color: #fff !important;
    background: linear-gradient(90deg, rgba(0,255,136,0.15), rgba(0,255,136,0.03)) !important;
    box-shadow: inset 3px 0 0 #00ff88, 0 2px 12px -4px rgba(0,255,136,0.2) !important;
    font-weight: 600 !important;
}
.admin-side-btn.active i { opacity: 1; color: #00ff88; }
.admin-nav-group-label {
    font-size: 0.58rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.2em !important;
    color: rgba(255,255,255,0.25) !important;
    padding: 0.6rem 0.6rem 0.2rem !important;
    text-transform: uppercase;
}
.admin-nav-group + .admin-nav-group {
    margin-top: 0.4rem !important;
    padding-top: 0.4rem !important;
    border-top: 1px solid rgba(255,255,255,0.04) !important;
}

/* ---- 6. ADMIN TOPBAR — FLOATING GLASS ---- */
.admin-topbar-row {
    background: linear-gradient(90deg,
        rgba(3,10,6,0.97) 0%,
        rgba(6,14,9,0.97) 100%) !important;
    backdrop-filter: blur(24px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
    border-bottom: 1px solid rgba(0,255,136,0.08) !important;
    padding: 0 1.5rem !important;
    height: 56px !important;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}
.admin-topbar-row::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0,255,136,0.15) 30%,
        rgba(0,242,254,0.1) 70%,
        transparent 100%);
}

/* ---- 7. ADMIN LAYOUT — PERFECT FLEX ---- */
body.admin-page-mode #adminPanelOverlay {
    position: fixed; inset: 0;
    background: var(--bg-body) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 2500;
    padding: 0 !important;
}
body.admin-page-mode .admin-panel-shell {
    width: 100% !important;
    max-width: none !important;
    height: 100vh !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: var(--bg-body) !important;
}
.admin-layout-body {
    display: flex !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}
.admin-main-content {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    overflow-y: auto !important;
    padding: 1.8rem 2rem !important;
    background: transparent;
}
.admin-tab-section.active {
    animation: premium-tab-reveal 0.4s cubic-bezier(0.25,0.46,0.45,0.94) !important;
}
@keyframes premium-tab-reveal {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- 8. ADMIN TABLES — DATA VIZ STYLE ---- */
.admin-table-wrap {
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    overflow: hidden;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.03) 0%,
        rgba(255,255,255,0.01) 100%) !important;
}
.admin-table {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.admin-table thead th {
    background: rgba(0,255,136,0.06) !important;
    border-bottom: 1px solid rgba(0,255,136,0.12) !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.45) !important;
    padding: 0.85rem 1rem !important;
}
.admin-table tbody td {
    padding: 0.7rem 1rem !important;
    font-size: 0.84rem !important;
    color: rgba(255,255,255,0.75) !important;
    border-bottom: 1px solid rgba(255,255,255,0.03) !important;
}
.admin-table tbody tr {
    transition: all 0.2s ease !important;
}
.admin-table tbody tr:hover {
    background: rgba(0,255,136,0.04) !important;
}
.admin-table tbody tr:last-child td {
    border-bottom: none !important;
}

/* ---- 9. BUTTONS — PRECISION ENGINEERED ---- */
.btn {
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.84rem !important;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94) !important;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.btn:active { transform: scale(0.97) !important; }
.btn-primary {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%) !important;
    color: #02080a !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 16px -4px rgba(0,255,136,0.45), 0 0 0 1px rgba(0,255,136,0.2) !important;
}
.btn-primary:hover {
    box-shadow: 0 8px 32px -4px rgba(0,255,136,0.55), 0 0 0 1px rgba(0,255,136,0.3) !important;
    transform: translateY(-1px) !important;
}
.btn-sm {
    padding: 0.4rem 0.9rem !important;
    font-size: 0.78rem !important;
    border-radius: 10px !important;
}
.btn-danger-ghost {
    border: 1px solid rgba(239,68,68,0.3) !important;
    color: #f87171 !important;
    background: rgba(239,68,68,0.06) !important;
}
.btn-danger-ghost:hover {
    background: rgba(239,68,68,0.12) !important;
    border-color: rgba(239,68,68,0.5) !important;
}
.btn-success-ghost {
    border: 1px solid rgba(0,255,136,0.3) !important;
    color: #00ff88 !important;
    background: rgba(0,255,136,0.06) !important;
}
.btn-success-ghost:hover {
    background: rgba(0,255,136,0.12) !important;
    border-color: rgba(0,255,136,0.5) !important;
}

/* ---- 10. INPUT FIELDS — GLASS FOCUS ---- */
.acf-input, .form-input,
input[type="text"], input[type="password"],
input[type="number"], input[type="email"],
textarea, select {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    padding: 0.7rem 1rem !important;
    font-size: 0.88rem !important;
    color: var(--text-primary) !important;
    transition: all 0.3s ease !important;
}
.acf-input:focus, .form-input:focus, input:focus, textarea:focus, select:focus {
    border-color: rgba(0,255,136,0.45) !important;
    box-shadow: 0 0 0 3px rgba(0,255,136,0.08), 0 4px 16px -4px rgba(0,255,136,0.12) !important;
    background: rgba(255,255,255,0.05) !important;
    outline: none !important;
}
.form-label {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    color: rgba(255,255,255,0.55) !important;
    letter-spacing: 0.03em;
    margin-bottom: 0.45rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
}
.form-label i {
    color: var(--primary) !important;
    font-size: 0.7rem !important;
}

/* ---- 11. MODALS — CINEMATIC GLASS ---- */
.modal-overlay {
    backdrop-filter: blur(8px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(8px) saturate(1.2) !important;
    background: rgba(0,0,0,0.7) !important;
}
.modal-box {
    border-radius: 24px !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    background: linear-gradient(175deg,
        rgba(14,24,18,0.99) 0%,
        rgba(8,16,10,0.99) 50%,
        rgba(4,10,6,0.99) 100%) !important;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04) inset,
        0 25px 80px -20px rgba(0,0,0,0.95),
        0 0 60px -15px rgba(0,255,136,0.08) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
}
.modal-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent, rgba(255,255,255,0.1), rgba(0,255,136,0.1), rgba(255,255,255,0.1), transparent);
}

/* ---- 12. PRICING CARDS ---- */
.pricing-card {
    border-radius: 24px !important;
    position: relative;
    overflow: visible;
}
.pricing-card.best {
    border-color: rgba(245,158,11,0.4) !important;
    box-shadow: 0 0 80px -20px rgba(245,158,11,0.25) !important;
}
.pricing-card.best::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -1px; right: 24px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    padding: 6px 14px 8px;
    border-radius: 0 0 10px 10px;
    z-index: 2;
}
.pricing-card:hover {
    transform: translateY(-8px) !important;
}

/* ---- 13. BADGES & PILLS ---- */
.badge {
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.04em;
    padding: 3px 10px !important;
}
.badge-hot {
    background: linear-gradient(135deg, rgba(239,68,68,0.18), rgba(249,115,22,0.12)) !important;
    border: 1px solid rgba(239,68,68,0.3) !important;
    color: #f87171 !important;
}
.badge-free {
    background: linear-gradient(135deg, rgba(0,255,136,0.15), rgba(16,185,129,0.1)) !important;
    border: 1px solid rgba(0,255,136,0.3) !important;
    color: #00ff88 !important;
}
.badge-vip {
    background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(249,115,22,0.12)) !important;
    border: 1px solid rgba(245,158,11,0.35) !important;
    color: #fbbf24 !important;
}
.badge-approved {
    background: linear-gradient(135deg, rgba(0,255,136,0.18), rgba(16,185,129,0.12)) !important;
    border: 1px solid rgba(0,255,136,0.3) !important;
    color: #00ff88 !important;
}

/* ---- 14. SCROLLBAR — MINIMAL ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent !important; }
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12) !important;
    border-radius: 99px !important;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0,255,136,0.35) !important;
}

/* ---- 15. TOAST NOTIFICATIONS ---- */
.toast {
    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    background: linear-gradient(165deg, rgba(14,24,18,0.98), rgba(6,14,8,0.98)) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 16px 48px -12px rgba(0,0,0,0.8) !important;
    animation: toast-slide-in 0.4s cubic-bezier(0.25,0.46,0.45,0.94) !important;
}
@keyframes toast-slide-in {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ---- 16. TOPBAR (MAIN APP) ---- */
#appTopBar {
    background: linear-gradient(90deg,
        rgba(3,10,6,0.96),
        rgba(6,14,9,0.96)) !important;
    backdrop-filter: blur(24px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
    border-bottom: 1px solid rgba(0,255,136,0.08) !important;
    box-shadow: 0 1px 0 rgba(0,0,0,0.3) !important;
}

/* ---- 17. SIDEBAR (MAIN APP) ---- */
#appSidebar {
    background: linear-gradient(180deg,
        rgba(3,10,6,0.98) 0%,
        rgba(1,5,3,1) 100%) !important;
    border-right: 1px solid rgba(0,255,136,0.06) !important;
}

/* ---- 18. COURSE PLAYER MODAL ---- */
#coursePlayerModal .modal-box {
    border-radius: 20px !important;
}

/* ---- 19. ADMIN INFO CARDS ---- */
.admin-info-card {
    background: linear-gradient(168deg,
        rgba(255,255,255,0.05) 0%,
        rgba(255,255,255,0.015) 100%) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px -8px rgba(0,0,0,0.5) !important;
}
.admin-info-card h4 {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: rgba(255,255,255,0.8) !important;
    margin-bottom: 0.8rem !important;
}

/* ---- 20. ADMIN SUBNAV ---- */
.admin-subnav-btn {
    border-radius: 10px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 0.55rem 1.2rem !important;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    color: rgba(255,255,255,0.5) !important;
    transition: all 0.3s ease !important;
}
.admin-subnav-btn:hover {
    background: rgba(0,255,136,0.06) !important;
    border-color: rgba(0,255,136,0.2) !important;
    color: rgba(255,255,255,0.8) !important;
}
.admin-subnav-btn.active {
    background: linear-gradient(135deg, rgba(0,255,136,0.15), rgba(0,242,254,0.08)) !important;
    border-color: rgba(0,255,136,0.35) !important;
    color: #fff !important;
    box-shadow: 0 2px 12px -4px rgba(0,255,136,0.2) !important;
}

/* ---- 21. COMMUNITY CHAT ---- */
.community-chat-panel, .community-sidebar-panel {
    background: rgba(4,12,8,0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0,255,136,0.06) !important;
}
.chat-msg-own {
    background: linear-gradient(135deg, rgba(0,255,136,0.15), rgba(0,200,100,0.1)) !important;
    border: 1px solid rgba(0,255,136,0.2) !important;
}

/* ---- 22. BAR CHART ---- */
.bar-fill {
    border-radius: 6px 6px 0 0 !important;
    transition: height 0.8s cubic-bezier(0.25,0.46,0.45,0.94) !important;
}
.bar-col {
    border-radius: 8px 8px 0 0 !important;
    background: rgba(255,255,255,0.03) !important;
}

/* ---- 23. ADMIN TWO-COL ---- */
.admin-two-col {
    gap: 1.2rem !important;
}

/* ---- 24. PREMIUM KEYFRAMES ---- */
@keyframes premium-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes premium-scale-in {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes premium-shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* ---- 25. ADMIN SIDEBAR COLLAPSE ---- */
.admin-panel-shell.sidebar-collapsed .admin-side-nav {
    width: 56px !important;
    padding: 0.5rem 0.3rem !important;
}
.admin-panel-shell.sidebar-collapsed .admin-side-btn {
    justify-content: center;
    padding: 0.6rem !important;
    font-size: 0;
    gap: 0;
}
.admin-panel-shell.sidebar-collapsed .admin-side-btn i {
    font-size: 1rem;
    width: auto;
}

/* ---- 26. RESPONSIVE — MOBILE PERFECT ---- */
@media (max-width: 900px) {
    .admin-layout-body {
        flex-direction: column !important;
        overflow-y: auto !important;
    }
    .admin-side-nav {
        width: 100% !important;
        min-width: 100% !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        max-height: 44px !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(0,255,136,0.08) !important;
        padding: 0.35rem 0.5rem !important;
        gap: 0.2rem !important;
        -webkit-overflow-scrolling: touch;
    }
    .admin-side-btn {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        font-size: 0.75rem !important;
        padding: 0.45rem 0.7rem !important;
    }
    .admin-nav-group-label { display: none !important; }
    .admin-nav-group + .admin-nav-group {
        border-top: none !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .admin-main-content { padding: 1rem !important; }
    .admin-two-col { grid-template-columns: 1fr !important; }
    .admin-kpi-row, .admin-kpi-grid { grid-template-columns: 1fr 1fr !important; }
    .admin-topbar-row { padding: 0 0.8rem !important; }
    .admin-topbar-row > div:first-child > div:last-child { display: none !important; }
}
@media (max-width: 480px) {
    .admin-kpi-row, .admin-kpi-grid { grid-template-columns: 1fr !important; }
    .admin-main-content { padding: 0.8rem !important; }
    .kpi-val { font-size: 1.5rem !important; }
    .admin-page-title h2 { font-size: 1.2rem !important; }
}

/* ---- 27. ACCESSIBILITY ---- */
*:focus-visible {
    outline: 2px solid rgba(0,255,136,0.5) !important;
    outline-offset: 2px !important;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   28. BILLION-DOLLAR PREMIUM DESIGN OVERHAUL v6.0
   Cinematic • Glass • Ambient • Luxury
   ============================================================ */

/* ---- 28.1 AMBIENT BACKGROUND ---- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 15% 20%, rgba(0,255,136,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 500px 350px at 85% 80%, rgba(0,242,254,0.04) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 50% 50%, rgba(16,185,129,0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: ambientShift 20s ease-in-out infinite alternate;
}
@keyframes ambientShift {
    0%   { opacity: 0.8; transform: scale(1); }
    50%  { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.8; transform: scale(1); }
}

/* ---- 28.2 SPLASH SCREEN — CINEMATIC ---- */
#appSplash {
    background: radial-gradient(ellipse at center, #0a1a12 0%, #02080a 100%) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
/* Shield emblem with dual orbital rings */
.splash-shield {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
    animation: logoReveal 1s cubic-bezier(0.16,1,0.3,1) both;
}
.splash-shield i {
    font-size: 2.6rem;
    background: linear-gradient(135deg, #00ff88 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 16px rgba(0,255,136,0.55));
    animation: shieldPulse 2s ease-in-out infinite;
    z-index: 2;
}
.splash-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #00ff88;
    border-right-color: rgba(0,242,254,0.5);
    animation: ringSpin 1.1s linear infinite;
}
.splash-ring-2 {
    inset: 14px;
    border-top-color: transparent;
    border-bottom-color: #00f2fe;
    border-left-color: rgba(0,255,136,0.5);
    animation: ringSpin 1.6s linear infinite reverse;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
@keyframes shieldPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 16px rgba(0,255,136,0.55)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 28px rgba(0,255,136,0.85)); }
}
.splash-logo {
    font-size: 2.8rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #00ff88 0%, #00f2fe 50%, #00ff88 100%) !important;
    background-size: 200% 200% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: logoShimmer 3s ease-in-out infinite, logoReveal 1s cubic-bezier(0.16,1,0.3,1) both;
    text-shadow: 0 0 60px rgba(0,255,136,0.3);
    filter: drop-shadow(0 0 30px rgba(0,255,136,0.2));
}
@keyframes logoShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes logoReveal {
    from { opacity: 0; transform: scale(0.8) translateY(20px); filter: blur(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}
.splash-subtitle {
    font-size: 0.75rem !important;
    letter-spacing: 0.35em !important;
    color: rgba(255,255,255,0.35) !important;
    text-transform: uppercase;
    font-weight: 600;
    animation: fadeUp 0.8s 0.3s cubic-bezier(0.16,1,0.3,1) both;
}
/* Real progress track that fills 0 -> 100% via JS */
.splash-progress {
    width: 240px;
    max-width: 60vw;
    height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,0.07);
    overflow: hidden;
    margin-top: 1.4rem;
    animation: fadeUp 0.8s 0.5s cubic-bezier(0.16,1,0.3,1) both;
}
.splash-progress-bar {
    width: 0%;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #00ff88, #00f2fe);
    box-shadow: 0 0 16px rgba(0,255,136,0.6);
    transition: width 0.25s cubic-bezier(0.16,1,0.3,1);
}
.splash-status {
    font-family: var(--font-code);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: rgba(0,255,136,0.65);
    margin-top: 0.85rem;
    animation: fadeUp 0.8s 0.7s cubic-bezier(0.16,1,0.3,1) both;
}
.splash-status #splashPercent { color: #00f2fe; font-weight: 700; }
/* legacy loader kept for safety if markup ever reverts */
.splash-loader {
    width: 48px !important;
    height: 3px !important;
    border-radius: 4px !important;
    background: linear-gradient(90deg, #00ff88, #00f2fe, #00ff88) !important;
    background-size: 200% 100% !important;
    animation: loaderSlide 1.2s ease-in-out infinite, fadeUp 0.8s 0.5s cubic-bezier(0.16,1,0.3,1) both;
    box-shadow: 0 0 20px rgba(0,255,136,0.4);
}
@keyframes loaderSlide {
    0% { background-position: 200% 0; width: 48px; }
    50% { width: 120px; }
    100% { background-position: -200% 0; width: 48px; }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- 28.3 TOPBAR — LUXURY GLASS ---- */
#appTopBar {
    background: linear-gradient(90deg,
        rgba(2,10,8,0.95) 0%,
        rgba(4,14,10,0.92) 50%,
        rgba(2,10,8,0.95) 100%) !important;
    backdrop-filter: blur(32px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(32px) saturate(1.8) !important;
    border-bottom: 1px solid rgba(0,255,136,0.06) !important;
    box-shadow: 0 1px 0 rgba(0,255,136,0.05), 0 8px 32px -8px rgba(0,0,0,0.4) !important;
    position: relative;
    z-index: 1000;
}
#appTopBar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0,255,136,0.12) 20%,
        rgba(0,242,254,0.08) 50%,
        rgba(0,255,136,0.12) 80%,
        transparent 100%);
}
.app-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}
.brand-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0,255,136,0.15), rgba(0,242,254,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff88;
    font-size: 1rem;
    box-shadow: 0 0 20px -4px rgba(0,255,136,0.3);
    border: 1px solid rgba(0,255,136,0.15);
}
.brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}
.brand-name .highlight {
    background: linear-gradient(135deg, #00ff88, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.brand-version {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(0,255,136,0.5);
    background: rgba(0,255,136,0.08);
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    border: 1px solid rgba(0,255,136,0.12);
}
.app-search-bar {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 14px !important;
    backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.app-search-bar:focus-within {
    border-color: rgba(0,255,136,0.3) !important;
    box-shadow: 0 0 0 4px rgba(0,255,136,0.06), 0 8px 32px -8px rgba(0,255,136,0.15) !important;
    background: rgba(255,255,255,0.06) !important;
}
.topbar-icon-btn {
    width: 38px; height: 38px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
    position: relative;
}
.topbar-icon-btn:hover {
    background: rgba(0,255,136,0.08) !important;
    border-color: rgba(0,255,136,0.2) !important;
    color: #00ff88 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px -4px rgba(0,255,136,0.2);
}
.notif-dot {
    position: absolute;
    top: 8px; right: 8px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239,68,68,0.6);
    animation: notifPulse 2s ease-in-out infinite;
}
@keyframes notifPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
}
.topbar-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.7rem 0.35rem 0.35rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: all 0.3s ease;
}
.topbar-user-btn:hover {
    background: rgba(0,255,136,0.06);
    border-color: rgba(0,255,136,0.15);
}
.user-avatar-sm {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00ff88, #00c472);
    color: #02080a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}
.user-name-sm {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

/* ---- 28.4 SIDEBAR — CINEMATIC GLASS ---- */
#appSidebar {
    background: linear-gradient(180deg,
        rgba(3,10,6,0.98) 0%,
        rgba(2,7,4,0.99) 50%,
        rgba(1,5,3,1) 100%) !important;
    border-right: 1px solid rgba(0,255,136,0.06) !important;
    box-shadow: none !important;
}
@media (min-width: 769px) {
    /* ONE system on every device: the sidebar is a slide-in drawer floating
       over the content (exactly like the phone) — the layout never resizes,
       so clicking the toggle never makes the site look small/big. */
    #appShell {
        grid-template-areas:
            "topbar"
            "content";
        grid-template-columns: 1fr;
    }
    #appSidebar {
        grid-area: auto;
        position: fixed;
        top: var(--topbar-height);
        left: 0;
        bottom: 0;
        z-index: 900;
        width: 280px;
        transform: translateX(-100%);
        transition: transform var(--transition-slow);
        border-right: 1px solid var(--border);
    }
    #appSidebar.mobile-open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }
    /* Brand shows in the topbar AND inside the drawer (identical to phone). */
    .app-brand { display: flex !important; }
    .sidebar-brand { display: flex; }
    .sidebar-toggle-btn { margin-left: 0; }
}

/* Premium collapsed-rail tooltip: hovering a collapsed icon reveals the label
   in a floating chip to the right (works on desktop via native title fallback). */
#appSidebar.collapsed .sidebar-nav-item { position: relative; }
#appSidebar::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0,255,136,0.1) 30%,
        rgba(0,242,254,0.06) 70%,
        transparent 100%);
}
.sidebar-section-label {
    font-size: 0.58rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22) !important;
    padding: 0.6rem 0.7rem 0.25rem !important;
}
.sidebar-nav-item {
    border-radius: 12px !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,0.5) !important;
    transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94) !important;
    position: relative;
    margin: 0.1rem 0.6rem !important;
    padding: 0.6rem 0.9rem !important;
}
.sidebar-nav-item:hover {
    color: rgba(255,255,255,0.85) !important;
    background: rgba(255,255,255,0.04) !important;
}
.sidebar-nav-item.active {
    color: #fff !important;
    background: linear-gradient(90deg, rgba(0,255,136,0.12), rgba(0,255,136,0.02)) !important;
    box-shadow: inset 3px 0 0 #00ff88, 0 2px 12px -4px rgba(0,255,136,0.15) !important;
    font-weight: 600 !important;
}
.sidebar-nav-item.active i {
    color: #00ff88;
    filter: drop-shadow(0 0 6px rgba(0,255,136,0.4));
}
.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    margin: 0.4rem 0.7rem;
}
.sidebar-user-card {
    margin: 0.5rem 0.7rem;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.sidebar-user-card:hover {
    background: rgba(0,255,136,0.06);
    border-color: rgba(0,255,136,0.15);
}
.sidebar-user-avatar {
    width: 36px; height: 36px;
    border-radius: 11px;
    background: linear-gradient(135deg, #00ff88, #00c472);
    color: #02080a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.sidebar-user-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
}
.sidebar-user-role {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(0,255,136,0.5);
    letter-spacing: 0.05em;
}
.nav-badge {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    margin-left: auto;
}
.nav-badge.red {
    background: rgba(239,68,68,0.15);
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.2);
}

/* ---- 28.5 HERO SECTION — CINEMATIC ---- */
.view-hero {
    position: relative;
    padding: 2rem 2rem 2.5rem !important;
    background: linear-gradient(180deg,
        rgba(0,255,136,0.02) 0%,
        transparent 100%);
    overflow: hidden;
}
.view-hero::before {
    content: '';
    position: absolute;
    top: -100px; left: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,255,136,0.08), transparent 70%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes heroGlow {
    0% { transform: translate(0, 0); opacity: 0.6; }
    100% { transform: translate(60px, 40px); opacity: 1; }
}
.hero-banner-img {
    border-radius: 24px !important;
    overflow: hidden;
    position: relative;
    box-shadow: 0 16px 64px -16px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,255,136,0.08);
}
.hero-banner-img img {
    width: 100%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.hero-banner-img:hover img {
    transform: scale(1.02);
}
.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(0,255,136,0.15) 0%,
        rgba(0,0,0,0.6) 50%,
        rgba(0,242,254,0.1) 100%) !important;
}
.hero-banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 3rem !important;
}
.hero-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.1);
    width: fit-content;
    margin-bottom: 0.8rem;
    animation: fadeUp 0.6s 0.2s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-banner-title {
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    color: #fff !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    animation: fadeUp 0.6s 0.3s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-banner-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.5rem;
    font-weight: 500;
    animation: fadeUp 0.6s 0.4s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-banner-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
    animation: fadeUp 0.6s 0.5s cubic-bezier(0.16,1,0.3,1) both;
}
.banner-cat-chip {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.banner-cat-chip i { font-size: 0.65rem; color: #00ff88; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(0,255,136,0.7);
    margin-top: 1.5rem;
    padding: 0.4rem 1rem;
    background: rgba(0,255,136,0.06);
    border-radius: 100px;
    border: 1px solid rgba(0,255,136,0.12);
    width: fit-content;
}
.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 12px rgba(0,255,136,0.6);
    animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}
.hero-title {
    font-size: 2.6rem !important;
    font-weight: 900 !important;
    line-height: 1.12 !important;
    letter-spacing: -0.03em;
    color: #fff;
    margin-top: 1.2rem;
    animation: fadeUp 0.7s 0.2s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-desc {
    font-size: 1rem !important;
    color: rgba(255,255,255,0.55) !important;
    line-height: 1.65;
    max-width: 640px;
    margin-top: 0.8rem;
    font-weight: 400;
    animation: fadeUp 0.7s 0.3s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-cta-row {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    animation: fadeUp 0.7s 0.4s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    animation: fadeUp 0.7s 0.5s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-stat {
    text-align: center;
    padding: 1rem 0.5rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.hero-stat:hover {
    background: rgba(0,255,136,0.06);
    border-color: rgba(0,255,136,0.15);
    transform: translateY(-2px);
}
.hero-stat-val {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00ff88, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.hero-stat-val span {
    font-size: 0.9rem;
    font-weight: 700;
}
.hero-stat-lbl {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---- 28.6 COURSE CARDS — LUXURY GLASS ---- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}
.course-card {
    border-radius: 20px !important;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.04) 0%,
        rgba(255,255,255,0.01) 100%) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94) !important;
    position: relative;
    backdrop-filter: blur(12px);
}
.course-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(0,255,136,0) 0%,
        rgba(0,255,136,0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: all 0.4s ease;
}
.course-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 24px 64px -16px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,255,136,0.12) !important;
    border-color: rgba(0,255,136,0.15) !important;
}
.course-card:hover::before {
    background: linear-gradient(135deg,
        rgba(0,255,136,0.3) 0%,
        rgba(0,242,254,0.2) 100%);
}
.course-card-thumb {
    height: 170px;
    overflow: hidden;
    position: relative;
}
.course-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.course-card:hover .course-card-thumb img {
    transform: scale(1.08);
}
.course-card-thumb::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
}
.course-card-badge {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 2;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    backdrop-filter: blur(12px);
}
.course-card-badge.free {
    background: rgba(0,255,136,0.15);
    color: #00ff88;
    border: 1px solid rgba(0,255,136,0.25);
}
.course-card-badge.vip {
    background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(239,68,68,0.15));
    color: #fbbf24;
    border: 1px solid rgba(245,158,11,0.3);
}
.course-card-body {
    padding: 1rem 1.2rem 1.2rem;
}
.course-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    line-height: 1.35;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.course-card-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.6rem;
}
.course-card-meta i { font-size: 0.65rem; color: rgba(0,255,136,0.5); }
.course-card-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: #fbbf24;
    font-weight: 700;
}
.course-card-rating i { font-size: 0.65rem; }
.course-card-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.course-card-price .price-current {
    font-size: 1.1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00ff88, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.course-card-price .price-old {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    text-decoration: line-through;
    margin-left: 0.4rem;
}
.course-card-play {
    width: 42px; height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #00ff88, #00c472);
    color: #02080a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
    box-shadow: 0 4px 16px -4px rgba(0,255,136,0.4);
}
.course-card-play:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px -4px rgba(0,255,136,0.5);
}

/* ---- 28.7 CATEGORY PILLS — GLASS CHIPS ---- */
.pill-scroll-row {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding: 0.3rem 0;
    scrollbar-width: none;
}
.pill-scroll-row::-webkit-scrollbar { display: none; }
.cat-pill {
    border-radius: 100px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    padding: 0.45rem 1rem !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    color: rgba(255,255,255,0.55) !important;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94) !important;
    backdrop-filter: blur(8px);
}
.cat-pill:hover {
    background: rgba(0,255,136,0.08) !important;
    border-color: rgba(0,255,136,0.2) !important;
    color: rgba(255,255,255,0.85) !important;
}
.cat-pill.active {
    background: linear-gradient(135deg, rgba(0,255,136,0.15), rgba(0,242,254,0.08)) !important;
    border-color: rgba(0,255,136,0.3) !important;
    color: #fff !important;
    box-shadow: 0 2px 12px -2px rgba(0,255,136,0.25);
}
.cat-pill.active i { color: #00ff88; }

/* ---- 28.8 SECTION HEADINGS ---- */
.section-heading {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: rgba(255,255,255,0.9) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-heading i {
    color: #00ff88;
    font-size: 1rem;
    filter: drop-shadow(0 0 8px rgba(0,255,136,0.4));
}
.section-view-all {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(0,255,136,0.6);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}
.section-view-all:hover {
    color: #00ff88;
    transform: translateX(2px);
}

/* ---- 28.9 KPI CARDS ---- */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.kpi-card {
    border-radius: 18px !important;
    padding: 1.3rem !important;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.04) 0%,
        rgba(255,255,255,0.015) 100%) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94) !important;
    position: relative;
    overflow: hidden;
}
.kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(0,255,136,0.3),
        transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px -12px rgba(0,0,0,0.4);
    border-color: rgba(0,255,136,0.12);
}
.kpi-card:hover::before { opacity: 1; }
.kpi-icon-wrap {
    border-radius: 14px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kpi-icon-wrap.cyan {
    background: linear-gradient(135deg, rgba(0,242,254,0.15), rgba(0,242,254,0.05));
    color: #00f2fe;
    border: 1px solid rgba(0,242,254,0.2);
}
.kpi-icon-wrap.green {
    background: linear-gradient(135deg, rgba(0,255,136,0.15), rgba(0,255,136,0.05));
    color: #00ff88;
    border: 1px solid rgba(0,255,136,0.2);
}
.kpi-icon-wrap.yellow {
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05));
    color: #fbbf24;
    border: 1px solid rgba(245,158,11,0.2);
}
.kpi-val {
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em;
}
.kpi-delta {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: #00ff88;
    font-weight: 600;
    margin-top: 0.3rem;
}
.kpi-delta i { font-size: 0.6rem; }

/* ---- 28.10 BUTTONS — PRECISION LUXURY ---- */
.btn-lg {
    padding: 0.75rem 1.6rem !important;
    font-size: 0.88rem !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
}
.btn-round {
    border-radius: 100px !important;
}
.btn-primary {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%) !important;
    color: #02080a !important;
    font-weight: 800 !important;
    box-shadow:
        0 4px 16px -4px rgba(0,255,136,0.4),
        0 0 0 1px rgba(0,255,136,0.2),
        inset 0 1px 0 rgba(255,255,255,0.15) !important;
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
    box-shadow:
        0 8px 32px -4px rgba(0,255,136,0.5),
        0 0 0 1px rgba(0,255,136,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2) !important;
    transform: translateY(-2px) !important;
}
.btn-primary:active {
    transform: translateY(0) scale(0.98) !important;
}
.btn-ghost {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: rgba(255,255,255,0.7) !important;
}
.btn-ghost:hover {
    background: rgba(0,255,136,0.08) !important;
    border-color: rgba(0,255,136,0.25) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* ---- 28.11 INPUTS — LUXURY GLASS ---- */
.acf-input, .form-input,
input[type="text"], input[type="password"],
input[type="number"], input[type="email"],
textarea, select {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 14px !important;
    padding: 0.75rem 1.1rem !important;
    font-size: 0.88rem !important;
    color: var(--text-primary) !important;
    transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94) !important;
    backdrop-filter: blur(8px);
}
.acf-input:focus, .form-input:focus,
input:focus, textarea:focus, select:focus {
    border-color: rgba(0,255,136,0.4) !important;
    box-shadow:
        0 0 0 4px rgba(0,255,136,0.06),
        0 4px 20px -4px rgba(0,255,136,0.12),
        inset 0 1px 0 rgba(255,255,255,0.05) !important;
    background: rgba(255,255,255,0.06) !important;
    outline: none !important;
}
.form-label {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: rgba(255,255,255,0.5) !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

/* ---- 28.12 MODALS — LUXURY GLASS ---- */
.modal-overlay {
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    background: rgba(0,0,0,0.7) !important;
}
.modal-content, .modal-box {
    border-radius: 24px !important;
    background: linear-gradient(180deg,
        rgba(12,31,21,0.98) 0%,
        rgba(4,17,13,0.99) 100%) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow:
        0 32px 80px -20px rgba(0,0,0,0.6),
        0 0 0 1px rgba(0,255,136,0.06),
        0 0 120px -40px rgba(0,255,136,0.08) !important;
    backdrop-filter: blur(32px);
    animation: modalReveal 0.4s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes modalReveal {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}
.modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    padding: 1.2rem 1.5rem !important;
}
.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
}
.modal-body {
    padding: 1.5rem !important;
}

/* ---- 28.13 TOAST NOTIFICATIONS ---- */
.toast {
    border-radius: 16px !important;
    background: linear-gradient(135deg,
        rgba(12,31,21,0.95),
        rgba(4,17,13,0.98)) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow:
        0 16px 48px -12px rgba(0,0,0,0.5),
        0 0 0 1px rgba(0,255,136,0.06) !important;
    backdrop-filter: blur(24px);
    animation: toastSlide 0.5s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes toastSlide {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ---- 28.14 LEARNING TABS ---- */
.learning-tab-bar {
    display: flex;
    gap: 0.3rem;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 0.3rem;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 1.2rem;
}
.learning-tab-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.learning-tab-btn:hover {
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.04);
}
.learning-tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(0,255,136,0.12), rgba(0,242,254,0.06));
    box-shadow: 0 2px 8px -2px rgba(0,255,136,0.2);
}

/* ---- 28.15 EMPTY STATES ---- */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}
.empty-state-icon {
    width: 72px; height: 72px;
    border-radius: 20px;
    background: rgba(0,255,136,0.06);
    border: 1px solid rgba(0,255,136,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: rgba(0,255,136,0.4);
}
.empty-state h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
}
.empty-state p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-top: 0.3rem;
}

/* ---- 28.16 COURSE FILTER BAR ---- */
.courses-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}
.filter-select {
    border-radius: 12px !important;
    padding: 0.5rem 0.9rem !important;
    font-size: 0.8rem !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.6) !important;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-select:hover, .filter-select:focus {
    border-color: rgba(0,255,136,0.25) !important;
    background: rgba(255,255,255,0.06) !important;
}

/* ---- 28.17 SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(0,255,136,0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0,255,136,0.25);
}

/* ---- 28.18 GREETING BLOCK ---- */
.greeting-block {
    padding: 0.3rem 0;
}
.greeting-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(0,255,136,0.5);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.greeting-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    margin-top: 0.2rem;
}
.my-learning-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2rem;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ---- 28.19 VIDEO PLAYER MODAL ---- */
.player-video-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 16px 64px -16px rgba(0,0,0,0.6);
}

/* ---- 28.20 COURSE PLAYER PROGRESS ---- */
.video-watch-bar {
    border-radius: 14px !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    padding: 0.7rem 1rem !important;
    backdrop-filter: blur(8px);
}
.video-watch-bar-fill {
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #00ff88, #00f2fe);
    box-shadow: 0 0 12px rgba(0,255,136,0.4);
    transition: width 0.4s ease;
}

/* ---- 28.21 PREMIUM ANIMATIONS ---- */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0,255,136,0.2); }
    50% { box-shadow: 0 0 40px rgba(0,255,136,0.4); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ---- 28.22 PREMIUM HOVER LIFT ---- */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px -12px rgba(0,0,0,0.4);
}

/* ---- 28.23 GRADIENT TEXT UTILITY ---- */
.grad {
    background: linear-gradient(135deg, #00ff88 0%, #00f2fe 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ---- 28.24 RESPONSIVE — MOBILE LUXURY ---- */
@media (max-width: 768px) {
    .hero-title { font-size: 1.8rem !important; }
    .hero-banner-title { font-size: 1.5rem !important; }
    .hero-banner-content { padding: 1.5rem !important; }
    .hero-stats-row { grid-template-columns: repeat(2, 1fr) !important; gap: 0.6rem; }
    .hero-stat-val { font-size: 1.3rem !important; }
    .view-hero { padding: 1rem 1rem 1.5rem !important; }
    .my-learning-header { padding: 1rem; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
    .courses-grid { grid-template-columns: 1fr !important; }
    .kpi-row { grid-template-columns: 1fr 1fr !important; }
    .hero-cta-row { flex-direction: column; }
    .hero-cta-row .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 1.5rem !important; }
    .hero-stats-row { grid-template-columns: 1fr 1fr !important; }
    .kpi-row { grid-template-columns: 1fr !important; }
    .hero-banner-cats { gap: 0.3rem; }
    .banner-cat-chip { font-size: 0.6rem; padding: 0.25rem 0.5rem; }
}

/* ============================================================
   40. VIDEO PROTECTION LAYERS (Security Shield visual styles)
   ============================================================ */
.player-video-wrap {
    position: relative;
}
.player-video-wrap.security-blur iframe,
.player-video-wrap.security-blur video {
    filter: blur(22px) brightness(0.55);
    transform: scale(1.04);
    pointer-events: none;
    transition: filter 0.25s ease, transform 0.25s ease;
}
.security-warning-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-align: center;
    padding: 1.5rem;
    background: rgba(4, 10, 6, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 12px;
}
.security-warning-overlay h3 {
    color: var(--warning, #f59e0b);
    letter-spacing: 0.06em;
}
.video-watermark-overlay {
    position: absolute;
    top: 8px;
    left: 10px;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 999px;
    color: rgba(236, 255, 246, 0.92);
    font-size: 0.72rem;
    font-weight: 700;
    pointer-events: none; /* watermark must never block the player */
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.03em;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    animation: watermark-pulse 4s ease-in-out infinite;
}
@keyframes watermark-pulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.55; }
}
/* Four corner positions the drifting pill hops between */
.video-watermark-overlay.wm-tl { top: 8px;  left: 10px;  right: auto;  bottom: auto; }
.video-watermark-overlay.wm-tr { top: 8px;  right: 10px; left: auto;  bottom: auto; }
.video-watermark-overlay.wm-bl { bottom: 10px; left: 10px;  top: auto;  right: auto; }
.video-watermark-overlay.wm-br { bottom: 10px; right: 10px; top: auto;  left: auto; }
/* Full-area repeating tiled watermark — impossible to crop out cleanly */
.video-watermark-tiles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 13;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    background-repeat: repeat;
    background-size: 420px 180px;
}
/* Rotating center identity label */
.video-watermark-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-24deg);
    z-index: 14;
    color: rgba(0, 255, 136, 0.5);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0,0,0,0.8);
    border: 1px solid rgba(0, 255, 136, 0.2);
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 16px;
    border-radius: 8px;
    animation: wm-center-float 5s ease-in-out infinite;
}
@keyframes wm-center-float {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}
.video-watermark-overlay.sec-watermark-br {
    top: auto;
    left: auto;
    bottom: 10px;
    right: 10px;
}
/* Disable selection & dragging anywhere (content protection) */
body {
    user-select: none;
    -webkit-user-select: none;
}
input, textarea, select {
    user-select: text;
    -webkit-user-select: text;
}
img, video, iframe {
    -webkit-user-drag: none;
    user-drag: none;
}
/* ============================================================
   PREMIUM POLISH v1 — $10B-grade micro-interactions & depth
   (All additions are purely additive — nothing above is overridden)
   ============================================================ */

/* --- 1. Ambient animated aurora behind the app for depth --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 600px at 12% -10%, rgba(0,255,136,0.07), transparent 60%),
        radial-gradient(800px 500px at 88% -5%, rgba(0,242,254,0.06), transparent 60%),
        radial-gradient(700px 700px at 50% 115%, rgba(16,185,129,0.05), transparent 60%);
    animation: aurora-drift 18s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
    0%   { transform: translate3d(0,0,0) scale(1); }
    50%  { transform: translate3d(-2%,2%,0) scale(1.04); }
    100% { transform: translate3d(2%,-2%,0) scale(1); }
}

/* --- 2. Custom premium scrollbar --- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(2,8,6,0.6); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0,255,136,0.45), rgba(0,242,254,0.35));
    border-radius: 99px;
    border: 2px solid rgba(2,8,6,0.8);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(0,255,136,0.7), rgba(0,242,254,0.55)); }

/* --- 3. Hero banner — animated gradient ring + glow sweep --- */
.hero-banner-img {
    position: relative;
    isolation: isolate;
}
.hero-banner-img::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from 0deg, transparent 0%, rgba(0,255,136,0.8) 12%, rgba(0,242,254,0.8) 25%, transparent 40%, transparent 60%, rgba(0,255,136,0.5) 75%, transparent 90%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: border-rotate 6s linear infinite;
    pointer-events: none;
}
@keyframes border-rotate {
    to { transform: rotate(360deg); }
}
.hero-banner-content { position: relative; z-index: 2; }

/* Glow sweep across hero on load */
.hero-banner-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.10), transparent);
    transform: skewX(-20deg);
    animation: shine-sweep 5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes shine-sweep {
    0%, 60% { left: -60%; }
    90%, 100% { left: 130%; }
}

/* --- 4. Course cards — premium depth + lift + glow border on hover --- */
.course-card {
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.03);
}
.course-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(0,255,136,0.4), rgba(0,242,254,0.2)) border-box;
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    z-index: 3;
}
.course-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 45px rgba(0,0,0,0.55), 0 0 40px rgba(0,255,136,0.12);
}
.course-card:hover::before { opacity: 1; }
.course-card .card-thumb { position: relative; }
.course-card:hover .card-thumb img { transform: scale(1.06); transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1); }

/* --- 5. Buttons — premium shine sweep + glow --- */
/* .btn-primary already has its own ::before shine sweep; only add one
   for .btn-accent to avoid a duplicated double-shine. */
.btn-accent {
    position: relative;
    overflow: hidden;
}
.btn-accent::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 40%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}
.btn-accent:hover::after { left: 130%; }

/* --- 6. Pricing cards — premium popular glow --- */
.pricing-card { position: relative; transition: transform var(--transition), box-shadow var(--transition); }
.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.6), 0 0 45px rgba(0,255,136,0.10);
}
.pricing-card[class*='popular'], .pricing-card.popular {
    box-shadow: 0 0 0 1px rgba(0,255,136,0.35), 0 12px 45px rgba(0,255,136,0.15);
}

/* --- 7. KPI stat cards — hover lift + icon glow --- */
.kpi-card {
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.kpi-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,255,136,0.25);
    box-shadow: 0 12px 35px rgba(0,0,0,0.5), 0 0 25px rgba(0,255,136,0.08);
}
.kpi-card:hover .kpi-icon-wrap { transform: scale(1.08); }
.kpi-icon-wrap { transition: transform var(--transition); }

/* --- 8. Category pills — premium hover state --- */
.cat-pill {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.cat-pill:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,255,136,0.12); }

/* --- 9. Sidebar nav items — active glow bar + premium hover --- */
.sidebar-nav-item {
    transition: background var(--transition), color var(--transition), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.sidebar-nav-item:hover { transform: translateX(3px); }
.sidebar-nav-item.active {
    box-shadow: inset 0 0 0 1px rgba(0,255,136,0.15), 0 0 20px rgba(0,255,136,0.06);
}

/* --- 10. User card — glass premium --- */
.sidebar-user-card {
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.sidebar-user-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0,255,136,0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 0 20px rgba(0,255,136,0.08);
}

/* --- 11. Modal panels — premium entrance animation --- */
.modal-overlay.active .modal-box {
    animation: modal-pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes modal-pop {
    from { transform: scale(0.94) translateY(14px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* --- 12. Toast notifications — slide-in premium --- */
.toast {
    animation: toast-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
@keyframes toast-in {
    from { transform: translateY(16px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* --- 13. View transition — smooth fade/slide when switching pages --- */
.app-view {
    animation: view-fade 0.35s ease;
}
@keyframes view-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- 14. Section headings — premium underline glow (main content only) --- */
.view-section > .section-row .section-heading {
    position: relative;
}
.view-section > .section-row .section-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 42px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), var(--accent), transparent);
    box-shadow: 0 0 12px rgba(0,255,136,0.5);
}

/* --- 15. Splash logo — premium pulse --- */
.splash-logo {
    text-shadow: 0 0 30px rgba(0,255,136,0.5);
}

/* --- 16. Bottom nav (mobile) — premium glass + active glow --- */
#bottomTabBar {
    background: rgba(3,12,9,0.92);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border-top: 1px solid rgba(0,255,136,0.10);
}
.bottom-tab-btn.active {
    text-shadow: 0 0 14px rgba(0,255,136,0.6);
}

/* --- 17. Global focus rings — premium accessibility --- */
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid rgba(0,255,136,0.5);
    outline-offset: 2px;
}

/* --- 18. AI chatbot FAB — breathing glow --- */
.ai-fab-btn {
    box-shadow: 0 8px 30px rgba(0,255,136,0.35);
    animation: fab-breathe 3s ease-in-out infinite;
}
@keyframes fab-breathe {
    0%, 100% { box-shadow: 0 8px 30px rgba(0,255,136,0.35); transform: scale(1); }
    50%      { box-shadow: 0 8px 40px rgba(0,255,136,0.6); transform: scale(1.05); }
}

/* --- 19. Hero stat numbers — premium glow --- */
.hero-stat-val {
    text-shadow: 0 0 25px rgba(0,255,136,0.35);
}

/* --- 20. News cards — premium hover --- */
.news-item, .news-card {
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.news-item:hover, .news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.5), 0 0 25px rgba(0,242,254,0.06);
}

/* --- 21. Community chat — premium bubbles (actual class names) --- */
.chat-msg-item.own {
    box-shadow: 0 4px 18px rgba(0,255,136,0.18);
}
.chat-msg-item:not(.own) {
    box-shadow: 0 4px 18px rgba(0,0,0,0.3);
}

/* --- 22. Reduced motion respect --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---- Group Call (VIP) ---- */
.gc-start-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 0.85rem; border-radius: 999px;
    background: linear-gradient(135deg, rgba(0,255,136,0.15), rgba(0,242,254,0.12));
    border: 1px solid var(--border-active);
    color: var(--text-primary); font-size: 0.72rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
}
.gc-start-btn:hover {
    background: linear-gradient(135deg, #00ff88, #00c472); color: #00140c;
    box-shadow: var(--shadow-glow); transform: translateY(-1px);
}
.gc-start-btn i { color: #ff4757; animation: gc-pulse 1.6s infinite; }
@keyframes gc-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.group-call-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(2,8,10,0.86); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.group-call-box {
    width: min(1000px, 100%); height: min(640px, 92vh);
    background: var(--bg-card); border: 1px solid var(--border-active);
    border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg), var(--shadow-glow); animation: gc-pop 0.25s ease;
}
@keyframes gc-pop { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.group-call-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.7rem 1rem; background: linear-gradient(90deg, #041410, #07271c);
    border-bottom: 1px solid var(--border);
}
.gc-title { font-size: 0.85rem; display: flex; align-items: center; gap: 0.5rem; }
.gc-controls { display: flex; align-items: center; gap: 0.6rem; }
.gc-live { font-size: 0.65rem; font-weight: 800; color: #ff4757; display: inline-flex; align-items: center; gap: 0.3rem; letter-spacing: 0.06em; }
.gc-live i { font-size: 0.45rem; animation: gc-pulse 1.2s infinite; }
.gc-count { font-size: 0.7rem; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 0.3rem; }
.gc-end-btn {
    padding: 0.35rem 0.85rem; border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #f97316); color: #fff;
    border: none; font-size: 0.7rem; font-weight: 800; cursor: pointer; transition: all 0.2s ease;
}
.gc-end-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(239,68,68,0.45); }
.group-call-stage { flex: 1; min-height: 0; position: relative; background: #0b0f1a; }
.group-call-stage iframe { width: 100%; height: 100%; border: none; }
.gc-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; color: var(--text-secondary); font-size: 0.85rem; }
@media (max-width: 640px) {
    .gc-btn-label { display: none; }
    .gc-start-btn { padding: 0.4rem 0.55rem; }
    .group-call-box { height: 94vh; border-radius: 14px; }
    .gc-title b { display: none; }
}
.gc-link-btn {
    padding: 0.35rem 0.8rem; border-radius: 999px;
    background: linear-gradient(135deg, rgba(0,255,136,0.15), rgba(0,242,254,0.12));
    border: 1px solid var(--border-active); color: var(--text-primary);
    font-size: 0.7rem; font-weight: 700; cursor: pointer; transition: all 0.2s ease;
}
.gc-link-btn:hover { background: linear-gradient(135deg, #00ff88, #00c472); color: #00140c; box-shadow: var(--shadow-glow); }
.gc-fallback-note {
    display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
    padding: 0.55rem 0.9rem; font-size: 0.72rem; color: var(--text-secondary);
    background: rgba(245,158,11,0.08); border-bottom: 1px solid rgba(245,158,11,0.25);
}
.gc-note-link { color: var(--primary); font-weight: 700; text-decoration: none; }
.gc-note-link:hover { text-decoration: underline; }
.gc-note-copy {
    padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700;
    background: var(--bg-glass-strong); border: 1px solid var(--border-active); color: var(--text-primary); cursor: pointer;
}
.gc-note-copy:hover { background: linear-gradient(135deg, #00ff88, #00c472); color: #00140c; }

/* ---- Native WebRTC call overlay ---- */
.gc-waiting {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem;
    background: #060b08; color: var(--text-muted); text-align: center; padding: 1.5rem;
}
.gc-remote-name {
    position: absolute; left: 1rem; top: 0.7rem; z-index: 3;
    font-size: 0.72rem; font-weight: 800; color: #fff;
    background: rgba(0,0,0,0.55); padding: 0.25rem 0.7rem; border-radius: 999px;
    backdrop-filter: blur(4px);
}
.gc-local-wrap {
    position: absolute; right: 1rem; bottom: 1rem; z-index: 3;
    width: 150px; height: 100px; border-radius: 12px; overflow: hidden;
    border: 2px solid var(--border-active); box-shadow: var(--shadow-md);
    background: #000;
}
.group-call-footer {
    display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
    padding: 0.6rem 1rem; background: linear-gradient(90deg, #041410, #07271c);
    border-top: 1px solid var(--border);
}
.gc-ctrl-btn {
    padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.72rem; font-weight: 800;
    background: var(--bg-glass-strong); border: 1px solid var(--border-active); color: var(--text-primary);
    cursor: pointer; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 0.4rem;
}
.gc-ctrl-btn:hover { background: linear-gradient(135deg, #00ff88, #00c472); color: #00140c; }
.gc-ctrl-btn.off { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.5); color: #ff8a8a; }
.gc-hint { font-size: 0.68rem; color: var(--text-muted); margin-left: auto; }
@media (max-width: 640px) {
    .gc-local-wrap { width: 110px; height: 78px; }
    .gc-hint { display: none; }
}

/* ============================================================
   DESKTOP HERO BANNER — full-width cinematic hero
   Image fills the row (cover, center) + text overlaid on top.
   Mobile/tablet keep the stacked layout (image then content).
   ============================================================ */
@media (min-width: 769px) {
    .hero-banner-img {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        overflow: hidden;
    }
    .hero-banner-img img {
        height: 440px;
        max-height: none;
        object-fit: cover;
        object-position: center;
    }
    .hero-banner-overlay {
        background: linear-gradient(180deg, rgba(0,0,0,0.08) 20%, rgba(0,0,0,0.62) 100%);
    }
    .hero-banner-content {
        position: absolute;
        inset: 0;
        z-index: 2;
        justify-content: flex-end;
        padding-bottom: 1.6rem;
    }
}

/* ============================================================
   DESKTOP HERO ANIMATIONS — visible premium motion
   (Ken Burns zoom + fast shine + shimmer title + breathing glow)
   ============================================================ */
@media (min-width: 769px) {
    /* Cinematic Ken Burns zoom on the hero image */
    .hero-banner-img img {
        animation: hero-kenburns 16s ease-in-out infinite alternate;
        will-change: transform;
    }
    @keyframes hero-kenburns {
        from { transform: scale(1.02) translateY(0); }
        to   { transform: scale(1.09) translateY(-8px); }
    }

    /* Faster + brighter light sweep across the banner */
    .hero-banner-img::after {
        animation-duration: 3.5s;
        left: -90%;
        width: 70%;
    }

    /* Shimmering gradient on the banner title */
    .hero-banner-title {
        background: linear-gradient(90deg, #ffffff 0%, #00ff88 30%, #00f2fe 55%, #00ff88 80%, #ffffff 100%);
        background-size: 220% auto;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: hero-title-shimmer 4.5s linear infinite;
    }
    @keyframes hero-title-shimmer {
        to { background-position: 220% center; }
    }

    /* Breathing glow around the whole banner */
    .hero-banner-img {
        animation: hero-glow-breathe 4s ease-in-out infinite;
    }
    @keyframes hero-glow-breathe {
        0%, 100% { box-shadow: 0 0 24px rgba(0,255,136,0.06), 0 8px 32px rgba(0,0,0,0.5); }
        50%      { box-shadow: 0 0 48px rgba(0,255,136,0.18), 0 8px 40px rgba(0,0,0,0.55); }
    }

    /* Same shimmer on the big heading below the hero — whole heading
       (white text + GrayHat/Crypto spans) moves as ONE shimmering unit */
    .hero-title {
        background: linear-gradient(90deg, #ffffff 0%, #00ff88 30%, #00f2fe 55%, #00ff88 80%, #ffffff 100%);
        background-size: 220% auto;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: hero-title-shimmer 4.5s linear infinite;
    }
    .hero-title .grad {
        background: linear-gradient(90deg, #ffffff 0%, #00ff88 30%, #00f2fe 55%, #00ff88 80%, #ffffff 100%);
        background-size: 220% auto;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: hero-title-shimmer 4.5s linear infinite;
    }
}
/* ---- Mobile topbar overflow guard (must come LAST; narrowest LAST so the
       0.74/0.82/0.88rem steps win in cascade at their breakpoints) ---- */
@media (max-width: 768px) {
    .brand-name { font-size: 0.88rem !important; }
}
@media (max-width: 400px) {
    .brand-name { font-size: 0.82rem !important; }
}
@media (max-width: 340px) {
    .brand-name { font-size: 0.74rem !important; }
}
/* ---- Site footer ---- */
#siteFooter {
    margin-top: 3rem;
    padding: 3rem 2rem 1.6rem;
    border-top: 1px solid rgba(0,242,254,0.15);
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,10,20,0.85) 100%);
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
}
.footer-logo {
    font-size: 1.05rem; font-weight: 900; letter-spacing: 0.06em; color: var(--primary);
    display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.7rem;
}
.footer-brand p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; max-width: 320px; }
.ai-social-row {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.5rem 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    background: rgba(0,0,0,0.25);
    flex-wrap: wrap;
}
.ai-social-label {
    font-size: 0.62rem; font-weight: 700; color: var(--text-muted);
    display: flex; align-items: center; gap: 0.35rem; letter-spacing: 0.04em;
}
.ai-social-links {
    display: flex; gap: 0.4rem; flex-wrap: wrap;
}
.ai-social-link {
    width: 28px; height: 28px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem; transition: all 0.2s;
}
.ai-social-link:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.14);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
@property --followAngle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes followBorderSpin {
    to { --followAngle: 360deg; }
}
.follow-card {
    position: relative;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    overflow: hidden;
    border-radius: 16px;
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(0,242,254,0.10), transparent 55%),
        radial-gradient(120% 160% at 100% 100%, rgba(0,255,136,0.08), transparent 55%),
        rgba(6, 12, 20, 0.55);
    box-shadow: 0 0 0 1px rgba(0,242,254,0.10), 0 8px 30px rgba(0,0,0,0.35), 0 0 42px rgba(0,242,254,0.10);
    transition: box-shadow 0.35s ease;
}
.follow-card:hover {
    box-shadow: 0 0 0 1px rgba(0,242,254,0.25), 0 10px 40px rgba(0,0,0,0.45), 0 0 64px rgba(0,242,254,0.22), 0 0 84px rgba(0,255,136,0.10);
}
/* Animated gradient ring around the card */
.follow-card::before {
    content: '';
    position: absolute; inset: -2px;
    border-radius: 18px;
    padding: 2px;
    background: conic-gradient(from var(--followAngle),
        rgba(0,242,254,0.9), rgba(0,255,136,0.85), rgba(0,242,254,0.25),
        rgba(155,60,255,0.7), rgba(0,255,198,0.9), rgba(0,242,254,0.9));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: followBorderSpin 5s linear infinite;
    pointer-events: none;
    z-index: 1;
}
/* Soft moving glow wash behind the content */
.follow-card::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(60% 90% at 20% 10%, rgba(0,242,254,0.14), transparent 60%),
                radial-gradient(60% 90% at 80% 90%, rgba(0,255,136,0.10), transparent 60%);
    animation: followGlowShift 7s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}
@keyframes followGlowShift {
    from { opacity: 0.5; transform: translateX(-3%); }
    to   { opacity: 1;   transform: translateX(3%); }
}
.follow-info { position: relative; z-index: 2; display: flex; align-items: center; gap: 0.85rem; }
.follow-info > i {
    font-size: 1.8rem; color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(0,242,254,0.6));
    animation: followIconGlow 2.6s ease-in-out infinite;
}
@keyframes followIconGlow {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(0,242,254,0.4)); }
    50%      { filter: drop-shadow(0 0 16px rgba(0,242,254,0.85)); }
}
.follow-title { font-weight: 900; font-size: 1.05rem; letter-spacing: 0.03em; }
.follow-sub { font-size: 0.74rem; color: var(--text-muted); margin-top: 0.18rem; }
.follow-socials { position: relative; z-index: 2; display: flex; gap: 0.7rem; }
/* Bigger premium icons inside the Follow Us card */
.follow-socials .footer-social-link {
    width: 48px; height: 48px; border-radius: 14px;
    font-size: 1.35rem;
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
}
.follow-socials .footer-social-link:hover {
    transform: translateY(-6px) scale(1.14);
    box-shadow: 0 12px 30px var(--glow, rgba(0,255,198,0.4)), 0 0 24px var(--glow, rgba(0,255,198,0.3));
}
.follow-socials .footer-social-link[data-key="whatsapp"]::before,
.follow-socials .footer-social-link[data-key="telegram"]::before {
    width: 11px; height: 11px; top: -4px; right: -4px;
}

.sidebar-socials {
    padding: 0.6rem 0.9rem 0.4rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin-top: auto;
}
.sidebar-socials .sidebar-section-label {
    margin: 0 0 0.5rem;
    font-size: 0.6rem;
}
.sidebar-social-row {
    display: flex; gap: 0.45rem; flex-wrap: wrap;
}
.sidebar-social-link {
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.09);
    font-size: 0.9rem; transition: all 0.2s;
}
.sidebar-social-link:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
.footer-socials {
    display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap;
}
.footer-social-link {
    position: relative;
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.09);
    font-size: 1.1rem; transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}
.footer-social-link i {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s;
}
.footer-social-link:hover {
    transform: translateY(-5px) scale(1.12);
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 10px 24px var(--glow, rgba(0,255,198,0.35));
    z-index: 2;
}
.footer-social-link:hover i {
    transform: scale(1.18) rotate(-6deg);
    filter: drop-shadow(0 0 8px var(--glow, rgba(0,255,198,0.5)));
}
.footer-social-link:active {
    transform: translateY(-2px) scale(1.02);
}
/* Pop tooltip on hover (desktop only) */
.footer-social-link::after {
    content: attr(title);
    position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px);
    background: rgba(10, 12, 16, 0.95); border: 1px solid rgba(255,255,255,0.12);
    color: #fff; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.03em;
    padding: 0.3rem 0.6rem; border-radius: 8px; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: all 0.2s;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45); z-index: 10;
}
.footer-social-link:hover::after {
    opacity: 1; transform: translateX(-50%) translateY(0);
}
/* Pulsing indicator so the chat shortcuts stand out */
.footer-social-link[data-key="whatsapp"]::before,
.footer-social-link[data-key="telegram"]::before {
    content: ''; position: absolute; top: -3px; right: -3px;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--glow, #25D366);
    box-shadow: 0 0 0 0 var(--glow, #25D366);
    animation: socialPulse 1.8s infinite;
}
@keyframes socialPulse {
    0%   { box-shadow: 0 0 0 0 var(--glow, #25D366); }
    70%  { box-shadow: 0 0 0 8px rgba(0,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}
.footer-col h5 {
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; color: var(--text-secondary);
    margin-bottom: 0.8rem;
}
.footer-col a {
    display: block; font-size: 0.8rem; color: var(--text-muted); padding: 0.22rem 0;
    cursor: pointer; transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
    max-width: 1200px; margin: 2.4rem auto 0; padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.74rem; color: var(--text-muted); text-align: center; letter-spacing: 0.04em;
}
@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; gap: 1.4rem; }
    #siteFooter { padding: 2rem 1.2rem 1.4rem; }
}

/* ============================================================
   COURSE DETAIL LANDING PAGE (Udemy/Coursera-style)
   ============================================================ */
.cd-back {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.82rem; font-weight: 700; color: var(--text-secondary);
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: 99px; padding: 0.4rem 0.95rem; cursor: pointer;
    transition: all 0.2s; margin-bottom: 1rem;
}
.cd-back:hover { color: var(--primary); border-color: rgba(0,242,254,0.4); background: rgba(0,242,254,0.08); }

.cd-hero {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border); margin-bottom: 1.2rem;
}
.cd-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(0); }
.cd-hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(5,8,15,0.97) 0%, rgba(5,8,15,0.86) 40%, rgba(5,8,15,0.45) 100%);
}
.cd-hero-inner { position: relative; z-index: 2; padding: 1.6rem; display: flex; gap: 1.4rem; align-items: flex-start; }
.cd-hero-thumb {
    width: 230px; height: 130px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}
.cd-hero-info { flex: 1; min-width: 0; }
.cd-hero-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.55rem; }
.cd-hero-title { font-size: 1.35rem; font-weight: 900; line-height: 1.3; margin-bottom: 0.4rem; letter-spacing: 0.01em; }
.cd-hero-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.7rem; max-width: 720px; }
.cd-hero-meta { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-secondary); align-items: center; }
.cd-hero-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.cd-stars { color: #fbbf24; letter-spacing: 0.05em; }

.cd-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.2rem; align-items: start; }

.cd-main-col { display: flex; flex-direction: column; gap: 1.2rem; min-width: 0; }
.cd-panel {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.2rem 1.3rem;
}
.cd-panel-title {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.98rem; font-weight: 800; margin-bottom: 0.9rem;
}
.cd-panel-title i { color: var(--primary); }

.cd-outline-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; padding: 0; margin: 0; list-style: none; }
.cd-outline-list li { display: flex; gap: 0.5rem; font-size: 0.82rem; color: var(--text-secondary); align-items: flex-start; line-height: 1.45; }
.cd-outline-list li i { color: var(--success); margin-top: 0.15rem; font-size: 0.7rem; }

.cd-lesson-row {
    display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.7rem;
    border-radius: 10px; cursor: pointer; transition: background 0.15s; border: 1px solid transparent;
}
.cd-lesson-row:hover { background: rgba(0,242,254,0.06); border-color: rgba(0,242,254,0.18); }
.cd-lesson-row + .cd-lesson-row { margin-top: 0.25rem; }
.cd-lesson-num {
    width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.68rem; font-weight: 800; background: rgba(255,255,255,0.06); color: var(--text-secondary);
}
.cd-lesson-row .fa-circle-play { color: var(--primary); font-size: 1rem; }
.cd-lesson-title { flex: 1; min-width: 0; font-size: 0.84rem; font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-lesson-dur { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cd-preview-badge {
    font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; white-space: nowrap;
    color: #000; background: var(--accent); border-radius: 5px; padding: 0.16rem 0.45rem;
}
.cd-lock-icon { color: var(--text-muted); font-size: 0.78rem; }

.cd-instructor { display: flex; gap: 0.9rem; align-items: center; }
.cd-instructor-avatar {
    width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    border: 2px solid rgba(0,242,254,0.35);
}
.cd-instructor-avatar-ph {
    width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 900; color: #000; background: linear-gradient(135deg, var(--primary), var(--accent));
}
.cd-instructor-name { font-size: 0.95rem; font-weight: 800; }
.cd-instructor-role { font-size: 0.76rem; color: var(--text-muted); margin-top: 0.15rem; }
.cd-instructor-bio { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin-top: 0.7rem; }

/* Reviews inside detail page */
.cd-review-write { margin-bottom: 0.6rem; }
.cd-review-list { display: flex; flex-direction: column; gap: 0.6rem; }

/* Price / enroll card (sticky sidebar) */
.cd-side-col { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: 0.9rem; }
.cd-price-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.cd-price-thumb { width: 100%; height: 170px; object-fit: cover; display: block; border-bottom: 1px solid var(--border); }
.cd-price-body { padding: 1.1rem 1.2rem 1.3rem; }
.cd-price-row { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.cd-price-now { font-size: 1.7rem; font-weight: 900; color: var(--text-primary); }
.cd-price-old { font-size: 0.95rem; color: var(--text-muted); text-decoration: line-through; }
.cd-price-off { font-size: 0.72rem; font-weight: 800; color: #000; background: var(--accent); border-radius: 6px; padding: 0.15rem 0.5rem; }
.cd-free-tag { font-size: 1.25rem; font-weight: 900; color: var(--success); }
.cd-price-note { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.35rem; }
.cd-enroll-btn {
    width: 100%; margin-top: 0.85rem; font-size: 0.9rem; font-weight: 800;
    padding: 0.75rem 1rem; border-radius: 12px; cursor: pointer; border: none;
    background: linear-gradient(135deg, var(--primary), var(--accent)); color: #000;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 8px 22px rgba(0,242,254,0.18);
}
.cd-enroll-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,242,254,0.28); }
.cd-wish-btn {
    width: 100%; margin-top: 0.6rem; font-size: 0.82rem; font-weight: 700;
    padding: 0.62rem 1rem; border-radius: 12px; cursor: pointer;
    background: rgba(255,255,255,0.05); color: var(--text-secondary);
    border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    transition: all 0.15s;
}
.cd-wish-btn:hover { border-color: rgba(244,63,94,0.5); color: #f43f5e; }
.cd-wish-btn.active { background: rgba(244,63,94,0.12); border-color: rgba(244,63,94,0.5); color: #f43f5e; }
.cd-includes { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--border); }
.cd-includes-title { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: 0.6rem; }
.cd-includes li { display: flex; gap: 0.5rem; font-size: 0.76rem; color: var(--text-muted); padding: 0.2rem 0; align-items: center; }
.cd-includes li i { color: var(--success); font-size: 0.68rem; }
.cd-meta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 0.8rem; margin-top: 0.9rem; }
.cd-meta-item { display: flex; gap: 0.5rem; font-size: 0.75rem; color: var(--text-secondary); align-items: center; }
.cd-meta-item i { color: var(--primary); width: 15px; text-align: center; }
.cd-meta-item b { color: var(--text-primary); font-weight: 700; }

/* Wishlist heart on cards */

/* Wishlist heart on cards */
.card-wish-btn {
    position: absolute; top: 10px; right: 10px; z-index: 5;
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(8,12,20,0.65); border: 1px solid rgba(255,255,255,0.16);
    color: #fff; font-size: 0.9rem; cursor: pointer; backdrop-filter: blur(6px);
    transition: all 0.15s;
}
.card-wish-btn:hover { transform: scale(1.12); color: #f43f5e; border-color: rgba(244,63,94,0.6); }
.card-wish-btn.active { color: #f43f5e; background: rgba(244,63,94,0.2); border-color: rgba(244,63,94,0.6); }
.card-thumb { position: relative; }

@media (max-width: 1024px) {
    .cd-layout { grid-template-columns: 1fr 300px; }
}
@media (max-width: 768px) {
    .cd-layout { grid-template-columns: 1fr; }
    .cd-side-col { position: static; }
    .cd-hero-inner { flex-direction: column; }
    .cd-hero-thumb { width: 100%; height: 165px; }
    .cd-outline-list { grid-template-columns: 1fr; }
    .cd-price-thumb { height: 140px; }
    .cd-hero-title { font-size: 1.12rem; }
}

/* ============================================================
   SEASONAL OFFER (discount + countdown)
   ============================================================ */
.offer-timer-bar {
    display: flex; align-items: center; justify-content: center; gap: 0.45rem; flex-wrap: wrap;
    background: linear-gradient(90deg, rgba(245,158,11,0.16), rgba(244,63,94,0.12), rgba(245,158,11,0.16));
    border: 1px solid rgba(245,158,11,0.35); color: var(--warning);
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em;
    border-radius: 12px; padding: 0.6rem 1rem; margin-bottom: 1rem;
    box-shadow: 0 4px 22px rgba(245,158,11,0.12); text-align: center;
}
.offer-timer-bar b {
    background: rgba(0,0,0,0.35); border-radius: 6px; padding: 0.12rem 0.5rem;
    font-variant-numeric: tabular-nums; color: #fff; font-size: 0.8rem;
}
.offer-chip {
    font-size: 0.6rem; font-weight: 900; letter-spacing: 0.08em; color: #000;
    background: var(--warning); border-radius: 6px; padding: 0.2rem 0.55rem;
    animation: offerPulse 1.6s ease-in-out infinite;
}
@keyframes offerPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245,158,11,0.5); }
    50% { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(245,158,11,0); }
}

/* ============================================================
   MASTER LIGHT MODE (DAY MODE) OVERRIDES - ABSOLUTE HIGHEST SPECIFICITY
   100% Guaranteed legibility, crisp cards, dark readable text, high contrast
   ============================================================ */
html[data-theme="light"] {
    --primary:        #059669;
    --primary-dark:   #047857;
    --accent:         #0284c7;
    --accent-dark:    #0369a1;
    --warning:        #d97706;
    --danger:         #dc2626;
    --success:        #059669;
    --info:           #0284c7;

    --bg-body:        #f1f5f9;
    --bg-app:         #f8fafc;
    --bg-surface:     #ffffff;
    --bg-card:        #ffffff;
    --bg-card-hover:  #f1f5f9;
    --bg-glass:       rgba(0,0,0,0.03);
    --bg-glass-strong:rgba(0,0,0,0.06);
    --bg-sidebar:     #ffffff;
    --bg-topbar:      #ffffff;

    --text-primary:   #0f172a;
    --text-secondary: #334155;
    --text-muted:     #64748b;

    --border:         #cbd5e1;
    --border-active:  #059669;

    --grad-primary:   linear-gradient(135deg, #047857, #059669);
    --grad-accent:    linear-gradient(135deg, #0284c7, #38bdf8);
    --grad-dark:      linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);

    --shadow-sm:      0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:      0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg:      0 10px 30px rgba(0,0,0,0.12);
}

/* 1. Global Shell & Body Canvas */
html[data-theme="light"] body,
html[data-theme="light"] #appShell,
html[data-theme="light"] .app-main,
html[data-theme="light"] .main-content,
html[data-theme="light"] #appContent,
html[data-theme="light"] .app-view,
html[data-theme="light"] .view-wrap,
html[data-theme="light"] .view-container,
html[data-theme="light"] .content-body {
    background-color: #f1f5f9 !important;
    background-image: none !important;
    color: #0f172a !important;
}

/* 2. Top Application Bar (#appTopBar) */
html[data-theme="light"] #appTopBar {
    background: #ffffff !important;
    border-bottom: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}
html[data-theme="light"] #appTopBar::after {
    display: none !important;
}
html[data-theme="light"] #appTopBar .app-brand,
html[data-theme="light"] #appTopBar .brand-name {
    color: #0f172a !important;
}
html[data-theme="light"] #appTopBar .brand-name .highlight {
    /* Solid green in light mode: must ALSO kill the dark-mode gradient text
       (background + -webkit-text-fill-color: transparent), otherwise the
       cyan gradient keeps rendering and only the fallback color changes. */
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #059669 !important;
    color: #059669 !important;
}
html[data-theme="light"] #appTopBar .brand-version {
    background: #e2e8f0 !important;
    border: 1px solid #cbd5e1 !important;
    color: #047857 !important;
}
html[data-theme="light"] #appTopBar .app-search-bar {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] #appTopBar .app-search-bar input {
    color: #0f172a !important;
}
html[data-theme="light"] #appTopBar .app-search-bar i {
    color: #059669 !important;
}
html[data-theme="light"] #appTopBar .topbar-icon-btn,
html[data-theme="light"] #appTopBar .sidebar-toggle-btn {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}
html[data-theme="light"] #appTopBar .topbar-icon-btn:hover,
html[data-theme="light"] #appTopBar .sidebar-toggle-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}
html[data-theme="light"] #appTopBar .user-name-sm {
    color: #0f172a !important;
}
html[data-theme="light"] #appTopBar .user-avatar-sm {
    background: #d1fae5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
}

/* 3. Hero Section & Typography Fixes */
html[data-theme="light"] .hero-title,
html[data-theme="light"] .hero-banner-title,
html[data-theme="light"] .cd-hero-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #0f172a !important;
    color: #0f172a !important;
    animation: none !important;
}
html[data-theme="light"] .hero-title .grad,
html[data-theme="light"] .hero-banner-title .grad,
html[data-theme="light"] .cd-hero-title .grad {
    background: linear-gradient(135deg, #059669 0%, #0284c7 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #059669 !important;
}
html[data-theme="light"] .hero-desc,
html[data-theme="light"] .hero-banner-sub,
html[data-theme="light"] .hero-sub,
html[data-theme="light"] .view-hero p {
    color: #334155 !important;
    font-weight: 500 !important;
}
html[data-theme="light"] .hero-eyebrow {
    background: #d1fae5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #047857 !important;
    font-weight: 700 !important;
}
html[data-theme="light"] .hero-stat-val {
    /* kill the dark-mode cyan gradient-text so numbers render solid dark */
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #0f172a !important;
    color: #0f172a !important;
}
html[data-theme="light"] .hero-stat-val span {
    -webkit-text-fill-color: #059669 !important;
    color: #059669 !important;
}
html[data-theme="light"] .hero-stat-lbl {
    color: #475569 !important;
    font-weight: 700 !important;
}

/* 4. Category Pills & Filter Buttons */
html[data-theme="light"] .cat-pill,
html[data-theme="light"] .filter-btn,
html[data-theme="light"] .banner-cat-chip {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
}
html[data-theme="light"] .cat-pill i,
html[data-theme="light"] .filter-btn i,
html[data-theme="light"] .banner-cat-chip i {
    color: #059669 !important;
}
html[data-theme="light"] .cat-pill:hover,
html[data-theme="light"] .filter-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}
html[data-theme="light"] .cat-pill.active,
html[data-theme="light"] .filter-btn.active {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
}
html[data-theme="light"] .cat-pill.active i,
html[data-theme="light"] .filter-btn.active i {
    color: #ffffff !important;
}

/* 5. Follow Card (.follow-card) */
html[data-theme="light"] .follow-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
}
html[data-theme="light"] .follow-card::before,
html[data-theme="light"] .follow-card::after {
    display: none !important;
}
html[data-theme="light"] .follow-title {
    color: #0f172a !important;
}
html[data-theme="light"] .follow-sub {
    color: #64748b !important;
}

/* 6. Section Headings & General Typography */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6,
html[data-theme="light"] strong,
html[data-theme="light"] b,
html[data-theme="light"] .section-heading,
html[data-theme="light"] .card-title,
html[data-theme="light"] .course-title,
html[data-theme="light"] .stat-val,
html[data-theme="light"] .stat-value,
html[data-theme="light"] .kpi-val,
html[data-theme="light"] .modal-title {
    color: #0f172a !important;
}
html[data-theme="light"] .section-heading i {
    color: #059669 !important;
}
html[data-theme="light"] p,
html[data-theme="light"] span,
html[data-theme="light"] div,
html[data-theme="light"] li,
html[data-theme="light"] label,
html[data-theme="light"] td,
html[data-theme="light"] th {
    color: #1e293b;
}
html[data-theme="light"] .text-muted,
html[data-theme="light"] small,
html[data-theme="light"] .subtitle,
html[data-theme="light"] .course-desc,
html[data-theme="light"] .stat-label,
html[data-theme="light"] .kpi-lbl,
html[data-theme="light"] .card-subtitle {
    color: #64748b !important;
}

/* 7. Cards, Boxes & Containers */
html[data-theme="light"] .card,
html[data-theme="light"] .course-card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .modal-card,
html[data-theme="light"] .glass-card,
html[data-theme="light"] .hero-card,
html[data-theme="light"] .welcome-card,
html[data-theme="light"] .notice-card,
html[data-theme="light"] .kpi-card,
html[data-theme="light"] .pay-summary-box,
html[data-theme="light"] .pay-info-box,
html[data-theme="light"] .pay-ref-box,
html[data-theme="light"] .vip-order-card,
html[data-theme="light"] .pricing-card,
html[data-theme="light"] .review-card,
html[data-theme="light"] .admin-card,
html[data-theme="light"] .dashboard-card,
html[data-theme="light"] .course-player-wrap,
html[data-theme="light"] .course-detail-wrap,
html[data-theme="light"] .community-chat-wrap,
html[data-theme="light"] .chat-box,
html[data-theme="light"] .ai-chat-window,
html[data-theme="light"] .certificate-card,
html[data-theme="light"] .cert-preview-card,
html[data-theme="light"] .module-header,
html[data-theme="light"] .lesson-item,
html[data-theme="light"] .pay-method-card,
html[data-theme="light"] .deposit-method-card,
html[data-theme="light"] .acf-field-wrap,
html[data-theme="light"] .cd-side-card,
html[data-theme="light"] .cd-hero-card,
html[data-theme="light"] .topbar-notif-dropdown,
html[data-theme="light"] .crypto-qr-box {
    background-color: #ffffff !important;
    background-image: none !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
}
html[data-theme="light"] .course-card:hover,
html[data-theme="light"] .card:hover,
html[data-theme="light"] .stat-card:hover,
html[data-theme="light"] .kpi-card:hover {
    border-color: #059669 !important;
    box-shadow: 0 8px 25px rgba(5,150,105,0.12) !important;
}

/* 8. Sidebar & Navigation */
html[data-theme="light"] #appSidebar,
html[data-theme="light"] .app-sidebar,
html[data-theme="light"] .bottom-tab-bar,
html[data-theme="light"] .app-footer,
html[data-theme="light"] .footer,
html[data-theme="light"] .footer-wrap {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}
html[data-theme="light"] .sidebar-brand-name {
    color: #0f172a !important;
}
html[data-theme="light"] .sidebar-brand-name .highlight {
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #059669 !important;
    color: #059669 !important;
}
html[data-theme="light"] .sidebar-section-label {
    color: #64748b !important;
    font-weight: 700 !important;
}
html[data-theme="light"] .sidebar-user-card {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] .sidebar-user-name {
    color: #0f172a !important;
}
html[data-theme="light"] .sidebar-user-role {
    color: #64748b !important;
}
html[data-theme="light"] .nav-item,
html[data-theme="light"] .sidebar-nav-item,
html[data-theme="light"] .admin-side-btn,
html[data-theme="light"] .footer-link,
html[data-theme="light"] .footer a {
    color: #334155 !important;
}
html[data-theme="light"] .nav-item:hover,
html[data-theme="light"] .sidebar-nav-item:hover,
html[data-theme="light"] .admin-side-btn:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}
html[data-theme="light"] .nav-item.active,
html[data-theme="light"] .sidebar-nav-item.active,
html[data-theme="light"] .admin-side-btn.active {
    background-color: #d1fae5 !important;
    color: #047857 !important;
    font-weight: 700 !important;
}

/* 9. Forms & Inputs */
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea,
html[data-theme="light"] .form-input,
html[data-theme="light"] .form-select,
html[data-theme="light"] .chat-input,
html[data-theme="light"] .community-chat-input,
html[data-theme="light"] .acf-input {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
    color: #94a3b8 !important;
}
html[data-theme="light"] input:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus,
html[data-theme="light"] .form-input:focus {
    border-color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(5,150,105,0.15) !important;
}

/* 10. Buttons & Badges */
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .cta-primary,
html[data-theme="light"] .primary-btn {
    /* darker gradient so white label text keeps >= 3:1 at every point
       (#10b981 gave only ~2.5:1 at the light end) */
    background: linear-gradient(135deg, #047857, #059669) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(5,150,105,0.25) !important;
}
html[data-theme="light"] .btn-primary *,
html[data-theme="light"] .cta-primary *,
html[data-theme="light"] .primary-btn *,
html[data-theme="light"] .btn-accent * {
    color: #ffffff !important;
}
html[data-theme="light"] .btn-ghost,
html[data-theme="light"] .topbar-search-btn {
    background-color: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}
html[data-theme="light"] .btn-ghost:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}
html[data-theme="light"] .section-view-all {
    color: #047857 !important;
}
html[data-theme="light"] .section-view-all:hover {
    color: #065f46 !important;
}
html[data-theme="light"] .badge-vip,
html[data-theme="light"] .badge-hot {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    color: #ffffff !important;
}
html[data-theme="light"] .badge-free,
html[data-theme="light"] .badge-success,
html[data-theme="light"] .badge-approved {
    background-color: #d1fae5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #065f46 !important;
}

/* 11. Announcement Banner */
html[data-theme="light"] .announcement-banner {
    background: linear-gradient(135deg, #047857, #059669) !important;
    color: #ffffff !important;
}
html[data-theme="light"] .announcement-banner * {
    color: #ffffff !important;
}

/* 12. Floating Assistant Button */
html[data-theme="light"] .floating-bot-btn,
html[data-theme="light"] #aiAssistantBtn,
html[data-theme="light"] .chat-bot-fab {
    background: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(5,150,105,0.35) !important;
}

/* 13. Modals & Overlays */
html[data-theme="light"] .modal-overlay {
    background: rgba(15, 23, 42, 0.6) !important;
}

/* 14. Code & Terminals */
html[data-theme="light"] code,
html[data-theme="light"] pre,
html[data-theme="light"] .code-box,
html[data-theme="light"] .copy-box,
html[data-theme="light"] .terminal-window {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

/* 15. Tables */
html[data-theme="light"] table {
    background-color: #ffffff !important;
}
html[data-theme="light"] th {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border-bottom: 2px solid #e2e8f0 !important;
}
html[data-theme="light"] td {
    border-bottom: 1px solid #f1f5f9 !important;
    color: #1e293b !important;
}
html[data-theme="light"] tr:hover td {
    background-color: #f8fafc !important;
}


