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

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

@font-face {
    font-family: 'MonaspaceNeon';
    src: url('/font/MonaspaceNeon-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

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

@font-face {
    font-family: 'MonaspaceNeon';
    src: url('/font/MonaspaceNeon-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    
    --base-font-size: 16px; 
    --rem-base: 16px; 
    
    --page-bg: #06080D;
    --page-gradient: radial-gradient(120% 100% at 20% 10%, rgba(31, 123, 255, 0.04), transparent 55%),
        radial-gradient(120% 110% at 80% 0%, rgba(0, 255, 213, 0.03), transparent 60%);
    --surface-1: #0E1015;
    --surface-2: #12141A;
    --surface-3: #16181F;
    --surface-card: #111318;
    --surface-card-hover: #16181D;
    --surface-card-cta: transparent;
    --overlay-hover: rgba(255, 255, 255, 0.06);
    --overlay-press: rgba(255, 255, 255, 0.10);
    --overlay-card-hover: linear-gradient(135deg, rgba(0, 255, 213, 0.04), rgba(31, 123, 255, 0.04));
    --stroke-1: rgba(255, 255, 255, 0.06);
    --stroke-2: rgba(255, 255, 255, 0.12);
    --text-primary: rgba(255, 255, 255, 0.97);
    --text-muted: rgba(200, 210, 230, 0.62);
    --accent-1: #00E0FF;
    --accent-1-strong: #00B8D4;
    --accent-2: #4a8dff;
    --accent-2-strong: #2d6fe6;
    --accent-3: #c8a8ff;
    --accent-grad-1: linear-gradient(120deg, rgba(0, 224, 255, 0.92), rgba(23, 96, 216, 0.9));
    --accent-on: #001b18;
    --success: #24e5b4;
    --warning: #ffd56a;
    --danger: #ff6c91;
    --grid-line: rgba(255,255,255,0.02);
    --grid-line-strong: rgba(255,255,255,0.04);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-soft: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 40px rgba(0, 0, 0, 0.4);
    --shadow-accent: 0 4px 15px rgba(0, 224, 255, 0.2), 0 0 40px rgba(0, 224, 255, 0.1);
    --shadow-1: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-2: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 16px rgba(0, 0, 0, 0.25);
    --focus-ring: 0 0 0 4px rgba(0, 224, 255, 0.2);
    --font-base: 'MonaspaceNeon', 'Courier New', monospace;
    color-scheme: dark;
}

:root:not([data-theme="light"]) h1,
:root:not([data-theme="light"]) h2,
:root:not([data-theme="light"]) h3,
:root:not([data-theme="light"]) .hero-title,
:root:not([data-theme="light"]) .profile-info h1 {
    color: rgba(255, 255, 255, 0.98);
}

/* Light theme — dim-light (премиум-минимализм, не белый, мягкие тени). */
:root[data-theme="light"] {
    color-scheme: light;
    --page-bg: #e8ecf2;
    --page-gradient: radial-gradient(120% 100% at 20% 10%, rgba(31, 123, 255, 0.06), transparent 55%),
        radial-gradient(120% 110% at 80% 0%, rgba(10, 163, 154, 0.06), transparent 60%);
    --surface-1: rgba(245, 247, 250, 0.95);
    --surface-2: rgba(238, 241, 246, 0.92);
    --surface-3: rgba(232, 236, 242, 0.88);
    --surface-card: rgba(248, 250, 253, 0.98);
    --surface-card-hover: rgba(252, 253, 255, 0.98);
    --surface-card-cta: transparent;
    --overlay-hover: rgba(11, 18, 32, 0.06);
    --overlay-press: rgba(11, 18, 32, 0.10);
    --overlay-card-hover: var(--overlay-hover);
    --stroke-1: rgba(11, 18, 32, 0.12);
    --stroke-2: rgba(11, 18, 32, 0.18);
    --text-primary: #0b1220;
    --text-muted: rgba(11, 18, 32, 0.65);
    --accent-1: #0aa39a;
    --accent-1-strong: #067a73;
    --accent-2: #1f5eff;
    --accent-2-strong: #1746bf;
    --accent-3: #7a4cff;
    --accent-grad-1: linear-gradient(120deg, #0aa39a, #1f5eff);
    --accent-on: #ffffff;
    --success: #0ea371;
    --warning: #c48b12;
    --danger: #d22f5a;
    --shadow-soft: 0 20px 60px rgba(11, 18, 32, 0.08);
    --shadow-accent: 0 14px 40px rgba(10, 163, 154, 0.18);
    --shadow-1: 0 12px 32px rgba(11, 18, 32, 0.08);
    --shadow-2: 0 8px 24px rgba(11, 18, 32, 0.06);
    --focus-ring: 0 0 0 4px rgba(10, 163, 154, 0.25);
    --grid-line: rgba(11,18,32,0.04);
    --grid-line-strong: rgba(11,18,32,0.06);
}

/* Default mode: follow OS preference unless user forces theme via data-theme. */
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        color-scheme: light;
        --page-bg: #e8ecf2;
        --page-gradient: radial-gradient(120% 100% at 20% 10%, rgba(31, 123, 255, 0.06), transparent 55%),
            radial-gradient(120% 110% at 80% 0%, rgba(10, 163, 154, 0.06), transparent 60%);
        --surface-1: rgba(245, 247, 250, 0.95);
        --surface-2: rgba(238, 241, 246, 0.92);
        --surface-3: rgba(232, 236, 242, 0.88);
        --surface-card: rgba(248, 250, 253, 0.98);
        --surface-card-hover: rgba(252, 253, 255, 0.98);
        --surface-card-cta: transparent;
        --overlay-hover: rgba(11, 18, 32, 0.06);
        --overlay-press: rgba(11, 18, 32, 0.10);
        --stroke-1: rgba(11, 18, 32, 0.12);
        --stroke-2: rgba(11, 18, 32, 0.18);
        --text-primary: #0b1220;
        --text-muted: rgba(11, 18, 32, 0.65);
        --accent-1: #0aa39a;
        --accent-1-strong: #067a73;
        --accent-2: #1f5eff;
        --accent-2-strong: #1746bf;
        --accent-3: #7a4cff;
        --accent-grad-1: linear-gradient(120deg, #0aa39a, #1f5eff);
        --accent-on: #ffffff;
        --success: #0ea371;
        --warning: #c48b12;
        --danger: #d22f5a;
        --shadow-soft: 0 20px 60px rgba(11, 18, 32, 0.08);
        --shadow-accent: 0 14px 40px rgba(10, 163, 154, 0.18);
        --shadow-1: 0 12px 32px rgba(11, 18, 32, 0.08);
        --shadow-2: 0 8px 24px rgba(11, 18, 32, 0.06);
        --focus-ring: 0 0 0 4px rgba(10, 163, 154, 0.25);
        --grid-line: rgba(11,18,32,0.04);
        --grid-line-strong: rgba(11,18,32,0.06);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px !important; 
    -webkit-text-size-adjust: 100% !important; 
    -moz-text-size-adjust: 100% !important; 
    text-size-adjust: 100% !important; 
}

body {
    font-family: var(--font-base);
    font-size: 16px !important; 
    margin: 0;
    min-height: 100vh;
    background-color: var(--page-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    padding-bottom: 4rem;
    position: relative;
    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.icon-slot { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.brand-icon { 
    width: 40px; 
    height: 40px; 
    object-fit: contain; 
    display: block; 
}

.brand-icon.brand-icon--students { 
    width: 44px; 
    height: 44px; 
}

.nav-link-content { 
    display: flex; 
    align-items: center; 
    gap: 0.45rem; 
}

.nav-link-icon { 
    width: 20px; 
    height: 20px; 
    object-fit: contain; 
    display: block; 
}

.nav-link-icon:not(img):not(svg) { 
    width: auto;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
}

.nav-link-label { 
    display: inline-block; 
    line-height: 1.1; 
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background: var(--page-gradient);
    opacity: 0.85;
}

body::after {
    background-image: linear-gradient(var(--grid-line-strong) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 180px 180px;
    opacity: 0.18;
}

/* ==========================================================================
   Legacy App Shell (Для старых экранов, remote_admin, faq и т.д.)
   ========================================================================== */
.app-shell,
.container {
    width: min(1480px, calc(100% - 4rem));
    max-width: 1480px !important;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* ==========================================================================
   Новый Layout (Сайдбар + Topbar + Content)
   ========================================================================== */

.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}

.app-content {
    flex: 1;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 6rem 1.5rem 2rem;
    box-sizing: border-box;
}

/* Topbar */
.app-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: var(--surface-1);
    border-bottom: 1px solid var(--stroke-1);
    box-shadow: var(--shadow-1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.app-topbar .nav-brand {
    display: flex;
    align-items: center;
}

.app-sidebar {
    display: none;
}

/* ==========================================================================
   Десктопный Layout (>= 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
    .app-layout {
        flex-direction: row;
    }

    .app-main {
        margin-left: 280px; 
    }

    .app-content {
        padding: 2rem 3rem 4rem; 
    }

    .app-topbar {
        position: sticky;
        top: 1rem;
        margin: 1rem 3rem 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        height: 64px;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0 1.5rem 0 0;
        pointer-events: none;
    }

    .app-topbar .topbar-actions {
        justify-content: flex-end;
        margin-right: 0;
        padding-right: 0;
    }

    .app-topbar .nav-user-actions {
        pointer-events: auto;
        background: var(--surface-1);
        border: 1px solid var(--stroke-1);
        box-shadow: var(--shadow-1);
        padding: 0.35rem;
        border-radius: 999px;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .desktop-hidden-logo {
        display: none !important;
    }

    .app-sidebar {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 1rem;
        top: 1rem;
        bottom: 1rem;
        width: 260px;
        z-index: 101;
        background: var(--surface-card);
        border: 1px solid var(--stroke-1);
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-soft);
        padding: 0;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .sidebar-header {
        height: 72px;
        display: flex;
        align-items: center;
        padding: 0 1.5rem;
        flex-shrink: 0;
        border-bottom: 1px solid var(--stroke-1);
        margin-bottom: 0.5rem;
    }

    .sidebar-header .brand-caption {
        white-space: nowrap;
        font-size: 1.15rem;
        letter-spacing: 0.05em;
    }

    .app-sidebar .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        width: 100%;
        padding: 0.5rem 1rem 1.5rem;
    }

    .app-sidebar .nav-link {
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: flex-start;
        padding: 0.65rem 1rem;
        border-radius: var(--radius-sm);
        border: none;
        box-shadow: none !important;
        background: transparent !important;
        color: var(--text-primary);
        font-size: 0.9rem;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.2s ease;
        position: relative;
    }

    .app-sidebar .nav-link:hover {
        background: var(--overlay-hover) !important;
        color: var(--text-primary);
        transform: none;
    }

    .app-sidebar .nav-link.active {
        background: var(--overlay-press) !important;
        color: var(--text-primary) !important;
        border: none;
    }

    .app-sidebar .nav-link.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 10%;
        bottom: 10%;
        width: 3px;
        background: var(--accent-1);
        border-radius: 0 4px 4px 0;
        box-shadow: 0 0 8px var(--accent-1);
    }

    .app-sidebar-group-title {
        font-size: 0.65rem;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--text-muted);
        opacity: 0.7;
        padding: 1.5rem 1rem 0.5rem;
        margin-left: 0.2rem;
    }

    .app-sidebar-group-title:first-child {
        padding-top: 0;
    }
    
    .app-sidebar .sidebar-group-content {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .app-sidebar .nav-dropdown-trigger,
    .app-sidebar .nav-dropdown-content {
        display: none !important;
    }
}
.glass-panel {
    background: var(--surface-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.glass-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

:root[data-theme="light"] .glass-panel::after {
    opacity: 0;
}

.glass-panel.panel-hover:hover::after {
    opacity: 0.06;
}

:root[data-theme="light"] .glass-panel.panel-hover:hover::after {
    opacity: 0.04;
}


header.nav-primary,
.nav-primary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.8rem;
    padding: 1.2rem 1.8rem;
    background-color: var(--surface-1) !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke-1);
    box-shadow: var(--shadow-soft);
    margin-bottom: 2.8rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.app-topbar.nav-primary {
    margin-bottom: 0;
    border-radius: 0;
}

@media (min-width: 1024px) {
    .nav-links--header {
        display: none !important;
    }
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.brand-logo-img {
    transition: filter 0.3s ease;
}

:root[data-theme="light"] .brand-logo-img {
    filter: invert(1) hue-rotate(180deg) brightness(0.8);
}

.user-profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 255, 213, 0.25), rgba(31, 123, 255, 0.25));
    border: 2px solid rgba(0, 255, 213, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-1);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.user-profile-avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 255, 213, 0.3), rgba(31, 123, 255, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-profile-avatar:hover {
    transform: scale(1.05);
    border-color: var(--accent-1);
    box-shadow: 0 0 20px rgba(0, 255, 213, 0.4);
}

.user-profile-avatar:hover::before {
    opacity: 1;
}

.user-profile-avatar:active {
    transform: scale(0.98);
}

.user-profile-avatar.creator {
    background: linear-gradient(135deg, rgba(255, 103, 255, 0.25), rgba(31, 123, 255, 0.25));
    border-color: rgba(255, 103, 255, 0.5);
    color: var(--accent-3);
}

.user-profile-avatar.creator:hover {
    border-color: var(--accent-3);
    box-shadow: 0 0 20px rgba(255, 103, 255, 0.4);
}

.user-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    display: block;
    border-radius: inherit;
}

.profile-avatar-simple img,
.student-avatar-large img,
.comment-avatar img {
    object-position: center 22%;
}

.brand-mark {
    width: 108px;
    height: 108px;
    border-radius: 16px;
    border: none;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.brand-caption {
    font-size: 1.55rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-trigger {
    cursor: pointer;
}

.nav-dropdown-content {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    min-width: 220px;
    background: var(--surface-2);
    border: 1px solid var(--stroke-1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 0.75rem;
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:focus-within .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 10px;
    height: 10px;
    background: var(--surface-2);
    border-left: 1px solid var(--stroke-1);
    border-top: 1px solid var(--stroke-1);
    transform: rotate(45deg);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: var(--surface-3);
    color: var(--accent-1);
    padding-left: 1.25rem;
}

.dropdown-item.active {
    background: var(--surface-3);
    color: var(--accent-1);
}

.nav-user-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: 1.5rem;
}

.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-dropdown-content {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    left: auto;
    min-width: 180px;
    background: var(--surface-2);
    border: 1px solid var(--stroke-1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    padding: 0.5rem;
}

.profile-dropdown:hover .profile-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown:focus-within .profile-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    left: auto;
    width: 10px;
    height: 10px;
    background: var(--surface-2);
    border-left: 1px solid var(--stroke-1);
    border-top: 1px solid var(--stroke-1);
    transform: rotate(45deg);
}

.profile-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-weight: 650;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.profile-item:hover {
    background: var(--surface-3);
    color: var(--accent-1);
}

.profile-item img,
.profile-item svg.ui-icon {
    width: 16px;
    height: 16px;
    opacity: 0.65;
}

.profile-item:hover img,
.profile-item:hover svg.ui-icon {
    opacity: 1;
}

.profile-section {
    padding: 0.6rem 0.65rem 0.75rem;
    margin-top: 0.35rem;
    border-top: 1px solid var(--stroke-1);
}

.profile-section-title {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0.15rem 0 0.55rem;
}

.theme-toggle {
    display: flex;
    gap: 0.45rem;
    padding: 0.35rem;
    background: var(--surface-3);
    border: 1px solid var(--stroke-1);
    border-radius: 999px;
}

.theme-toggle-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-weight: 800;
    font-size: 0.84rem;
    padding: 0.44rem 0.72rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, transform 120ms ease, box-shadow 180ms ease;
    white-space: nowrap;
    line-height: 1;
}

.theme-toggle-btn:hover {
    color: var(--text-primary);
    background: var(--overlay-hover);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .theme-toggle-btn:hover {
        background: rgba(10,16,28,0.04);
    }
}

:root[data-theme="light"] .theme-toggle-btn:hover {
    background: var(--overlay-hover);
}

.theme-toggle-btn:active {
    transform: translateY(1px);
}

.theme-toggle-btn.is-active {
    background: linear-gradient(135deg, rgba(52, 211, 195, 0.22), rgba(74, 141, 255, 0.18));
    color: var(--text-primary);
    box-shadow: var(--shadow-2);
    border: 1px solid var(--stroke-1);
}

:root[data-theme="light"] .theme-toggle-btn.is-active {
    box-shadow: 0 12px 26px rgba(16,24,40,0.12);
    border: 1px solid rgba(10,16,28,0.10);
    background: linear-gradient(135deg, rgba(10, 163, 154, 0.16), rgba(31, 94, 255, 0.12));
}

.nav-icon-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--stroke-1);
    border-radius: 12px;
    transition: all 0.2s;
    color: var(--text-muted);
    text-decoration: none;
}

.nav-icon-btn:hover {
    border-color: var(--accent-1);
    background: var(--surface-3);
    color: var(--accent-1);
    transform: translateY(-1px);
}

.nav-icon-btn.active {
    border-color: var(--accent-1);
    background: var(--surface-3);
    color: var(--accent-1);
}

.nav-icon-btn img {
    width: 20px;
    height: 20px;
}

.profile-theme--creator {
    --role-accent: #ff3c5f;
    --role-accent-soft: rgba(255, 60, 95, 0.15);
    --role-accent-glow: rgba(255, 60, 95, 0.4);
    --role-bg-gradient: radial-gradient(140% 120% at 15% 20%, rgba(255, 60, 95, 0.2), transparent 60%),
                        radial-gradient(130% 150% at 80% 0%, rgba(255, 100, 100, 0.1), transparent 60%);
}

.profile-page-wrapper {
    min-height: 100vh;
    padding: 1.5rem 2rem 4rem 2rem;
    transition: background 0.5s ease;
}

.profile-theme--creator.profile-page-wrapper {
    background: var(--page-bg) var(--role-bg-gradient) !important;
}

.profile-header {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--stroke-1);
}

.profile-avatar-container {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}

.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 40px;
    background: var(--surface-2);
    border: 2px solid var(--stroke-1);
    display: grid;
    place-items: center;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.profile-theme--creator .profile-avatar-placeholder {
    border-color: var(--role-accent);
    color: var(--role-accent);
    box-shadow: 0 0 40px var(--role-accent-soft);
}

.profile-info-main {
    flex-grow: 1;
}

.profile-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    border: 1px solid transparent;
}

.profile-theme--creator .profile-role-badge {
    background: var(--role-accent-soft);
    border-color: var(--role-accent);
    color: var(--role-accent);
}

.profile-username {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin: 0 0 0.5rem 0;
    letter-spacing: -1.5px;
    color: var(--text-primary);
}

.profile-theme--creator .profile-username {
    text-shadow: 0 0 25px var(--role-accent-glow);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 2rem;
}

.profile-card {
    background: var(--surface-card);
    border: 1px solid var(--stroke-1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.profile-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.profile-details-list {
    display: grid;
    gap: 1.25rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--stroke-1);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 700;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-action-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

@media (max-width: 900px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

.nav-link {
    padding: 0.65rem 1.3rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid transparent;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    border-color: var(--stroke-2);
    background: var(--overlay-hover);
}

.nav-link.active {
    color: var(--text-primary);
    border-color: rgba(52, 211, 195, 0.35);
    background: linear-gradient(120deg, rgba(52, 211, 195, 0.22), rgba(74, 141, 255, 0.18));
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.nav-link.active:hover {
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
    transform: translateY(-1px);
}

:root[data-theme="light"] .nav-link.active {
    box-shadow: 0 18px 60px rgba(16, 24, 40, 0.12);
    border-color: rgba(10, 163, 154, 0.22);
    background: linear-gradient(120deg, rgba(10, 163, 154, 0.12), rgba(31, 94, 255, 0.10));
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .nav-link.active {
        box-shadow: 0 18px 60px rgba(16, 24, 40, 0.12);
        border-color: rgba(10, 163, 154, 0.22);
        background: linear-gradient(120deg, rgba(10, 163, 154, 0.12), rgba(31, 94, 255, 0.10));
    }
}

.neo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    background: var(--overlay-hover);
    cursor: pointer;
    transition: all 0.25s ease;
}

.neo-button .ui-icon,
.neo-button .ui-icon--sm,
.neo-button .ui-icon--md,
.neo-button .ui-icon--only {
    margin-right: 0;
}

.neo-button.accent {
    background: var(--accent-grad-1);
    border-color: var(--accent-1);
    color: var(--accent-on);
    box-shadow: var(--shadow-accent);
}

.neo-button.accent:hover {
    filter: brightness(0.92);
    color: var(--accent-on);
}

:root:not([data-theme="light"]) .neo-button.accent {
    background: #00D1DC;
    border-color: #00E0FF;
    color: #0A1628;
    box-shadow: 0 0 0 1px rgba(0, 224, 255, 0.3), 0 4px 20px rgba(0, 224, 255, 0.25), 0 0 45px rgba(0, 224, 255, 0.12);
}

:root:not([data-theme="light"]) .neo-button.accent:hover {
    background: #00DEE8;
    color: #0A1628;
    box-shadow: 0 0 0 1px rgba(0, 224, 255, 0.4), 0 4px 20px rgba(0, 224, 255, 0.3), 0 0 55px rgba(0, 224, 255, 0.15);
}

.neo-button.ghost {
    border-color: var(--stroke-1);
    color: var(--text-muted);
    background: transparent;
}

.neo-button.outline {
    border-color: var(--stroke-2);
    background: transparent;
}

.neo-button.danger {
    background: linear-gradient(120deg, #ff6b6b, var(--danger));
    border-color: rgba(255, 107, 107, 0.4);
    color: #2c0707;
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.2);
}

.neo-button.danger:hover {
    filter: brightness(0.95);
    color: #ffeef3;
}

.neo-button:hover {
    transform: translateY(-2px);
    color: var(--text-primary);
}

.neo-button:not(.accent):not(.danger):hover {
    box-shadow: var(--shadow-2);
    border-color: var(--accent-1);
    background: var(--overlay-press);
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin: 0 0 0.6rem 0;
}

.hero-title {
    font-size: clamp(2.2rem, 3vw, 3.3rem);
    margin: 0;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: var(--text-muted);
    margin: 0.8rem 0 0;
    line-height: 1.6;
}

.hero-actions {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-pane {
    display: grid;
    gap: 1rem;
}

.hero-metric {
    border: 1px solid var(--stroke-1);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
    background: var(--surface-2);
}

.hero-metric-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.22em;
}

.hero-metric-value {
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0.35rem 0 0;
}

.filters-panel {
    margin-bottom: 2rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.neo-field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
}

.neo-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    display: block;
    width: 100%;
    font-weight: 600;
}

.neo-input,
.neo-select {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke-1);
    background: var(--surface-2);
    color: var(--text-primary);
    padding: 1rem 1.2rem;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-base);
}

.neo-input:hover,
.neo-select:hover {
    border-color: var(--stroke-2);
    background: var(--surface-1);
}

.neo-input:focus,
.neo-select:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: var(--focus-ring);
    background: var(--surface-1);
}

.neo-input::placeholder,
.neo-select::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.neo-textarea {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke-1);
    background: var(--surface-2);
    color: var(--text-primary);
    padding: 1rem 1.2rem;
    font-size: 1rem;
    font-family: var(--font-base);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.neo-textarea:hover {
    border-color: var(--stroke-2);
    background: var(--surface-1);
}

.neo-textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: var(--focus-ring);
    background: var(--surface-1);
}

.neo-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.upload-area {
    border: 2px dashed var(--stroke-1);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    background: var(--surface-2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: rgba(0, 255, 213, 0.5);
    background: var(--surface-1);
}

.upload-area.dragover {
    border-color: var(--accent-1);
    background: rgba(0, 255, 213, 0.1);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.upload-text {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upload-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-box {
    background: rgba(31, 123, 255, 0.12);
    border-left: 3px solid var(--accent-2);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--accent-2);
    line-height: 1.7;
}

.info-box strong {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.info-box code {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.2em 0.5em;
    border-radius: var(--radius-sm);
    font-family: var(--font-base);
    font-size: 0.9em;
    color: var(--accent-2);
}

.info-box pre {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(31, 123, 255, 0.3);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: 0.8rem;
    overflow-x: auto;
    font-size: 0.85em;
    line-height: 1.6;
}

.filters-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--stroke-1);
    background: var(--surface-card);
    padding: 1.5rem 1.6rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(0, 255, 213, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 255, 213, 0.15);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card strong {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, var(--text-primary), rgba(247, 251, 255, 0.85));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.stat-card span {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
}

.students-panel {
    margin-bottom: 2.5rem;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.8rem;
}

.panel-head h2 {
    margin: 0.2rem 0 0;
    font-size: 1.7rem;
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 769px) {
    .students-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
        gap: 1.5rem !important;
    }
}

body.creator-theme-active .students-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 1.5rem !important;
}

.student-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke-1);
    background: var(--surface-card);
    padding: 1.8rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.student-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--overlay-card-hover);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.student-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-1);
    background: var(--surface-card-hover);
    box-shadow: var(--shadow-accent);
}

.student-card:hover::after {
    opacity: 1;
}

.student-card.active-student {
    border-color: var(--accent-1);
    box-shadow: var(--focus-ring), var(--shadow-accent);
}

.student-card__head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.student-avatar {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--accent-grad-1);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-on);
    box-shadow: var(--shadow-1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    overflow: hidden;
}

.student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    display: block;
    border-radius: inherit;
}

.student-card:hover .student-avatar {
    transform: scale(1.05);
    box-shadow: var(--shadow-accent);
}

.student-name {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.student-meta {
    font-size: 0.86rem;
    color: var(--text-muted);
}

.student-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    border: 1px solid var(--stroke-1);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.student-tag.student-class { 
    border-color: var(--accent-2); 
    color: var(--accent-2); 
    background: rgba(31, 123, 255, 0.12); 
}

.student-insights {
    display: grid;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.student-insights > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--stroke-1);
}

.student-insights > div:last-child {
    border-bottom: none;
}

.student-insights span {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.student-card--cta {
    align-items: center;
    justify-content: center;
    text-align: center;
    border-style: dashed;
    border-color: var(--stroke-2);
    background: var(--surface-card-cta);
}
.student-card--cta .hero-subtitle {
    color: var(--text-muted);
}

.student-card--archived {
    opacity: 0.7;
    border-color: var(--stroke-1);
    background: var(--surface-3);
}

.student-card--archived:hover {
    opacity: 0.85;
    border-color: var(--stroke-2);
    box-shadow: var(--shadow-2);
}

.student-avatar--archived {
    background: var(--surface-3);
    opacity: 0.6;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--stroke-1);
    background: var(--surface-2);
    color: var(--text-muted);
}

.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.ui-icon { 
    width: 18px; 
    height: 18px; 
    margin-right: 0.4rem; 
    vertical-align: middle; 
    object-fit: contain; 
    display: inline-block; 
    flex-shrink: 0;
    color: currentColor;
    fill: currentColor;
}

.ui-icon--sm { 
    width: 16px; 
    height: 16px; 
    margin-right: 0.35rem; 
}

.ui-icon--md { 
    width: 20px; 
    height: 20px; 
    margin-right: 0.5rem; 
}

.ui-icon--lg {
    width: 24px;
    height: 24px;
    margin-right: 0.6rem;
}

.ui-icon--only { 
    margin-right: 0; 
}

.ui-icon-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.ui-icon-slot--sm { width: 16px; height: 16px; }
.ui-icon-slot--md { width: 20px; height: 20px; }
.ui-icon-slot--lg { width: 24px; height: 24px; }

.ui-icon-slot .ui-icon,
.ui-icon-slot .ui-icon--sm,
.ui-icon-slot .ui-icon--md,
.ui-icon-slot .ui-icon--lg {
    margin-right: 0;
}

.pagination-btn {
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke-1);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.pagination-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pagination span {
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.now-playing-pill {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.8rem 2rem;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(0, 198, 164, 0.95), rgba(23, 96, 216, 0.95));
    color: #001b18;
    font-weight: 600;
    letter-spacing: 0.08em;
    box-shadow: 0 18px 60px rgba(0, 198, 164, 0.4);
    cursor: pointer;
    z-index: 9;
}

.now-playing-panel {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: min(420px, calc(100% - 2rem));
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke-1);
    padding: 1.2rem 1.4rem;
    box-shadow: var(--shadow-soft);
    display: none;
    z-index: 9;
}

.now-playing-panel.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

.alert {
    padding: 1.1rem 1.3rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent-1);
    margin-bottom: 1.5rem;
    background: var(--overlay-hover);
}

.alert-success { border-color: var(--success); color: var(--success); }
.alert-danger { border-color: var(--danger); color: var(--danger); }
.alert-warning { border-color: var(--warning); color: var(--warning); }
.alert-info { border-color: var(--accent-1); color: var(--accent-1); }

.field-error {
    margin-top: 0.5em;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 108, 145, 0.12);
    border-left: 3px solid var(--danger);
    color: var(--danger);
    font-size: 0.9em;
    font-weight: 500;
}

.task,
.task-card {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke-1);
    padding: 2.2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.task::after,
.task-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 255, 213, 0.08), rgba(31, 123, 255, 0.05));
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.task:hover,
.task-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 213, 0.6);
    box-shadow: 0 20px 60px rgba(0, 255, 213, 0.25), 0 0 0 1px rgba(0, 255, 213, 0.1);
}

.task:hover::after,
.task-card:hover::after {
    opacity: 1;
}

.task-card.autocheck-correct {
    border: 2px solid var(--success);
    background: linear-gradient(160deg, rgba(16, 185, 129, 0.15), var(--surface-card));
}

.task-card.autocheck-correct::after {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
}

.task-card.autocheck-incorrect {
    border: 2px solid var(--danger);
    background: linear-gradient(160deg, rgba(239, 68, 68, 0.15), var(--surface-card));
}

.task-card.autocheck-incorrect::after {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
}

:root[data-theme="light"] .task-card.autocheck-correct {
    background: linear-gradient(160deg, rgba(16, 185, 129, 0.08), var(--surface-card));
}

:root[data-theme="light"] .task-card.autocheck-incorrect {
    background: linear-gradient(160deg, rgba(239, 68, 68, 0.08), var(--surface-card));
}

.task-header {
    border-bottom: 1px solid var(--stroke-1);
    padding-bottom: 1.2rem;
    margin-bottom: 1.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.task-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-1);
}

.task-header label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 1.1rem;
}

.task-header a {
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}

.task-header a:hover {
    color: var(--accent-2-strong);
}

.task-content {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.05rem;
}

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

.task-content p:last-child {
    margin-bottom: 0;
}

.task-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    border-top: 1px solid var(--stroke-1);
    padding-top: 1.5rem;
}

.task-actions .neo-button {
    transition: all 0.25s ease;
}

.task-actions .neo-button:hover {
    transform: translateY(-2px);
}

.btn {
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-accept { background: linear-gradient(120deg, var(--accent-1), var(--success)); color: #011510; }
.btn-skip { background: linear-gradient(120deg, #f6ad55, var(--warning)); color: #1c0f02; }
.btn-blacklist { background: linear-gradient(120deg, #ff6b6b, var(--danger)); color: #190005; }

.select-all,
.filter-section {
    background: var(--surface-1);
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke-1);
    padding: 1.5rem;
}

.attached-files {
    background: var(--surface-1);
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke-1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.attached-files h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.file-list li {
    margin: 0;
}

.file-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke-1);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    background: var(--surface-2);
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.file-link:hover {
    transform: translateY(-1px);
    border-color: var(--accent-1);
    color: var(--accent-1);
    background: var(--surface-1);
    box-shadow: var(--shadow-soft);
}

.template-card {
    background: var(--surface-card);
    border: 1px solid var(--stroke-1);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.template-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 255, 213, 0.08), rgba(31, 123, 255, 0.05));
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.template-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 255, 213, 0.6);
    box-shadow: 0 20px 60px rgba(0, 255, 213, 0.25), 0 0 0 1px rgba(0, 255, 213, 0.1);
}

.template-card:hover::after {
    opacity: 1;
}

.template-card h3 {
    margin: 0 0 0.6rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--text-primary);
}

.template-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9em;
    line-height: 1.6;
}

.template-card .template-badges {
    display: flex;
    gap: 0.6rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.template-card .template-badge {
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.template-card .template-badge--category {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-1-strong));
    color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 4px 12px rgba(0, 255, 213, 0.3);
}

.template-card .template-badge--count {
    background: var(--surface-3);
    color: var(--text-muted);
    border: 1px solid var(--stroke-1);
}

.template-card .template-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.2rem;
    width: 100%;
}

.template-card .template-actions .neo-button {
    flex: 1 1 0%;
    min-width: 0;
    text-align: center;
    padding: 0.9rem 0.8rem;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.template-card .template-actions .neo-button:hover {
    transform: translateY(-2px);
}

.filter-select {
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--stroke-1);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.25s ease;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: rgba(0, 255, 213, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 255, 213, 0.25);
    background: var(--surface-1);
}

.filter-select:hover {
    border-color: var(--stroke-2);
    background: var(--surface-1);
}

.form-section {
    background: var(--surface-1);
    border: 1px solid var(--stroke-1);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-section:hover::before {
    opacity: 0.5;
}

.form-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--stroke-1);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
    align-items: start;
}

.form-grid.form-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.form-grid .neo-field {
    display: flex;
    flex-direction: column;
}

.form-grid.form-grid-compact .neo-label {
    min-height: 2.8em;
    display: flex;
    align-items: flex-start;
}

.form-grid-full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--stroke-1);
}

.form-actions .neo-button {
    min-width: 120px;
}

.stat-edit-item {
    display: grid;
    grid-template-columns: 140px 1fr 1fr auto;
    gap: 1.2rem;
    align-items: center;
    padding: 1.4rem;
    background: var(--surface-2);
    border: 1px solid var(--stroke-1);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.stat-edit-item:hover {
    border-color: rgba(0, 255, 213, 0.4);
    background: var(--surface-1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 213, 0.15);
}

.stat-edit-item strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.stat-edit-item .stat-input-correct,
.stat-edit-item .stat-input-incorrect {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--stroke-1);
    border-radius: var(--radius-sm);
    background: var(--surface-1);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.stat-edit-item .stat-input-correct:focus,
.stat-edit-item .stat-input-incorrect:focus {
    outline: none;
    border-color: rgba(0, 255, 213, 0.7);
    box-shadow: 0 0 0 3px rgba(0, 255, 213, 0.2);
}

.stat-edit-item .stat-save-btn {
    white-space: nowrap;
    transition: all 0.25s ease;
}

.stat-edit-item .stat-save-btn:hover {
    transform: translateY(-2px);
}

.plans-content {
    color: var(--text-primary);
    line-height: 1.9;
    font-size: 1.05rem;
}

.plans-content h1 {
    color: var(--text-primary);
    border-bottom: 2px solid var(--stroke-1);
    padding-bottom: 0.8rem;
    margin-bottom: 2rem;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.plans-content h2 {
    color: var(--accent-1);
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-size: 1.9rem;
    font-weight: 700;
    border-left: 4px solid var(--accent-1);
    padding-left: 0.8rem;
    letter-spacing: -0.01em;
}

.plans-content h3 {
    color: var(--accent-2);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.plans-content h4 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.plans-content code {
    background: var(--surface-2);
    padding: 0.2em 0.5em;
    border-radius: var(--radius-sm);
    font-family: var(--font-base);
    font-size: 0.9em;
    border: 1px solid var(--stroke-1);
    color: var(--accent-1);
}

.plans-content pre {
    background: var(--surface-2);
    border: 1px solid var(--stroke-1);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.plans-content pre code {
    background: transparent;
    padding: 0;
    border: none;
    color: var(--text-primary);
}

.admin-card {
    padding: 1.4rem;
    background: var(--surface-2);
    border: 1px solid var(--stroke-1);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.admin-card:hover {
    border-color: rgba(0, 255, 213, 0.4);
    background: var(--surface-1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 213, 0.15);
}

.admin-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--stroke-1);
    border-radius: var(--radius-sm);
    background: var(--surface-3);
    transition: all 0.25s ease;
}

.admin-item:hover {
    border-color: rgba(0, 255, 213, 0.4);
    background: var(--surface-2);
}

.admin-item-name {
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.admin-item-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.admin-item-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.audit-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-2);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--stroke-1);
}

.audit-table th {
    background: var(--surface-3);
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--stroke-2);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.audit-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--stroke-1);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.audit-table tr:last-child td {
    border-bottom: none;
}

.audit-table tr:hover {
    background: var(--surface-1);
}

.audit-table tr:hover td {
    color: var(--text-primary);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.status-badge.status-overdue-timer,
.status-badge.status-overdue-deadline {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.status-success {
    background: rgba(0, 254, 202, 0.2);
    color: var(--success);
    border: 1px solid rgba(0, 254, 202, 0.3);
}

.status-error {
    background: rgba(255, 108, 145, 0.2);
    color: var(--danger);
    border: 1px solid rgba(255, 108, 145, 0.3);
}

.status-warning {
    background: rgba(255, 212, 92, 0.2);
    color: var(--warning);
    border: 1px solid rgba(255, 212, 92, 0.3);
}

.status-info {
    background: rgba(31, 123, 255, 0.2);
    color: var(--accent-2);
    border: 1px solid rgba(31, 123, 255, 0.3);
}

.audit-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.audit-stat-card {
    background: var(--surface-2);
    border: 1px solid var(--stroke-1);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.audit-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.audit-stat-card:hover {
    border-color: rgba(0, 255, 213, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 213, 0.15);
}

.audit-stat-card:hover::before {
    opacity: 1;
}

.audit-stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-1);
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.audit-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.neo-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.neo-checkbox-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-1-strong);
}

.generator-hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
    gap: 1.5rem;
    align-items: start;
}

.generator-hero p {
    margin: 0.9rem 0 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.generator-context {
    border-radius: var(--radius-md);
    border: 1px solid var(--stroke-1);
    background: var(--surface-2);
    padding: 1.4rem;
    display: grid;
    gap: 0.9rem;
}

.generator-context .hero-eyebrow {
    margin-bottom: 0.2rem;
}

.generator-mode {
    margin-top: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--stroke-1);
    padding: 1.4rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.generator-mode__icon {
    font-size: 2rem;
    line-height: 1;
}

.generator-mode__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.generator-mode__hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

.generator-mode--homework {
    background: linear-gradient(135deg, rgba(23, 96, 216, 0.2), rgba(0, 198, 164, 0.12));
    border-color: rgba(23, 96, 216, 0.4);
}

.generator-mode--classwork {
    background: linear-gradient(135deg, rgba(0, 198, 164, 0.25), rgba(255, 212, 92, 0.12));
    border-color: rgba(0, 198, 164, 0.45);
}

.generator-layout {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.generator-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.generator-panel h2,
.generator-panel h3 {
    margin: 0 0 1.1rem 0;
    font-size: 1.35rem;
}

.generator-panel p {
    margin: 0 0 1.4rem 0;
    color: var(--text-muted);
}

.generator-form-grid {
    display: grid;
    gap: 1rem;
}

.generator-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.generator-actions .neo-button {
    flex: 1 1 220px;
    justify-content: flex-start;
}

.generator-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.generator-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.generator-links .neo-button {
    flex: 1 1 240px;
    justify-content: flex-start;
}

.generator-reset {
    border-top: 1px solid var(--stroke-1);
    padding-top: 1.3rem;
    margin-top: 1.3rem;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--overlay-hover);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-1), var(--accent-2));
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-1), var(--accent-3));
}

.accepted-badge,
.skipped-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 0.7rem;
    letter-spacing: 0.05em;
}

.accepted-badge {
    background: linear-gradient(120deg, var(--accent-1), var(--success));
    color: #01221a;
}

.skipped-badge {
    background: linear-gradient(120deg, var(--warning), #ffb347);
    color: #211102;
}

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

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.mobile-menu-toggle {
    display: none; 
    background: transparent;
    border: 1px solid var(--stroke-1);
    border-radius: var(--radius-sm);
    padding: 0.6rem;
    cursor: pointer;
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: all 0.25s ease;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 12, 0.95);
    backdrop-filter: blur(10px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--surface-2);
    border-left: 1px solid var(--stroke-1);
    z-index: 999;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--stroke-1);
}

.mobile-menu-close {
    background: transparent;
    border: 1px solid var(--stroke-1);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.25s ease;
}

.mobile-menu-close:hover {
    background: var(--overlay-hover);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    padding-bottom: 2rem;
}

.mobile-nav-links .nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: all 0.25s ease;
    font-size: 1.05rem;
    background: transparent !important;
    box-shadow: none !important;
}

.mobile-nav-links .nav-link:hover,
.mobile-nav-links .nav-link.active {
    color: var(--text-primary) !important;
    background: var(--overlay-hover) !important;
}

.mobile-nav-links .nav-link.active {
    background: var(--overlay-press) !important;
    border-color: transparent !important;
    position: relative;
}

.mobile-nav-links .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 3px;
    background: var(--accent-1);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 8px var(--accent-1);
}

.mobile-nav-links .nav-link-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.mobile-nav-links .app-sidebar-group-title {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.7;
    padding: 1.5rem 1rem 0.5rem;
    margin-left: 0.2rem;
}

.mobile-nav-links .app-sidebar-group-title:first-child {
    padding-top: 0;
}

.mobile-nav-links .sidebar-group-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mobile-nav-links .nav-dropdown-trigger,
.mobile-nav-links .nav-dropdown-content {
    display: none !important;
}

/* Remote admin shell */
.remote-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    background: var(--surface-1);
    border-bottom: 1px solid var(--stroke-1);
    z-index: 200;
}

.remote-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--stroke-1);
    background: var(--surface-2);
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.remote-sidebar {
    position: fixed;
    left: 0;
    top: 72px;
    width: 260px;
    height: calc(100vh - 72px);
    background: var(--surface-2);
    border-right: 1px solid var(--stroke-1);
    padding: 1.25rem;
    overflow-y: auto;
    z-index: 150;
}

.remote-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.remote-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: background 180ms ease, border-color 180ms ease, transform 120ms ease, color 180ms ease;
}

.remote-sidebar-link:hover {
    background: var(--surface-3);
    border-color: var(--stroke-1);
    color: var(--text-primary);
}

.remote-sidebar-link.active {
    background: linear-gradient(120deg, rgba(52, 211, 195, 0.18), rgba(74, 141, 255, 0.14));
    border-color: rgba(52, 211, 195, 0.22);
    color: var(--text-primary);
}

.remote-main {
    margin-left: 260px;
    margin-top: 72px;
    padding: 2rem;
    min-height: calc(100vh - 72px);
}

@media (max-width: 980px) {
    .remote-sidebar {
        position: static;
        width: auto;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--stroke-1);
        top: 0;
    }
    .remote-main {
        margin-left: 0;
        margin-top: 72px;
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    
    .app-shell,
    .container {
        width: calc(100% - 2rem) !important;
        max-width: 1480px !important;
        padding-top: 0;
    }

    .app-content {
        padding: 5rem 1rem 2rem;
    }

    body {
        padding-bottom: 2rem;
    }

    header.nav-primary,
    .nav-primary {
        flex-wrap: wrap;
        padding: 1rem 1.2rem;
        gap: 1rem;
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 100%;
    }

    .nav-brand {
        flex: 1;
        min-width: 0;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .user-profile-avatar {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .brand-caption {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-links {
        display: none; 
    }

    .nav-actions {
        display: none; 
    }

    .mobile-menu-toggle {
        display: flex; 
    }

    .glass-panel {
        padding: 1rem;
        border-radius: var(--radius-md);
    }

    .dashboard-hero {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .neo-button {
        width: 100%;
        justify-content: center;
    }

    .hero-pane {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .hero-metric {
        padding: 1rem;
    }

    .hero-metric-value {
        font-size: 2rem;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .filters-actions {
        flex-direction: column;
    }

    .filters-actions .neo-button {
        width: 100%;
    }
} 

.theme-creator {
    --accent-color: #ffffff;
    --accent-glow: rgba(255, 255, 255, 0.5);
    --accent-bg: rgba(255, 255, 255, 0.1);
}

.theme-student {
    --accent-color: #00c6a4;
    --accent-glow: rgba(0, 198, 164, 0.5);
    --accent-bg: rgba(0, 198, 164, 0.1);
}

.theme-tutor {
    --accent-color: #1f7bff;
    --accent-glow: rgba(31, 123, 255, 0.45);
    --accent-bg: rgba(31, 123, 255, 0.12);
}

.theme-parent {
    --accent-color: #b14dff;
    --accent-glow: rgba(177, 77, 255, 0.35);
    --accent-bg: rgba(177, 77, 255, 0.12);
}

.theme-admin {
    --accent-color: #ffb020;
    --accent-glow: rgba(255, 176, 32, 0.35);
    --accent-bg: rgba(255, 176, 32, 0.12);
}

.profile-container {
    width: 100%;
    max-width: 1480px;
    min-width: 0;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    box-sizing: border-box;
}

.profile-card {
    background: var(--surface-card);
    border: 1px solid var(--stroke-1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
}

:root:not([data-theme="light"]) .profile-card {
    box-shadow: var(--shadow-soft), 0 0 120px rgba(0, 224, 255, 0.035);
}

.profile-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(255,255,255,0.14),
        rgba(255,255,255,0.04),
        rgba(0,0,0,0.0)
    );
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.9;
}

.profile-cover {
    height: 200px;
    width: 100%;
    background: radial-gradient(ellipse 120% 100% at 50% 0%, #1a1528 0%, #151820 40%, #0d1118 100%);
    position: relative;
    overflow: hidden;
}

.profile-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255,255,255,0.03) 0%, transparent 20%);
    z-index: 1;
}

.profile-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 80% 30%, rgba(0, 224, 255, 0.06), transparent 50%),
        radial-gradient(ellipse 60% 80% at 20% 70%, rgba(200, 168, 255, 0.04), transparent 50%);
    mix-blend-mode: screen;
    opacity: 1;
    z-index: 1;
}

:root[data-theme="light"] .profile-cover {
    background: radial-gradient(circle at 0% 0%, rgba(31, 123, 255, 0.08) 0%, rgba(10, 163, 154, 0.05) 100%);
}
:root[data-theme="light"] .profile-cover::before {
    background: radial-gradient(circle at 18% 28%, rgba(10, 163, 154, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 72% 18%, rgba(31, 123, 255, 0.1) 0%, transparent 55%);
    mix-blend-mode: normal;
}

.theme-creator .profile-cover {
    background: linear-gradient(180deg, rgba(220, 235, 255, 0.25) 0%, rgba(180, 210, 255, 0.15) 40%, rgba(140, 180, 220, 0.12) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.theme-creator .profile-cover.has-cover {
    background-color: rgba(10, 15, 25, 0.3);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.theme-creator .profile-cover.has-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 50%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
}
.theme-creator .profile-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.12), transparent 60%);
    pointer-events: none;
}

.profile-header {
    padding: 0 2.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -60px; 
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.profile-identity {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
}

.profile-avatar-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--surface-1); 
    padding: 6px; 
    flex-shrink: 0;
}

.profile-avatar-big {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-muted);
    border: 2px solid var(--stroke-2);
    overflow: hidden;
    position: relative;
}

.profile-avatar-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
}

.theme-creator .profile-avatar-big {
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.profile-info h1 {
    font-size: 2.2rem;
    margin: 0;
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.profile-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--surface-3);
    color: var(--text-muted);
    border: 1px solid var(--stroke-2);
}

.theme-creator .profile-role-badge {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.theme-creator .public-sub .status-badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
}
.theme-creator .public-sub .status-badge:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
}

.profile-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.profile-details > summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.profile-details > summary::-webkit-details-marker { display: none; }
.profile-details > summary::before {
    content: '▸';
    color: var(--text-muted);
    transform: translateY(-1px);
}
.profile-details[open] > summary::before { content: '▾'; }
.profile-details-body { margin-top: .9rem; }

.profile-section {
    background: var(--surface-1);
    border: 1px solid var(--stroke-1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.profile-section h3 {
    margin: 0 0 1.25rem 0;
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-section h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--stroke-1);
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--stroke-1);
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.data-value {
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace; 
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -50px;
    }
    
    .profile-identity {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .profile-content-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card strong {
        font-size: 1.6rem;
    }

    .stat-card span {
        font-size: 0.75rem;
    }

    .students-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .student-card {
        padding: 1rem;
        border-radius: var(--radius-md);
    }

    .student-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .student-name {
        font-size: 1.1rem;
    }

    .panel-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .panel-head h2 {
        font-size: 1.25rem;
    }

    .panel-head .hero-actions {
        width: 100%;
    }

    .panel-head .hero-actions .neo-button {
        width: 100%;
    }

    .neo-button {
        padding: 0.9rem 1.3rem;
        font-size: 0.95rem;
        min-height: 44px; 
    }

    .generator-hero {
        grid-template-columns: 1fr;
    }

    .generator-grid {
        grid-template-columns: 1fr;
    }

    .generator-actions .neo-button {
        flex: 1 1 100%;
    }

    .generator-links .neo-button {
        flex: 1 1 100%;
    }

    .task {
        padding: 1.5rem 1.2rem;
        margin-bottom: 1.5rem;
    }

    .task-actions {
        flex-direction: column;
    }

    .task-actions .neo-button,
    .task-actions .btn {
        width: 100%;
        min-height: 44px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 1.5rem 1.2rem;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .pagination-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .now-playing-pill {
        top: 16px;
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
        max-width: calc(100% - 2rem);
    }

    .now-playing-panel {
        top: 70px;
        width: calc(100% - 2rem);
        padding: 1rem 1.2rem;
    }

    .hero-eyebrow {
        font-size: 0.7rem;
    }

    section {
        margin-top: 1.5rem;
    }

    section:first-of-type {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .app-shell,
    .container {
        width: calc(100% - 1rem);
        padding-top: 1rem;
    }

    .app-content {
        padding: 5rem 0.5rem 1rem;
    }

    .nav-primary {
        padding: 0.8rem 1rem;
    }

    .glass-panel {
        padding: 1.2rem 1rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-pane {
        grid-template-columns: 1fr;
    }

    .brand-caption {
        display: none; 
    }

    .mobile-menu {
        width: 100vw;
    }
}

@media (max-width: 768px) {
    
    .testers-table,
    .audit-table {
        display: block;
        border-radius: var(--radius-md);
        overflow: visible;
    }

    .testers-table thead,
    .audit-table thead {
        display: none;
    }

    .testers-table tbody,
    .audit-table tbody {
        display: block;
    }

    .testers-table tr,
    .audit-table tr {
        display: block;
        margin-bottom: 1rem;
        background: var(--surface-2);
        border: 1px solid var(--stroke-1);
        border-radius: var(--radius-md);
        padding: 1rem;
    }

    .testers-table td,
    .audit-table td {
        display: block;
        padding: 0.5rem 0;
        border: none;
        text-align: left;
    }

    .testers-table td:before,
    .audit-table td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--text-muted);
        display: inline-block;
        min-width: 100px;
    }

    .audit-filters {
        grid-template-columns: 1fr;
    }

    .audit-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (hover: none) and (pointer: coarse) {
    
    .nav-link,
    .neo-button,
    .btn,
    .pagination-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .glass-panel:hover::after {
        opacity: 0;
    }

    .student-card:hover {
        transform: none;
    }

    .nav-link:hover {
        background: transparent;
    }
}

@media (max-width: 768px) {
    .form-section {
        margin-bottom: 1.5rem;
    }

    .form-section-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .form-grid-full {
        grid-column: 1 / -1;
    }

    .modal-content {
        width: calc(100% - 2rem);
        margin: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
}

.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.confirm-modal.active {
    display: flex;
}

.confirm-modal-content {
    background: var(--surface-1);
    border: 1px solid var(--stroke-1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-soft);
}

.confirm-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.confirm-modal-message {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.confirm-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.confirm-modal-actions .neo-button {
    min-width: 120px;
}

@media (max-width: 768px) {
    
    .generator-context {
        padding: 1.2rem;
    }

    .generator-mode {
        flex-direction: column;
        padding: 1.2rem;
    }

    small {
        font-size: 0.8rem;
    }
}

.global-search-container {
    position: relative;
}

.global-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: var(--surface-1);
    border: 1px solid var(--stroke-1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    padding: 1rem;
}

.global-search-results.active {
    display: block;
}

.search-results-section {
    margin-bottom: 1.5rem;
}

.search-results-section:last-child {
    margin-bottom: 0;
}

.search-results-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--stroke-1);
}

.search-result-item {
    display: block;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s;
    margin-bottom: 0.5rem;
}

.search-result-item:hover {
    background: var(--surface-2);
}

.search-result-item:last-child {
    margin-bottom: 0;
}

.search-result-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--accent-1);
}

.search-result-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.search-result-preview {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--surface-2);
    border: 1px solid var(--stroke-1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.quick-action-btn:hover {
    background: var(--surface-3);
    border-color: var(--accent-1);
    transform: translateY(-2px);
}

.task-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.task-preview-modal.active {
    display: flex;
}

.task-preview-content {
    background: var(--surface-1);
    border: 1px solid var(--stroke-1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.task-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--stroke-1);
}

.task-preview-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.task-preview-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.2s;
}

.task-preview-close:hover {
    color: var(--text-primary);
}

.task-preview-body {
    color: var(--text-primary);
}

.breadcrumbs-container {
    margin-bottom: 1.5rem;
}

.breadcrumbs {
    display: flex;
    align-items: center;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumbs-item:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.breadcrumbs-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs-link:hover {
    color: var(--accent-1);
}

.breadcrumbs-current {
    color: var(--text-primary);
    font-weight: 600;
}

.neo-field {
    position: relative;
}

.neo-input.error,
.neo-select.error,
.neo-textarea.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(255, 108, 145, 0.1);
}

.field-error {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.field-error::before {
    content: '⚠';
    font-size: 1rem;
}

.tooltip {
    position: fixed;
    background: var(--surface-2);
    border: 1px solid var(--stroke-2);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s;
    max-width: 250px;
    box-shadow: var(--shadow-soft);
}

.tooltip.active {
    opacity: 1;
    transform: translateY(0);
}

.tooltip::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 6px solid transparent;
}

.tooltip[data-position="top"]::after {
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: var(--surface-2);
}

.tooltip[data-position="bottom"]::after {
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: var(--surface-2);
}

.tooltip[data-position="left"]::after {
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: var(--surface-2);
}

.tooltip[data-position="right"]::after {
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: var(--surface-2);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.undo-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
}

.undo-notification-item {
    background: var(--surface-2);
    border: 1px solid var(--stroke-2);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: var(--shadow-soft);
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s, transform 0.3s;
}

.undo-notification-item span {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.undo-btn {
    background: var(--accent-1);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    color: var(--page-bg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.undo-btn:hover {
    background: var(--accent-1-strong);
    transform: translateY(-2px);
}

.keyboard-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.keyboard-hint kbd {
    background: var(--surface-2);
    border: 1px solid var(--stroke-1);
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    font-family: var(--font-base);
    font-size: 0.7rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .breadcrumbs-list {
        font-size: 0.8rem;
    }
    
    .breadcrumbs-item:not(:last-child)::after {
        margin-left: 0.25rem;
        font-size: 1rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state-icon {
        font-size: 3rem;
    }
    
    .empty-state-title {
        font-size: 1.2rem;
    }
    
    .undo-notification {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    .tooltip {
        max-width: 200px;
        font-size: 0.8rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .students-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .filters-grid {
        grid-template-columns: 1fr !important;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .neo-button {
        width: 100%;
    }
}

#skillsChart {
    max-height: 500px !important;
    width: 100% !important;
}

.glass-panel canvas {
    filter: contrast(1.05);
}

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--surface-1);
    border: 2px solid var(--stroke-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--accent-1);
    border-color: var(--accent-1);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(23, 96, 216, 0.3);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    fill: var(--text-primary);
    transition: fill 0.2s ease;
}

.scroll-to-top:hover svg {
    fill: white;
}

.theme-creator .profile-card { border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 0 60px rgba(255, 255, 255, 0.06); }
.theme-creator .profile-section { border-color: rgba(255, 255, 255, 0.12); background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)); }
.theme-creator .profile-section h3 { color: #ffffff; text-shadow: 0 0 20px rgba(255, 255, 255, 0.2); }
.theme-creator .profile-avatar-big { box-shadow: 0 0 50px rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.55); }
.theme-creator .neo-button.outline { border-color: rgba(255, 255, 255, 0.4); color: #ffffff; }
.theme-creator .neo-button.outline:hover { background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 20px rgba(255, 255, 255, 0.12); }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 10000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal { background: var(--surface-1); border: 1px solid var(--stroke-1); border-radius: var(--radius-lg); width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 25px 50px rgba(0,0,0,0.5); transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header { padding: 1.5rem; border-bottom: 1px solid var(--stroke-1); display: flex; justify-content: space-between; align-items: center; }
.modal-title { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.modal-close { background: transparent; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; padding: 0.5rem; line-height: 1; transition: color 0.2s; }
.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.modal-footer { padding: 1.5rem; border-top: 1px solid var(--stroke-1); display: flex; justify-content: flex-end; gap: 1rem; background: var(--surface-2); border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); }

.avatar-modal-overlay { cursor: pointer; }
.avatar-modal-overlay .modal { max-width: 95vw; max-height: 95vh; padding: 1rem; cursor: default; }
.modal-avatar-wrap { display: flex; align-items: center; justify-content: center; min-width: 200px; min-height: 200px; }
.modal-avatar-wrap img { max-width: 90vw; max-height: 85vh; width: auto; height: auto; object-fit: contain; border-radius: var(--radius-md); display: block; }
.profile-avatar-wrapper.profile-avatar-clickable { cursor: pointer; }
.profile-avatar-wrapper.profile-avatar-clickable:hover { opacity: 0.92; }
.public-avatar.avatar-clickable { cursor: pointer; }
.public-avatar.avatar-clickable:hover { opacity: 0.92; }

body.creator-theme-active {
    --page-bg: #08090e;
    --surface-1: rgba(14, 15, 22, 0.96);
    --surface-2: rgba(22, 24, 32, 0.94);
    --surface-3: rgba(30, 32, 42, 0.9);
    --stroke-1: rgba(255, 255, 255, 0.14);
    --stroke-2: rgba(255, 255, 255, 0.22);
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.72);
    --accent-1: #ffffff;
    --accent-1-strong: #ffffff;
    --page-gradient: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 255, 255, 0.08), transparent 55%);
}

body.creator-theme-active .nav-primary {
    background: #0f111c !important;
    border-color: var(--stroke-1);
    box-shadow: var(--shadow-soft);
}

/* Светлая тема: на странице создателя не переключать всё в тёмное — оставить светлый фон и тёмный текст */
:root[data-theme="light"] body.creator-theme-active {
    --page-bg: #e8ecf2;
    --page-gradient: radial-gradient(120% 100% at 20% 10%, rgba(31, 123, 255, 0.06), transparent 55%),
        radial-gradient(120% 110% at 80% 0%, rgba(10, 163, 154, 0.06), transparent 60%);
    --surface-1: rgba(245, 247, 250, 0.95);
    --surface-2: rgba(238, 241, 246, 0.92);
    --surface-3: rgba(232, 236, 242, 0.88);
    --surface-card: rgba(248, 250, 253, 0.98);
    --stroke-1: rgba(11, 18, 32, 0.12);
    --stroke-2: rgba(11, 18, 32, 0.18);
    --text-primary: #0b1220;
    --text-muted: rgba(11, 18, 32, 0.65);
    --accent-1: #0aa39a;
    --accent-1-strong: #067a73;
}

:root[data-theme="light"] body.creator-theme-active .nav-primary,
:root[data-theme="light"] body.creator-theme-active .app-sidebar {
    background: rgba(245, 247, 250, 0.98) !important;
    border-color: rgba(11, 18, 32, 0.12);
    box-shadow: 0 12px 32px rgba(11, 18, 32, 0.08);
}

.theme-creator .profile-cover {
    height: 250px;
    position: relative;
}
.theme-creator .profile-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: transparent;
}

.creator-snowflakes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}
.creator-snowflakes .snowflake {
    position: absolute;
    bottom: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
    animation: snowrise linear infinite;
    will-change: transform;
}
.creator-snowflakes .snowflake:nth-child(1) { left: 2%; animation-duration: 18s; animation-delay: 0s; font-size: 0.65rem; opacity: 0.9; }
.creator-snowflakes .snowflake:nth-child(2) { left: 8%; animation-duration: 14s; animation-delay: -3s; font-size: 1rem; opacity: 0.7; }
.creator-snowflakes .snowflake:nth-child(3) { left: 14%; animation-duration: 22s; animation-delay: -6s; font-size: 0.55rem; opacity: 0.95; }
.creator-snowflakes .snowflake:nth-child(4) { left: 19%; animation-duration: 16s; animation-delay: -1s; font-size: 0.9rem; opacity: 0.65; }
.creator-snowflakes .snowflake:nth-child(5) { left: 24%; animation-duration: 20s; animation-delay: -4s; font-size: 0.7rem; opacity: 0.85; }
.creator-snowflakes .snowflake:nth-child(6) { left: 30%; animation-duration: 15s; animation-delay: -8s; font-size: 1.1rem; opacity: 0.6; }
.creator-snowflakes .snowflake:nth-child(7) { left: 36%; animation-duration: 19s; animation-delay: -2s; font-size: 0.6rem; opacity: 0.9; }
.creator-snowflakes .snowflake:nth-child(8) { left: 42%; animation-duration: 17s; animation-delay: -5s; font-size: 0.95rem; opacity: 0.75; }
.creator-snowflakes .snowflake:nth-child(9) { left: 48%; animation-duration: 21s; animation-delay: -9s; font-size: 0.7rem; opacity: 0.8; }
.creator-snowflakes .snowflake:nth-child(10) { left: 54%; animation-duration: 13s; animation-delay: -11s; font-size: 1.05rem; opacity: 0.7; }
.creator-snowflakes .snowflake:nth-child(11) { left: 58%; animation-duration: 23s; animation-delay: 0s; font-size: 0.5rem; opacity: 0.95; }
.creator-snowflakes .snowflake:nth-child(12) { left: 63%; animation-duration: 16s; animation-delay: -7s; font-size: 0.85rem; opacity: 0.65; }
.creator-snowflakes .snowflake:nth-child(13) { left: 68%; animation-duration: 14s; animation-delay: -4s; font-size: 0.75rem; opacity: 0.88; }
.creator-snowflakes .snowflake:nth-child(14) { left: 73%; animation-duration: 20s; animation-delay: -2s; font-size: 1rem; opacity: 0.72; }
.creator-snowflakes .snowflake:nth-child(15) { left: 78%; animation-duration: 18s; animation-delay: -6s; font-size: 0.6rem; opacity: 0.92; }
.creator-snowflakes .snowflake:nth-child(16) { left: 82%; animation-duration: 12s; animation-delay: -10s; font-size: 0.9rem; opacity: 0.68; }
.creator-snowflakes .snowflake:nth-child(17) { left: 86%; animation-duration: 24s; animation-delay: -5s; font-size: 0.55rem; opacity: 0.9; }
.creator-snowflakes .snowflake:nth-child(18) { left: 90%; animation-duration: 15s; animation-delay: -8s; font-size: 0.8rem; opacity: 0.78; }
.creator-snowflakes .snowflake:nth-child(19) { left: 94%; animation-duration: 19s; animation-delay: -1s; font-size: 0.65rem; opacity: 0.87; }
.creator-snowflakes .snowflake:nth-child(20) { left: 4%; animation-duration: 21s; animation-delay: -12s; font-size: 0.95rem; opacity: 0.65; }
.creator-snowflakes .snowflake:nth-child(21) { left: 12%; animation-duration: 13s; animation-delay: -9s; font-size: 0.6rem; opacity: 0.93; }
.creator-snowflakes .snowflake:nth-child(22) { left: 28%; animation-duration: 17s; animation-delay: -3s; font-size: 0.85rem; opacity: 0.74; }
.creator-snowflakes .snowflake:nth-child(23) { left: 52%; animation-duration: 22s; animation-delay: -7s; font-size: 0.7rem; opacity: 0.82; }
.creator-snowflakes .snowflake:nth-child(24) { left: 66%; animation-duration: 11s; animation-delay: -13s; font-size: 1rem; opacity: 0.7; }
.creator-snowflakes .snowflake:nth-child(25) { left: 76%; animation-duration: 25s; animation-delay: -4s; font-size: 0.55rem; opacity: 0.88; }
.creator-snowflakes .snowflake:nth-child(26) { left: 88%; animation-duration: 16s; animation-delay: -6s; font-size: 0.75rem; opacity: 0.8; }
.creator-snowflakes .snowflake:nth-child(27) { left: 96%; animation-duration: 14s; animation-delay: -11s; font-size: 0.9rem; opacity: 0.68; }
.creator-snowflakes .snowflake:nth-child(28) { left: 38%; animation-duration: 20s; animation-delay: -8s; font-size: 0.65rem; opacity: 0.9; }
@keyframes snowrise {
    0% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-25vh) translateX(6px) rotate(90deg); }
    50% { transform: translateY(-50vh) translateX(-8px) rotate(180deg); }
    75% { transform: translateY(-75vh) translateX(5px) rotate(270deg); }
    100% { transform: translateY(-120vh) translateX(0) rotate(360deg); }
}

/* Светлая тема: кастомный профиль создателя — инверсия (снежинки чёрные, баннер и ава меняются визуально) */
:root[data-theme="light"] .creator-snowflakes .snowflake {
    color: rgba(0, 0, 0, 0.55);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

:root[data-theme="light"] .theme-creator .profile-cover.has-cover {
    filter: invert(1);
}

:root[data-theme="light"] .theme-creator .profile-avatar-big img {
    filter: invert(1);
}

:root[data-theme="light"] .theme-creator .profile-avatar-big {
    border-color: rgba(0, 0, 0, 0.18);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

:root[data-theme="light"] .theme-creator .profile-card {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(11, 18, 32, 0.08);
}

:root[data-theme="light"] .theme-creator .profile-section {
    border-color: rgba(0, 0, 0, 0.08);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.95));
}

:root[data-theme="light"] .theme-creator .profile-section h3 {
    color: var(--text-primary);
}

:root[data-theme="light"] .theme-creator .profile-cover:not(.has-cover) {
    background: linear-gradient(180deg, rgba(31, 123, 255, 0.08) 0%, rgba(10, 163, 154, 0.05) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Текст профиля создателя в светлой теме — везде читаемый тёмный */
:root[data-theme="light"] .theme-creator .profile-info h1,
:root[data-theme="light"] .theme-creator .profile-info .profile-status {
    color: var(--text-primary);
}

:root[data-theme="light"] .theme-creator .profile-role-badge {
    background: rgba(11, 18, 32, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(11, 18, 32, 0.18);
    box-shadow: 0 2px 12px rgba(11, 18, 32, 0.06);
}

:root[data-theme="light"] .theme-creator .profile-section,
:root[data-theme="light"] .theme-creator .profile-section p,
:root[data-theme="light"] .theme-creator .profile-section dd,
:root[data-theme="light"] .theme-creator .profile-section dt,
:root[data-theme="light"] .theme-creator .profile-section label,
:root[data-theme="light"] .theme-creator .profile-details-list,
:root[data-theme="light"] .theme-creator .profile-content-grid {
    color: var(--text-primary);
}

:root[data-theme="light"] .theme-creator .profile-section .text-muted,
:root[data-theme="light"] .theme-creator .profile-section [style*="color: var(--text-muted)"] {
    color: var(--text-muted) !important;
}

:root[data-theme="light"] .theme-creator .neo-button.outline {
    border-color: rgba(11, 18, 32, 0.25);
    color: var(--text-primary);
}

:root[data-theme="light"] .theme-creator .neo-button.outline:hover {
    background: rgba(11, 18, 32, 0.06);
    box-shadow: 0 4px 16px rgba(11, 18, 32, 0.08);
}

:root[data-theme="light"] .theme-creator .profile-mini-card,
:root[data-theme="light"] .theme-creator .profile-mini-title {
    color: var(--text-primary);
}

body.custom-theme-active {
    --page-bg: #0d0814;
    --surface-1: rgba(22, 14, 32, 0.96);
    --surface-2: rgba(32, 22, 48, 0.94);
    --surface-3: rgba(42, 28, 58, 0.9);
    --stroke-1: rgba(180, 140, 255, 0.2);
    --stroke-2: rgba(180, 140, 255, 0.3);
    --text-primary: #f0e6ff;
    --text-muted: rgba(200, 180, 255, 0.78);
    --accent-1: #c4a8ff;
    --accent-1-strong: #e0d0ff;
    --page-gradient: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(140, 80, 220, 0.15), transparent 55%);
}
body.custom-theme-active .nav-primary {
    background: #150d1e !important;
    border-color: var(--stroke-1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.custom-theme-stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}
.custom-theme-stars .star {
    position: absolute;
    color: rgba(200, 160, 255, 0.9);
    font-size: 1rem;
    text-shadow: 0 0 8px rgba(180, 120, 255, 0.8), 0 0 20px rgba(140, 80, 220, 0.5);
    animation: startwinkle 3s ease-in-out infinite;
    will-change: opacity, transform;
}
.custom-theme-stars .star:nth-child(1) { left: 3%; top: 10%; animation-delay: 0s; font-size: 0.5rem; }
.custom-theme-stars .star:nth-child(2) { left: 12%; top: 25%; animation-delay: 0.4s; font-size: 0.9rem; }
.custom-theme-stars .star:nth-child(3) { left: 22%; top: 8%; animation-delay: 0.8s; font-size: 0.6rem; }
.custom-theme-stars .star:nth-child(4) { left: 35%; top: 40%; animation-delay: 0.2s; font-size: 1rem; }
.custom-theme-stars .star:nth-child(5) { left: 48%; top: 15%; animation-delay: 0.6s; font-size: 0.55rem; }
.custom-theme-stars .star:nth-child(6) { left: 58%; top: 35%; animation-delay: 0.1s; font-size: 0.85rem; }
.custom-theme-stars .star:nth-child(7) { left: 68%; top: 5%; animation-delay: 0.5s; font-size: 0.7rem; }
.custom-theme-stars .star:nth-child(8) { left: 78%; top: 28%; animation-delay: 0.9s; font-size: 1.05rem; }
.custom-theme-stars .star:nth-child(9) { left: 88%; top: 18%; animation-delay: 0.3s; font-size: 0.6rem; }
.custom-theme-stars .star:nth-child(10) { left: 95%; top: 42%; animation-delay: 0.7s; font-size: 0.75rem; }
.custom-theme-stars .star:nth-child(11) { left: 5%; top: 55%; animation-delay: 0.25s; font-size: 0.9rem; }
.custom-theme-stars .star:nth-child(12) { left: 18%; top: 70%; animation-delay: 0.65s; font-size: 0.5rem; }
.custom-theme-stars .star:nth-child(13) { left: 28%; top: 60%; animation-delay: 0.15s; font-size: 0.8rem; }
.custom-theme-stars .star:nth-child(14) { left: 42%; top: 75%; animation-delay: 0.55s; font-size: 0.65rem; }
.custom-theme-stars .star:nth-child(15) { left: 55%; top: 65%; animation-delay: 0.95s; font-size: 1rem; }
.custom-theme-stars .star:nth-child(16) { left: 72%; top: 55%; animation-delay: 0.35s; font-size: 0.55rem; }
.custom-theme-stars .star:nth-child(17) { left: 82%; top: 72%; animation-delay: 0.75s; font-size: 0.85rem; }
.custom-theme-stars .star:nth-child(18) { left: 92%; top: 62%; animation-delay: 0.45s; font-size: 0.7rem; }
.custom-theme-stars .star:nth-child(19) { left: 8%; top: 82%; animation-delay: 0.5s; font-size: 0.6rem; }
.custom-theme-stars .star:nth-child(20) { left: 25%; top: 88%; animation-delay: 0.2s; font-size: 0.95rem; }
.custom-theme-stars .star:nth-child(21) { left: 38%; top: 92%; animation-delay: 0.8s; font-size: 0.5rem; }
.custom-theme-stars .star:nth-child(22) { left: 52%; top: 85%; animation-delay: 0.4s; font-size: 0.75rem; }
.custom-theme-stars .star:nth-child(23) { left: 65%; top: 90%; animation-delay: 0.6s; font-size: 0.65rem; }
.custom-theme-stars .star:nth-child(24) { left: 78%; top: 82%; animation-delay: 0.1s; font-size: 0.9rem; }
.custom-theme-stars .star:nth-child(25) { left: 15%; top: 45%; animation-delay: 0.7s; font-size: 0.7rem; }
.custom-theme-stars .star:nth-child(26) { left: 45%; top: 50%; animation-delay: 0.3s; font-size: 0.55rem; }
.custom-theme-stars .star:nth-child(27) { left: 62%; top: 22%; animation-delay: 0.85s; font-size: 0.8rem; }
.custom-theme-stars .star:nth-child(28) { left: 85%; top: 48%; animation-delay: 0.45s; font-size: 0.6rem; }
.custom-theme-stars .star:nth-child(29) { left: 7%; top: 32%; animation-delay: 0.6s; font-size: 0.85rem; }
.custom-theme-stars .star:nth-child(30) { left: 32%; top: 18%; animation-delay: 0.2s; font-size: 0.5rem; }
.custom-theme-stars .star:nth-child(31) { left: 50%; top: 38%; animation-delay: 0.9s; font-size: 0.75rem; }
.custom-theme-stars .star:nth-child(32) { left: 75%; top: 65%; animation-delay: 0.35s; font-size: 0.65rem; }
.custom-theme-stars .star:nth-child(33) { left: 42%; top: 12%; animation-delay: 0.55s; font-size: 0.9rem; }
.custom-theme-stars .star:nth-child(34) { left: 90%; top: 78%; animation-delay: 0.15s; font-size: 0.55rem; }
.custom-theme-stars .star:nth-child(35) { left: 2%; top: 68%; animation-delay: 0.75s; font-size: 0.8rem; }
.custom-theme-stars .star:nth-child(36) { left: 58%; top: 78%; animation-delay: 0.4s; font-size: 0.7rem; }
@keyframes startwinkle {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); }
}

.theme-custom-999 {
    --accent-color: #c4a8ff;
    --accent-glow: rgba(180, 120, 255, 0.5);
}
.theme-custom-999 .profile-cover {
    height: 250px;
    position: relative;
    background: linear-gradient(180deg, rgba(120, 60, 180, 0.35) 0%, rgba(80, 40, 120, 0.2) 50%, rgba(60, 30, 90, 0.12) 100%);
    border-bottom: 1px solid rgba(180, 140, 255, 0.2);
}
.theme-custom-999 .profile-cover.has-cover {
    background-color: rgba(15, 8, 22, 0.5);
    background-size: cover;
}
.theme-custom-999 .profile-cover.has-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(40, 20, 60, 0.6) 100%);
    pointer-events: none;
}
.theme-custom-999 .profile-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.theme-custom-999 .profile-avatar-big {
    border: 3px solid rgba(180, 140, 255, 0.5);
    color: #e0d0ff;
    box-shadow: 0 0 40px rgba(140, 80, 220, 0.25);
}
.theme-custom-999 .profile-role-badge {
    background: rgba(140, 80, 220, 0.25);
    color: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(180, 140, 255, 0.4);
    box-shadow: 0 0 20px rgba(140, 80, 220, 0.15);
}
.theme-custom-999 .public-sub .status-badge {
    background: rgba(140, 80, 220, 0.18);
    color: rgba(230, 210, 255, 0.95);
    border: 1px solid rgba(180, 140, 255, 0.3);
}
.theme-custom-999 .public-sub .status-badge:hover {
    background: rgba(140, 80, 220, 0.3);
    border-color: rgba(180, 140, 255, 0.5);
}
.theme-custom-999 .profile-card {
    border: 1px solid rgba(180, 140, 255, 0.25);
    box-shadow: 0 0 60px rgba(100, 60, 160, 0.15);
}
.theme-custom-999 .profile-section {
    border-color: rgba(180, 140, 255, 0.15);
    background: linear-gradient(145deg, rgba(80, 50, 120, 0.12), rgba(60, 35, 90, 0.08));
}
.theme-custom-999 .profile-section h3 {
    color: #e0d0ff;
    text-shadow: 0 0 20px rgba(140, 80, 220, 0.3);
}
.theme-custom-999 .neo-button.outline {
    border-color: rgba(180, 140, 255, 0.5);
    color: #e0d0ff;
}
.theme-custom-999 .neo-button.outline:hover {
    background: rgba(140, 80, 220, 0.15);
    box-shadow: 0 0 24px rgba(140, 80, 220, 0.2);
}
.theme-custom-999 .data-row .data-value { color: rgba(230, 210, 255, 0.95); }
.theme-custom-999 .data-row .data-label { color: rgba(200, 180, 255, 0.7); }