html {
    scrollbar-gutter: stable;
}

#telegramLoginContainer {
    min-height: 56px;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../assets/Montserrat.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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

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

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a1a1a;
    --bg-hover: #1f1f1f;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #6b6b6b;
    --border-color: #2a2a2a;
    --success: #10b981;
    --success-subtle: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-subtle: rgba(245, 158, 11, 0.1);
    --error: var(--accent-hover);
    
 
    --accent-primary: #dc2626;
    --accent-hover: #ef4444;
    --accent-dark: #991b1b;
    --accent-rgb: 220, 38, 38;
    --accent-glow: rgba(220, 38, 38, 0.5);
    --accent-subtle: rgba(220, 38, 38, 0.1);
    --accent-border: rgba(220, 38, 38, 0.3);
    --accent-glow-strong: rgba(220, 38, 38, 0.7);
    --accent-subtle-hover: rgba(220, 38, 38, 0.15);
    --accent-shadow: rgba(220, 38, 38, 0.4);
    
    
    --red-primary: var(--accent-primary);
    --red-hover: var(--accent-hover);
    --red-dark: var(--accent-dark);
}

.lxrd-orb,
.lxrd-bg-orbs > *,
.wheel-orb,
.btn-cursor-follower,
.lxrd-card-shine,
.lxrd-card-border,
.lxrd-stagger > *,
.modal-overlay,
.toast {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.lxrd-card,
.lxrd-stat,
.wheel-prize-liquid,
.lxrd-list > *,
.admin-tab,
.menu-item,
.notification-item,
.news-blog-card,
.news-update-version,
.project-card-modern,
.resource-card-liquid,
.faq-card-liquid,
.lessons-glass-card,
.tool-card {
    contain: layout style paint;
}

.sidebar,
.main-content,
#pageContainer,
.lxrd-page {
    contain: layout style;
}

.lxrd-grid,
.lxrd-list,
.news-blogs-list,
.news-updates-list,
.projects-grid-modern,
.resources-grid-items-liquid,
.faq-items-grid {
    contain: layout;
}

.lxrd-stagger > *:nth-child(n+15),
.lxrd-grid > *:nth-child(n+15),
.lxrd-list > *:nth-child(n+15) {
    content-visibility: auto;
    contain-intrinsic-size: 0 100px;
}

[data-theme="crimson"], :root {
    --accent-primary: #dc2626;
    --accent-hover: #ef4444;
    --accent-dark: #991b1b;
    --accent-rgb: 220, 38, 38;
    --accent-glow: rgba(220, 38, 38, 0.5);
    --accent-subtle: rgba(220, 38, 38, 0.1);
    --accent-border: rgba(220, 38, 38, 0.3);
    --accent-glow-strong: rgba(220, 38, 38, 0.7);
    --accent-subtle-hover: rgba(220, 38, 38, 0.15);
    --accent-shadow: rgba(220, 38, 38, 0.4);
}

[data-theme="violet"] {
    --accent-primary: #8b5cf6;
    --accent-hover: #a78bfa;
    --accent-dark: #6d28d9;
    --accent-rgb: 139, 92, 246;
    --accent-glow: rgba(139, 92, 246, 0.5);
    --accent-subtle: rgba(139, 92, 246, 0.1);
    --accent-border: rgba(139, 92, 246, 0.3);
    --accent-glow-strong: rgba(139, 92, 246, 0.7);
    --accent-subtle-hover: rgba(139, 92, 246, 0.15);
    --accent-shadow: rgba(139, 92, 246, 0.4);
}

[data-theme="emerald"] {
    --accent-primary: #10b981;
    --accent-hover: #34d399;
    --accent-dark: #059669;
    --accent-rgb: 16, 185, 129;
    --accent-glow: rgba(16, 185, 129, 0.5);
    --accent-subtle: rgba(16, 185, 129, 0.1);
    --accent-border: rgba(16, 185, 129, 0.3);
    --accent-glow-strong: rgba(16, 185, 129, 0.7);
    --accent-subtle-hover: rgba(16, 185, 129, 0.15);
    --accent-shadow: rgba(16, 185, 129, 0.4);
}

[data-theme="ocean"] {
    --accent-primary: #0ea5e9;
    --accent-hover: #38bdf8;
    --accent-dark: #0284c7;
    --accent-rgb: 14, 165, 233;
    --accent-glow: rgba(14, 165, 233, 0.5);
    --accent-subtle: rgba(14, 165, 233, 0.1);
    --accent-border: rgba(14, 165, 233, 0.3);
    --accent-glow-strong: rgba(14, 165, 233, 0.7);
    --accent-subtle-hover: rgba(14, 165, 233, 0.15);
    --accent-shadow: rgba(14, 165, 233, 0.4);
}

[data-theme="amber"] {
    --accent-primary: #f59e0b;
    --accent-hover: #fbbf24;
    --accent-dark: #d97706;
    --accent-rgb: 245, 158, 11;
    --accent-glow: rgba(245, 158, 11, 0.5);
    --accent-subtle: rgba(245, 158, 11, 0.1);
    --accent-border: rgba(245, 158, 11, 0.3);
    --accent-glow-strong: rgba(245, 158, 11, 0.7);
    --accent-subtle-hover: rgba(245, 158, 11, 0.15);
    --accent-shadow: rgba(245, 158, 11, 0.4);
}

[data-theme="rose"] {
    --accent-primary: #f43f5e;
    --accent-hover: #fb7185;
    --accent-dark: #e11d48;
    --accent-rgb: 244, 63, 94;
    --accent-glow: rgba(244, 63, 94, 0.5);
    --accent-subtle: rgba(244, 63, 94, 0.1);
    --accent-border: rgba(244, 63, 94, 0.3);
    --accent-glow-strong: rgba(244, 63, 94, 0.7);
    --accent-subtle-hover: rgba(244, 63, 94, 0.15);
    --accent-shadow: rgba(244, 63, 94, 0.4);
}

[data-theme="cyan"] {
    --accent-primary: #06b6d4;
    --accent-hover: #22d3ee;
    --accent-dark: #0891b2;
    --accent-rgb: 6, 182, 212;
    --accent-glow: rgba(6, 182, 212, 0.5);
    --accent-subtle: rgba(6, 182, 212, 0.1);
    --accent-border: rgba(6, 182, 212, 0.3);
    --accent-glow-strong: rgba(6, 182, 212, 0.7);
    --accent-subtle-hover: rgba(6, 182, 212, 0.15);
    --accent-shadow: rgba(6, 182, 212, 0.4);
}

[data-theme="lime"] {
    --accent-primary: #84cc16;
    --accent-hover: #a3e635;
    --accent-dark: #65a30d;
    --accent-rgb: 132, 204, 22;
    --accent-glow: rgba(132, 204, 22, 0.5);
    --accent-subtle: rgba(132, 204, 22, 0.1);
    --accent-border: rgba(132, 204, 22, 0.3);
    --accent-glow-strong: rgba(132, 204, 22, 0.7);
    --accent-subtle-hover: rgba(132, 204, 22, 0.15);
    --accent-shadow: rgba(132, 204, 22, 0.4);
}

select,
select option {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 12px 40px 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

select:hover {
    border-color: var(--accent-border);
}

select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

select option {
    padding: 12px 16px;
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

select option:hover,
select option:checked {
    background: var(--red-primary) !important;
    color: white !important;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle 400px at 15% 25%, var(--accent-subtle) 0%, transparent 50%),
        radial-gradient(circle 350px at 85% 75%, var(--accent-subtle) 0%, transparent 50%),
        radial-gradient(circle 300px at 50% 50%, var(--accent-subtle) 0%, transparent 50%),
        radial-gradient(circle 380px at 25% 80%, var(--accent-subtle) 0%, transparent 50%),
        radial-gradient(circle 320px at 75% 15%, var(--accent-subtle) 0%, transparent 50%),
        radial-gradient(circle 360px at 60% 60%, var(--accent-subtle) 0%, transparent 50%);
    filter: blur(120px);
    animation: floatingBalls 30s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

@keyframes floatingBalls {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.6;
    }
    16.66% {
        transform: translate3d(40px, -50px, 0) scale(1.15);
        opacity: 0.7;
    }
    33.33% {
        transform: translate(-30px, 45px) scale(0.95);
        opacity: 0.5;
    }
    50% {
        transform: translate(50px, 25px) scale(1.1);
        opacity: 0.65;
    }
    66.66% {
        transform: translate(-25px, -35px) scale(1.05);
        opacity: 0.7;
    }
    83.33% {
        transform: translate(35px, 40px) scale(0.98);
        opacity: 0.55;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 270px !important;
    height: 100vh;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.notifications-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.notifications-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    background: var(--accent-hover);
    border-radius: 9px;
    color: white;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

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

.notifications-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.notification-item.unread {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

.notification-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-secondary);
}

.notification-item.unread .notification-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.notification-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    word-break: break-word;
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    max-height: 380px;
}

.logo {
    font-family: 'Widock', sans-serif;
    font-size: 22px;
    font-weight: bold;
    background: linear-gradient(90deg, var(--red-primary), var(--red-hover), #ff6b6b, var(--red-primary));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: 1px;
    animation: logoGradient 4s ease infinite;
}

@keyframes logoGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.sidebar-menu {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
    list-style: none;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.menu-item:hover {
    background: var(--accent-subtle);
    color: var(--text-primary);
    transform: translateX(4px);
    border-color: var(--accent-border);
}

.menu-item:hover .menu-icon,
.menu-item:hover .icon {
    transform: scale(1.1);
    color: var(--accent-primary);
}

.menu-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-item.active {
    background: var(--accent-subtle);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow), inset 0 0 20px var(--accent-subtle);
}

.menu-item.active .menu-icon {
    animation: menuIconPulse 2s ease-in-out infinite;
}

@keyframes menuIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.menu-item-available {
    position: relative;
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.menu-item .icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item .label {
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}


.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-content {
    margin-left: 270px !important;
    min-height: 100vh;
    padding: 32px;
    position: relative;
}


.lxrd-embed-frame {
    flex: 1;
    min-height: 0;
    padding: 0;
    box-sizing: border-box;
}

.lxrd-embed-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.25);
}

.visualizer-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.visualizer-transition-card {
    position: absolute;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15), rgba(var(--accent-rgb), 0.05));
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 0 60px rgba(var(--accent-rgb), 0.3),
        0 0 120px rgba(var(--accent-rgb), 0.15),
        inset 0 0 60px rgba(var(--accent-rgb), 0.1);
    overflow: hidden;
}

.visualizer-transition-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(var(--accent-rgb), 0.2) 0%,
        transparent 50%,
        rgba(var(--accent-rgb), 0.1) 100%
    );
    animation: visualizerGlowPulse 1s ease-out;
}

.visualizer-transition-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(var(--accent-rgb), 0.4) 60deg,
        transparent 120deg
    );
    animation: visualizerSweep 1.2s ease-out;
}

.visualizer-transition-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.visualizer-transition-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-rgb), 0.2);
    border-radius: 20px;
    color: var(--accent-primary);
    animation: visualizerIconPulse 1s ease-out;
    box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.4);
}

.visualizer-transition-icon svg {
    width: 40px;
    height: 40px;
}

@keyframes visualizerGlowPulse {
    0% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

@keyframes visualizerSweep {
    0% {
        transform: rotate(0deg);
        opacity: 0;
    }
    40% {
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0;
    }
}

@keyframes visualizerIconPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    40% {
        transform: scale(1.3);
        opacity: 0.9;
    }
    70% {
        transform: scale(1.1);
        opacity: 0.6;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

.visualizer-transition-card.animating {
    animation: visualizerExpand 1s cubic-bezier(0.4, 0, 0.1, 1) forwards;
}

@keyframes visualizerExpand {
    0% {
        border-radius: 16px;
    }
    40% {
        border-radius: 12px;
    }
    100% {
        border-radius: 0;
    }
}

.lxrd-page--fullscreen.visualizer-enter {
    animation: visualizerPageEnter 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes visualizerPageEnter {
    0% {
        opacity: 0;
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.lxrd-embed-iframe.visualizer-iframe-enter {
    animation: visualizerIframeEnter 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
    opacity: 0;
}

@keyframes visualizerIframeEnter {
    0% {
        opacity: 0;
        transform: scale(0.98);
        filter: blur(10px);
    }
    60% {
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.visualizer-flash {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(var(--accent-rgb), 0.3), transparent 70%);
    z-index: 9998;
    pointer-events: none;
    animation: visualizerFlash 0.5s ease-out forwards;
}

@keyframes visualizerFlash {
    0% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.page {
    display: none;
    animation: fadeIn 0.4s ease;
}

.page.active {
    display: block;
}

#loginPage.hidden {
    display: none !important;
}

#loginPage.active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: var(--bg-primary) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.is-login .sidebar {
    display: none !important;
}

body.is-login .main-content {
    margin-left: 0 !important;
}

.login-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
}

.login-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
    top: -15%;
    left: -10%;
    animation: loginOrbFloat 12s ease-in-out infinite;
}

.login-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
    bottom: -10%;
    right: -5%;
    animation: loginOrbFloat 12s ease-in-out infinite -4s;
}

.login-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
    top: 40%;
    left: 60%;
    opacity: 0.4;
    animation: loginOrbFloat 12s ease-in-out infinite -8s;
}

@keyframes loginOrbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -20px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 30px) scale(0.95);
    }
    75% {
        transform: translate(-30px, -10px) scale(1.02);
    }
}

/* OTP Login Styles */
.otp-login-divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 8px 0;
    gap: 12px;
}

.otp-login-divider::before,
.otp-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.otp-login-divider span {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.otp-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.otp-login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.otp-modal-content {
    max-width: 420px;
    width: 90%;
}

.otp-instructions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.otp-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.otp-step-number {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
}

.otp-step-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 28px;
}

.otp-step-text code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--accent-primary);
}

.otp-bot-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.otp-bot-link:hover {
    text-decoration: underline;
}

.otp-input-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.otp-code-input {
    width: 180px;
    padding: 16px 20px;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.otp-code-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.2);
}

.otp-code-input::placeholder {
    color: var(--text-muted);
    letter-spacing: 8px;
}

.otp-submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
}

.otp-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 32px;
    position: relative;
}


body::after {
    content: none !important;
    display: none !important;
    animation: none !important;
    filter: none !important;
    opacity: 0 !important;
}

.lxrd-bg-orbs,
.lxrd-orb,
.profile-ambient,
.profile-ambient-orb,
.wheel-bg-orbs,
.resources-bg-orbs,
.faq-bg-orbs,
.lessons-bg-orbs,
.floating-elements,
.floating-shape {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}


.login-no-bg {
    background: transparent !important;
    z-index: 1;
    overflow: visible !important;
}

.login-no-bg::before,
.login-no-bg::after {
    display: none;
}

.login-glow-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    display: none;
}

body.is-login .login-glow-layer,
body.is-login #loginGlowLayer {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 0 !important;
}

.login-glow-layer .login-glow-bg {
    position: absolute;
    inset: 0;
    background: transparent;
}

.login-glow-layer .loader-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(var(--accent-rgb), 0.25) 0%, transparent 70%);
    opacity: 1;
}

.login-glow-layer .loader-orb {
    position: absolute !important;
    border-radius: 50% !important;
    filter: blur(100px) !important;
    opacity: 1 !important;
    display: block !important;
}

.login-glow-layer .orb-1 {
    width: 600px !important;
    height: 600px !important;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.7), transparent 70%) !important;
    top: -20% !important;
    left: -15% !important;
    animation: orbFloat 8s ease-in-out infinite !important;
}

.login-glow-layer .orb-2 {
    width: 500px !important;
    height: 500px !important;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.6), transparent 70%) !important;
    bottom: -15% !important;
    right: -10% !important;
    top: auto !important;
    left: auto !important;
    animation: orbFloat 8s ease-in-out infinite -3s !important;
}

.login-glow-layer .orb-3 {
    width: 400px !important;
    height: 400px !important;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.5), transparent 70%) !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    animation: orbFloat 8s ease-in-out infinite -5s !important;
}

body.is-login::after,
body.is-login .global-particles,
body.is-login #globalParticles {
    display: none !important;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    flex-shrink: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.login-demon-container {
    position: fixed;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    height: 420px;
    z-index: 999;
    pointer-events: none;
}

.login-demon-container canvas {
    width: 100%;
    height: 100%;
}

@media (max-width: 1400px) {
    .login-demon-container {
        right: 10%;
        width: 380px;
        height: 380px;
    }
}

@media (max-width: 1200px) {
    .login-demon-container {
        right: 5%;
        width: 320px;
        height: 320px;
    }
}

@media (max-width: 1000px) {
    .login-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .login-demon-container {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 280px;
        height: 280px;
        order: -1;
    }
}

@media (max-width: 600px) {
    .login-demon-container {
        width: 240px;
        height: 240px;
    }
}

@media (max-width: 400px) {
    .login-demon-container {
        width: 200px;
        height: 200px;
    }
}

.login-title {
    font-family: 'Widock', 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--red-primary), var(--red-hover), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

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

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

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.error-message {
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    border-radius: 8px;
    color: var(--error);
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-cursor-follower {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-border) 0%, var(--accent-subtle-hover) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity 0.3s ease;
    opacity: 0;
    z-index: 0;
    filter: blur(25px);
    box-shadow: 0 0 40px var(--accent-shadow);
    will-change: transform;
}

.btn:hover .btn-cursor-follower {
    opacity: 1;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px var(--accent-glow);
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-liked {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
    cursor: default;
}

.btn-liked:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    transform: none;
}

.btn-liked:disabled {
    opacity: 1;
}

.btn-primary:disabled:hover {
    transform: none;
    box-shadow: none;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--accent-border);
    border-top-color: var(--red-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--red-primary);
    border-radius: 8px;
    padding: 16px 20px;
    min-width: 300px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.warning {
    border-left-color: var(--warning);
}

.toast-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.toast-icon svg {
    width: 100%;
    height: 100%;
}

.toast-message {
    flex: 1;
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
}

.toast-close .icon-svg {
    width: 14px;
    height: 14px;
}

.toast-close svg {
    stroke: currentColor;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

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

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


.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.icon-picker-item {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.icon-picker-item .icon-svg {
    width: 20px;
    height: 20px;
    display: block;
}

.icon-picker-item:hover {
    background: rgba(var(--accent-rgb), 0.12);
    border-color: rgba(var(--accent-rgb), 0.35);
    transform: translateY(-1px);
}

.icon-picker-item.active {
    background: rgba(var(--accent-rgb), 0.18);
    border-color: rgba(var(--accent-rgb), 0.6);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

.icon-picker-item:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), 0.6);
    outline-offset: 2px;
}

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.95);
}

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

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}


.profile-page-v2 {
    position: relative;
    min-height: 100vh;
    padding: 0 0 40px 0;
}

.profile-ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    contain: layout style paint;
}

.profile-ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    will-change: transform, opacity;
    contain: layout style paint;
}

.profile-ambient-orb.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    top: -150px;
    right: 10%;

}

.profile-ambient-orb.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(180, 30, 30, 0.35), transparent 70%);
    bottom: 20%;
    left: -100px;

}

.profile-ambient-orb.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(248, 113, 113, 0.25), transparent 70%);
    top: 50%;
    right: -80px;

    animation-delay: -8s;
}


@keyframes profileOrbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(50px, -40px, 0) scale(1.15); }
    66% { transform: translate3d(-40px, 50px, 0) scale(0.9); }
}


.profile-hero-v2 {
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
}

.public-profile-page .profile-hero-v2 {
    margin-bottom: 100px;
}

.profile-banner-v2 {
    margin-left: 32px;
    margin-right: 32px;
    height: 320px;
    background: linear-gradient(135deg, var(--accent-glow-strong), var(--accent-dark));
    background-size: cover;
    background-position: center;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
}

.profile-not-found-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    gap: 16px;
}

.profile-not-found-v2 .not-found-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: 50%;
    color: var(--red-primary);
}

.profile-not-found-v2 h2 {
    font-size: 24px;
    color: white;
}

.profile-not-found-v2 p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.profile-banner-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(255,255,255,0.02) 20px,
            rgba(255,255,255,0.02) 40px
        );
}

.profile-banner-v2.has-image {
    background-size: cover;
    background-position: center;
}

.banner-overlay-v2 {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        transparent 60%,
        rgba(0,0,0,0.3) 100%
    );
}

.banner-noise {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.banner-actions-v2 {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 20;
}

.banner-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.banner-action-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-card-v2 {
    position: absolute;
    bottom: -60px;
    left: 32px;
    right: 32px;
    z-index: 30;
}

.profile-card-glass {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 20px 28px;
    background: rgba(10, 10, 15, 0.25);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.profile-card-glass.transparent {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: transparent;
    box-shadow: none;
}

.mobile-banner-bg {
    display: none;
}

.profile-hero-v2.card-transparent-mode {
    margin-bottom: 40px;
}

.profile-hero-v2.card-transparent-mode .profile-banner-v2 {
    height: 420px;
}

.profile-hero-v2.card-transparent-mode .profile-card-v2 {
    bottom: 20px;
}


.profile-avatar-section {
    flex-shrink: 0;
}

.avatar-container-v2 {
    position: relative;
    width: 120px;
    height: 120px;
}

.avatar-glow-v2 {
    position: absolute;
    inset: -15px;
    background: var(--theme-color, var(--accent-primary));
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.5;
    animation: avatarGlowPulse 3s ease-in-out infinite;
    will-change: transform, opacity;
    contain: layout style paint;
}

@keyframes avatarGlowPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.avatar-ring-v2 {
    position: absolute;
    inset: -4px;
    background: var(--theme-color, var(--accent-primary));
    border-radius: 50%;
    animation: avatarRingSpin 8s linear infinite;
    will-change: transform;
    contain: layout style paint;
}

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

.avatar-ring-v2::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: rgba(20, 20, 28, 1);
    border-radius: 50%;
}

.avatar-image-v2 {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-border), var(--accent-dark));
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: white;
    z-index: 2;
}

.avatar-edit-btn-v2 {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-color);
    border: 3px solid rgba(20, 20, 28, 1);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.avatar-edit-btn-v2:hover {
    transform: scale(1.15);
}

.profile-info-v2 {
    flex: 1;
    min-width: 0;
}

.profile-name-row-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.profile-name-v2 {
    font-family: 'Widock', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.5px;
}

.verified-badge-v2 {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-dark));
    border-radius: 50%;
    color: white;
}

.profile-username-v2 {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.profile-badges-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.mobile-profile-actions {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 50;
    align-items: center;
    gap: 8px;
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-action-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
}

.mobile-action-btn.logout {
    background: var(--accent-shadow);
    border-color: var(--accent-shadow);
}

.mobile-action-btn.logout:hover {
    background: var(--accent-glow-strong);
}

.rank-badge-v2 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.views-badge-v2 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}


.cyber-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    position: relative;
    z-index: 10;
    margin-bottom: 24px;
    margin-left: 32px;
    margin-right: 32px;
}

/* === CYBER CARD BASE === */
.cyber-bio-card,
.cyber-stats-card {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.5), rgba(var(--accent-rgb), 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    overflow: hidden;
}

.cyber-border-glow {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.cyber-border-glow.red {
    background: linear-gradient(135deg, var(--accent-glow), var(--accent-subtle), var(--accent-glow));
}

.cyber-card-inner {
    position: relative;
    z-index: 2;
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cyber-scanline {
    display: none;
}

.cyber-bio-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cyber-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cyber-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-primary);
    animation: dotPulse 1.5s ease-in-out infinite;
    will-change: opacity;
    contain: layout style paint;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.cyber-edit-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cyber-edit-btn:hover,
.cyber-edit-btn.active {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-subtle);
}

.cyber-bio-main {
    flex: 1;
    margin-bottom: 12px;
}

.cyber-bio-text {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    line-height: 1.6;
    font-family: inherit;
}

.cyber-placeholder {
    color: rgba(255,255,255,0.25);
    font-size: 13px;
}

.cyber-bio-editor {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cyber-bio-editor.hidden {
    display: none;
}

.cyber-textarea {
    width: 100%;
    min-height: 70px;
    padding: 10px 12px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(220,38,38,0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    outline: none;
}

.cyber-textarea:focus {
    border-color: var(--accent-border);
    box-shadow: 0 0 0 2px var(--accent-subtle), inset 0 0 20px var(--accent-subtle);
}

.cyber-textarea::placeholder {
    color: rgba(255,255,255,0.2);
    font-family: inherit;
}

.cyber-editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cyber-char {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
}

.cyber-btns {
    display: flex;
    gap: 6px;
}

.cyber-btn-cancel,
.cyber-btn-save {
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cyber-btn-cancel {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
}

.cyber-btn-cancel:hover {
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.cyber-btn-save {
    background: var(--accent-primary);
    border: none;
    color: #fff;
}

.cyber-btn-save:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 15px var(--accent-glow);
}

.cyber-bio-footer {
    display: flex;
    gap: 16px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.cyber-stat-mini {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}

.cyber-stat-mini .icon-svg {
    color: var(--accent-glow);
}

.cyber-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.cyber-logo-block {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.cyber-logo-text {
    font-size: 20px;
    font-weight: 900;
    color: var(--accent-primary);
    letter-spacing: 2px;
    text-shadow: 0 0 20px var(--accent-glow);
    font-family: 'Montserrat', sans-serif;
}

.cyber-stats-grid {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.cyber-stat-box {
    flex: 1;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.cyber-stats-grid:hover .cyber-stat-box {
    flex: 0.7;
}

.cyber-stats-grid:hover .cyber-stat-box:hover {
    flex: 1.6;
    background: linear-gradient(135deg, var(--accent-subtle-hover), var(--accent-subtle));
    border-color: var(--accent-glow);
    box-shadow: 0 0 25px var(--accent-glow);
}

.stat-box-value {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.cyber-stat-box:hover .stat-box-value {
    color: var(--accent-primary);
    text-shadow: 0 0 15px var(--accent-glow);
}

.stat-box-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 9px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
}

.stat-box-label .icon-svg {
    color: var(--accent-glow);
    flex-shrink: 0;
}

.stat-box-label span {
    display: inline-flex;
    align-items: center;
}

.stat-box-progress {
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.cyber-stat-box:hover .stat-box-progress {
    opacity: 1;
}

.stat-box-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-hover));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 0.8s ease;
}

.stat-box-ranks {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.stat-box-ranks .current-rank {
    color: var(--accent-glow);
}

.stat-box-ranks .next-rank {
    color: rgba(255,255,255,0.5);
}

@media (max-width: 900px) {
    .cyber-cards-row {
        grid-template-columns: 1fr;
    }
    
    .cyber-stats-card {
        max-width: none;
        margin: 0;
        width: 100%;
    }
}

@media (max-width: 500px) {
    .cyber-card-inner {
        padding: 10px;
    }
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.mini-stat .icon-svg {
    color: var(--accent-glow);
}


@keyframes chipPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.liquid-textarea {
    flex: 1;
    min-height: 80px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.liquid-textarea:focus {
    border-color: var(--accent-border);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 2px var(--accent-subtle);
}

.liquid-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-family: inherit;
}

.hidden {
    display: none !important;
}

@keyframes bioPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes bioScan {
    0% { top: 0; }
    100% { top: 100%; }
}

@keyframes eliteBorderFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

.logo-text {
    font-size: 22px;
    font-weight: 900;
    color: var(--accent-primary);
    letter-spacing: 4px;
    text-shadow: 
        0 0 20px var(--accent-glow),
        0 0 40px var(--accent-subtle);
    font-family: 'Montserrat', sans-serif;
}

@keyframes logoPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

@media (max-width: 600px) {
    
    .logo-text {
        font-size: 18px;
        letter-spacing: 3px;
    }
}

.profile-comments-v2 {
    position: relative;
    z-index: 10;
    margin-left: 32px;
    margin-right: 32px;
}

.comments-card-v2 {
    padding: 28px;
    background: rgba(10, 10, 15, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.comments-header-v2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.comments-header-v2 h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.comment-form-v2 {
    margin-bottom: 28px;
}

.comment-textarea-v2 {
    width: 100%;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: white;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

.comment-textarea-v2::placeholder {
    color: var(--text-muted);
    font-family: inherit;
}

.comment-textarea-v2:focus {
    outline: none;
    border-color: var(--red-primary);
    background: var(--accent-subtle);
    box-shadow: 0 0 0 4px var(--accent-subtle);
}

.comment-image-preview {
    position: relative;
    display: inline-block;
    margin: 12px 0;
}

.comment-image-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
}

.remove-image-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}

.remove-image-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

.comment-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
}

.comment-form-actions .comment-submit-v2 {
    margin-top: 0;
}

.comment-attach-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.comment-attach-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.comment-image {
    margin-top: 10px;
    max-width: 100%;
}

.comment-image img {
    max-width: 300px;
    max-height: 200px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.comment-image img:hover {
    transform: scale(1.02);
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.image-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.image-modal-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
}

.image-modal-content img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.comment-input-v2 {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.comment-input-v2:focus {
    outline: none;
    border-color: var(--red-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px var(--accent-border);
}

.comment-input-v2::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-family: inherit;
}

.comment-submit-v2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.comment-submit-v2:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px var(--accent-shadow);
}

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

.comment-item-v2 {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.comment-item-v2:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.comment-avatar-v2 {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.comment-avatar-v2:hover {
    transform: scale(1.1);
}

.comment-body-v2 {
    flex: 1;
    min-width: 0;
}

.comment-header-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.comment-author-v2 {
    font-weight: 600;
    font-size: 14px;
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.comment-author-v2:hover {
    color: var(--accent-primary);
}

.comment-date-v2 {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-text-v2 {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    word-break: break-word;
}

.comment-actions-v2 {
    display: flex;
    gap: 10px;
}

.comment-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-action-btn:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

.comment-action-btn.liked {
    color: #ef4444;
}

.comment-action-btn.liked .icon-svg {
    fill: currentColor;
}

.comment-action-btn.delete:hover {
    color: #ef4444;
}

.comments-empty-v2 {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 14px;
}

@keyframes settingsOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -35px) scale(1.1); }
    66% { transform: translate(-35px, 45px) scale(0.95); }
}

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

@keyframes settingsCardSlide {
    from {
        opacity: 0.5;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bg-option-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px 16px 20px;
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.6), rgba(20, 20, 30, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.bg-option-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--accent-subtle-hover), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bg-option-v2:hover::before {
    opacity: 1;
}

.bg-option-v2:hover {
    background: linear-gradient(145deg, rgba(40, 40, 50, 0.8), rgba(25, 25, 35, 0.9));
    border-color: var(--accent-shadow);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.bg-option-v2.active {
    background: linear-gradient(145deg, var(--accent-subtle-hover), var(--accent-subtle));
    border-color: var(--red-primary);
    box-shadow: 
        0 8px 30px var(--accent-border),
        inset 0 0 30px var(--accent-subtle);
}

.bg-option-v2.active::before {
    opacity: 1;
}

@keyframes particlePreview {
    0%, 100% { 
        transform: translateY(0); 
        filter: brightness(1);
    }
    50% { 
        transform: translateY(-5px); 
        filter: brightness(1.3);
    }
}

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

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

@keyframes matrixPreview {
    from { background-position: 0 0; }
    to { background-position: 0 100%; }
}

@keyframes matrixText {
    0% { content: '01'; }
    50% { content: '10'; }
}

@keyframes cyberPreviewScan {
    0% { background-position: 0 0; }
    100% { background-position: 10px 10px; }
}

@keyframes cyberPreviewLine {
    0%, 100% { top: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; }
}

@keyframes cyberPreviewBracket {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; box-shadow: 0 0 10px var(--accent-border); }
}

@keyframes settingsRingPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

.bg-option-compact {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    color: rgba(255, 255, 255, 0.5);
}

.bg-option-compact:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.bg-option-compact.active {
    border-color: var(--accent-primary);
    background: var(--accent-subtle-hover);
    color: var(--accent-primary);
}

.bg-preview-card {
    position: relative;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.bg-preview-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.bg-preview-card.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.theme-option {
    position: relative;
    height: 60px;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.theme-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--theme-color);
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

.theme-option:hover {
    border-color: var(--theme-color);
    transform: translateY(-2px);
}

.theme-option:hover::before {
    opacity: 0.25;
}

.theme-option.active {
    border-color: var(--theme-color);
    box-shadow: 0 0 20px color-mix(in srgb, var(--theme-color) 40%, transparent);
}

.theme-option.active::before {
    opacity: 0.3;
}

@keyframes themeRing {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 600px) {
    
    .theme-option {
        height: 55px;
    }
}

@keyframes cyberScanPrev {
    0% { top: 0; }
    100% { top: 100%; }
}

@keyframes matrixPrev {
    0% { top: -30px; opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { top: 100%; opacity: 0; }
}

@keyframes dashRingPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 0; }
}

/* Dashboard Stats */

.dash-comment-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.dash-comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 16px;
    text-decoration: none;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.dash-comment-avatar:hover {
    transform: scale(1.1);
}

.dash-comment-body {
    flex: 1;
    min-width: 0;
}

.dash-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.dash-comment-author {
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
}

.dash-comment-author:hover {
    color: var(--red-primary);
}

.dash-comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.dash-comment-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.dash-comment-actions {
    display: flex;
    gap: 12px;
}

.dash-empty-comments {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

/* Profile Styles */

@keyframes wave {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, -10px) rotate(2deg);
    }
    50% {
        transform: translate(-5px, 5px) rotate(-1deg);
    }
    75% {
        transform: translate(5px, -5px) rotate(1deg);
    }
}

.detail-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}

.mobile-menu-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 56px;
    height: 56px;
    background: var(--accent-primary);
    border: none;
    border-radius: 50%;
    z-index: 1003;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    color: white;
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

/* Mobile sidebar overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}


@media (max-width: 900px) {
   
    .sidebar {
        display: flex !important;
        visibility: visible !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 277px !important;
        height: 100% !important;
        z-index: 9999 !important;
        background: var(--bg-primary) !important;
        border-right: 1px solid var(--border-color) !important;
        flex-direction: column !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        pointer-events: none !important;
    }
    
    .sidebar.open {
        transform: translateX(0) !important;
        pointer-events: auto !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        bottom: 24px !important;
        left: 24px !important;
        z-index: 10000 !important;
        width: 56px !important;
        height: 56px !important;
        border-radius: 50% !important;
        background: var(--accent-primary, #dc2626) !important;
        border: none !important;
        cursor: pointer !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .mobile-menu-btn svg {
        width: 24px !important;
        height: 24px !important;
        stroke: white !important;
    }
    
    .mobile-overlay {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0,0,0,0.7) !important;
        z-index: 9998 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
        pointer-events: none !important;
    }
    
    body.sidebar-open .mobile-overlay {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .profile-page-v2,
    .resources-liquid-page,
    .wheel-liquid-page,
    .lessons-liquid-page {
        padding: 12px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    
    .resources-grid-items-liquid,
    .cyber-cards-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .cyber-stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .cyber-stat-box:last-child:nth-child(odd) {
        grid-column: span 2 !important;
    }
    
    
    .resources-tabs-liquid,
    .resources-subtabs-liquid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding-bottom: 8px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    
    .lxrd-tabs {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 0 8px !important;
        overflow: visible !important;
    }
    
    .lxrd-tab {
        flex: none !important;
        width: 100% !important;
        padding: 14px 16px !important;
    }
    
    
    .resources-tabs-liquid::-webkit-scrollbar,
    .resources-subtabs-liquid::-webkit-scrollbar {
        display: none !important;
    }
    
    
    .admin-tab,
    .resources-tab-liquid {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 10px 16px !important;
        font-size: 12px !important;
    }
    
    .lxrd-btn,
    .btn,
    button.wheel-spin-liquid {
        min-height: 44px !important;
        padding: 12px 16px !important;
        font-size: 13px !important;
    }
    
    .modal-actions,
    .banner-actions-v2 {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .banner-actions-v2 .banner-action-btn {
        padding: 8px 12px !important;
        font-size: 11px !important;
    }
    
    .banner-actions-v2 .banner-action-btn span:not(.icon-svg) {
        display: none !important;
    }
    
    .lxrd-card,
    .lxrd-card-content,
    .resource-card-liquid {
        padding: 12px !important;
    }
    
    .resource-card-title-liquid {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }
    
    .resource-card-icon-liquid {
        width: 36px !important;
        height: 36px !important;
    }
    
    .resource-card-icon-liquid .icon-svg {
        width: 24px !important;
        height: 24px !important;
    }
    
        .resource-card-action-liquid {
        padding: 8px 12px !important;
        font-size: 11px !important;
    }
    
    .lxrd-header {
        padding: 0 8px !important;
        margin-bottom: 12px !important;
    }
    
    .lxrd-header-glass {
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px 16px !important;
        gap: 12px !important;
    }
    
    .lxrd-filter-btns {
        margin-left: 0 !important;
        justify-content: center !important;
    }
    
    .lxrd-header-glass .lxrd-btn {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .lxrd-title {
        font-size: 20px !important;
    }
    
    .lxrd-subtitle {
        font-size: 12px !important;
    }
    
    .lxrd-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    input, select, textarea {
        font-size: 16px !important;
    }
    
    .lxrd-modal {
        width: calc(100% - 20px) !important;
        max-width: 100% !important;
        margin: 10px !important;
        max-height: 85vh;
    }
    
    .resources-tabs-liquid {
        flex-wrap: nowrap !important;
        overflow-x: visible !important;
        gap: 8px;
        padding-bottom: 4px;
    }
    
    .resources-subtabs-liquid {
        width: 100% !important;
        margin-top: 0 !important;
        overflow-x: visible !important;
    }
    
    .resources-tab-liquid {
        flex: 1 !important;
        white-space: nowrap;
        padding: 12px 16px;
        font-size: 13px;
        justify-content: center !important;
    }
    
    .subtabs-track-liquid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 8px !important;
        width: 100% !important;
    }
    
    .subtab-liquid {
        padding: 12px 16px !important;
        font-size: 13px !important;
        justify-content: center !important;
        border-radius: 10px !important;
    }
    
    .lxrd-tabs {
        flex-direction: column !important;
        padding: 0 8px !important;
        gap: 8px !important;
        overflow: visible !important;
    }
    
    .lxrd-tab {
        flex: none !important;
        width: 100% !important;
        padding: 12px 16px !important;
    }
    
    .lxrd-list-item {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    
    .admin-tab {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .tool-card {
        padding: 16px !important;
    }
    
    .wheel-liquid-page {
        padding: 8px !important;
        overflow-x: hidden !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    .wheel-layout-liquid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .wheel-main-liquid {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0 !important;
        overflow: hidden !important;
    }
    
    .wheel-card-liquid {
        padding: 16px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .wheel-stage-liquid {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        overflow: visible !important;
        margin-bottom: 20px !important;
    }
    
    .wheel-frame-liquid {
        width: calc(min(280px, 85vw)) !important;
        height: calc(min(280px, 85vw)) !important;
        margin: 0 auto !important;
        flex-shrink: 0 !important;
    }
    
    .wheel-frame-liquid #wheelCanvas {
        width: 100% !important;
        height: 100% !important;
    }
    
    .wheel-inner-liquid {
        width: 100% !important;
        height: 100% !important;
        position: relative !important;
        border-radius: 50% !important;
        overflow: visible !important;
    }
    
    .wheel-outer-ring-liquid {
        inset: -6px !important;
        border-width: 3px !important;
        border-radius: 50% !important;
    }
    
    .wheel-center-liquid {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 10 !important;
    }
    
    .wheel-center-inner {
        width: 45px !important;
        height: 45px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, var(--red-primary), var(--red-dark)) !important;
    }
    
    .wheel-center-inner .icon-svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .wheel-center-ring {
        position: absolute !important;
        inset: -6px !important;
        border: 2px solid var(--accent-shadow) !important;
        border-radius: 50% !important;
    }
    
    .wheel-pointer-liquid {
        top: -15px !important;
    }
    
    .wheel-pointer-arrow-liquid {
        border-left-width: 12px !important;
        border-right-width: 12px !important;
        border-top-width: 22px !important;
    }
    
    .wheel-ambient-liquid {
        width: 300px !important;
        height: 300px !important;
        opacity: 0.5 !important;
    }
    
    .wheel-segment-icon {
        width: 24px !important;
        height: 24px !important;
    }
    
    .wheel-segment-icon svg {
        width: 100% !important;
        height: 100% !important;
    }
    
    .wheel-spin-liquid {
        padding: 14px 24px !important;
        font-size: 14px !important;
        width: 100% !important;
        max-width: 280px !important;
    }
    
    .wheel-timer-liquid {
        flex-direction: column !important;
        text-align: center !important;
        padding: 12px !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 280px !important;
        box-sizing: border-box !important;
    }
    
    .wheel-timer-icon .icon-svg {
        width: 24px !important;
        height: 24px !important;
    }
    
    .wheel-timer-label {
        font-size: 11px !important;
    }
    
    .wheel-timer-value {
        font-size: 16px !important;
    }
    
    .wheel-prizes-liquid,
    .wheel-history-liquid {
        padding: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .wheel-prizes-header-liquid h3,
    .wheel-history-header-liquid h3 {
        font-size: 14px !important;
    }
    
    .wheel-prizes-grid-liquid {
        gap: 8px !important;
    }
    
    .wheel-prize-liquid {
        padding: 8px !important;
    }
    
    .wheel-prize-icon-liquid {
        width: 32px !important;
        height: 32px !important;
    }
    
    .wheel-prize-name-liquid {
        font-size: 12px !important;
    }
    
    .wheel-prize-chance-liquid {
        font-size: 10px !important;
    }
    
    .wheel-history-list-liquid {
        gap: 6px !important;
    }
    
    .wheel-history-item-liquid {
        padding: 8px !important;
    }
    
    .wheel-history-avatar-liquid {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }
    
    .wheel-result-liquid {
        padding: 20px !important;
        margin: 10px !important;
    }
    
    .wheel-result-icon-liquid .icon-svg {
        width: 48px !important;
        height: 48px !important;
    }
    
    .wheel-result-title-liquid {
        font-size: 20px !important;
    }
    
    .wheel-bg-orbs {
        display: none !important;
    }
    
    .resources-liquid-page {
        padding: 12px !important;
    }
    
    .resources-tabs-liquid {
        width: 100% !important;
        overflow-x: visible !important;
        justify-content: stretch !important;
        padding-bottom: 8px !important;
        gap: 6px !important;
        margin-bottom: 12px !important;
    }
    
    .resources-tab-liquid {
        flex: 1 !important;
        flex-shrink: 1 !important;
        padding: 12px 16px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .resources-subtabs-liquid {
        width: 100% !important;
        margin-top: 0 !important;
        margin-bottom: 12px !important;
    }
    
    .subtabs-track-liquid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 8px !important;
        width: 100% !important;
    }
    
    .subtab-liquid {
        padding: 12px 16px !important;
        font-size: 13px !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 10px !important;
    }
    
    .subtabs-slider-liquid {
        display: none !important;
    }
    
    .subtab-liquid {
        padding: 10px 12px !important;
        font-size: 12px !important;
        justify-content: center !important;
        border-radius: 8px !important;
    }
    
    .subtab-liquid.active {
        color: var(--text-primary) !important;
    }
    
    .resources-grid-liquid {
        gap: 10px !important;
    }
    
    .resources-grid-items-liquid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .resource-card-liquid {
        padding: 10px !important;
    }
    
    .resource-card-icon-liquid {
        width: 36px !important;
        height: 36px !important;
        margin-bottom: 6px !important;
    }
    
    .resource-card-icon-liquid .icon-svg {
        width: 24px !important;
        height: 24px !important;
    }
    
    .resource-card-title-liquid {
        font-size: 12px !important;
        margin-bottom: 4px !important;
    }
    
    .resource-card-rank-liquid {
        font-size: 9px !important;
        padding: 2px 6px !important;
        margin-bottom: 6px !important;
    }
    
    .resource-card-action-liquid {
        font-size: 10px !important;
        padding: 5px 10px !important;
    }
    
    .resources-bg-orbs {
        display: none !important;
    }
    
    .cyber-stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        flex-direction: unset !important;
        gap: 8px !important;
    }
    
    .cyber-stat-box:last-child {
        grid-column: span 2 !important;
    }
    
    .cyber-stats-grid:hover .cyber-stat-box {
        flex: unset !important;
    }
    
    .lessons-liquid-page {
        padding: 12px !important;
    }
    
    .admin-tab {
        padding: 8px 12px !important;
        font-size: 11px !important;
        flex-shrink: 0 !important;
    }
    
    .notifications-panel {
        width: 100% !important;
        right: -100% !important;
        left: auto !important;
        border-left: none !important;
        transition: right 0.3s ease, visibility 0s ease 0.3s !important;
    }
    
    .notifications-panel.active {
        right: 0 !important;
        transition: right 0.3s ease, visibility 0s ease 0s !important;
    }
    
    .notifications-header {
        padding: 16px !important;
    }
    
    .notifications-header h3 {
        font-size: 16px !important;
    }
    
    .notifications-list {
        padding: 12px !important;
    }
    
    .notification-item {
        padding: 12px !important;
    }
    
    .notifications-footer {
        padding: 12px !important;
        flex-direction: column !important;
    }
    
    .notifications-footer .btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    .lxrd-toolbar {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: stretch !important;
    }
    
    .lxrd-toolbar .lxrd-btn {
        margin-left: 0 !important;
    }
}

@media (max-width: 400px) {
    .main-content {
        padding: 6px !important;
    }
    
    .lxrd-card,
    .lxrd-card-content {
        padding: 8px !important;
    }
    
    
    .cyber-stat-box {
        padding: 8px !important;
    }
    
    .stat-box-value {
        font-size: 18px !important;
    }
    
    .stat-box-label {
        font-size: 8px !important;
    }
    
    .lxrd-title {
        font-size: 16px !important;
    }
    
    .lxrd-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .resources-grid-items-liquid {
        gap: 6px !important;
    }
    
    .resource-card-liquid {
        padding: 8px !important;
    }
    
    .resource-card-title-liquid {
        font-size: 11px !important;
    }
    
    .resource-card-icon-liquid {
        width: 30px !important;
        height: 30px !important;
    }
    
    .resource-card-icon-liquid .icon-svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .profile-page-v2,
    .public-profile-page {
        padding: 0 !important;
    }
    
    .profile-hero-v2,
    .public-profile-page .profile-hero-v2,
    .profile-hero-v2.card-transparent-mode {
        margin-bottom: 12px !important;
    }
    
    .profile-banner-v2,
    .profile-hero-v2.card-transparent-mode .profile-banner-v2 {
        display: block !important;
        height: 100px !important;
        margin-left: 8px !important;
        margin-right: 8px !important;
        border-radius: 12px !important;
    }
    
    .profile-page-v2 .profile-banner-v2,
    .public-profile-page .profile-banner-v2,
    .profile-page-v2 .profile-hero-v2.card-transparent-mode .profile-banner-v2,
    .public-profile-page .profile-hero-v2.card-transparent-mode .profile-banner-v2 {
        display: none !important;
    }
    
    .mobile-profile-actions {
        display: flex !important;
    }
    
    .banner-noise {
        opacity: 0.05 !important;
    }
    
    .profile-card-v2,
    .profile-hero-v2.card-transparent-mode .profile-card-v2 {
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        margin: 8px !important;
        width: auto !important;
    }
    
    .profile-card-glass,
    .profile-card-glass.transparent {
        flex-direction: column !important;
        text-align: center !important;
        padding: 14px 10px !important;
        gap: 6px !important;
        background: rgba(10, 10, 15, 0.85) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        position: relative !important;
        overflow: hidden !important;
        border-radius: 14px !important;
    }
    
    .mobile-banner-bg {
        display: block !important;
        position: absolute !important;
        inset: 0 !important;
        background-size: cover !important;
        background-position: center !important;
        z-index: 0 !important;
    }
    
    .mobile-banner-bg::after {
        content: '' !important;
        position: absolute !important;
        inset: 0 !important;
        background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 15, 0.7) 100%) !important;
    }
    
    .profile-card-glass .profile-avatar-section,
    .profile-card-glass .profile-info-v2 {
        position: relative !important;
        z-index: 2 !important;
    }
    
    .profile-avatar-section {
        display: flex !important;
        justify-content: center !important;
    }
    
    .avatar-container-v2 {
        width: 50px !important;
        height: 50px !important;
    }
    
    .avatar-image-v2 {
        width: 100% !important;
        height: 100% !important;
        font-size: 18px !important;
    }
    
    .avatar-ring-v2 {
        top: -3px !important;
        left: -3px !important;
        right: -3px !important;
        bottom: -3px !important;
        width: auto !important;
        height: auto !important;
    }
    
    .avatar-glow-v2 {
        display: none !important;
    }
    
    .profile-info-v2 {
        width: 100% !important;
    }
    
    .profile-name-v2 {
        font-size: 14px !important;
    }
    
    .profile-username-v2 {
        font-size: 10px !important;
    }
    
    .profile-name-row-v2 {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
    }
    
    .profile-badges-v2 {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 3px !important;
    }
    
    .rank-badge-v2,
    .views-badge-v2 {
        padding: 3px 6px !important;
        font-size: 8px !important;
    }
    
    .verified-badge-v2 {
        width: 12px !important;
        height: 12px !important;
    }
    
    .cyber-cards-row {
        flex-direction: column !important;
        gap: 6px !important;
        padding: 0 !important;
        margin: 6px !important;
        margin-top: 10px !important;
    }
    
    .cyber-stats-card,
    .cyber-bio-card {
        width: 100% !important;
        max-width: none !important;
    }
    
    .cyber-card-inner {
        padding: 8px !important;
    }
    
    .cyber-stats-header {
        margin-bottom: 6px !important;
    }
    
    .cyber-logo-text {
        font-size: 12px !important;
    }
    
    .cyber-bio-top {
        margin-bottom: 8px !important;
        gap: 6px !important;
    }
    
    .cyber-badge {
        padding: 3px 8px !important;
        font-size: 8px !important;
        gap: 5px !important;
    }
    
    .cyber-badge-dot {
        width: 5px !important;
        height: 5px !important;
    }
    
    .cyber-edit-btn {
        width: 24px !important;
        height: 24px !important;
    }
    
    .cyber-bio-text {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }
    
    .cyber-placeholder {
        font-size: 11px !important;
    }
    
    .cyber-bio-footer {
        padding-top: 8px !important;
        gap: 12px !important;
    }
    
    .cyber-stat-mini {
        font-size: 10px !important;
        gap: 4px !important;
    }
    
    .stat-box-value {
        font-size: 18px !important;
    }
    
    .stat-box-label {
        font-size: 8px !important;
    }
    
    .cyber-stat-box {
        padding: 8px !important;
    }
    
    .cyber-btn-cancel,
    .cyber-btn-save {
        padding: 4px 10px !important;
        font-size: 9px !important;
    }
    
    .cyber-textarea {
        min-height: 50px !important;
        padding: 8px 10px !important;
        font-size: 11px !important;
    }
    
    .cyber-char {
        font-size: 9px !important;
    }
    
    .profile-comments-v2 {
        margin: 6px !important;
        margin-top: 10px !important;
    }
    
    .dash-comment-item {
        padding: 10px !important;
        gap: 10px !important;
    }
    
    .dash-comment-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }
    
    .dash-comment-author {
        font-size: 12px !important;
    }
    
    .dash-comment-text {
        font-size: 11px !important;
    }
    
    .comment-form-v2 {
        margin-bottom: 16px !important;
    }
    
    .comment-input-v2 {
        padding: 8px 10px !important;
        font-size: 11px !important;
        min-height: 35px !important;
    }
    
    .comment-submit-v2 {
        padding: 6px 12px !important;
        font-size: 10px !important;
    }
    
    .comment-form-actions {
        margin-top: 8px !important;
    }
    
    .banner-actions-v2 {
        top: 6px !important;
        right: 6px !important;
        gap: 6px !important;
    }
    
    .banner-action-btn {
        padding: 8px 10px !important;
        font-size: 10px !important;
        border-radius: 10px !important;
        background: rgba(0, 0, 0, 0.6) !important;
    }
    
    .banner-action-btn.logout {
        background: var(--accent-shadow) !important;
    }
    
    .banner-action-btn span:last-child {
        display: none !important;
    }
    
    .banner-action-btn .icon-svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .profile-ambient,
    .floating-elements,
    .floating-shape,
    .floating-diamond,
    .floating-cross {
        display: none !important;
    }
}

.btn-icon {
    margin-right: 8px;
    font-size: 18px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 24px;
    text-align: center;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

@keyframes stepSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50px) scale(0.95);
    }
    50% {
        opacity: 0.7;
        transform: translateX(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes stepNumberPulse {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
        box-shadow: 0 0 0 0 var(--accent-shadow);
    }
    50% {
        transform: scale(1.3) rotate(0deg);
        box-shadow: 0 0 20px 8px var(--accent-glow);
    }
    70% {
        transform: scale(0.95) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
    }
}

.empty-state {
    text-align: center;
    padding: 40px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-text {
    color: var(--text-secondary);
}

@keyframes waveExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        box-shadow: 0 0 0 0 var(--accent-glow-strong);
    }
    30% {
        opacity: 0.9;
        box-shadow: 0 0 0 30px var(--accent-glow);
    }
    60% {
        opacity: 0.6;
        box-shadow: 0 0 0 80px var(--accent-border);
    }
    100% {
        width: 600px;
        height: 600px;
        opacity: 0;
        box-shadow: 0 0 0 120px rgba(var(--accent-rgb), 0);
    }
}

.rank-option {
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    background: var(--bg-tertiary);
}

.rank-option:hover {
    border-color: var(--red-primary);
    background: var(--accent-subtle);
    transform: translateX(4px);
    box-shadow: 0 4px 12px var(--accent-border);
}

.rank-option.selected {
    border-color: var(--red-primary);
    background: linear-gradient(90deg, var(--accent-border), var(--accent-subtle));
    box-shadow: 0 0 0 3px var(--accent-subtle-hover), 0 4px 16px var(--accent-border);
}

.empty-text {
    font-size: 16px;
    color: var(--text-secondary);
}

.access-denied-content {
    text-align: center;
}

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

@keyframes cooldownPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.9; }
}

@keyframes quizParticleFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.2; }
    50% { transform: translateY(-50px) translateX(20px); opacity: 0.5; }
}

@keyframes hourglassFlip {
    0%, 40% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    90%, 100% { transform: rotate(180deg); }
}

@keyframes cooldownRingSpin {
    from { transform: rotate(0deg); border-color: var(--accent-border); }
    50% { border-color: var(--accent-glow); }
    to { transform: rotate(360deg); border-color: var(--accent-border); }
}

.tool-card {
    background: rgba(20, 20, 25, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: inherit;
    display: block;
}

.tool-card:hover {
    transform: translateY(-6px);
    border-color: var(--red-primary);
    box-shadow: 0 12px 30px var(--accent-border);
    background: var(--bg-tertiary);
}

.tool-card:active {
    transform: translateY(-6px) scale(0.98);
}

@keyframes tabContentExit {
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
}

@keyframes tabContentEnter {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toolCardEnter {
    from {
        transform: translateX(-20px);
    }
}

.ai-linguistic-block {
    background: rgba(255,255,255,0.02);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.06);
}

.ai-linguistic-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-linguistic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ai-linguistic-item {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 14px;
}

.ai-linguistic-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.ai-linguistic-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.ai-metric-number {
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.ai-metric-label {
    font-size: 10px;
    color: var(--text-muted);
}

.ai-linguistic-note {
    margin-top: 12px;
    padding: 10px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 768px) {
    
    .ai-linguistic-block {
        padding: 16px;
    }
    
    .ai-linguistic-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .ai-linguistic-item {
        padding: 12px;
    }
    
    .ai-linguistic-label {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .ai-metric-number {
        font-size: 20px;
    }
    
    .ai-metric-label {
        font-size: 11px;
    }
    
    .ai-linguistic-note {
        padding: 10px;
        font-size: 11px;
    }
}

.tools-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
}

.tools-modal {
    background: rgba(20, 20, 25, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
}

.tools-modal-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.tools-modal-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

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

@keyframes toolsOrbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    25% { transform: translate3d(30px, -30px, 0) scale(1.05); }
    50% { transform: translate3d(-20px, 20px, 0) scale(0.95); }
    75% { transform: translate3d(20px, 30px, 0) scale(1.02); }
}

/* Hero Section - matching other tabs */

@keyframes toolsRingPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes toolCardAppear {
    from {
        transform: translateY(20px) scale(0.95);
    }
}

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

.particle.p1 { left: 20%; bottom: 0; animation-delay: 0s; }
.particle.p2 { left: 40%; bottom: 0; animation-delay: 0.1s; }
.particle.p3 { left: 60%; bottom: 0; animation-delay: 0.2s; }

@keyframes particleFloat {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-60px); opacity: 0; }
}

@keyframes modalOverlayIn {
    from { opacity: 0; }
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

/* Resources Tabs */

@keyframes subtabIconPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ========== ADMIN CYBER PANEL ========== */

@keyframes adminScan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes hexPulse {
    0%, 100% { box-shadow: 0 0 10px var(--accent-border); }
    50% { box-shadow: 0 0 25px var(--accent-glow); }
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.admin-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.admin-loading p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--accent-glow-strong);
    letter-spacing: 1px;
}

.profile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    gap: 20px;
}

.profile-loading p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

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

/* Cyber Cards */

.admin-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.admin-tab:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.admin-tab.active {
    color: var(--red-primary);
    background: var(--accent-subtle);
}

.admin-tab.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red-primary);
    border-radius: 2px 2px 0 0;
}

/* Dashboard */

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Users Management */

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.user-avatar-small {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-primary), var(--red-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-primary);
    font-size: 18px;
}

.user-id {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-icon {
    font-size: 16px;
}

/* Pagination */

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.detail-value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

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

.warning-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--warning);
    border-radius: 8px;
    padding: 12px;
}

.warning-reason {
    color: var(--text-primary);
    margin-bottom: 4px;
}

.warning-date {
    font-size: 12px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-text {
    font-size: 16px;
    color: var(--text-secondary);
}


.icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.icon-svg svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    color: inherit;
}

.icon-svg[data-icon="files"] svg {
    stroke-width: 2 !important;
}

.menu-section {
    margin-top: 16px;
    margin-bottom: 8px;
    padding: 0 12px;
}

.menu-section:first-child {
    margin-top: 0;
}

.menu-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding: 8px 4px;
}

.notifications-bell {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent-primary), rgba(140, 20, 20, 0.95));
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 40px var(--accent-shadow),
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.1),
        inset 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible;
}

.notifications-bell::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--accent-shadow);
    animation: bellRingOuter 3s ease-out infinite;
}

.notifications-bell::after {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 1px solid var(--accent-border);
    animation: bellRingOuter 3s ease-out infinite 0.5s;
}

@keyframes bellRingOuter {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

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

.notifications-bell:hover {
    transform: translateY(-6px) scale(1.1);
    box-shadow: 
        0 0 60px var(--accent-glow),
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.15),
        inset 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.notifications-bell:hover::before,
.notifications-bell:hover::after {
    animation-duration: 1.5s;
}

.notifications-bell:active {
    transform: translateY(-3px) scale(1.05);
}

.notifications-bell .icon-svg {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: bellIconFloat 3s ease-in-out infinite;
}

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

.notifications-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ff3b3b, #ff6b6b);
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 0 15px rgba(255, 59, 59, 0.6),
        0 4px 10px rgba(0, 0, 0, 0.3);
    animation: badgePulseGlow 2s ease-in-out infinite;
    z-index: 3;
}

@keyframes badgePulseGlow {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 15px rgba(255, 59, 59, 0.6), 0 4px 10px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 25px rgba(255, 59, 59, 0.8), 0 4px 15px rgba(0, 0, 0, 0.3);
    }
}

.notifications-panel {
    position: fixed;
    top: 0;
    right: -400px;
    left: auto;
    width: 400px;
    height: 100vh;
    background: var(--bg-tertiary);
    border-left: 1px solid var(--border-color);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease, visibility 0s ease 0.3s;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
    visibility: hidden;
}

.notifications-panel.active {
    right: 0;
    visibility: visible;
    transition: right 0.3s ease, visibility 0s ease 0s;
}

.notifications-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
}

.notifications-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.notifications-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.notification-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-item:hover {
    border-color: var(--red-primary);
    transform: translateX(-4px);
}

.notification-item.read {
    opacity: 0.6;
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 4px;
}

.notification-message {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.notification-date {
    font-size: 11px;
    color: var(--text-muted);
}

.notification-delete {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.notification-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.notification-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--accent-border), var(--accent-subtle));
    border: 1px solid var(--accent-border);
    border-radius: 8px;
    color: var(--accent-hover);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

button.notification-action-btn {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.notification-action-btn:hover {
    background: linear-gradient(135deg, var(--accent-border), var(--accent-border));
    border-color: var(--accent-glow);
    transform: translateY(-1px);
}

.notifications-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.notifications-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.notifications-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.notifications-footer .btn {
    flex: 1;
    padding: 12px 16px;
    background: var(--accent-subtle-hover);
    border: 1px solid var(--accent-border);
    border-radius: 10px;
    color: var(--accent-hover);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notifications-footer .btn:hover {
    background: var(--accent-border);
    border-color: var(--accent-glow);
}

.notifications-close {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    width: 36px !important;
    height: 36px !important;
    transition: all 0.3s ease !important;
}

.notifications-close:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: var(--accent-hover) !important;
}

.spinner-small {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--red-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.copyable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.copyable:hover {
    color: var(--red-primary);
}

.profile-views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
}

.profile-views .icon-svg {
    display: flex;
    align-items: center;
}

.profile-views {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 13px;
}

.not-found-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #0fa874;
}

/* Modal Improvements */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.modal-large {
    max-width: 700px;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-actions {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.profile-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

@keyframes pageEnter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
    animation-fill-mode: both;
}

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

.animate-scale-in {
    animation: scaleIn 0.3s ease forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 10001;
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.access-denied-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    gap: 16px;
}

.access-denied-container h2 {
    font-size: 24px;
    color: var(--error);
}

.access-denied-container p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.admin-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.admin-action-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.admin-action-btn.warning:hover {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.detail-label {
    color: var(--text-muted);
}

.detail-value {
    font-weight: 500;
}

.mini-log-time {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 11px;
}

.mini-log-action {
    color: var(--text-secondary);
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.admin-tab.active {
    background: var(--red-primary);
    color: white;
    border-color: var(--red-primary);
}

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

.admin-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.admin-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.admin-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-card-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-card-body {
    padding: 24px;
}

.mini-activity-log {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 4px;
}

.mini-activity-log::-webkit-scrollbar {
    width: 4px;
}

.mini-activity-log::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.mini-activity-log::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.activity-header-icon {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 14px;
    color: #10b981;
}

.activity-header-pulse {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    border: 2px solid #10b981;
    animation: activityPulse 2s ease-in-out infinite;
    opacity: 0;
}

@keyframes activityPulse {
    0%, 100% { transform: scale(1); opacity: 0; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.admin-action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-1px);
}

.admin-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
    animation: activityItemIn 0.3s ease backwards;
}

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

.activity-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

.activity-item-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.activity-item-icon.green {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.activity-item-icon.red {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.activity-item-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.activity-item-icon.yellow {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.activity-item-icon.purple {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.activity-item-icon.gray {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}

.activity-item-content {
    flex: 1;
    min-width: 0;
}

.activity-item-action {
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.activity-item-user {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-item-time {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.activity-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 16px;
    color: var(--text-muted);
    font-size: 13px;
}

.activity-empty.error {
    color: #ef4444;
}

.activity-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    color: var(--text-muted);
    font-size: 13px;
}

.lxrd-spinner-sm {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: lxrdSpin 0.8s linear infinite;
}

.mini-log {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 13px;
}

.mini-log-time {
    color: var(--text-muted);
    font-size: 11px;
    min-width: 70px;
}

.mini-log-user {
    color: var(--red-primary);
    font-weight: 500;
}

.mini-log-action {
    color: var(--text-secondary);
}

.rank-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rank-stat-card-v2 {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.rank-stat-card-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--rank-color) 18%, transparent), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.rank-stat-card-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rank-stat-name-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-primary);
}

.rank-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rank-color);
    box-shadow: 0 0 12px color-mix(in srgb, var(--rank-color) 55%, transparent);
    flex-shrink: 0;
}

.rank-stat-count-v2 {
    position: relative;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.rank-stat-desc-v2 {
    position: relative;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.35;
}

@media (max-width: 720px) {
    .rank-stats-grid {
        grid-template-columns: 1fr;
    }
}

.rank-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.rank-stat-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--width);
    background: var(--color);
    opacity: 0.15;
    border-radius: 8px;
    transition: width 0.5s ease;
}

.rank-stat-name {
    position: relative;
    flex: 1;
    padding: 12px 16px;
    font-weight: 500;
}

.rank-stat-count {
    position: relative;
    padding-right: 16px;
    color: var(--text-muted);
}

.admin-table-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    padding: 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: var(--bg-hover);
}

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

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
}

.user-avatar-small.admin {
    border: 2px solid var(--red-primary);
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info-cell {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
}

.user-id {
    font-size: 11px;
    color: var(--text-muted);
}

.rank-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.device-cell {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.screen-info {
    font-size: 11px;
    color: var(--text-muted);
}

.action-buttons {
    display: flex;
    gap: 6px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-warning { color: var(--warning); }
.text-success { color: var(--success); }
.text-danger { color: var(--error); }

.log-time {
    font-size: 12px;
    font-family: monospace;
    color: var(--text-muted);
}

.logs-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.logs-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logs-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lxrd-select {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.lxrd-select:focus {
    outline: none;
    border-color: var(--red-primary);
}

.logs-list {
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.logs-list::-webkit-scrollbar {
    width: 10px;
}

.logs-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.logs-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.14);
}

.logs-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    gap: 12px;
}

.log-item-v2 {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.log-item-v2:last-child {
    border-bottom: none;
}

.log-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.log-main {
    flex: 1;
    min-width: 0;
}

.log-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.log-user-v2 {
    font-weight: 600;
    color: var(--red-primary);
    cursor: pointer;
}

.log-action-v2 {
    color: var(--text-primary);
}

.log-details-v2 {
    color: var(--text-muted);
    font-size: 13px;
}

.log-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.log-page-v2 {
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.log-device-v2 {
    opacity: 0.7;
}

.log-time-v2 {
    font-size: 12px;
    font-family: monospace;
    color: var(--text-muted);
    white-space: nowrap;
}

.log-action {
    color: var(--text-secondary);
}

.admin-stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.mini-stat {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.5), rgba(var(--accent-rgb), 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px 32px;
    text-align: center;
}

.mini-stat-value {
    font-size: 28px;
    font-weight: 700;
    display: block;
}

.mini-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.modal-xlarge {
    max-width: 900px;
    width: 95%;
}

.modal-medium {
    max-width: 600px;
    width: 95%;
}

.user-details-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
}

.user-details-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-profile-card {
    text-align: center;
}

.user-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 600;
    margin: 0 auto 16px;
    overflow: hidden;
}

.user-avatar-large.admin {
    border: 3px solid var(--red-primary);
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-stats-mini {
    display: flex;
    gap: 8px;
}

.stat-mini {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    background: var(--bg-tertiary);
    border-radius: 10px;
}

.stat-mini-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.stat-mini-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.user-details-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.details-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.detail-item.full {
    grid-column: span 2;
}

.detail-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.detail-value {
    font-weight: 500;
}

.detail-value.small {
    font-size: 11px;
    font-family: monospace;
    word-break: break-all;
}

.bio-text {
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    line-height: 1.6;
}

.warnings-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.warning-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--warning);
    border-radius: 0 8px 8px 0;
}

.warning-reason {
    font-size: 13px;
}

.warning-date {
    font-size: 11px;
    color: var(--text-muted);
}

.user-logs-list {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.user-log-item {
    display: flex;
    gap: 12px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 12px;
}

.user-log-item .log-time {
    min-width: 80px;
}

.rank-selector {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.rank-option {
    flex: 1;
    padding: 16px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rank-option:hover {
    border-color: var(--red-primary);
}

.rank-option.current {
    border-color: var(--red-primary);
    background: var(--accent-subtle);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-input {
    flex: 1;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state.small {
    padding: 24px 12px;
    font-size: 13px;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: var(--accent-primary);
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-small {
    padding: 8px 14px;
    font-size: 12px;
}

@media (max-width: 1024px) {
    .admin-grid-2col {
        grid-template-columns: 1fr;
    }
    
    .user-details-layout {
        grid-template-columns: 1fr;
    }
    
    .user-details-left {
        flex-direction: row;
        align-items: center;
    }
    
    .user-stats-mini {
        flex: 1;
    }
}

@media (max-width: 768px) {
    
    .admin-tab {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .admin-tab span:last-child {
        display: none;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-item.full {
        grid-column: span 1;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid .form-group.full-width {
        grid-column: span 1;
    }
}

.access-denied-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin-top: 40px;
}

.access-denied-container h2 {
    margin-top: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.access-denied-container p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.menu-item.menu-item-modern {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin-bottom: 6px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background: transparent;
}

.menu-item.menu-item-modern:hover {
    background: var(--accent-subtle);
    color: var(--text-primary);
    border-color: var(--accent-border);
}

.menu-item.menu-item-modern.active {
    background: var(--accent-subtle);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow), inset 0 0 20px var(--accent-subtle);
}

.menu-item-modern .menu-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-item-modern .menu-label {
    font-size: 15px;
    font-weight: 500;
    flex: 1;
}

@keyframes indicatorPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
        transform: scale(1.15);
        box-shadow: 0 0 20px var(--accent-primary);
    }
}

.global-particles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

@keyframes globalParticleFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes gridMove {
    from { transform: translate(0, 0); }
    to { transform: translate(60px, 60px); }
}

@keyframes hexFloat {
    0%, 100% { 
        transform: rotate(45deg) translateY(0) scale(1); 
        opacity: 0.4;
    }
    50% { 
        transform: rotate(225deg) translateY(-30px) scale(1.1); 
        opacity: 0.7;
    }
}

@keyframes triFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-50px) rotate(180deg); 
        opacity: 0.6;
    }
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

@keyframes dotPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.4;
    }
    50% { 
        transform: scale(1.5); 
        opacity: 0.8;
    }
}

@keyframes glowShift {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

@keyframes kanjiFloat {
    0% {
        transform: translateY(110vh) rotate(-5deg);
        opacity: 0;
    }
    5% {
        opacity: 0.06;
    }
    95% {
        opacity: 0.06;
    }
    100% {
        transform: translateY(-20vh) rotate(5deg);
        opacity: 0;
    }
}

.matrix-column {
    --matrix-intensity: 0.6;
    position: absolute;
    top: 0;
    font-family: 'Yu Gothic', 'Noto Sans JP', 'MS Gothic', monospace;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(var(--accent-rgb), var(--matrix-intensity));
    text-shadow: 0 0 8px rgba(var(--accent-rgb), calc(var(--matrix-intensity) * 0.6));
    writing-mode: vertical-rl;
    text-orientation: upright;
    animation: matrixFall linear infinite;
    opacity: 0;
    z-index: 2;
    will-change: transform, opacity;
}

.matrix-column span {
    display: block;
    opacity: calc(0.5 + var(--matrix-intensity) * 0.5);
}

@keyframes matrixFall {
    0% {
        transform: translateY(-120vh);
        opacity: 0;
    }
    5% {
        opacity: 0.5;
    }
    95% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(120vh);
        opacity: 0;
    }
}

@keyframes matrixGlow {
    from { 
        color: var(--accent-glow);
        text-shadow: 0 0 4px var(--accent-border);
    }
    to { 
        color: rgba(248, 113, 113, 0.7);
        text-shadow: 0 0 8px var(--accent-shadow);
    }
}

@keyframes cyberGridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(100px); }
}

@keyframes cyberScanLine {
    0%, 100% { top: -2px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.cyber-orb {
    position: absolute;
    width: var(--orb-size, 40px);
    height: var(--orb-size, 40px);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        var(--accent-border) 0%, 
        var(--accent-subtle) 50%,
        transparent 70%
    );
    border: 1px solid var(--accent-border);
    animation: cyberOrbFloat 8s ease-in-out infinite;
    filter: blur(1px);
}

@keyframes cyberOrbFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% { 
        transform: translate(30px, -40px) scale(1.1);
        opacity: 0.8;
    }
    50% { 
        transform: translate(-20px, -60px) scale(0.9);
        opacity: 0.5;
    }
    75% { 
        transform: translate(40px, -30px) scale(1.05);
        opacity: 0.7;
    }
}

@keyframes cyberDataStream {
    0% { top: -20%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 120%; opacity: 0; }
}

@keyframes cyberHexFloat {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    33% { 
        transform: rotate(60deg) scale(1.2);
        opacity: 0.6;
    }
    66% { 
        transform: rotate(-30deg) scale(0.8);
        opacity: 0.4;
    }
}

@keyframes cyberBracketPulse {
    0%, 100% { 
        opacity: 0.3;
        box-shadow: 0 0 0 rgba(var(--accent-rgb), 0);
    }
    50% { 
        opacity: 0.8;
        box-shadow: 0 0 20px var(--accent-border);
    }
}

@keyframes cyberGlitch {
    0%, 95%, 100% { 
        opacity: 0;
        background: transparent;
    }
    96% { 
        opacity: 1;
        background: linear-gradient(90deg,
            transparent 0%,
            var(--accent-subtle) 20%,
            transparent 21%,
            var(--accent-subtle) 40%,
            transparent 41%,
            var(--accent-subtle) 80%,
            transparent 81%
        );
        transform: translateX(-5px);
    }
    97% { 
        opacity: 1;
        background: linear-gradient(90deg,
            var(--accent-subtle) 10%,
            transparent 11%,
            var(--accent-subtle) 50%,
            transparent 51%
        );
        transform: translateX(5px);
    }
    98% { 
        opacity: 0;
        transform: translateX(0);
    }
}

@keyframes starTwinkle {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes shootingStar {
    0% {
        transform: translateX(0) translateY(0) rotate(-45deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    15% {
        transform: translateX(400px) translateY(400px) rotate(-45deg);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.bg-none .global-particles {
    display: none;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-100px) scale(1.5); opacity: 0.6; }
}

@keyframes trophyBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-5deg); }
    75% { transform: translateY(-5px) rotate(5deg); }
}

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

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

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

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

@keyframes vsPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

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

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

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

@keyframes pulseUpdate {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
    50% { box-shadow: 0 0 20px 4px var(--accent-border); }
}

@keyframes breathingGlow {
    0%, 100% { 
        text-shadow: 0 0 10px var(--accent-border);
    }
    50% { 
        text-shadow: 0 0 25px var(--accent-glow), 0 0 40px var(--accent-border);
    }
}

@keyframes breathingScale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes crownFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

/* Upload Zone */

.page-header-content {
    position: relative;
    z-index: 2;
}

@keyframes rotateSlowly {
    from { rotate: 0deg; }
    to { rotate: 360deg; }
}

@keyframes ripple {
    0% {
        transform: scale(0) translate(-50%, -50%);
        opacity: 1;
    }
    100% {
        transform: scale(40) translate(-50%, -50%);
        opacity: 0;
    }
}

/* How Card */

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }
    
    .main-content {
        padding: 12px;
    }
    
    .login-card {
        padding: 28px 20px;
        margin: 16px;
        border-radius: 16px;
    }
    
    .login-title {
        font-size: 26px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .form-input {
        padding: 12px;
        font-size: 15px;
    }
    
    .sidebar-header {
        padding: 16px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .menu-item {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .modal-content {
        margin: 16px;
        padding: 20px;
        border-radius: 16px;
        max-height: 85vh;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .main-content {
        padding: 20px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .menu-item:hover {
        transform: none;
    }
    
    .menu-item {
        min-height: 48px;
    }
    
    .btn {
        min-height: 44px;
    }
    
    .form-input {
        min-height: 44px;
    }
}

@supports (padding: max(0px)) {
    .sidebar {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
    
    .main-content {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    
    .login-container {
        padding-bottom: max(32px, env(safe-area-inset-bottom));
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .login-card {
        padding: 20px 28px;
    }
    
    .login-title {
        font-size: 24px;
        margin-bottom: 4px;
    }
    
    .login-subtitle {
        margin-bottom: 16px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
}


.resources-liquid-page {
    position: relative;
    min-height: 100vh;
    padding: 32px;
    overflow: hidden;
}

.resources-bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.resources-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: resourcesOrbFloat 20s ease-in-out infinite;
}

.resources-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-border) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.resources-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.resources-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(153, 27, 27, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes resourcesOrbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -40px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(40px, 30px) scale(1.05);
    }
}

@keyframes resourcesRingPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.resources-tabs-liquid {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    position: relative;
    z-index: 10;
    padding: 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.resources-tab-indicator {
    position: absolute;
    height: calc(100% - 12px);
    top: 6px;
    background: rgba(var(--accent-rgb), 0.06);
    border: 1px solid rgba(var(--accent-rgb), 0.55);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 0 0 1px rgba(var(--accent-rgb), 0.12) inset,
        0 8px 22px rgba(var(--accent-rgb), 0.12);
    z-index: 0;
}

.resources-tab-liquid {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resources-tab-liquid:hover {
    color: var(--text-primary);
}

.resources-tab-liquid.active {
    color: white;
    background: transparent;
}

.resources-content-liquid {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.resources-content-liquid.tab-content-exit {
    opacity: 0;
    transform: translateY(10px);
}

.resources-content-liquid.tab-content-enter {
    animation: tabContentEnter 0.3s ease forwards;
}

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

.resources-content-liquid {
    position: relative;
    z-index: 10;
}

.resources-subtabs-liquid {
    margin-bottom: 24px;
}

.subtabs-track-liquid {
    position: relative;
    display: flex;
    gap: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.subtabs-slider-liquid {
    position: absolute;
    height: calc(100% - 12px);
    background: rgba(var(--accent-rgb), 0.06);
    border: 1px solid rgba(var(--accent-rgb), 0.55);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.subtab-liquid {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.subtab-liquid:hover {
    color: var(--text-primary);
}

.subtab-liquid.active {
    color: var(--text-primary);
}

.resources-section-header-liquid {
    margin-bottom: 24px;
}

.resources-section-header-liquid h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.resources-section-header-liquid p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.resources-grid-liquid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.resources-grid-items-liquid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .resources-grid-items-liquid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .resources-grid-items-liquid {
        grid-template-columns: 1fr;
    }
}

.resource-card-liquid {
    position: relative;
    padding: 28px;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.5), rgba(var(--accent-rgb), 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: lxrdFadeInUp 0.4s ease backwards;
    transform-style: preserve-3d;
    perspective: 1000px;
}

@keyframes resourceCardSlideIn {
    from {
        transform: translateY(40px) scale(0.9) rotateX(10deg);
    }
    to {
        transform: translateY(0) scale(1) rotateX(0);
    }
}

.resource-card-liquid::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent-glow), transparent 50%, var(--accent-border));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.resource-card-liquid:hover::before {
    opacity: 1;
}

.resource-card-liquid:hover {
    transform: translateY(-12px) scale(1.03) rotateX(-2deg);
    border-color: var(--accent-glow);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 60px var(--accent-border),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.resource-card-liquid .glass-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.08),
        transparent
    );
    transform: skewX(-20deg);
    animation: resourceCardShine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes resourceCardShine {
    0% { left: -100%; }
    50%, 100% { left: 200%; }
}

.resource-card-liquid::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: 
        radial-gradient(circle at 20% 30%, var(--accent-subtle) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, var(--accent-subtle) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
}

.resource-card-liquid:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.resource-card-icon-liquid {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-border), var(--accent-subtle));
    border-radius: 18px;
    border: 1px solid var(--accent-border);
    margin-bottom: 20px;
    transition: all 0.4s ease;
    z-index: 1;
}

.resource-card-icon-liquid svg {
    color: var(--red-primary);
    transition: all 0.4s ease;
}

.resource-card-liquid:hover .resource-card-icon-liquid {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, var(--accent-border), var(--accent-subtle));
    border-color: var(--accent-glow);
    box-shadow: 0 8px 24px var(--accent-border);
}

.resource-card-liquid:hover .resource-card-icon-liquid svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.resource-icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: iconPulse 2s ease-in-out infinite;
    animation-play-state: paused;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.resource-card-liquid:hover .resource-icon-glow {
    opacity: 1;
    animation-play-state: running;
}

.resource-card-title-liquid {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.resource-card-liquid:hover .resource-card-title-liquid {
    background: linear-gradient(135deg, #fff 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.resource-card-author {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 16px 0;
    font-style: italic;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.resource-card-liquid:hover .resource-card-author {
    opacity: 1;
}

.resource-card-rank-liquid {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--accent-border), var(--accent-subtle));
    border: 1px solid var(--accent-border);
    border-radius: 24px;
    font-size: 12px;
    font-weight: 500;
    color: var(--red-primary);
    margin-bottom: 16px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.resource-card-liquid:hover .resource-card-rank-liquid {
    background: linear-gradient(135deg, var(--accent-border), var(--accent-subtle-hover));
    border-color: var(--accent-shadow);
    transform: translateX(4px);
}

.resource-card-action-liquid {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--red-primary);
    font-weight: 600;
    margin-top: auto;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--accent-subtle), var(--accent-subtle));
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.resource-card-action-liquid::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
    transition: left 0.5s ease;
}

.resource-card-liquid:hover .resource-card-action-liquid::before {
    left: 100%;
}

.resource-card-action-liquid svg {
    transition: transform 0.3s ease;
}

.resource-card-liquid:hover .resource-card-action-liquid {
    background: linear-gradient(135deg, var(--accent-border), var(--accent-subtle));
    border-color: var(--accent-shadow);
    box-shadow: 0 4px 16px var(--accent-border);
    transform: translateX(4px);
}

.resource-card-glow {
    position: absolute;
    bottom: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 150px;
    background: 
        radial-gradient(ellipse at center, var(--accent-border) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 80%, rgba(255, 100, 100, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 80%, var(--accent-subtle-hover) 0%, transparent 40%);
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
    filter: blur(20px);
}

.resource-card-liquid:hover .resource-card-glow {
    opacity: 1;
    transform: translateX(-50%) translateY(-20px);
}

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

@media (max-width: 768px) {
    .resources-liquid-page {
        padding: 20px;
    }
    
    .resources-tabs-liquid {
        flex-direction: column;
    }
    
    .resources-tab-liquid {
        justify-content: center;
    }
    
    .subtabs-track-liquid {
        flex-wrap: wrap;
    }
}


.faq-liquid-page {
    position: relative;
    min-height: 100vh;
    padding: 32px;
    overflow: hidden;
}

.faq-bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.faq-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: faqOrbFloat 20s ease-in-out infinite;
}

.faq-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-border) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.faq-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.faq-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(153, 27, 27, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes faqOrbFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -40px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(40px, 30px) scale(1.05);
    }
}

@keyframes faqRingPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.faq-content-liquid {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.faq-section-liquid {
    animation: faqSectionFadeIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes faqSectionFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-section-header-liquid {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.faq-section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.faq-section-title-liquid {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.faq-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
}

.faq-card-liquid {
    position: relative;
    padding: 28px;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.5), rgba(var(--accent-rgb), 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: faqSlideUp 0.4s ease backwards;
}

@keyframes faqSlideUp {
    from {
        transform: translateY(20px);
    }
    to {
        transform: translateY(0);
    }
}

.faq-card-liquid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 100, 100, 0.02) 25%,
        rgba(100, 100, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.03) 75%,
        rgba(255, 100, 100, 0.02) 100%
    );
    background-size: 200% 200%;
    animation: polarizedShift 8s ease-in-out infinite;
    pointer-events: none;
    border-radius: 20px;
    opacity: 0.6;
}

@keyframes polarizedShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes faqCardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-card-liquid:hover {
    transform: translateY(-8px);
    border-color: var(--accent-border);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px var(--accent-subtle-hover);
}

.faq-card-liquid .glass-card-shine {
    display: none; 
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    transition: left 0.6s ease;
    pointer-events: none;
}

.faq-card-liquid:hover .glass-card-shine {
    left: 100%;
}

.faq-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.faq-card-icon {
    position: relative;
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-border), var(--accent-subtle));
    border-radius: 14px;
    border: 1px solid var(--accent-border);
}

.faq-card-icon svg {
    color: var(--red-primary);
}

.faq-icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    background: radial-gradient(circle, var(--accent-border) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-card-liquid:hover .faq-icon-glow {
    opacity: 1;
}

.faq-question-liquid {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.faq-answer-liquid {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.faq-answer-liquid p {
    margin: 0 0 12px 0;
}

.faq-answer-liquid p:last-child {
    margin-bottom: 0;
}

.faq-answer-liquid .faq-media {
    margin: 10px 0 14px 0;
}

.faq-answer-liquid img.faq-inline-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.faq-card-glow {
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100px;
    background: radial-gradient(ellipse, var(--accent-subtle-hover) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.faq-card-liquid:hover .faq-card-glow {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-liquid-page {
        padding: 20px;
    }
    
    .faq-items-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-card-liquid {
        padding: 20px;
    }
    
    .faq-section-header-liquid {
        flex-direction: column;
        gap: 12px;
    }
    
    .faq-section-line {
        width: 100%;
    }
}

/* Notes Background Orbs */

@keyframes notesOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.03); }
}

@keyframes notesRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0; }
}

@keyframes meetingSlideIn {
    from {
        transform: translateX(-20px);
    }
}

@keyframes meetingSoonPulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-border); }
    50% { box-shadow: 0 0 20px 5px var(--accent-subtle); }
}

@keyframes soonBadgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes legendSlideIn {
    from {
        transform: translateY(10px);
    }
}

.notes-empty-state {
    text-align: center;
    padding: 60px 24px;
}

.notes-empty-state .empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    color: var(--text-muted);
}

.notes-empty-state h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
}

.notes-empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

@keyframes modalRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0; }
}

.liquid-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.modal-close-liquid {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-liquid:hover {
    background: var(--accent-border);
    color: var(--red-primary);
}

.modal-actions-liquid {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.profile-color-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-color-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.profile-color-option.selected {
    border-color: var(--red-primary);
    background: var(--accent-subtle);
}

.color-option-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.color-option-name {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

.profile-color-option.selected .color-option-name {
    color: var(--text-primary);
}

.color-option-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: var(--red-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
}

@media (max-width: 768px) {
    .profile-color-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    cursor: pointer;
    border-radius: 4px;
}

.checkbox-label span {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.profile-editor-grid .form-group .form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.profile-editor-grid .form-group .form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.profile-editor-grid .form-group .form-input::placeholder {
    color: var(--text-muted);
}

.profile-editor-grid .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.profile-editor-grid .form-group .form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    opacity: 0.8;
}

.glass-card-shine {
    display: none; 
}

@keyframes glassShine {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.glass-card-border {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 50%, rgba(255,255,255,0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.glass-card-header.compact {
    margin-bottom: 20px;
}

.glass-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    position: relative;
}

@keyframes iconGlow {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.1); }
}

.glass-card-icon.history-glow {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    color: #8b5cf6;
}

.glass-card-title-group { flex: 1; }

.glass-card-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px 0;
}

.glass-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

@keyframes uploadRingPulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

.liquid-form-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.liquid-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.liquid-label-icon {
    display: flex;
    color: var(--text-muted);
}

.liquid-label-text {
    font-weight: 500;
}

.liquid-input-wrapper {
    position: relative;
}

.liquid-input {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 2px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    color: white;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.1),
        0 4px 12px rgba(0,0,0,0.1);
}

.liquid-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.liquid-input:hover {
    border-color: var(--accent-border);
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.1),
        0 8px 24px rgba(0,0,0,0.15);
}

.liquid-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, var(--accent-subtle), transparent);
    box-shadow: 
        0 0 0 4px var(--accent-subtle),
        inset 0 2px 4px rgba(0,0,0,0.1),
        0 12px 32px var(--accent-glow);
}

.liquid-input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.liquid-input:focus ~ .liquid-input-glow {
    width: 80%;
}

.liquid-textarea-wrapper {
    position: relative;
}

.liquid-textarea {
    width: 100%;
    padding: 16px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    color: white;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

.liquid-textarea:focus {
    outline: none;
    border-color: var(--red-primary);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 4px var(--accent-subtle);
}

.liquid-textarea::placeholder {
    color: var(--text-muted);
}

.liquid-input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--red-primary);
    transition: width 0.3s ease;
}

.liquid-textarea-wrapper.input-focused .liquid-input-glow {
    width: 100%;
}

.liquid-submit-btn {
    position: relative;
    width: 100%;
    padding: 18px 32px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.liquid-submit-btn .liquid-btn-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-dark));
    transition: all 0.3s ease;
}

.liquid-submit-btn:hover .liquid-btn-bg {
    transform: scale(1.02);
}

.liquid-submit-btn .liquid-btn-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    z-index: 1;
}

.liquid-submit-btn .liquid-btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.liquid-submit-btn:hover .liquid-btn-shine {
    left: 100%;
}

.liquid-submit-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.liquid-submit-btn.disabled .liquid-btn-bg {
    background: linear-gradient(135deg, #555, #333);
}

.liquid-submit-btn.liquid-btn-loading .liquid-btn-content {
    opacity: 0;
}

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

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

.history-liquid-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    transition: all 0.3s ease;
    animation: historyItemSlide 0.4s ease-out backwards;
    overflow: hidden;
}

@keyframes historyItemSlide {
    from {
        transform: translateY(20px);
    }
    to {
        transform: translateY(0);
    }
}

.history-liquid-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
    transform: translateX(6px);
}

.history-liquid-content {
    flex: 1;
    min-width: 0;
}

.history-liquid-meta {
    flex-shrink: 0;
}

.history-liquid-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.history-item-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.history-liquid-item:hover .history-item-glow {
    opacity: 1;
}

.history-liquid-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.history-empty-icon {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-bottom: 24px;
}

@keyframes emptyRingPulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.history-liquid-empty h4 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0 0 8px 0;
}

.history-liquid-empty p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    
    .history-liquid-item {
        flex-wrap: wrap;
    }
    
    .history-liquid-meta {
        width: 100%;
        margin-top: 8px;
    }
}

@keyframes lbOrbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(40px, -30px, 0) scale(1.1); }
    66% { transform: translate3d(-30px, 40px, 0) scale(0.95); }
}

@keyframes lbRingPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes lbEntrySlide {
    from {
        transform: translateY(20px);
    }
}

@keyframes shopOrbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(40px, -30px, 0) scale(1.1); }
    66% { transform: translate3d(-30px, 40px, 0) scale(0.95); }
}

@keyframes shopRingPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes balanceGridMove {
    from { transform: translateX(0); }
    to { transform: translateX(30px); }
}

@keyframes balanceGlowPulse {
    0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

@keyframes balanceParticleFloat {
    0% { bottom: 0; opacity: 0; transform: scale(0); }
    20% { opacity: 1; transform: scale(1); }
    80% { opacity: 1; transform: scale(1); }
    100% { bottom: 100%; opacity: 0; transform: scale(0); }
}

@keyframes balanceIconGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); filter: brightness(1); }
    50% { box-shadow: 0 0 30px rgba(16, 185, 129, 0.6); filter: brightness(1.1); }
}

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

@keyframes balancePulseRing {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes balanceNumberGlow {
    from { text-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
    to { text-shadow: 0 0 30px rgba(16, 185, 129, 0.6), 0 0 50px rgba(16, 185, 129, 0.3); }
}

@keyframes balanceLineSlide {
    0%, 100% { opacity: 0.3; transform: scaleX(0.5); }
    50% { opacity: 1; transform: scaleX(1); }
}

@keyframes balanceDotPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

@keyframes balanceBorderGlow {
    0%, 100% { opacity: 0.3; transform: scaleX(0.5); }
    50% { opacity: 1; transform: scaleX(1); }
}

@keyframes shopCardSlide {
    from {
        transform: translateY(30px) scale(0.95);
    }
}

@keyframes shopCardShine {
    from { left: -100%; }
    to { left: 100%; }
}

/* Card Body */

@keyframes historySlide {
    from {
        transform: translateX(-20px);
    }
}

@keyframes shopAmbientFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.1); }
}

@keyframes shopIconPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

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

@keyframes shopBtnShine {
    to { left: 150%; }
}

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

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

@keyframes successPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes successRing {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes confettiFall {
    0% {
        top: 40%;
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
    100% {
        top: 100%;
        opacity: 0;
        transform: rotate(720deg) scale(0);
    }
}

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

@keyframes balanceOrbPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

@keyframes successPop {
    from { transform: scale(0); }
}

@keyframes successRingPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.modal-liquid {
    position: relative;
    padding: 36px;
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.98), rgba(20, 20, 28, 0.99));
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.animate-scale-in {
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
}


.lessons-liquid-page {
    position: relative;
    min-height: 100vh;
    padding: 32px;
}

.lessons-bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.lessons-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.lessons-orb-1 { width: 400px; height: 400px; background: radial-gradient(circle, var(--accent-shadow), transparent 70%); top: -100px; left: 20%; animation: lessonsOrbFloat 20s ease-in-out infinite; }
.lessons-orb-2 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(153, 27, 27, 0.35), transparent 70%); bottom: 20%; right: -50px; animation: lessonsOrbFloat 25s ease-in-out infinite reverse; }
.lessons-orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(248, 113, 113, 0.3), transparent 70%); top: 50%; left: -50px; animation: lessonsOrbFloat 22s ease-in-out infinite; animation-delay: -5s; }

@keyframes lessonsOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

@keyframes lessonsRingPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

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

.stat-card-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    font-feature-settings: 'tnum';
    letter-spacing: -0.02em;
}

.stat-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--stat-color), color-mix(in srgb, var(--stat-color) 70%, white));
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
    box-shadow: 0 0 12px var(--stat-color);
}

@media (max-width: 600px) {
    
    .stat-card-value {
        font-size: 28px !important;
        font-weight: 700 !important;
        order: 1 !important;
        margin: 0 !important;
    }
}

.lessons-liquid-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    position: relative;
    z-index: 10;
}

.lessons-glass-card {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.5), rgba(var(--accent-rgb), 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px;
    overflow: hidden;
    transition: all 0.4s ease;
    animation: lxrdFadeInUp 0.4s ease backwards;
}

.lessons-glass-card:hover {
    border-color: rgba(255,255,255,0.1);
}

.lessons-glass-card .glass-card-shine {
    display: none; 
}

@keyframes glassCardShine {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.lessons-glass-card .glass-card-border {
    display: none;
}

.lessons-glass-card:hover .glass-card-border {
    display: none;
}

/* History Section - Moved Lower */
.lessons-history-glass {
    position: relative;
    margin-top: 40px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.5), rgba(var(--accent-rgb), 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
    animation: lxrdFadeInUp 0.4s ease backwards;
}

.lessons-history-glass .glass-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.lessons-history-glass .glass-card-icon.history-glow {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    color: #8b5cf6;
}

.lessons-history-liquid-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lessons-history-liquid-list .history-liquid-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    animation: historySlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    position: relative;
}

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

.lessons-history-liquid-list .history-liquid-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(6px);
}

.history-liquid-status {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    border: 1px solid;
}

.history-liquid-content {
    flex: 1;
    min-width: 0;
}

.history-liquid-topic {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 6px;
}

.history-liquid-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-shrink: 0;
}


.history-liquid-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.history-liquid-time-slot {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.history-liquid-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.history-liquid-clock {
    font-size: 12px;
    color: var(--text-secondary);
}

.history-item-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
    border-radius: 16px;
}

.history-liquid-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
}

.history-empty-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: 20px;
    margin-bottom: 20px;
    color: var(--accent-glow);
}

.history-liquid-empty h4 {
    font-size: 18px;
    color: white;
    margin: 0 0 8px 0;
}

.history-liquid-empty p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.lessons-glass-card .glass-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    position: relative;
    margin-bottom: 4px;
}

.lessons-glass-card .glass-card-icon.pulse-glow {
    background: linear-gradient(135deg, var(--accent-border), var(--accent-subtle));
    color: var(--accent-primary);
}

.lessons-glass-card .glass-card-icon.pulse-glow::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    background: var(--accent-primary);
    opacity: 0;
    filter: blur(12px);
    animation: iconPulseGlow 2s ease-in-out infinite;
}

@keyframes iconPulseGlow {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.1); }
}

.lessons-glass-card .glass-card-icon.info-glow {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    color: #10b981;
}

.lessons-liquid-form {
    position: relative;
    z-index: 1;
}

.lessons-liquid-form .liquid-form-group {
    margin-bottom: 24px;
}

.lessons-liquid-form .liquid-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
}

.lessons-liquid-form .liquid-label-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-border), var(--accent-subtle));
    border-radius: 10px;
    color: var(--accent-primary);
}

.lessons-liquid-form .liquid-label-text {
    font-weight: 600;
    color: white;
}

.lessons-liquid-form .liquid-input-wrapper,
.lessons-liquid-form .liquid-textarea-wrapper {
    position: relative;
}

.lessons-liquid-form .liquid-input,
.lessons-liquid-form .liquid-textarea {
    width: 100%;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    color: white;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.lessons-liquid-form .liquid-input::placeholder,
.lessons-liquid-form .liquid-textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.lessons-liquid-form .liquid-input:hover,
.lessons-liquid-form .liquid-textarea:hover {
    border-color: var(--accent-border);
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
}

.lessons-liquid-form .liquid-input:focus,
.lessons-liquid-form .liquid-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, var(--accent-subtle-hover), var(--accent-subtle));
    box-shadow: 
        0 0 0 4px var(--accent-subtle-hover),
        inset 0 2px 4px rgba(0,0,0,0.1),
        0 8px 24px rgba(59, 130, 246, 0.2);
}

.lessons-liquid-form .liquid-input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.lessons-liquid-form .liquid-input:focus ~ .liquid-input-glow,
.lessons-liquid-form .liquid-textarea:focus ~ .liquid-input-glow {
    width: 80%;
}

.lessons-liquid-form .liquid-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.lessons-liquid-form .liquid-submit-btn {
    position: relative;
    width: 100%;
    padding: 20px 32px;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 8px;
}

.lessons-liquid-form .liquid-submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px var(--accent-shadow);
}

.lessons-liquid-form .liquid-submit-btn .liquid-btn-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-dark));
}

.lessons-liquid-form .liquid-submit-btn .liquid-btn-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    z-index: 1;
}

.lessons-liquid-form .liquid-submit-btn .liquid-btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.lessons-liquid-form .liquid-submit-btn:hover .liquid-btn-shine {
    left: 100%;
}

.liquid-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.liquid-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

.liquid-step-number {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-border), var(--accent-subtle));
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.liquid-step-number .step-number-ring {
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    border: 2px solid var(--accent-border);
    opacity: 0;
    animation: stepRingPulse 2s ease-out infinite;
}

@keyframes stepRingPulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.3); opacity: 0; }
}

.liquid-step:hover .step-number-ring {
    animation-play-state: running;
    opacity: 1;
}

.liquid-step-content {
    flex: 1;
    padding-top: 4px;
}

.liquid-step-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px 0;
}

.liquid-step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.liquid-step-line {
    position: absolute;
    left: 23px;
    top: 56px;
    width: 2px;
    height: calc(100% + 16px);
    background: linear-gradient(to bottom, var(--accent-border), transparent);
}

.liquid-step:last-child .liquid-step-line {
    display: none;
}

@media (max-width: 1024px) {
    .lessons-liquid-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes quizOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

@keyframes quizRingPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes quizCooldownRing {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.quiz-result-icon {
    font-size: 72px;
    margin-bottom: 24px;
}

@keyframes teamsOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

@keyframes teamsRingPulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 8px var(--accent-primary); }
    100% { transform: scale(1.5); opacity: 0; box-shadow: 0 0 20px var(--accent-glow); }
}

@keyframes teamFormSlide {
    from {
        transform: translateY(-20px) scale(0.98);
    }
}

.liquid-btn-secondary {
    padding: 16px 32px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.liquid-btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    color: white;
}

@keyframes teamSlotFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
}

.wheel-result-liquid {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 48px 40px;
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.98), rgba(10, 10, 18, 0.99));
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    overflow: hidden;
    animation: wheelResultSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wheel-result-liquid.lose {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.95), rgba(var(--accent-rgb), 0.08));
    border: none;
}

.wheel-result-liquid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
}

.wheel-result-liquid.win::before {
    background: linear-gradient(90deg, transparent, #22c55e, #10b981, transparent);
    animation: winGlow 2s ease-in-out infinite;
}

.wheel-result-liquid.win {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 
        0 0 60px rgba(34, 197, 94, 0.15),
        0 25px 80px rgba(0, 0, 0, 0.5),
        inset 0 0 80px rgba(34, 197, 94, 0.03);
}

.wheel-result-liquid.lose {
    border-color: rgba(107, 114, 128, 0.3);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        inset 0 0 60px rgba(107, 114, 128, 0.02);
}

@keyframes wheelResultSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(40px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes winGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.wheel-result-icon-liquid {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.wheel-result-liquid.win .wheel-result-icon-liquid {
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    color: #22c55e;
}

.wheel-result-liquid.lose .wheel-result-icon-liquid {
    background: linear-gradient(145deg, rgba(107, 114, 128, 0.15), rgba(107, 114, 128, 0.05));
    color: #6b7280;
}

.wheel-result-icon-liquid.animate-win {
    animation: winIconPulse 1.5s ease-in-out infinite;
}

@keyframes winIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.wheel-result-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.3;
    animation: ringExpand 2s ease-out infinite;
}

.wheel-result-ring.r1 {
    inset: -10px;
    animation-delay: 0s;
}

.wheel-result-ring.r2 {
    inset: -25px;
    animation-delay: 0.5s;
}

.wheel-result-lose-image {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    animation: loseImageAppear 0.5s ease-out;
}

.wheel-result-lose-image img {
    display: block;
    width: 250px;
    height: 250px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    border: none;
}

.wheel-result-lose-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    border-radius: 0 0 24px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: none;
}

.wheel-result-liquid.lose {
    position: relative;
    overflow: hidden;
    padding-top: 180px !important;
}

.wheel-result-content {
    position: relative;
    z-index: 1;
}

@keyframes loseImageAppear {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes ringExpand {
    0% {
        opacity: 0.4;
        transform: scale(0.95);
    }
    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}

.wheel-result-title-liquid {
    font-family: 'Widock', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.wheel-result-liquid.win .wheel-result-title-liquid {
    background: linear-gradient(135deg, #22c55e, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(34, 197, 94, 0.5);
}

.wheel-result-liquid.lose .wheel-result-title-liquid {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px var(--accent-glow);
    margin-top: 32px;
}

.wheel-result-bonus-liquid {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 28px;
    animation: bonusPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s both;
}

@keyframes bonusPop {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wheel-result-btn-liquid {
    position: relative;
    width: 100%;
    padding: 18px 32px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.4s ease;
    margin-top: 8px;
}

.wheel-result-btn-liquid .liquid-btn-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    transition: all 0.4s ease;
}

.wheel-result-liquid.win .wheel-result-btn-liquid .liquid-btn-bg {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.wheel-result-btn-liquid .liquid-btn-content {
    position: relative;
    z-index: 1;
    color: white;
}

.wheel-result-btn-liquid .liquid-btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.wheel-result-btn-liquid:hover .liquid-btn-shine {
    left: 100%;
}

.wheel-result-btn-liquid:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px var(--accent-shadow);
}

.wheel-result-liquid.win .wheel-result-btn-liquid:hover {
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.4);
}

.modal-overlay-liquid {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: modalOverlayFade 0.3s ease-out;
}

@keyframes modalOverlayFade {
    from { opacity: 0; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
}

@keyframes checkPop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}


#pageContainer {
    position: relative;
    animation: pageTransitionIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    contain: layout style;
}

body.performance-mode #pageContainer {
    animation: none;
}

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

@keyframes pageTransitionOut {
    to {
        opacity: 1;
    }
}


.profile-page-v2,
.resources-liquid-page,
.lessons-liquid-page,
.wheel-liquid-page,
.faq-liquid-page,
.projects-liquid-page {
    animation: pageSlideIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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


.profile-page-v2 .profile-hero-v2 {
    animation: headerSlideIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s backwards;
}

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


.resources-liquid-page .resource-card-liquid,
.lessons-liquid-page .lessons-glass-card,
.wheel-liquid-page .wheel-prize-liquid {
    animation: cardSlideUpFast 0.3s ease-out forwards;
}

@keyframes cardSlideUpFast {
    from {
        transform: translateY(10px);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes cardSlideUp {
    from {
        transform: translateY(15px);
    }
    to {
        transform: translateY(0);
    }
}


.profile-ambient,
.resources-bg-orbs,
.lessons-bg-orbs,
.wheel-bg-orbs {
    animation: orbsFadeIn 1s ease-out;
}

@keyframes orbsFadeIn {
    from { opacity: 0; }
}


.resources-grid-items-liquid,
.lessons-liquid-grid,
.wheel-layout-liquid {
    animation: contentFadeIn 0.6s ease-out 0.2s backwards;
}

@keyframes contentFadeIn {
    from {
        transform: translateY(20px);
    }
}


.wheel-liquid-page {
    position: relative;
    min-height: 100vh;
    padding: 32px;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.wheel-bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.wheel-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.wheel-orb-1 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(251, 191, 36, 0.4), transparent 70%); top: -100px; right: 10%; animation: wheelOrbFloat 20s ease-in-out infinite; }
.wheel-orb-2 { width: 350px; height: 350px; background: radial-gradient(circle, var(--accent-border), transparent 70%); bottom: 20%; left: -50px; animation: wheelOrbFloat 25s ease-in-out infinite reverse; }
.wheel-orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent 70%); top: 50%; left: 20%; animation: wheelOrbFloat 22s ease-in-out infinite; animation-delay: -5s; }

@keyframes wheelOrbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(40px, -30px, 0) scale(1.1); }
    66% { transform: translate3d(-30px, 40px, 0) scale(0.95); }
}

@keyframes wheelRingPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

.wheel-layout-liquid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    position: relative;
    z-index: 10;
}

.wheel-main-liquid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wheel-card-liquid {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.5), rgba(var(--accent-rgb), 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    overflow: hidden;
}

.wheel-stage-liquid {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
    width: 100%;
    overflow: visible;
}

.wheel-ambient-liquid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.wheel-frame-liquid {
    position: relative;
    width: 340px;
    height: 340px;
    max-width: 100%;
    aspect-ratio: 1;
    flex-shrink: 0;
}

.wheel-frame-liquid #wheelCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.wheel-outer-ring-liquid {
    position: absolute;
    inset: -10px;
    border: 4px solid rgba(var(--accent-rgb), 0.4);
    border-radius: 50%;
    animation: wheelOuterPulse 3s ease-in-out infinite;
}

@keyframes wheelOuterPulse {
    0%, 100% { 
        opacity: 0.5; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.01);
    }
}

.wheel-inner-liquid {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.25);
    will-change: transform;
    transform: rotate(0deg);
}

.wheel-center-liquid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.wheel-center-inner {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.wheel-center-ring {
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 50%;
    animation: wheelCenterRing 2s ease-out infinite;
}

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

.wheel-pointer-liquid {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.wheel-pointer-arrow-liquid {
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 30px solid #fbbf24;
    filter: drop-shadow(0 4px 8px rgba(251, 191, 36, 0.5));
}

.wheel-timer-liquid {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    border-radius: 16px;
    margin-bottom: 20px;
}

.wheel-timer-icon {
    color: var(--red-primary);
    animation: wheelTimerPulse 2s ease-in-out infinite;
}

@keyframes wheelTimerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.wheel-timer-content {
    flex: 1;
}

.wheel-timer-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.wheel-timer-value {
    font-family: 'Orbitron', 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 600;
    color: white;
    letter-spacing: 2px;
}

.wheel-spin-liquid {
    position: relative;
    width: 100%;
    padding: 22px 48px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 0 0 1px var(--accent-border),
        0 8px 32px var(--accent-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.wheel-spin-liquid::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-dark), var(--accent-primary), var(--accent-hover));
    background-size: 300% 300%;
    animation: spinBtnGradient 3s ease infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wheel-spin-liquid:hover:not(.disabled)::before {
    opacity: 1;
}

@keyframes spinBtnGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.wheel-spin-liquid .wheel-spin-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-dark) 50%, var(--accent-dark) 100%);
    transition: all 0.4s ease;
}

.wheel-spin-liquid:hover:not(.disabled) .wheel-spin-bg {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-primary) 50%, var(--accent-dark) 100%);
}

.wheel-spin-liquid:hover:not(.disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 0 0 2px var(--accent-glow),
        0 16px 48px var(--accent-glow),
        0 0 60px var(--accent-border),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.wheel-spin-liquid:active:not(.disabled) {
    transform: translateY(-1px) scale(0.98);
}

.wheel-spin-liquid .wheel-spin-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: white;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.wheel-spin-liquid .wheel-spin-content .icon-svg {
    animation: none;
    transition: transform 0.3s ease;
}

.wheel-spin-liquid:hover:not(.disabled) .wheel-spin-content .icon-svg {
    animation: spinIconRotate 1.5s ease-in-out infinite;
}

@keyframes spinIconRotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

.wheel-spin-liquid .wheel-spin-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.wheel-spin-liquid:hover:not(.disabled) .wheel-spin-shine {
    left: 200%;
}

.wheel-spin-liquid.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.wheel-spin-liquid.disabled .wheel-spin-bg {
    background: linear-gradient(135deg, #374151, #1f2937);
}

.wheel-spin-liquid.spinning {
    animation: spinBtnPulse 0.8s ease-in-out infinite;
}

@keyframes spinBtnPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 1px var(--accent-border), 0 8px 32px var(--accent-shadow);
    }
    50% { 
        transform: scale(1.03);
        box-shadow: 0 0 0 2px var(--accent-glow), 0 12px 40px var(--accent-glow), 0 0 30px var(--accent-border);
    }
}

.wheel-prizes-liquid {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.5), rgba(var(--accent-rgb), 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    overflow: hidden;
}

.wheel-prizes-header-liquid {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.wheel-prizes-header-liquid h3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.wheel-prizes-grid-liquid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wheel-prize-liquid {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: wheelPrizeSlide 0.4s ease-out backwards;
}

@keyframes wheelPrizeSlide {
    from {
        transform: translateX(20px);
    }
}

.wheel-prize-liquid:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(4px);
}

.wheel-prize-indicator-liquid {
    width: 4px;
    height: 36px;
    border-radius: 2px;
    background: var(--accent-primary);
}

.wheel-prize-icon-liquid {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    color: var(--text-secondary);
}

.wheel-prize-info-liquid {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wheel-prize-name-liquid {
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.wheel-prize-chance-liquid {
    font-size: 12px;
    color: var(--text-muted);
}

.wheel-history-liquid {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.5), rgba(var(--accent-rgb), 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    overflow: hidden;
}

.wheel-history-header-liquid {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.wheel-history-header-liquid h3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.wheel-history-list-liquid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 700px;
    overflow-y: auto;
}

.wheel-history-item-liquid {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: wheelHistorySlide 0.4s ease-out backwards;
}

@keyframes wheelHistorySlide {
    from {
        transform: translateY(10px);
    }
}

.wheel-history-item-liquid.win {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.wheel-history-avatar-liquid {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    border-radius: 10px;
    font-weight: 600;
    color: white;
}

.wheel-history-info-liquid {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wheel-history-name-liquid {
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.wheel-history-prize-liquid {
    font-size: 12px;
    color: var(--text-muted);
}

.wheel-history-prize-liquid.win {
    color: #10b981;
}

.wheel-history-time-liquid {
    font-size: 12px;
    color: var(--text-muted);
}

.wheel-history-empty-liquid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

.wheel-history-empty-liquid p {
    margin-top: 16px;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .wheel-layout-liquid {
        grid-template-columns: 1fr;
    }
    
    .wheel-frame-liquid {
        width: 300px;
        height: 300px;
    }
    
    .wheel-frame-liquid #wheelCanvas {
        width: 300px;
        height: 300px;
    }
    
    .wheel-card-liquid {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .wheel-liquid-page {
        padding: 16px;
    }
    
    .wheel-layout-liquid {
        gap: 16px;
    }
    
    .wheel-card-liquid {
        padding: 24px;
    }
    
    .wheel-frame-liquid {
        width: 280px;
        height: 280px;
    }
    
    .wheel-frame-liquid #wheelCanvas {
        width: 280px;
        height: 280px;
    }
    
    .wheel-prizes-liquid,
    .wheel-history-liquid {
        padding: 16px;
    }
}


.projects-liquid-page {
    position: relative;
    min-height: 100vh;
    padding: 32px;
}

.projects-bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.projects-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.projects-orb-1 { width: 400px; height: 400px; background: radial-gradient(circle, var(--accent-border), transparent 70%); top: -100px; left: 20%; animation: projectsOrbFloat 20s ease-in-out infinite; }
.projects-orb-2 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(180, 30, 30, 0.25), transparent 70%); bottom: 20%; right: -50px; animation: projectsOrbFloat 25s ease-in-out infinite reverse; }
.projects-orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, var(--accent-subtle-hover), transparent 70%); top: 40%; left: -100px; animation: projectsOrbFloat 30s ease-in-out infinite; }

@keyframes projectsOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

@keyframes projectsRingPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

.projects-grid-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.project-card-modern {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    transition: all 0.3s ease;
    animation: projectCardSlideIn 0.4s ease backwards;
    overflow: hidden;
}

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

.project-card-modern:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
}

.project-card-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
}

.project-icon-modern {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--project-color, var(--accent-primary)), rgba(0, 0, 0, 0.5));
    border-radius: 14px;
    color: white;
    position: relative;
}

.project-icon-modern::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--project-color, var(--accent-primary)), transparent);
    opacity: 0.3;
    z-index: -1;
}

.project-info-modern {
    flex: 1;
    min-width: 0;
}

.project-name-modern {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0 0 6px 0;
}

.project-desc-modern {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-stats-modern {
    display: flex;
    gap: 16px;
}

.project-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.project-stat-item.difficulty.easy { color: #10b981; }
.project-stat-item.difficulty.medium { color: #f59e0b; }
.project-stat-item.difficulty.hard { color: var(--accent-hover); }

.project-action-modern {
    flex-shrink: 0;
}

.project-btn-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-width: 140px;
}

.project-btn-modern.apply {
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    color: white;
}

.project-btn-modern.apply:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px var(--accent-shadow);
}

.project-btn-modern.joined {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    cursor: pointer;
}

.project-btn-modern.joined:hover {
    background: rgba(16, 185, 129, 0.25);
}

.project-btn-modern.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    cursor: not-allowed;
}

.project-btn-modern.locked {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
}

.project-btn-modern.soon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
}

.project-card-border {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--red-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card-modern:hover .project-card-border {
    opacity: 1;
}

.project-card-modern.joined .project-card-border {
    background: linear-gradient(180deg, #10b981, transparent);
    opacity: 1;
}

.project-card-modern.locked {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .project-card-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .project-action-modern {
        width: 100%;
    }
    
    .project-btn-modern {
        width: 100%;
    }
    
    .project-stats-modern {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@keyframes projectCardSlide {
    from {
        transform: translateY(20px) scale(0.95);
    }
}

/* Project Icon */

.projects-active-liquid {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
}

.active-banner-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    color: #10b981;
}

.active-banner-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0 0 8px 0;
}

.active-projects-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-chip-liquid {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    color: #10b981;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-chip-liquid:hover {
    background: rgba(16, 185, 129, 0.25);
    transform: translateY(-2px);
}

.contact-result-liquid {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    animation: contactResultSlide 0.3s ease;
}

@keyframes contactResultSlide {
    from { opacity: 0; transform: translateY(10px); }
}

.contact-result-liquid.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.contact-result-liquid.warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.contact-result-liquid strong {
    display: block;
    margin-bottom: 4px;
}

.contact-result-liquid p {
    margin: 0;
    font-size: 13px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    
    .lessons-liquid-page,
    .wheel-liquid-page,
    .projects-liquid-page {
        padding: 20px;
    }
}


.preloader-v2 {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    overflow: hidden;
    contain: layout style paint;
}

.preloader-v2.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-bg {
    position: absolute;
    inset: 0;
    background: #050508;
}

.loader-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-subtle-hover), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, var(--accent-subtle), transparent),
        radial-gradient(ellipse 50% 30% at 10% 80%, rgba(139, 92, 246, 0.08), transparent);
}

.loader-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    mix-blend-mode: overlay;
}

.loader-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 8s ease-in-out infinite;
}

.loader-orb.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-border), transparent 70%);
    top: -15%;
    left: -10%;
    animation-delay: 0s;
}

.loader-orb.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-border), transparent 70%);
    bottom: -10%;
    right: -5%;
    animation-delay: -3s;
}

.loader-orb.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

.loader-grid-lines {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black, transparent);
}

.loader-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.loader-bottom-section {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}

.loader-logo-container {
    position: relative;
    width: 176px;
    height: 176px;
    animation: logoBreath 4s ease-in-out 2.8s infinite;
}

@keyframes logoBreath {
    0%, 100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 30px var(--accent-glow)) drop-shadow(0 0 60px var(--accent-border));
    }
    50% { 
        transform: scale(1.05); 
        filter: drop-shadow(0 0 50px var(--accent-glow)) drop-shadow(0 0 100px var(--accent-border));
    }
}

.loader-logo-ring {
    display: none;
}

.loader-logo-ring.ring-outer {
    display: none;
}

.loader-logo-ring.ring-inner {
    display: none;
}

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

.loader-logo-hex {
    position: absolute;
    inset: 0;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: none;
}

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

.loader-logo-img {
    width: 176px;
    height: 176px;
    object-fit: contain;
    /* LCP: hint браузеру, что свойства будут анимироваться (ускоряет композицию, не меняет дизайн) */
    will-change: transform, opacity, filter;
    filter: drop-shadow(0 0 30px var(--accent-glow)) drop-shadow(0 0 60px var(--accent-border));
    animation: 
        logoDepixelate 2.8s cubic-bezier(0.4, 0, 0.2, 1) forwards,
        logoScaleReveal 2.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
        letterGlow 2s ease-in-out 2.8s infinite;
}

@keyframes logoDepixelate {
    0% {
        
        opacity: 1;
        filter: blur(20px) brightness(3) drop-shadow(0 0 80px var(--accent-primary));
    }
    8% {
        opacity: 1;
        filter: blur(16px) brightness(2.5) drop-shadow(0 0 100px var(--accent-primary));
    }
    20% {
        filter: blur(12px) brightness(2.2) drop-shadow(0 0 90px var(--accent-primary));
    }
    35% {
        filter: blur(8px) brightness(1.8) drop-shadow(0 0 70px var(--accent-primary));
    }
    50% {
        filter: blur(5px) brightness(1.5) drop-shadow(0 0 60px var(--accent-primary));
    }
    65% {
        filter: blur(3px) brightness(1.3) drop-shadow(0 0 50px var(--accent-glow));
    }
    80% {
        filter: blur(1px) brightness(1.15) drop-shadow(0 0 40px var(--accent-glow));
    }
    92% {
        filter: blur(0.5px) brightness(1.05) drop-shadow(0 0 35px var(--accent-glow)) drop-shadow(0 0 70px var(--accent-border));
    }
    100% {
        opacity: 1;
        filter: blur(0) brightness(1) drop-shadow(0 0 30px var(--accent-glow)) drop-shadow(0 0 60px var(--accent-border));
    }
}

@keyframes logoScaleReveal {
    0% {
        transform: scale(0.6);
    }
    15% {
        transform: scale(0.7);
    }
    40% {
        transform: scale(0.85);
    }
    70% {
        transform: scale(0.95);
    }
    85% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes logoPixelAppear {
    0% {
        opacity: 0;
        filter: url(#pixelate-1) drop-shadow(0 0 50px var(--accent-primary)) brightness(3);
    }
    15% {
        opacity: 1;
        filter: url(#pixelate-1) drop-shadow(0 0 80px var(--accent-primary)) brightness(2.5);
    }
    30% {
        filter: url(#pixelate-2) drop-shadow(0 0 60px var(--accent-primary)) brightness(2);
    }
    45% {
        filter: url(#pixelate-2) drop-shadow(0 0 50px var(--accent-primary)) brightness(1.8);
    }
    60% {
        filter: url(#pixelate-3) drop-shadow(0 0 45px var(--accent-primary)) brightness(1.5);
    }
    75% {
        filter: url(#pixelate-4) drop-shadow(0 0 40px var(--accent-primary)) brightness(1.3);
    }
    90% {
        filter: drop-shadow(0 0 35px var(--accent-glow)) drop-shadow(0 0 70px var(--accent-border)) brightness(1.1);
    }
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 30px var(--accent-glow)) drop-shadow(0 0 60px var(--accent-border)) brightness(1);
    }
}

@keyframes logoGlitch {
    0% { transform: translate(0, 0) scale(0.3); }
    5% { transform: translate(-8px, 5px) scale(0.5); }
    10% { transform: translate(10px, -8px) scale(0.6); }
    15% { transform: translate(-5px, 10px) scale(0.7); }
    20% { transform: translate(8px, -5px) scale(0.75); }
    25% { transform: translate(-10px, -8px) scale(0.8); }
    30% { transform: translate(5px, 8px) scale(0.85); }
    35% { transform: translate(-3px, -5px) scale(0.88); }
    40% { transform: translate(6px, 3px) scale(0.9); }
    45% { transform: translate(-4px, 6px) scale(0.92); }
    50% { transform: translate(3px, -4px) scale(0.94); }
    55% { transform: translate(-2px, 3px) scale(0.96); }
    60% { transform: translate(4px, -2px) scale(0.97); }
    65% { transform: translate(-3px, 2px) scale(0.98); }
    70% { transform: translate(2px, -3px) scale(0.99); }
    75% { transform: translate(-1px, 2px) scale(0.995); }
    80% { transform: translate(1px, -1px) scale(1); }
    85% { transform: translate(-1px, 1px) scale(1); }
    90% { transform: translate(1px, 0) scale(1); }
    95% { transform: translate(0, 0) scale(1.02); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes logoEpicGlow {
    0% {
        --glow-intensity: 0;
    }
    50% {
        --glow-intensity: 1;
    }
    100% {
        --glow-intensity: 0.6;
    }
}

.loader-logo-container::after {
    content: '';
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, var(--accent-primary) 0%, var(--accent-glow) 30%, transparent 70%);
    opacity: 0;
    animation: containerGlowPulse 2.8s ease-out forwards;
    pointer-events: none;
    z-index: -1;
    border-radius: 50%;
}

@keyframes containerGlowPulse {
    0% { 
        opacity: 0; 
        transform: scale(0.3);
        filter: blur(20px);
    }
    20% { 
        opacity: 0.8; 
        transform: scale(0.8);
        filter: blur(15px);
    }
    40% { 
        opacity: 0.6; 
        transform: scale(1.1);
        filter: blur(10px);
    }
    60% { 
        opacity: 0.4; 
        transform: scale(1.05);
        filter: blur(5px);
    }
    80% { 
        opacity: 0.3; 
        transform: scale(1);
        filter: blur(2px);
    }
    100% { 
        opacity: 0.25; 
        transform: scale(1);
        filter: blur(0);
    }
}

.loader-logo-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 50%);
    opacity: 0;
    animation: logoFlashReveal 2.8s ease-out forwards;
    pointer-events: none;
    z-index: -1;
    border-radius: 50%;
}

@keyframes logoFlashReveal {
    0% { opacity: 0; transform: scale(0.5); }
    60% { opacity: 0; transform: scale(0.8); }
    75% { opacity: 0.5; transform: scale(1.2); }
    85% { opacity: 0.3; transform: scale(1.1); }
    100% { opacity: 0.18; transform: scale(1); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.loader-brand {
    display: none; 
    flex-direction: column;
    align-items: center;
    gap: 0px;
}

.loader-title {
    font-family: 'Widock', sans-serif;
    font-size: 52px;
    font-weight: 800;
    letter-spacing: 20px;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-primary) 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 3s linear infinite;
    text-indent: 20px;
}

@keyframes titleShine {
    from { background-position: -200% center; }
    to { background-position: 200% center; }
}

.loader-subtitle {
    display: flex;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 8px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: -8px;
}

.loader-subtitle span {
    animation: letterFade 2s ease-in-out infinite;
}

.loader-subtitle span:nth-child(1) { animation-delay: 0s; }
.loader-subtitle span:nth-child(2) { animation-delay: 0.1s; }
.loader-subtitle span:nth-child(3) { animation-delay: 0.2s; }
.loader-subtitle span:nth-child(4) { animation-delay: 0.3s; }
.loader-subtitle span:nth-child(5) { animation-delay: 0.4s; }
.loader-subtitle span:nth-child(6) { animation-delay: 0.5s; }
.loader-subtitle span:nth-child(7) { animation-delay: 0.6s; }
.loader-subtitle span:nth-child(8) { animation-delay: 0.7s; }

@keyframes letterFade {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; color: var(--accent-primary); }
}

.loader-progress-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 360px;
}

.loader-progress-bar {
    position: relative;
    width: 100%;
}

.loader-progress-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    contain: layout style paint;
}

.loader-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-primary), var(--accent-hover));
    border-radius: 4px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: width;
    contain: layout style paint;
}

.loader-progress-shine {
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    from { left: -50%; }
    to { left: 150%; }
}

.loader-progress-glow {
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to top, var(--accent-border), transparent);
    filter: blur(8px);
    opacity: 0.6;
}

.loader-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 12px;
}

.loader-status {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'JetBrains Mono', monospace;
    animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.loader-percent {
    color: var(--accent-primary);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 14px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.loader-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.loader-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s ease-in-out infinite;
}

.loader-particles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.loader-particles span:nth-child(2) { left: 20%; animation-delay: 0.5s; }
.loader-particles span:nth-child(3) { left: 30%; animation-delay: 1s; }
.loader-particles span:nth-child(4) { left: 40%; animation-delay: 1.5s; }
.loader-particles span:nth-child(5) { left: 50%; animation-delay: 2s; }
.loader-particles span:nth-child(6) { left: 60%; animation-delay: 2.5s; }
.loader-particles span:nth-child(7) { left: 70%; animation-delay: 3s; }
.loader-particles span:nth-child(8) { left: 80%; animation-delay: 3.5s; }
.loader-particles span:nth-child(9) { left: 90%; animation-delay: 4s; }
.loader-particles span:nth-child(10) { left: 95%; animation-delay: 4.5s; }

@keyframes particleFloat {
    0% {
        bottom: -10px;
        opacity: 0;
        transform: translateX(0);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateX(30px);
    }
}

@media (max-width: 480px) {
    .loader-logo-container {
        width: 132px;
        height: 132px;
    }
    
    .loader-logo-img {
        width: 132px;
        height: 132px;
    }
    
    .loader-title {
        font-size: 36px;
        letter-spacing: 12px;
    }
    
    .loader-progress-section {
        width: 280px;
    }
}

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

@keyframes particlePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(2); opacity: 0; }
}

@keyframes avatar3dGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

@keyframes avatar3dRing {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

@keyframes avatar3dFloat {
    0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
    25% { transform: translateY(-5px) rotateX(5deg) rotateY(5deg); }
    50% { transform: translateY(0) rotateX(0) rotateY(10deg); }
    75% { transform: translateY(-5px) rotateX(-5deg) rotateY(5deg); }
}

.liquid-btn {
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    background: transparent;
}

.liquid-btn-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--btn-color, var(--red-primary)), var(--red-dark));
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 0;
}

.liquid-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

.liquid-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.liquid-btn-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.liquid-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.liquid-btn:hover::after {
    transform: translateX(100%);
}

@keyframes subscribePress {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.95); }
}

@keyframes confettiExplode {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(0);
    }
}

@keyframes rippleExpand {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

.comment-submit-v2.liquid-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
}

@keyframes glitchText {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitchBefore {
    0%, 100% { opacity: 0; transform: translate(0); }
    20% { opacity: 0.8; transform: translate(2px, -2px); }
    40% { opacity: 0.8; transform: translate(-2px, 2px); }
    60% { opacity: 0.8; transform: translate(2px, 2px); }
    80% { opacity: 0.8; transform: translate(-2px, -2px); }
}

@keyframes glitchAfter {
    0%, 100% { opacity: 0; transform: translate(0); }
    20% { opacity: 0.8; transform: translate(-2px, 2px); }
    40% { opacity: 0.8; transform: translate(2px, -2px); }
    60% { opacity: 0.8; transform: translate(-2px, -2px); }
    80% { opacity: 0.8; transform: translate(2px, 2px); }
}

@keyframes glitchConstant {
    0%, 90%, 100% { transform: translate(0); filter: none; }
    91% { transform: translate(-1px, 1px); filter: hue-rotate(90deg); }
    92% { transform: translate(1px, -1px); filter: hue-rotate(-90deg); }
    93% { transform: translate(0); filter: none; }
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 100%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

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

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

.floating-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: floatShape 20s ease-in-out infinite;
    will-change: transform;
    contain: layout style paint;
}

.floating-shape.shape-1 {
    width: 100px;
    height: 100px;
    border: 2px solid var(--red-primary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-shape.shape-2 {
    width: 150px;
    height: 150px;
    border: 2px solid var(--red-primary);
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    top: 60%;
    right: 5%;
    animation-delay: -5s;
}

.floating-shape.shape-3 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    bottom: 20%;
    left: 15%;
    animation-delay: -10s;
}

.floating-shape.shape-4 {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 20%;
    top: 30%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes floatShape {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% { 
        transform: translateY(-30px) rotate(90deg) scale(1.1);
    }
    50% { 
        transform: translateY(-10px) rotate(180deg) scale(0.95);
    }
    75% { 
        transform: translateY(-40px) rotate(270deg) scale(1.05);
    }
}

.floating-diamond {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--red-primary), transparent);
    transform: rotate(45deg);
    opacity: 0.2;
    animation: floatDiamond 15s ease-in-out infinite;
    will-change: transform, opacity;
    contain: layout style paint;
}

.floating-diamond.d-1 {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.floating-diamond.d-2 {
    bottom: 30%;
    left: 8%;
    animation-delay: -7.5s;
}

@keyframes floatDiamond {
    0%, 100% { 
        transform: rotate(45deg) translateY(0);
        opacity: 0.1;
    }
    50% { 
        transform: rotate(225deg) translateY(-50px);
        opacity: 0.3;
    }
}

.floating-cross {
    position: absolute;
    width: 30px;
    height: 30px;
    opacity: 0.1;
    animation: floatCross 18s ease-in-out infinite;
    will-change: transform, opacity;
    contain: layout style paint;
}

.floating-cross::before,
.floating-cross::after {
    content: '';
    position: absolute;
    background: var(--red-primary);
}

.floating-cross::before {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.floating-cross::after {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.floating-cross.c-1 {
    top: 40%;
    left: 3%;
    animation-delay: 0s;
}

.floating-cross.c-2 {
    bottom: 15%;
    right: 12%;
    animation-delay: -9s;
}

@keyframes floatCross {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
        opacity: 0.1;
    }
    50% { 
        transform: rotate(180deg) scale(1.2);
        opacity: 0.2;
    }
}

@media (max-width: 768px) {
    
    .floating-elements {
        display: none;
    }
}


.resources-admin-page {
    padding: 0;
}

.resources-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    padding: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.resources-header-info h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px;
}

.resources-header-info p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 14px;
}

.resources-header-stats {
    display: flex;
    gap: 24px;
}

.resources-stat {
    text-align: center;
    padding: 12px 20px;
    background: var(--accent-subtle);
    border-radius: 12px;
    border: 1px solid var(--accent-border);
}

.resources-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-primary);
}

.resources-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resources-actions-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.resources-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resources-action-btn.primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-dark));
    color: white;
}

.resources-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-shadow);
}

.resources-action-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.resources-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.resources-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.resource-category-card-v2 {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.resource-category-card-v2:hover {
    border-color: var(--accent-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.category-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-subtle-hover), var(--accent-subtle));
    border-radius: 14px;
    color: var(--accent-primary);
}

.category-info {
    flex: 1;
}

.category-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px;
}

.category-count {
    font-size: 13px;
    color: var(--text-secondary);
}

.category-actions {
    display: flex;
    gap: 8px;
}

.category-action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-action-btn:hover {
    background: var(--accent-subtle-hover);
    border-color: var(--accent-border);
    color: var(--accent-primary);
}

.category-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--accent-hover);
}

.category-items-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
}

.resource-item-v2 {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.resource-item-v2:hover {
    background: rgba(0, 0, 0, 0.3);
}

.resource-item-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: 8px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.resource-item-content {
    flex: 1;
    min-width: 0;
}

.resource-item-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.resource-item-link {
    display: block;
    font-size: 12px;
    color: #60a5fa;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-item-link:hover {
    text-decoration: underline;
}

.resource-item-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 6px 0 0;
    line-height: 1.4;
}

.resource-item-btns {
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.resource-item-v2:hover .resource-item-btns {
    opacity: 1;
}

.resource-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.resource-btn.edit:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.resource-btn.delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-hover);
}

.category-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    color: var(--text-secondary);
}

.category-empty .icon-svg {
    opacity: 0.3;
    margin-bottom: 12px;
}

.category-empty p {
    margin: 0 0 16px;
    font-size: 14px;
}

.add-first-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--accent-subtle-hover);
    border: 1px dashed var(--accent-shadow);
    border-radius: 10px;
    color: var(--accent-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-first-btn:hover {
    background: var(--accent-border);
    border-style: solid;
}

.modal-overlay-liquid {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.resource-modal-v2 {
    width: 100%;
    max-width: 520px;
    background: linear-gradient(145deg, rgba(25, 25, 35, 0.98), rgba(15, 15, 22, 0.99));
    backdrop-filter: blur(32px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.resource-modal-v2.small {
    max-width: 420px;
}

.resource-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.resource-modal-header.danger .resource-modal-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-hover);
}

.resource-modal-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle-hover);
    border-radius: 14px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.resource-modal-icon.edit {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.resource-modal-icon.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-hover);
}

.resource-modal-title {
    flex: 1;
}

.resource-modal-title h2 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px;
}

.resource-modal-title p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.resource-modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.resource-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-hover);
}

.resource-modal-body {
    padding: 24px;
}

.resource-form-group {
    margin-bottom: 20px;
}

.resource-form-group:last-child {
    margin-bottom: 0;
}

.resource-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.resource-form-group label .optional {
    color: var(--text-muted);
    font-weight: 400;
}

.resource-form-input,
.resource-form-select,
.resource-form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 14px;
    color: white;
    transition: all 0.2s ease;
}

.resource-form-input:focus,
.resource-form-select:focus,
.resource-form-textarea:focus {
    outline: none;
    border-color: var(--accent-glow);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.resource-form-input::placeholder,
.resource-form-textarea::placeholder {
    color: var(--text-muted);
}

.resource-form-select {
    cursor: pointer;
}

.resource-form-textarea {
    resize: vertical;
    min-height: 80px;
}

.resource-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.resource-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.resource-modal-btn.cancel {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.resource-modal-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.12);
}

.resource-modal-btn.submit {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-dark));
    color: white;
}

.resource-modal-btn.submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-shadow);
}

.resource-modal-btn.danger {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-primary));
    color: white;
}

.resource-modal-btn.danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.delete-confirm-text {
    font-size: 15px;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.delete-warning {
    font-size: 13px;
    color: #fbbf24;
    margin: 0;
    padding: 12px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 10px;
}

@media (max-width: 900px) {
    .resources-admin-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .resources-header-stats {
        width: 100%;
        justify-content: center;
    }
    
    .resources-categories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .resources-actions-bar {
        flex-direction: column;
    }
    
    .resources-action-btn {
        justify-content: center;
    }
}


.access-denied-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow: hidden;
}

.access-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
}

.access-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 100% 60% at 50% 0%, var(--accent-subtle-hover), transparent),
        radial-gradient(ellipse 80% 40% at 20% 100%, var(--accent-subtle), transparent),
        radial-gradient(ellipse 60% 30% at 80% 80%, rgba(139, 92, 246, 0.05), transparent);
}

.access-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: accessOrbFloat 10s ease-in-out infinite;
}

.access-orb.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-subtle-hover);
    top: -200px;
    left: -200px;
}

.access-orb.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-subtle);
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

@keyframes accessOrbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, -30px); }
}

.access-grid-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

.access-denied-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px;
}

.access-glass-card {
    position: relative;
    padding: 48px 40px;
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.6), rgba(10, 10, 18, 0.8));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    overflow: hidden;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.4),
        inset 0 0 60px var(--accent-subtle);
}

.access-glass-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: accessShine 6s ease-in-out infinite;
}

@keyframes accessShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.access-icon-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 32px;
}

.access-icon-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--accent-border), var(--accent-subtle));
    border-radius: 28px;
    border: 1px solid var(--accent-border);
    color: var(--accent-primary);
}

.access-icon-ring {
    position: absolute;
    inset: -8px;
    border-radius: 36px;
    border: 2px dashed var(--accent-border);
    animation: accessIconRotate 20s linear infinite;
}

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

.access-icon-pulse {
    position: absolute;
    inset: -15px;
    border-radius: 44px;
    border: 1px solid var(--accent-border);
    animation: accessIconPulse 2s ease-out infinite;
}

@keyframes accessIconPulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 0; }
}

.access-title {
    font-family: 'Widock', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.access-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 32px;
    line-height: 1.6;
}

.access-description .highlight {
    color: white;
    font-weight: 600;
}

.access-progress-container {
    margin-bottom: 32px;
}

.access-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
}

.access-progress-text {
    color: rgba(255, 255, 255, 0.5);
}

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

.access-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.access-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-primary), var(--accent-hover));
    border-radius: 8px;
    position: relative;
    transition: width 0.5s ease;
}

.access-progress-glow {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    animation: accessProgressGlow 1.5s ease-in-out infinite;
}

@keyframes accessProgressGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.access-progress-hint {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.access-action-btn {
    position: relative;
    width: 100%;
    padding: 18px 32px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
}

.access-btn-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-dark));
    transition: all 0.3s ease;
}

.access-action-btn:hover .access-btn-bg {
    filter: brightness(1.1);
}

.access-btn-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
}

.access-btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.access-action-btn:hover .access-btn-shine {
    left: 100%;
}

.access-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px var(--accent-shadow);
}

.access-rank-info {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.access-current-rank {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.access-current-rank strong {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 480px) {
    .access-glass-card {
        padding: 36px 24px;
    }
    
    .access-title {
        font-size: 26px;
    }
    
    .access-icon-container {
        width: 80px;
        height: 80px;
    }
}


.manual-reader-modal {
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    background: linear-gradient(145deg, rgba(25, 25, 35, 0.98), rgba(15, 15, 22, 0.99));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.manual-reader-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.manual-reader-title-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.manual-reader-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-border), var(--accent-subtle));
    border-radius: 14px;
    color: var(--accent-primary);
}

.manual-reader-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px;
}

.manual-reader-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.manual-reader-rank {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #fbbf24;
    padding: 4px 10px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 20px;
}

.manual-reader-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.manual-reader-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-hover);
}

.manual-reader-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    scroll-behavior: smooth;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    position: relative;
}

.manual-reader-content::before {
    content: 'LXRD • PROTECTED • LXRD • PROTECTED • LXRD • PROTECTED';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 60px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.015);
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
    letter-spacing: 20px;
}

.manual-content-image,
.manual-cover-image {
    pointer-events: auto;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

@media print {
    .manual-reader-modal,
    .manual-reader-content {
        display: none !important;
    }
    
    body::after {
        content: 'Печать запрещена';
        display: block;
        font-size: 48px;
        text-align: center;
        padding: 100px;
    }
}

.manual-reader-content::-webkit-scrollbar {
    width: 8px;
}

.manual-reader-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.manual-reader-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.manual-reader-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.manual-text-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.8;
}

.manual-text-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-border);
}

.manual-text-content h2:first-child {
    margin-top: 0;
}

.manual-text-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 24px 0 12px;
}

.manual-text-content h4 {
    font-size: 17px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 20px 0 10px;
}

.manual-text-content p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.8);
}

.manual-text-content strong {
    color: white;
    font-weight: 600;
}

.manual-text-content em {
    color: var(--accent-primary);
    font-style: italic;
}

.manual-text-content ul,
.manual-text-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.manual-text-content li {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.8);
}

.manual-text-content li::marker {
    color: var(--accent-primary);
}

.manual-text-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 8px;
    border-radius: 6px;
    color: #f472b6;
}

.manual-text-content pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 16px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 16px 0;
}

.manual-text-content pre code {
    padding: 0;
    background: none;
}

.manual-text-content blockquote,
.manual-text-content .manual-quote {
    border-left: 4px solid var(--accent-primary);
    padding: 12px 16px;
    margin: 16px 0;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    background: rgba(var(--accent-primary-rgb), 0.05);
    border-radius: 0 8px 8px 0;
}

.manual-text-content del {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
}

.manual-text-content .inline-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 8px;
    border-radius: 6px;
    color: #f472b6;
}

.manual-text-content .manual-code-block {
    background: rgba(0, 0, 0, 0.5);
    padding: 16px 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.manual-text-content .manual-code-block code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #e2e8f0;
    background: none;
    padding: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.manual-text-content .manual-hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 32px 0;
}

.manual-text-content .manual-list {
    margin: 16px 0;
    padding-left: 24px;
}

.manual-text-content .manual-list.ordered {
    counter-reset: list-counter;
}

.manual-text-content .manual-list li {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.8);
}

.manual-text-content .manual-list li::marker {
    color: var(--accent-primary);
}

.manual-image-wrapper {
    margin: 20px 0;
    text-align: center;
}

.manual-content-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    cursor: zoom-in;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.manual-content-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.image-caption {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

.image-error {
    padding: 32px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px dashed rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: #ef4444;
    text-align: center;
    font-size: 14px;
}

.manual-link {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.manual-link:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

.manual-cover-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 24px;
    cursor: zoom-in;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.manual-cover-image:hover {
    transform: scale(1.01);
    filter: brightness(1.05);
}

.resources-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.resources-empty-state p {
    font-size: 16px;
    margin: 0;
}

#videosContent .resources-section-header-liquid {
    margin-bottom: 0;
}

#videosContent .resources-section-header-liquid p {
    margin-bottom: 0;
}

.videos-grid-liquid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 0 0 20px 0;
}

.video-card-liquid {
    position: relative;
    background: linear-gradient(145deg, 
        rgba(25, 25, 35, 0.9),
        rgba(15, 15, 22, 0.95));
    border: 1px solid var(--accent-border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.video-card-liquid:hover {
    transform: translateY(-8px);
    border-color: var(--accent-glow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                0 0 40px var(--accent-border);
}

.video-card-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

.video-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.video-card-liquid:hover .video-card-thumbnail img {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.video-card-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
}

.video-card-liquid:hover .video-card-play-overlay {
    opacity: 1;
}

.video-card-play-overlay svg {
    color: white;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.video-card-liquid:hover .video-card-play-overlay svg {
    transform: scale(1.1);
}

.video-card-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.video-card-content {
    padding: 16px;
}

.video-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-topic {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--accent-glow);
    margin: 0 0 8px 0;
}

.video-card-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--accent-subtle), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.video-card-liquid:hover .video-card-glow {
    opacity: 1;
}

.video-player-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
}

.video-player-overlay.active {
    opacity: 1;
}

.video-player-container {
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--accent-border);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.video-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--accent-border);
}

.video-player-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-player-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.video-player-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-border);
}

.video-player-close svg {
    color: var(--text-primary);
}

.video-player-iframe-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: black;
}

.video-player-iframe-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.resources-loading-liquid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .videos-grid-liquid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .video-player-container {
        width: 100%;
        max-width: none;
        max-height: none;
        height: 100%;
        border-radius: 0;
    }
    
    .video-player-header {
        padding: 12px 16px;
    }
    
    .video-player-header h3 {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .manual-reader-modal {
        max-width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .manual-reader-header {
        padding: 16px 20px;
    }
    
    .manual-reader-content {
        padding: 20px;
    }
    
    .manual-reader-header h2 {
        font-size: 18px;
    }
    
    .manual-reader-icon {
        width: 42px;
        height: 42px;
    }
}


.manual-editor-modal {
    width: 100%;
    max-width: 900px;
    max-height: 92vh;
    background: rgba(12, 12, 18, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 40px 100px rgba(0, 0, 0, 0.7),
        0 10px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.manual-editor-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-subtle) 0%, transparent 50%);
    border-radius: 24px;
    pointer-events: none;
}

.manual-editor-modal .resource-modal-header {
    padding: 28px 32px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.manual-editor-modal .resource-modal-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 32px;
    right: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
}

.manual-editor-modal .resource-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-subtle-hover), var(--accent-subtle));
    border: 1px solid var(--accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red-primary);
    box-shadow: 0 4px 20px var(--accent-subtle-hover);
}

.manual-editor-modal .resource-modal-icon.edit {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    border-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.manual-editor-modal .resource-modal-title h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.manual-editor-modal .resource-modal-close {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.manual-editor-modal .resource-modal-close:hover {
    background: var(--accent-subtle-hover);
    border-color: var(--accent-border);
    color: var(--red-primary);
}

.manual-editor-body {
    padding: 28px 32px;
    overflow-y: auto;
    flex: 1;
}

.manual-editor-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.manual-editor-body .resource-form-group {
    margin-bottom: 0;
}

.manual-editor-body .resource-form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.manual-editor-body .resource-form-input,
.manual-editor-body .resource-form-select {
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.manual-editor-body .resource-form-input:hover,
.manual-editor-body .resource-form-select:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
}

.manual-editor-body .resource-form-input:focus,
.manual-editor-body .resource-form-select:focus {
    border-color: var(--red-primary);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 0 4px var(--accent-subtle);
}

.manual-editor-body .resource-form-input::placeholder {
    color: var(--text-muted);
}

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

.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.custom-dropdown-trigger:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
}

.custom-dropdown.open .custom-dropdown-trigger {
    border-color: var(--red-primary);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 0 4px var(--accent-subtle);
}

.custom-dropdown-value {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
}

.custom-dropdown-value .icon-svg {
    width: 18px;
    height: 18px;
    color: var(--red-primary);
}

.custom-dropdown-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-dropdown.open .custom-dropdown-arrow {
    transform: rotate(180deg);
    color: var(--red-primary);
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(15, 15, 22, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 8px;
    max-height: 280px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.96);
    transform-origin: top center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 20px 50px rgba(0, 0, 0, 0.5);
}

.custom-dropdown.open .custom-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.custom-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.custom-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.custom-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.custom-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.custom-dropdown-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.custom-dropdown-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--accent-subtle-hover), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-dropdown-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.custom-dropdown-option:hover::before {
    opacity: 1;
}

.custom-dropdown-option.selected {
    background: var(--accent-subtle-hover);
}

.custom-dropdown-option.selected::before {
    opacity: 1;
}

.custom-dropdown-option-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-dropdown-option-icon .icon-svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.custom-dropdown-option:hover .custom-dropdown-option-icon {
    background: var(--accent-subtle-hover);
}

.custom-dropdown-option:hover .custom-dropdown-option-icon .icon-svg,
.custom-dropdown-option.selected .custom-dropdown-option-icon .icon-svg {
    color: var(--red-primary);
}

.custom-dropdown-option.selected .custom-dropdown-option-icon {
    background: var(--accent-border);
}

.custom-dropdown-option-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.custom-dropdown-option:hover .custom-dropdown-option-text {
    color: white;
}

.custom-dropdown-option-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-dropdown-option.selected .custom-dropdown-option-check {
    background: var(--red-primary);
    border-color: var(--red-primary);
    box-shadow: 0 0 12px var(--accent-shadow);
}

.custom-dropdown-option-check .icon-svg {
    width: 12px;
    height: 12px;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.custom-dropdown-option.selected .custom-dropdown-option-check .icon-svg {
    opacity: 1;
    transform: scale(1);
}

.custom-dropdown-menu.icon-grid {
    padding: 12px;
}

.custom-dropdown-icons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.custom-dropdown-icon-option {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-dropdown-icon-option .icon-svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.custom-dropdown-icon-option:hover {
    background: var(--accent-subtle-hover);
    border-color: var(--accent-border);
    transform: scale(1.08);
}

.custom-dropdown-icon-option:hover .icon-svg {
    color: var(--red-primary);
}

.custom-dropdown-icon-option.selected {
    background: var(--accent-border);
    border-color: var(--red-primary);
    box-shadow: 0 0 16px var(--accent-border);
}

.custom-dropdown-icon-option.selected .icon-svg {
    color: var(--red-primary);
}

.custom-dropdown-option,
.custom-dropdown-icon-option {
    animation: dropdownOptionIn 0.3s ease backwards;
}

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

.manual-content-textarea {
    width: 100%;
    min-height: 400px;
    padding: 18px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.7;
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
    resize: vertical;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.manual-content-textarea:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
}

.manual-content-textarea:focus {
    outline: none;
    border-color: var(--red-primary);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 0 4px var(--accent-subtle);
}

.manual-content-textarea::placeholder {
    color: var(--text-muted);
}

.manual-editor-modal .resource-modal-actions {
    padding: 20px 32px 28px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 14px;
}

.manual-editor-modal .resource-modal-btn {
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.manual-editor-modal .resource-modal-btn.cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.manual-editor-modal .resource-modal-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.manual-editor-modal .resource-modal-btn.submit {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-dark) 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 16px var(--accent-border);
}

.manual-editor-modal .resource-modal-btn.submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-shadow);
}

.icon-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(15, 15, 22, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 20px 50px rgba(0, 0, 0, 0.5);
}

.icon-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.resource-btn.view {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.resource-btn.view:hover {
    background: rgba(59, 130, 246, 0.25);
}

.manual-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.manual-rank-badge {
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border-radius: 20px;
    font-weight: 500;
}

.manual-content-preview {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

@media (max-width: 768px) {
    .manual-editor-modal {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .manual-editor-row {
        grid-template-columns: 1fr;
    }
    
    .manual-editor-body {
        padding: 16px;
    }
    
    .icon-dropdown {
        grid-template-columns: repeat(5, 1fr);
    }
}

.lxrd-page {
    position: relative;
    min-height: 100vh;
    padding: 0 0 40px 0;
}

.lxrd-page--fullscreen {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 64px);
    padding: 0;
    overflow: hidden;
    margin: -32px;
    width: calc(100% + 64px);
}

@media (max-width: 768px) {
    .lxrd-page--fullscreen {
        height: calc(100vh - 24px);
        margin: -12px;
        width: calc(100% + 24px);
    }
}

@media (max-width: 400px) {
    .lxrd-page--fullscreen {
        height: calc(100vh - 12px);
        margin: -6px;
        width: calc(100% + 12px);
    }
}

.lxrd-bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.lxrd-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: lxrdOrbFloat 15s ease-in-out infinite;
}

.lxrd-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-glow);
    top: -150px;
    right: 10%;
}

.lxrd-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.3);
    bottom: 20%;
    left: -100px;
    animation-delay: -5s;
}

.lxrd-orb-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-subtle);
    top: 50%;
    right: -80px;
    animation-delay: -10s;
}

@keyframes lxrdOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

.lxrd-header {
    position: relative;
    z-index: 10;
    margin-bottom: 24px;
    padding: 0 32px;
}

.faq-liquid-page .lxrd-header,
.resources-liquid-page .lxrd-header,
.wheel-liquid-page .lxrd-header,
.projects-liquid-page .lxrd-header,
.lessons-liquid-page .lxrd-header {
    padding: 0;
}

.lxrd-header-glass {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.5), rgba(var(--accent-rgb), 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: lxrdFadeInUp 0.4s ease backwards;
}

.lxrd-header-icon {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-subtle-hover), var(--accent-subtle));
    border-radius: 16px;
    color: var(--accent-primary);
}

.lxrd-header-icon-ring {
    position: absolute;
    inset: -6px;
    border: 2px dashed var(--accent-border);
    border-radius: 22px;
    animation: lxrdRingSpin 20s linear infinite;
}

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

.lxrd-header-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.lxrd-header-stat-value {
    font-family: 'Widock', 'Orbitron', monospace;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.lxrd-header-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lxrd-header-text {
    flex: 1;
}

.lxrd-title {
    font-family: 'Widock', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
}

.lxrd-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.lxrd-card {
    position: relative;
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    animation: lxrdFadeInUp 0.4s ease backwards;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.lxrd-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lxrd-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-2px);
}

.lxrd-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: none;
    pointer-events: none;
}

@keyframes lxrdShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.lxrd-card-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.lxrd-card-content {
    position: relative;
    padding: 24px;
    z-index: 1;
}

.lxrd-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lxrd-btn.lxrd-btn-center-text {
    position: relative;
    justify-content: center;
}

.lxrd-btn.lxrd-btn-center-text .lxrd-btn-left-icon {
    position: absolute;
    left: 18px;
}

.lxrd-btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-dark));
    color: white;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.lxrd-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.lxrd-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.lxrd-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-border);
}

.lxrd-btn-danger {
    background: linear-gradient(135deg, #ff3b3b, #c41919);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 59, 59, 0.3);
}

.lxrd-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 59, 59, 0.5);
    background: linear-gradient(135deg, #ff4f4f, #d42020);
}

.lxrd-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 16px;
}

.lxrd-btn-ghost:hover {
    background: var(--accent-subtle);
    color: var(--accent-primary);
}

.lxrd-btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
}

.lxrd-grid {
    display: grid;
    gap: 20px;
    padding: 0 32px;
    position: relative;
    z-index: 10;
}

.lxrd-grid-2 { grid-template-columns: repeat(2, 1fr); }
.lxrd-grid-4 { grid-template-columns: repeat(4, 1fr); }
.lxrd-grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

#crmClientsList {
    grid-template-columns: 1fr;
}

@media (max-width: 1200px) {
    .lxrd-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .lxrd-grid-4,
    .lxrd-grid-2 { grid-template-columns: 1fr; }
    .lxrd-header { padding: 0 16px; }
    .lxrd-grid { padding: 0 16px; }
    
    .files-page .lxrd-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 8px !important;
    }
    
    .files-page .lxrd-stat {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 16px 12px 14px !important;
        gap: 0 !important;
    }
    
    .files-page .lxrd-stat-content {
        display: contents !important;
    }
    
    .files-page .lxrd-stat-value {
        font-size: 28px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        color: #fff !important;
        order: 1 !important;
        margin-right: 10px !important;
    }
    
    .files-page .lxrd-stat-icon {
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
        order: 2 !important;
    }
    
    .files-page .lxrd-stat-icon .icon-svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .files-page .lxrd-stat-label {
        order: 3 !important;
        width: 100% !important;
        text-align: center !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        opacity: 0.85 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        margin-top: 10px !important;
    }
    
    .quiz-page .lxrd-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 0 12px !important;
    }
    
    .quiz-page .lxrd-stat {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        justify-items: center !important;
        gap: 4px 6px !important;
        padding: 14px 10px !important;
        min-height: auto !important;
    }
    
    .quiz-page .lxrd-stat-icon {
        grid-row: 1 !important;
        grid-column: 3 !important;
        justify-self: start !important;
        width: 28px !important;
        height: 28px !important;
        border-radius: 6px !important;
    }
    
    .quiz-page .lxrd-stat-icon .icon-svg {
        width: 14px !important;
        height: 14px !important;
    }
    
    .quiz-page .lxrd-stat-info {
        display: contents !important;
    }
    
    .quiz-page .lxrd-stat-value {
        grid-row: 1 !important;
        grid-column: 2 !important;
        font-size: 22px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        color: #fff !important;
        margin: 0 !important;
        text-align: center !important;
    }
    
    .quiz-page .lxrd-stat-label {
        grid-row: 2 !important;
        grid-column: 1 / -1 !important;
        font-size: 9px !important;
        font-weight: 600 !important;
        opacity: 0.7 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        text-align: center !important;
        margin: 0 !important;
    }
    
    .quiz-page .lxrd-diff-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .quiz-page .lxrd-diff-card {
        padding: 20px !important;
    }
}

@media (max-width: 380px) {
    .quiz-page .lxrd-grid-4 {
        gap: 6px !important;
        padding: 0 6px !important;
    }
    
    .quiz-page .lxrd-stat {
        padding: 10px 6px !important;
        gap: 3px 4px !important;
    }
    
    .quiz-page .lxrd-stat-value {
        font-size: 18px !important;
    }
    
    .quiz-page .lxrd-stat-icon {
        width: 24px !important;
        height: 24px !important;
    }
    
    .quiz-page .lxrd-stat-icon .icon-svg {
        width: 12px !important;
        height: 12px !important;
    }
    
    .quiz-page .lxrd-stat-label {
        font-size: 8px !important;
    }
}

.lxrd-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.5), rgba(var(--accent-rgb), 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    animation: lxrdFadeInUp 0.4s ease backwards;
}

.lxrd-stat:hover {
    border-color: var(--accent-border);
    transform: translateY(-2px);
}

.lxrd-stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-shrink: 0;
}

.lxrd-stat-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.lxrd-stat-icon.green {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.lxrd-stat-icon.purple {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.lxrd-stat-icon.yellow {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.lxrd-stat-info {
    flex: 1;
}

.lxrd-stat-value {
    font-family: 'Widock', 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.lxrd-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.lxrd-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 32px;
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
    animation: lxrdFadeInUp 0.4s ease backwards;
    animation-delay: 0.15s;
}

.lxrd-search {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.lxrd-search input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: rgba(10, 10, 15, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.lxrd-search .icon-svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.lxrd-filter-btns {
    display: flex;
    gap: 8px;
}

.lxrd-filter-btn {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lxrd-filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.lxrd-filter-btn.active {
    background: var(--accent-subtle);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.lxrd-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 32px;
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
}

.lxrd-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.5), rgba(var(--accent-rgb), 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.lxrd-tab:hover {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.6), rgba(var(--accent-rgb), 0.1));
    border-color: var(--accent-border);
}

.lxrd-tab.active {
    background: var(--accent-subtle);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

.lxrd-tab-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.lxrd-tab.active .lxrd-tab-icon {
    background: var(--accent-border);
    color: var(--accent-primary);
}

.lxrd-tab-icon .icon-svg {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lxrd-tab-icon .icon-svg svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
}

.lxrd-tab-info {
    flex: 1;
    min-width: 0;
}

@media (max-width: 1400px) and (min-width: 901px) {
    .lxrd-tabs {
        gap: 10px;
        padding: 0 20px;
    }
    
    .lxrd-tab {
        flex: 0 1 auto;
        min-width: 140px;
        padding: 12px 16px;
    }
    
    .lxrd-tab-icon {
        width: 32px;
        height: 32px;
    }
    
    .lxrd-tab-name {
        font-size: 13px;
    }
    
    .lxrd-tab-desc {
        font-size: 10px;
    }
}

@media (max-width: 1200px) and (min-width: 901px) {
    .lxrd-tabs {
        gap: 8px;
        padding: 0 16px;
    }
    
    .lxrd-tab {
        flex: 0 1 auto;
        min-width: 120px;
        padding: 10px 12px;
        gap: 8px;
    }
    
    .lxrd-tab-icon {
        width: 28px;
        height: 28px;
    }
    
    .lxrd-tab-name {
        font-size: 12px;
    }
    
    .lxrd-tab-desc {
        display: none;
    }
}

@media (max-width: 900px) {
    .lxrd-tabs {
        flex-direction: column !important;
        padding: 0 8px !important;
        gap: 8px !important;
    }
    
    .lxrd-tab {
        flex: none !important;
        width: 100% !important;
    }
}

.lxrd-tab-name {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.lxrd-tab-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.lxrd-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
    animation: lxrdFadeInUp 0.5s ease backwards;
    animation-delay: 0.1s;
}

.lxrd-empty-icon {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: 24px;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.lxrd-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0 0 8px 0;
}

.lxrd-empty p {
    font-size: 14px;
    margin: 0;
}

.lxrd-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.lxrd-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--accent-subtle);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: lxrdSpin 0.8s linear infinite;
}

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

.lxrd-loading p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.lxrd-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 32px;
    position: relative;
    z-index: 10;
}

.lxrd-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: lxrdFadeInUp 0.4s ease backwards;
}

.lxrd-list-item:hover {
    background: rgba(10, 10, 15, 0.6);
    border-color: var(--accent-border);
    transform: translateX(4px);
}

@keyframes lxrdFadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.lxrd-list-item-pos {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.lxrd-list-item-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-border), var(--accent-subtle));
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.lxrd-list-item-info {
    flex: 1;
    min-width: 0;
}

.lxrd-list-item-name {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.lxrd-list-item-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.lxrd-list-item-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.lxrd-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: lxrdFadeIn 0.2s ease;
}

@keyframes lxrdFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lxrd-modal {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: rgba(12, 12, 18, 0.95);
    backdrop-filter: blur(24px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    animation: lxrdModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.lxrd-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    padding-right: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lxrd-modal-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: 14px;
    color: var(--accent-primary);
}

.lxrd-modal-title h2 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.lxrd-modal-title p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0 0 0;
}

.lxrd-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lxrd-modal-close:hover {
    background: var(--accent-subtle);
    color: var(--accent-primary);
}

.lxrd-modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

.lxrd-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lxrd-form-group {
    margin-bottom: 20px;
}

.lxrd-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.lxrd-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.25s ease;
}

.lxrd-input:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.lxrd-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.lxrd-textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    transition: all 0.25s ease;
}

.lxrd-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.lxrd-select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lxrd-selectx-native {
    display: none !important;
}

.lxrd-selectx {
    position: relative;
    width: 100%;
}

.lxrd-selectx-trigger {
    width: 100%;
    padding: 9px 32px 9px 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    color: var(--text-primary);
    font-size: 12px;
    line-height: 1.15;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.lxrd-selectx-value {
    font-size: 12px;
    line-height: 1.15;
}

.lxrd-selectx-trigger:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.lxrd-selectx.open .lxrd-selectx-trigger {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.lxrd-selectx-value {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lxrd-selectx-caret {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    opacity: 0.85;
    pointer-events: none;
}

.lxrd-selectx-caret::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.65);
    border-bottom: 2px solid rgba(255, 255, 255, 0.65);
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.lxrd-selectx.open .lxrd-selectx-caret::before {
    transform: rotate(-135deg);
}

.lxrd-selectx-menu {
    position: fixed;
    z-index: 50000;
    min-width: 240px;
    max-width: min(520px, calc(100vw - 24px));
    max-height: min(170px, calc(100vh - 160px));
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.92), rgba(var(--accent-rgb), 0.10));
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
    display: none;
}

.lxrd-selectx-menu.open {
    display: block;
    animation: lxrdFadeInUp 0.14s ease both;
}

.lxrd-selectx-search {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lxrd-selectx-search input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}

.lxrd-selectx-search input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.lxrd-selectx-options {
    max-height: 170px;
    overflow-y: auto;
    padding: 4px;
}

.lxrd-selectx-options::-webkit-scrollbar {
    width: 10px;
}

.lxrd-selectx-options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.10);
    border-radius: 10px;
}

.lxrd-selectx-option {
    padding: 6px 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    transition: all 0.18s ease;
    font-size: 11px;
    line-height: 1.15;
}

.lxrd-selectx-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.lxrd-selectx-option.selected {
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
}


.lxrd-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.lxrd-badge-accent {
    background: var(--accent-subtle);
    color: var(--accent-primary);
    border: 1px solid var(--accent-border);
}

.lxrd-badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.lxrd-badge-warning {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.lxrd-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.lxrd-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-primary), var(--accent-hover));
    border-radius: 8px;
    transition: width 0.5s ease;
    position: relative;
}

.lxrd-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    animation: lxrdProgressGlow 1.5s ease-in-out infinite;
}

@keyframes lxrdProgressGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.lxrd-showcase {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 24px;
    padding: 20px 32px 40px;
    position: relative;
    z-index: 10;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lxrd-showcase-card {
    position: relative;
    width: 200px;
    padding: 24px 20px;
    background: rgba(10, 10, 15, 0.5);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: lxrdFadeInUp 0.6s ease backwards;
}

.lxrd-showcase-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@keyframes goldCardScale {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.lxrd-showcase-card.gold {
    order: 1;
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.2);
    animation-delay: 0.1s;
    will-change: transform;
}

.lxrd-showcase-card.gold.scaled {
    animation: goldCardScale 0.5s ease-out forwards;
}

.lxrd-showcase-card.gold.scaled:hover {
    transform: scale(1.1) translateY(-8px);
}

.lxrd-showcase-card.silver { 
    order: 0;
    animation-delay: 0s;
    will-change: transform;
}

.lxrd-showcase-card.bronze { 
    order: 2;
    animation-delay: 0.2s;
    will-change: transform;
}

.lxrd-showcase-medal {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    transition: all 0.3s ease;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50%;
}

.lxrd-showcase-medal.gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #422006;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
}

.lxrd-showcase-medal.silver {
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
    color: #374151;
}

.lxrd-showcase-medal.bronze {
    background: linear-gradient(135deg, #fbbf24, #92400e);
    color: white;
}

.lxrd-showcase-avatar {
    width: 80px;
    height: 80px;
    margin: 20px auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-border), var(--accent-subtle));
    border-radius: 50%;
    font-size: 32px;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
}

.lxrd-showcase-name {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    transition: opacity 0.3s ease;
}

.lxrd-showcase-rank {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: opacity 0.3s ease;
}

.lxrd-showcase-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 600;
    color: white;
}

.lxrd-section {
    position: relative;
    z-index: 10;
    padding: 0 32px;
    margin-bottom: 32px;
    animation: lxrdFadeInUp 0.5s ease backwards;
}

.lxrd-section:nth-child(1) { animation-delay: 0.1s; }
.lxrd-section:nth-child(2) { animation-delay: 0.15s; }
.lxrd-section:nth-child(3) { animation-delay: 0.2s; }
.lxrd-section:nth-child(4) { animation-delay: 0.25s; }
.lxrd-section:nth-child(5) { animation-delay: 0.3s; }

.lxrd-section-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lxrd-diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

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

.lxrd-diff-card {
    position: relative;
    padding: 24px;
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    text-align: center;
}

.lxrd-diff-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-border);
}

.lxrd-diff-card.easy { --diff-color: #10b981; }
.lxrd-diff-card.medium { --diff-color: #f59e0b; }
.lxrd-diff-card.hard { --diff-color: #ef4444; }

.lxrd-diff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--diff-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lxrd-diff-card:hover::before {
    opacity: 1;
}

.lxrd-diff-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    color: var(--diff-color);
    margin: 0 auto 16px auto;
    transition: all 0.3s ease;
}

.lxrd-diff-card:hover .lxrd-diff-icon {
    background: color-mix(in srgb, var(--diff-color) 15%, transparent);
    transform: scale(1.1);
}

.lxrd-diff-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.lxrd-diff-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.lxrd-diff-level {
    font-size: 11px;
    color: var(--diff-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lxrd-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.lxrd-quiz-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: rgba(10, 10, 15, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lxrd-quiz-option:hover {
    background: rgba(10, 10, 15, 0.6);
    border-color: var(--accent-border);
    transform: translateX(8px);
}

.lxrd-quiz-option.correct {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
}

.lxrd-quiz-option.incorrect {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

.lxrd-quiz-option-letter {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.lxrd-quiz-option:hover .lxrd-quiz-option-letter {
    background: var(--accent-subtle);
    color: var(--accent-primary);
}

.lxrd-quiz-option-text {
    font-size: 15px;
    color: white;
}

.lxrd-stagger > * {
    animation: lxrdFadeInUp 0.4s ease backwards;
    will-change: transform, opacity;
}
.lxrd-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.lxrd-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.lxrd-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.lxrd-stagger > *:nth-child(4) { animation-delay: 0.2s; }
.lxrd-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.lxrd-stagger > *:nth-child(6) { animation-delay: 0.3s; }
.lxrd-stagger > *:nth-child(7) { animation-delay: 0.35s; }
.lxrd-stagger > *:nth-child(8) { animation-delay: 0.4s; }
.lxrd-stagger > *:nth-child(9) { animation-delay: 0.45s; }
.lxrd-stagger > *:nth-child(n+10) { animation-delay: 0.5s; }

.lxrd-no-animation > * {
    animation: none !important;
    will-change: auto !important;
}  

.lxrd-toggle {
    position: relative;
    width: 52px;
    height: 28px;
}

.lxrd-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.lxrd-toggle-track {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    transition: background 0.3s ease;
    cursor: pointer;
}

.lxrd-toggle input:checked + .lxrd-toggle-track {
    background: var(--accent-primary);
}

.lxrd-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.lxrd-toggle input:checked + .lxrd-toggle-track .lxrd-toggle-thumb {
    transform: translateX(24px);
}

.lxrd-cooldown {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px;
    text-align: center;
}

.lxrd-cooldown-icon {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: 50%;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.lxrd-cooldown-ring {
    position: absolute;
    inset: -8px;
    border: 2px dashed var(--accent-border);
    border-radius: 50%;
    animation: lxrdRingSpin 10s linear infinite;
}

.lxrd-cooldown-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.lxrd-cooldown-time {
    font-family: 'Orbitron', 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.lxrd-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 32px;
    position: relative;
    z-index: 10;
}

.lxrd-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.5), rgba(var(--accent-rgb), 0.05));
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lxrd-tab:hover {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.6), rgba(var(--accent-rgb), 0.1));
    color: white;
}

.lxrd-tab.active {
    background: var(--accent-subtle);
    border-color: var(--accent-border);
    color: var(--accent-primary);
}

.lxrd-tab.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.lxrd-tab.locked:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}


.lxrd-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.lxrd-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.lxrd-input::placeholder {
    color: var(--text-muted);
}

textarea.lxrd-input {
    resize: vertical;
    min-height: 80px;
}


.lxrd-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.lxrd-badge-accent {
    background: var(--accent-subtle);
    border-color: var(--accent-border);
    color: var(--accent-primary);
}

.lxrd-badge-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.lxrd-badge-warning {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}


.tools-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 24px;
}

.tools-modal {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
}

.tools-modal-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: modalItemIn 0.3s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes modalItemIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tools-modal-item:hover {
    background: rgba(255, 255, 255, 0.08);
}


.modal-card {
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
}


.manual-fullscreen-editor {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.98);
    display: flex;
    flex-direction: column;
    z-index: 10001;
}

.manual-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.manual-editor-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.manual-editor-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    color: var(--accent-primary);
    border-radius: 12px;
}

.manual-editor-header-left h2 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.manual-editor-header-left p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.manual-editor-header-actions {
    display: flex;
    gap: 12px;
}

.manual-editor-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.manual-editor-btn.preview {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.manual-editor-btn.preview:hover,
.manual-editor-btn.preview.active {
    background: var(--accent-subtle);
    color: var(--accent-primary);
}

.manual-editor-btn.close {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 10px;
}

.manual-editor-btn.close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.manual-editor-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.manual-editor-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.manual-editor-btn.primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-dark));
    color: white;
}

.manual-editor-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.manual-editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 16px;
    flex-wrap: wrap;
}

.toolbar-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

.toolbar-select {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-select label {
    font-size: 12px;
    color: var(--text-muted);
}

.custom-dropdown.compact {
    min-width: 100px;
}

.custom-dropdown.compact .custom-dropdown-trigger {
    padding: 8px 12px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.custom-dropdown.icon-dropdown {
    min-width: 56px;
}

.custom-dropdown.icon-dropdown .custom-dropdown-trigger {
    padding: 8px;
    justify-content: center;
    gap: 6px;
}

.toolbar-format-btns {
    display: flex;
    gap: 4px;
}

.format-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.format-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.toolbar-separator {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 8px;
}

.manual-editor-main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.manual-editor-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
    min-height: 0;
}

.manual-title-input {
    margin-bottom: 16px;
}

.manual-name-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.manual-name-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.manual-name-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.manual-image-input {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.manual-image-url-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
}

.manual-image-url-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.manual-image-url-input::placeholder {
    color: var(--text-muted);
}

.manual-image-preview-btn {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.manual-image-preview-btn:hover {
    background: var(--accent-subtle);
    color: var(--accent-primary);
}

.manual-image-preview-container {
    position: relative;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    max-height: 200px;
}

.manual-image-preview-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.manual-image-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.manual-image-remove:hover {
    background: rgba(239, 68, 68, 0.8);
}

.manual-content-editor {
    flex: 1;
    min-height: 400px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
}

.manual-content-editor:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.manual-content-editor::placeholder {
    color: var(--text-muted);
}

.manual-editor-right {
    width: 50%;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.manual-preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.manual-preview-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.manual-preview-content h1,
.manual-preview-content h2,
.manual-preview-content h3,
.manual-preview-content h4 {
    color: white;
    margin: 0 0 12px 0;
}

.manual-preview-content h1 { font-size: 24px; }
.manual-preview-content h2 { font-size: 20px; }
.manual-preview-content h3 { font-size: 18px; }
.manual-preview-content h4 { font-size: 16px; }

.manual-preview-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 16px 0;
}

.manual-preview-content strong {
    color: white;
    font-weight: 600;
}

.manual-preview-content em {
    font-style: italic;
}

.manual-preview-content ul,
.manual-preview-content ol {
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.manual-preview-content li {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.manual-preview-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

.manual-preview-content a {
    color: var(--accent-primary);
    text-decoration: none;
}

.manual-preview-content a:hover {
    text-decoration: underline;
}

.manual-editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.manual-editor-tips {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.manual-editor-actions {
    display: flex;
    gap: 12px;
}

@media (max-width: 1024px) {
    .manual-editor-right {
        display: none !important;
    }
    
    .manual-editor-btn.preview {
        display: none;
    }
}

@media (max-width: 768px) {
    .manual-editor-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-group {
        flex-wrap: wrap;
    }
    
    .toolbar-format-btns {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .lxrd-showcase {
        flex-direction: column;
        align-items: center;
    }
    
    .lxrd-showcase-card {
        width: 100%;
        max-width: 280px;
    }
    
    .lxrd-showcase-card.gold {
        order: 0;
    }
    
    .lxrd-showcase-card.gold.scaled {
        animation: goldCardScale 0.5s ease-out forwards;
    }
    
    .lxrd-showcase-card.silver { order: 1; }
    .lxrd-showcase-card.bronze { order: 2; }
    
    .lxrd-tabs {
        flex-direction: column;
        padding: 0 16px;
    }
    
    .lxrd-toolbar {
        flex-direction: column;
        padding: 0 16px;
    }
    
    .lxrd-search {
        max-width: none;
        width: 100%;
    }
    
    .lxrd-section {
        padding: 0 16px;
    }
    
    .lxrd-list {
        padding: 0 16px;
    }
}


.lxrd-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 32px;
    position: relative;
    z-index: 10;
    align-content: start;
    align-items: start;
}

.lxrd-settings-card.lxrd-card-wide {
    grid-column: span 2;
}

@media (max-width: 1024px) {
    .lxrd-settings-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
    .lxrd-settings-card.lxrd-card-wide {
        grid-column: span 1;
    }
}

.lxrd-settings-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.lxrd-settings-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.lxrd-settings-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0 0 2px 0;
}

.lxrd-settings-title p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.lxrd-theme-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 768px) {
    .lxrd-theme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.lxrd-theme-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lxrd-theme-option:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.lxrd-theme-option.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(var(--accent-primary-rgb), 0.2);
}

.lxrd-theme-color {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lxrd-theme-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.lxrd-theme-option.active .lxrd-theme-name {
    color: white;
}

.lxrd-theme-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    border-radius: 50%;
    color: white;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s ease;
}

.lxrd-theme-option.active .lxrd-theme-check {
    opacity: 1;
    transform: scale(1);
}

.lxrd-bg-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

@media (max-width: 1024px) {
    .lxrd-bg-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .lxrd-bg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.lxrd-bg-option {
    position: relative;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.lxrd-bg-option:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.lxrd-bg-option.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

.lxrd-bg-preview {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

@keyframes cyberLinePulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; box-shadow: 0 0 15px var(--accent-primary), 0 0 25px var(--accent-glow), 0 50px 0 var(--accent-primary), 0 50px 15px var(--accent-primary); }
}

@keyframes cyberNodesPulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; filter: drop-shadow(0 0 12px var(--accent-primary)); }
}

.lxrd-bg-preview-matrix {
    background: 
        linear-gradient(180deg, rgba(var(--accent-rgb), 0.15) 0%, transparent 30%),
        rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

.lxrd-bg-preview-matrix .matrix-preview-col {
    position: absolute;
    top: 22%;
    font-family: 'Yu Gothic', 'MS Gothic', monospace;
    writing-mode: vertical-rl;
    letter-spacing: 5px;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.lxrd-bg-preview-matrix .matrix-preview-col.col-left {
    left: 18%;
    font-size: 11px;
    color: rgba(var(--accent-rgb), 0.95);
    text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.9), 0 0 18px rgba(var(--accent-rgb), 0.5);
}

.lxrd-bg-preview-matrix .matrix-preview-col.col-mid {
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: rgba(var(--accent-rgb), 0.75);
    text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.6), 0 0 14px rgba(var(--accent-rgb), 0.35);
}

.lxrd-bg-preview-matrix .matrix-preview-col.col-right {
    right: 18%;
    font-size: 10px;
    color: rgba(var(--accent-rgb), 0.6);
    text-shadow: 0 0 7px rgba(var(--accent-rgb), 0.5);
}

.lxrd-bg-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

.lxrd-bg-option.active .lxrd-bg-info {
    color: white;
}

.lxrd-bg-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    border-radius: 50%;
    color: white;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s ease;
}

.lxrd-bg-option.active .lxrd-bg-check {
    opacity: 1;
    transform: scale(1);
}

.lxrd-quality-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lxrd-quality-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lxrd-quality-option:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.1);
}

.lxrd-quality-option.active {
    border-color: var(--accent-primary);
    background: rgba(var(--accent-rgb), 0.08);
}

.lxrd-quality-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.lxrd-quality-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lxrd-quality-name {
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.lxrd-quality-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.lxrd-quality-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    border-radius: 50%;
    color: white;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s ease;
}

.lxrd-quality-option.active .lxrd-quality-check {
    opacity: 1;
    transform: scale(1);
}

.lxrd-settings-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lxrd-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    transition: background 0.2s ease;
}

.lxrd-setting-item:hover {
    background: rgba(0, 0, 0, 0.3);
}

.lxrd-setting-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lxrd-setting-info > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lxrd-setting-name {
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.lxrd-setting-desc {
    font-size: 12px;
    color: var(--text-muted);
}

@media screen and (max-width: 900px) {
    nav.sidebar {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 270px !important;
        min-width: 270px !important;
        max-width: 270px !important;
        overflow: visible !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        height: 100vh !important;
        z-index: 99999 !important;
        background: var(--bg-primary) !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        pointer-events: none !important;
    }
    
    nav.sidebar.open {
        transform: translateX(0) !important;
        pointer-events: auto !important;
    }
    
    main.main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 12px !important;
    }
    
    button.mobile-menu-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    div.mobile-overlay {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0,0,0,0.7) !important;
        z-index: 99998 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
        pointer-events: none !important;
    }
    
    body.sidebar-open div.mobile-overlay {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .profile-page-v2,
    .profile-page-v2 *,
    .public-profile-page,
    .public-profile-page * {
        box-sizing: border-box !important;
    }

    .profile-page-v2,
    .public-profile-page {
        padding: 0 !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .profile-page-v2 .profile-hero-v2,
    .public-profile-page .profile-hero-v2,
    .profile-page-v2 .profile-hero-v2.card-transparent-mode,
    .public-profile-page .profile-hero-v2.card-transparent-mode {
        margin-bottom: 12px !important;
    }
    
    .profile-page-v2 .profile-banner-v2,
    .public-profile-page .profile-banner-v2 {
        display: none !important;
    }
    
    .profile-page-v2 .mobile-profile-actions,
    .public-profile-page .mobile-profile-actions {
        display: flex !important;
    }
    
    .profile-page-v2 .profile-card-v2,
    .public-profile-page .profile-card-v2 {
        position: relative !important;
        margin-top: 12px !important;
        overflow: hidden !important;
    }


    .profile-page-v2 .banner-noise,
    .public-profile-page .banner-noise {
        opacity: 0.05 !important;
    }

    .profile-page-v2 .banner-actions-v2,
    .public-profile-page .banner-actions-v2 {
        top: 8px !important;
        right: 8px !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        max-width: calc(100% - 16px) !important;
    }

    .profile-page-v2 .banner-action-btn,
    .public-profile-page .banner-action-btn {
        padding: 10px 12px !important;
        font-size: 12px !important;
        border-radius: 12px !important;
        background: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }

    .profile-page-v2 .banner-action-btn.logout,
    .public-profile-page .banner-action-btn.logout {
        background: var(--accent-shadow) !important;
    }

    .profile-page-v2 .banner-action-btn > span:nth-child(2),
    .public-profile-page .banner-action-btn > span:nth-child(2) {
        display: none !important;
    }

    .profile-page-v2 .banner-action-btn .icon-svg,
    .public-profile-page .banner-action-btn .icon-svg {
        width: 18px !important;
        height: 18px !important;
    }

    .profile-page-v2 .profile-card-v2,
    .public-profile-page .profile-card-v2,
    .profile-page-v2 .profile-hero-v2.card-transparent-mode .profile-card-v2,
    .public-profile-page .profile-hero-v2.card-transparent-mode .profile-card-v2 {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 8px !important;
        width: auto !important;
    }

    .profile-page-v2 .profile-card-glass,
    .profile-page-v2 .profile-card-glass.transparent,
    .public-profile-page .profile-card-glass,
    .public-profile-page .profile-card-glass.transparent {
        display: grid !important;
        grid-template-columns: 56px 1fr !important;
        grid-template-rows: 1fr auto !important;
        align-items: end !important;
        align-content: end !important;
        gap: 12px !important;
        min-height: 200px !important;
        padding: 100px 12px 12px 12px !important;
        text-align: left !important;
        border-radius: 16px !important;
        background: transparent !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.35) !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .profile-page-v2 .mobile-banner-bg,
    .public-profile-page .mobile-banner-bg {
        display: block !important;
        position: absolute !important;
        inset: 0 !important;
        z-index: 0 !important;
        opacity: 1 !important;
        background-size: cover !important;
        background-position: center top !important;
    }

    .profile-page-v2 .mobile-banner-bg::after,
    .public-profile-page .mobile-banner-bg::after {
        content: '' !important;
        position: absolute !important;
        inset: 0 !important;
        background: linear-gradient(180deg, rgba(10,10,15,0) 0%, rgba(10,10,15,0.7) 60%, rgba(10,10,15,0.95) 100%) !important;
    }
    

    .profile-page-v2 .profile-card-glass .profile-avatar-section,
    .profile-page-v2 .profile-card-glass .profile-info-v2,
    .public-profile-page .profile-card-glass .profile-avatar-section,
    .public-profile-page .profile-card-glass .profile-info-v2 {
        position: relative !important;
        z-index: 1 !important;
    }

    .profile-page-v2 .avatar-container-v2,
    .public-profile-page .avatar-container-v2 {
        width: 56px !important;
        height: 56px !important;
    }

    .profile-page-v2 .avatar-image-v2,
    .public-profile-page .avatar-image-v2 {
        width: 100% !important;
        height: 100% !important;
        font-size: 18px !important;
        background-size: cover !important;
    }

    .profile-page-v2 .avatar-ring-v2,
    .public-profile-page .avatar-ring-v2 {
        top: -3px !important;
        left: -3px !important;
        right: -3px !important;
        bottom: -3px !important;
        width: auto !important;
        height: auto !important;
    }

    .profile-page-v2 .avatar-glow-v2,
    .public-profile-page .avatar-glow-v2 {
        display: none !important;
    }

    .profile-page-v2 .avatar-edit-btn-v2 {
        width: 26px !important;
        height: 26px !important;
        border-radius: 10px !important;
        bottom: -5px !important;
        right: -5px !important;
    }

    .profile-page-v2 .profile-info-v2,
    .public-profile-page .profile-info-v2 {
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: flex-start !important;
        min-height: 56px !important;
    }

    .profile-page-v2 .profile-name-row-v2,
    .public-profile-page .profile-name-row-v2 {
        justify-content: flex-start !important;
        gap: 6px !important;
        margin-bottom: 0px !important;
        min-width: 0 !important;
    }

    .profile-page-v2 .profile-name-v2,
    .public-profile-page .profile-name-v2 {
        font-size: 16px !important;
        line-height: 1.15 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    .profile-page-v2 .profile-username-v2,
    .public-profile-page .profile-username-v2 {
        font-size: 11px !important;
        opacity: 0.9 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        margin-bottom: 4px !important;
    }

    .profile-page-v2 .profile-badges-v2,
    .public-profile-page .profile-badges-v2 {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin-top: 0px !important;
        margin-bottom: 0px !important;
    }

    .profile-page-v2 .rank-badge-v2,
    .profile-page-v2 .views-badge-v2,
    .public-profile-page .rank-badge-v2,
    .public-profile-page .views-badge-v2 {
        padding: 4px 8px !important;
        font-size: 10px !important;
        border-radius: 999px !important;
        max-width: 100% !important;
    }

    .profile-page-v2 .cyber-cards-row,
    .public-profile-page .cyber-cards-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin: 10px 8px 14px !important;
        padding: 0 !important;
    }

    .profile-page-v2 .cyber-card-inner,
    .public-profile-page .cyber-card-inner {
        padding: 12px !important;
    }

    .profile-page-v2 .cyber-stats-card,
    .profile-page-v2 .cyber-bio-card,
    .public-profile-page .cyber-stats-card,
    .public-profile-page .cyber-bio-card {
        border-radius: 16px !important;
        background: rgba(10, 10, 15, 0.55) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .profile-page-v2 .cyber-stats-grid,
    .public-profile-page .cyber-stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    .profile-page-v2 .cyber-stat-box,
    .public-profile-page .cyber-stat-box {
        padding: 10px 8px !important;
        border-radius: 12px !important;
    }

    .profile-page-v2 .cyber-stat-box,
    .public-profile-page .cyber-stat-box,
    .profile-page-v2 .cyber-stat-box:last-child,
    .public-profile-page .cyber-stat-box:last-child,
    .profile-page-v2 .cyber-stat-box:last-child:nth-child(odd),
    .public-profile-page .cyber-stat-box:last-child:nth-child(odd) {
        grid-column: auto !important;
    }
    
    .profile-page-v2 .cyber-stat-box:nth-child(1),
    .public-profile-page .cyber-stat-box:nth-child(1) {
        order: 1 !important;
    }
    
    .profile-page-v2 .cyber-stat-box:nth-child(2),
    .public-profile-page .cyber-stat-box:nth-child(2) {
        order: 3 !important;
        grid-column: 1 / -1 !important;
    }
    
    .profile-page-v2 .cyber-stat-box:nth-child(3),
    .public-profile-page .cyber-stat-box:nth-child(3) {
        order: 2 !important;
    }

    .profile-page-v2 .stat-box-value,
    .public-profile-page .stat-box-value {
        font-size: 20px !important;
        margin-bottom: 2px !important;
    }

    .profile-page-v2 .stat-box-label,
    .public-profile-page .stat-box-label {
        font-size: 9px !important;
        gap: 6px !important;
    }

    .profile-page-v2 .stat-box-progress,
    .public-profile-page .stat-box-progress {
        opacity: 1 !important;
        margin-top: 8px !important;
    }

    .profile-page-v2 .stat-box-bar,
    .public-profile-page .stat-box-bar {
        height: 5px !important;
        border-radius: 999px !important;
    }

    .profile-page-v2 .bar-fill,
    .public-profile-page .bar-fill {
        border-radius: 999px !important;
    }

    .profile-page-v2 .cyber-bio-top,
    .public-profile-page .cyber-bio-top {
        margin-bottom: 10px !important;
        gap: 8px !important;
    }

    .profile-page-v2 .cyber-badge,
    .public-profile-page .cyber-badge {
        padding: 4px 10px !important;
        font-size: 9px !important;
        letter-spacing: 1.5px !important;
    }

    .profile-page-v2 .cyber-edit-btn,
    .public-profile-page .cyber-edit-btn {
        width: 28px !important;
        height: 28px !important;
    }

    .profile-page-v2 .cyber-bio-text,
    .public-profile-page .cyber-bio-text,
    .profile-page-v2 .dash-comment-text,
    .public-profile-page .comment-text-v2 {
        font-size: 12px !important;
        line-height: 1.45 !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .profile-page-v2 .cyber-textarea,
    .public-profile-page .cyber-textarea {
        min-height: 70px !important;
        font-size: 12px !important;
    }

    .profile-page-v2 .profile-comments-v2,
    .public-profile-page .profile-comments-v2 {
        margin: 0 8px 16px !important;
    }

    .profile-page-v2 .comments-card-v2,
    .public-profile-page .comments-card-v2 {
        padding: 14px !important;
        border-radius: 16px !important;
    }

    .profile-page-v2 .comments-header-v2,
    .public-profile-page .comments-header-v2 {
        gap: 10px !important;
        margin-bottom: 14px !important;
    }

    .profile-page-v2 .comments-header-v2 h3 {
        font-size: 16px !important;
    }

    .profile-page-v2 .comment-form-v2,
    .public-profile-page .comment-form-v2 {
        margin-bottom: 14px !important;
    }

    .profile-page-v2 .comment-textarea-v2,
    .public-profile-page .comment-textarea-v2,
    .public-profile-page .comment-input-v2 {
        padding: 12px 14px !important;
        font-size: 13px !important;
        border-radius: 14px !important;
        min-height: 74px !important;
    }

    .profile-page-v2 .comment-form-actions,
    .public-profile-page .comment-form-actions {
        gap: 8px !important;
        margin-top: 10px !important;
        justify-content: space-between !important;
    }

    .profile-page-v2 .comment-attach-btn,
    .public-profile-page .comment-attach-btn {
        width: 40px !important;
        height: 40px !important;
        border-radius: 12px !important;
    }

    .profile-page-v2 .comment-submit-v2,
    .public-profile-page .comment-submit-v2 {
        padding: 10px 14px !important;
        font-size: 12px !important;
        border-radius: 14px !important;
        white-space: nowrap !important;
    }

    .profile-page-v2 .comment-image-preview,
    .public-profile-page .comment-image-preview {
        width: 100% !important;
        margin: 10px 0 !important;
    }

    .profile-page-v2 .comment-image-preview img,
    .public-profile-page .comment-image-preview img,
    .profile-page-v2 .comment-image img,
    .public-profile-page .comment-image img {
        max-width: 100% !important;
        height: auto !important;
    }

    .profile-page-v2 .comment-item-v2,
    .public-profile-page .comment-item-v2,
    .profile-page-v2 .dash-comment-item {
        display: grid !important;
        grid-template-columns: 36px 1fr !important;
        align-items: start !important;
        gap: 12px !important;
    }

    .profile-page-v2 .comment-avatar-v2,
    .public-profile-page .comment-avatar-v2,
    .profile-page-v2 .dash-comment-avatar {
        width: 36px !important;
        height: 36px !important;
    }

    .profile-page-v2 .comment-body-v2,
    .public-profile-page .comment-body-v2,
    .profile-page-v2 .dash-comment-body {
        min-width: 0 !important;
    }

    .profile-page-v2 .comment-author-v2,
    .public-profile-page .comment-author-v2,
    .profile-page-v2 .dash-comment-author {
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: inline-block !important;
    }
        
    .lxrd-header {
        padding: 0 8px !important;
        margin-bottom: 16px !important;
    }
    
    .lxrd-header-glass {
        flex-direction: column !important;
        text-align: center !important;
        padding: 16px !important;
        gap: 12px !important;
    }
    
    .lxrd-header-icon {
        margin: 0 auto !important;
    }
    
    .lxrd-header-text {
        width: 100% !important;
    }
    
    .lxrd-title {
        font-size: 18px !important;
    }
    
    .lxrd-subtitle {
        font-size: 12px !important;
    }
    
    .lxrd-filter-btns {
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin-left: 0 !important;
    }
    
    .lxrd-filter-btn {
        padding: 12px 18px !important;
        font-size: 14px !important;
        min-height: 44px !important;
    }
    
    .lxrd-tabs {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        padding: 0 8px !important;
        gap: 6px !important;
        margin-bottom: 16px !important;
    }
    
    .lxrd-tab {
        flex: 1 1 calc(33% - 6px) !important;
        min-width: 90px !important;
        padding: 10px 8px !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 6px !important;
    }
    
    .lxrd-tab-icon {
        width: 32px !important;
        height: 32px !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .lxrd-tab-icon .icon-svg {
        width: 18px !important;
        height: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .lxrd-tab-icon .icon-svg svg {
        width: 100% !important;
        height: 100% !important;
        stroke: currentColor !important;
    }
    
    .lxrd-tab-info {
        width: 100% !important;
    }
    
    .lxrd-tab-name {
        font-size: 11px !important;
        margin-bottom: 0 !important;
    }
    
    .lxrd-tab-desc {
        display: none !important;
    }
    
    #yourStats .lxrd-card {
        max-width: 100% !important;
        margin: 0 8px 16px !important;
    }
    
    #yourStats .lxrd-card-content {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 16px !important;
        padding: 12px 16px !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    #yourStats .lxrd-stat {
        justify-content: center !important;
    }
    
    .lxrd-showcase {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 20px 8px 30px !important;
        gap: 12px !important;
        scroll-snap-type: x mandatory !important;
        justify-content: flex-start !important;
    }
    
    .lxrd-showcase::-webkit-scrollbar {
        display: none !important;
    }
    
    .lxrd-showcase-card {
        flex-shrink: 0 !important;
        width: 140px !important;
        padding: 16px 12px !important;
        border-radius: 16px !important;
        scroll-snap-align: center !important;
    }
    
    @keyframes goldCardScaleMobile {
        from { transform: scale(1); }
        to { transform: scale(1.05); }
    }
    
    .lxrd-showcase-card.gold {
        order: 0 !important;
    }
    
    .lxrd-showcase-card.gold.scaled {
        animation: goldCardScaleMobile 0.5s ease-out forwards !important;
    }
    
    .lxrd-showcase-card.silver {
        order: 1 !important;
    }
    
    .lxrd-showcase-card.bronze {
        order: 2 !important;
    }
    
    .lxrd-showcase-card.gold.scaled:hover {
        transform: scale(1.05) !important;
    }
    
    .lxrd-showcase-medal {
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important;
        top: -12px !important;
    }
    
    .lxrd-showcase-avatar {
        width: 56px !important;
        height: 56px !important;
        margin: 16px auto 10px !important;
        font-size: 24px !important;
    }
    
    .lxrd-showcase-name {
        font-size: 13px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .lxrd-showcase-rank {
        font-size: 10px !important;
        margin-bottom: 8px !important;
    }
    
    .lxrd-showcase-value {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
    
    .lxrd-toolbar {
        padding: 0 8px !important;
        margin-bottom: 16px !important;
        gap: 8px !important;
    }
    
    .lxrd-search {
        min-width: 100% !important;
        max-width: 100% !important;
    }
    
    .lxrd-search input {
        padding: 10px 16px 10px 40px !important;
        font-size: 13px !important;
    }
    
    .lxrd-search .icon-svg {
        left: 12px !important;
        width: 16px !important;
        height: 16px !important;
    }
    
    #compareModeBtn {
        display: none !important;
    }
    
    .lxrd-list {
        padding: 0 8px !important;
        gap: 8px !important;
    }
    
    .lxrd-list-item {
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 12px !important;
        border-radius: 12px !important;
        background: rgba(10, 10, 15, 0.6) !important;
        backdrop-filter: blur(10px) !important;
    }
    
    .lxrd-list-item-pos {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        border-radius: 6px !important;
    }
    
    .lxrd-list-item-avatar {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
    }
    
    .lxrd-list-item-name {
        font-size: 13px !important;
    }
    
    .lxrd-list-item-meta {
        font-size: 11px !important;
    }
    
    .lxrd-list-item-value {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: var(--accent-primary) !important;
        margin-left: auto !important;
    }
    
    .lxrd-section {
        padding: 0 8px !important;
        margin-bottom: 16px !important;
    }
    
    #compareBar {
        display: none !important;
    }
}

@media screen and (max-width: 420px) {
    .profile-page-v2 .profile-card-v2,
    .public-profile-page .profile-card-v2 {
        margin: 6px !important;
    }

    .profile-page-v2 .profile-card-glass,
    .public-profile-page .profile-card-glass {
        grid-template-columns: 52px 1fr !important;
        padding: 10px !important;
        gap: 10px !important;
    }

    .profile-page-v2 .avatar-container-v2,
    .public-profile-page .avatar-container-v2 {
        width: 52px !important;
        height: 52px !important;
    }

    .profile-page-v2 .avatar-image-v2,
    .public-profile-page .avatar-image-v2 {
        width: 100% !important;
        height: 100% !important;
        font-size: 16px !important;
    }
    
    .profile-page-v2 .avatar-ring-v2,
    .public-profile-page .avatar-ring-v2 {
        top: -3px !important;
        left: -3px !important;
        right: -3px !important;
        bottom: -3px !important;
        width: auto !important;
        height: auto !important;
    }

    .profile-page-v2 .profile-name-v2,
    .public-profile-page .profile-name-v2 {
        font-size: 15px !important;
        -webkit-line-clamp: 2 !important;
    }

    .profile-page-v2 .cyber-stats-grid,
    .public-profile-page .cyber-stats-grid {
        gap: 6px !important;
    }

    .profile-page-v2 .cyber-stat-box,
    .public-profile-page .cyber-stat-box {
        padding: 9px 8px !important;
    }
    
    .profile-page-v2 .cyber-stat-box,
    .public-profile-page .cyber-stat-box,
    .profile-page-v2 .cyber-stat-box:last-child,
    .public-profile-page .cyber-stat-box:last-child {
        grid-column: auto !important;
    }
    
    .profile-page-v2 .cyber-stat-box:nth-child(1),
    .public-profile-page .cyber-stat-box:nth-child(1) {
        order: 1 !important;
    }
    
    .profile-page-v2 .cyber-stat-box:nth-child(2),
    .public-profile-page .cyber-stat-box:nth-child(2) {
        order: 3 !important;
        grid-column: 1 / -1 !important;
    }
    
    .profile-page-v2 .cyber-stat-box:nth-child(3),
    .public-profile-page .cyber-stat-box:nth-child(3) {
        order: 2 !important;
    }

    .profile-page-v2 .comments-card-v2,
    .public-profile-page .comments-card-v2 {
        padding: 12px !important;
    }
    
}

@media screen and (max-width: 500px) {
    .lxrd-list-item {
        flex-wrap: wrap !important;
    }
}

.preset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: var(--accent-subtle);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: scale(1.05);
}


.pdf-reader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.2s ease;
}

.pdf-reader-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(20, 20, 25, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 16px;
    flex-shrink: 0;
}

.pdf-reader-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.pdf-reader-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-reader-title span {
    font-size: 13px;
    color: var(--text-muted);
}

.pdf-reader-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-reader-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdf-reader-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.pdf-reader-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pdf-page-counter {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 36px;
    padding: 0 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdf-page-counter:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.pdf-page-current {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.pdf-page-total {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1;
}

.pdf-reader-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

.pdf-viewer-container {
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    padding: 20px;
    background: #1a1a1f;
}

.pdf-canvas-wrapper {
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    background: white;
}

.pdf-canvas-wrapper canvas {
    display: block;
}

.pdf-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.pdf-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-hover));
    transition: width 0.3s ease;
}

.pdf-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a1f;
    gap: 16px;
}

.pdf-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.pdf-loading-text {
    color: var(--text-secondary);
    font-size: 14px;
}

@media (max-width: 768px) {
    .pdf-reader-header {
        padding: 10px 12px;
        flex-wrap: wrap;
    }
    
    .pdf-reader-title h3 {
        font-size: 14px;
    }
    
    .pdf-reader-btn {
        width: 32px;
        height: 32px;
    }

    .pdf-reader-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .pdf-viewer-container {
        padding: 10px;
    }
}

.profile-ambient,
.profile-ambient-orb,
.floating-shape,
.floating-diamond,
.floating-cross,
.floating-elements,
.avatar-glow-v2,
.avatar-ring-v2,
.cyber-badge-dot,
.page-icon-glow,
.resources-bg-orbs,
.lessons-bg-orbs,
.wheel-bg-orbs {
    will-change: transform, opacity;
    contain: layout style paint;
    pointer-events: none;
}

.menu-item {
    will-change: transform, opacity;
    contain: layout style;
}

@media (prefers-reduced-motion: reduce) {
    .profile-ambient-orb,
    .floating-shape,
    .floating-diamond,
    .floating-cross,
    .avatar-glow-v2,
    .avatar-ring-v2,
    .cyber-badge-dot,
    .page-icon-glow {
        animation: none !important;
    }
}

.icon-svg {
    contain: layout style;
}

.liquid-input,
.liquid-textarea,
.liquid-submit-btn {
    contain: layout style;
    will-change: auto;
}

.liquid-btn-bg,
.liquid-input-glow {
    contain: layout style paint;
}


*, *::before, *::after {
    transition-duration: 0.3s !important;
}

.wheel-inner-liquid {
    transition-duration: 5s !important;
}

.wheel-inner-liquid * {
    transition-duration: 0s !important;
}

.preloader-v2,
.preloader-v2 *,
.modal,
.modal-overlay {
    transition-duration: 0.3s !important;
}

.is-scrolling *:not(.wheel-inner-liquid):not(.wheel-inner-liquid *) {
    transition: none !important;
    animation-play-state: paused !important;
}

.wheel-inner-liquid {
    animation-play-state: running !important;
}

body.wheel-spinning-active {
    overflow: hidden !important;
}

body.wheel-spinning-active .wheel-inner-liquid {
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99) !important;
    animation-play-state: running !important;
}

.btn,
.menu-item,
.lxrd-card,
.notification-item {
    backface-visibility: hidden;
    transform: translateZ(0);
}

.bg-matrix .global-particles {
    background: 
        linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%),
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 30px,
            rgba(var(--accent-rgb), 0.02) 30px,
            rgba(var(--accent-rgb), 0.02) 31px
        );
}

.bg-matrix .global-particles::before {
    content: '鬼魔闘夢影月刃龍血霊死炎冥黒暗獄';
    position: absolute;
    top: 0;
    left: 8%;
    font-family: 'Yu Gothic', 'Noto Sans JP', 'MS Gothic', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--accent-primary);
    opacity: 0.5;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 4px;
    text-shadow: 0 0 15px var(--accent-glow), 0 0 30px rgba(var(--accent-rgb), 0.3);
    transform: translate3d(0, -120vh, 0);
    animation: matrixRain1 12s linear infinite;
    animation-fill-mode: both;
    will-change: transform;
}

.bg-matrix .global-particles::after {
    content: '獄暗黒冥炎死霊血龍刃月影夢闘魔鬼';
    position: absolute;
    top: 0;
    right: 12%;
    font-family: 'Yu Gothic', 'Noto Sans JP', 'MS Gothic', serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--accent-primary);
    opacity: 0.4;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 4px;
    text-shadow: 0 0 12px var(--accent-glow), 0 0 25px rgba(var(--accent-rgb), 0.25);
    transform: translate3d(0, -120vh, 0);
    animation: matrixRain2 16s linear -4s infinite;
    animation-fill-mode: both;
    will-change: transform;
}

@keyframes matrixRain1 {
    0% { transform: translate3d(0, -120vh, 0); }
    100% { transform: translate3d(0, 120vh, 0); }
}

@keyframes matrixRain2 {
    0% { transform: translate3d(0, -120vh, 0); }
    100% { transform: translate3d(0, 120vh, 0); }
}

.bg-cyber .global-particles {
    background: rgba(0, 0, 0, 0.88);
    overflow: hidden;
    isolation: isolate;
}

.bg-cyber .global-particles::before {
    content: '';
    position: absolute;
    inset: -10%;
    background: rgba(var(--accent-rgb), 0.22);
    mask-image:
        url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20viewBox%3D'0%200%201200%20700'%3E%3Cg%20fill%3D'none'%20stroke%3D'white'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M40%2090h220v90h160v-70h240v140h260'/%3E%3Cpath%20d%3D'M80%20620h300v-140h180v110h280v-170h220'/%3E%3Cpath%20d%3D'M980%2080v140h-140v90h-220'/%3E%3Cpath%20d%3D'M260%20260h160v120h-160v140h160'/%3E%3Cpath%20d%3D'M640%20320h260v-140h200'/%3E%3Cpath%20d%3D'M900%20320h-120v120h-170v130'/%3E%3Cpath%20d%3D'M60%20410h240v-110h180'/%3E%3Cpath%20d%3D'M180%20180h-120v-90h-30'/%3E%3Cpath%20d%3D'M520%20180h120v90h140v-70h160'/%3E%3Cpath%20d%3D'M1080%20510h-260v-100h-180'/%3E%3Cpath%20d%3D'M500%20520h-140v90h-180'/%3E%3Cpath%20d%3D'M160%20340h-80v80h160'/%3E%3C/g%3E%3Cg%20fill%3D'white'%3E%3Ccircle%20cx%3D'260'%20cy%3D'260'%20r%3D'6'/%3E%3Ccircle%20cx%3D'420'%20cy%3D'380'%20r%3D'5'/%3E%3Ccircle%20cx%3D'420'%20cy%3D'520'%20r%3D'5'/%3E%3Ccircle%20cx%3D'640'%20cy%3D'320'%20r%3D'6'/%3E%3Ccircle%20cx%3D'900'%20cy%3D'320'%20r%3D'5'/%3E%3Ccircle%20cx%3D'980'%20cy%3D'220'%20r%3D'6'/%3E%3Ccircle%20cx%3D'820'%20cy%3D'440'%20r%3D'5'/%3E%3Ccircle%20cx%3D'610'%20cy%3D'570'%20r%3D'6'/%3E%3Ccircle%20cx%3D'1040'%20cy%3D'510'%20r%3D'5'/%3E%3C/g%3E%3C/svg%3E");
    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20viewBox%3D'0%200%201200%20700'%3E%3Cg%20fill%3D'none'%20stroke%3D'white'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M40%2090h220v90h160v-70h240v140h260'/%3E%3Cpath%20d%3D'M80%20620h300v-140h180v110h280v-170h220'/%3E%3Cpath%20d%3D'M980%2080v140h-140v90h-220'/%3E%3Cpath%20d%3D'M260%20260h160v120h-160v140h160'/%3E%3Cpath%20d%3D'M640%20320h260v-140h200'/%3E%3Cpath%20d%3D'M900%20320h-120v120h-170v130'/%3E%3Cpath%20d%3D'M60%20410h240v-110h180'/%3E%3Cpath%20d%3D'M180%20180h-120v-90h-30'/%3E%3Cpath%20d%3D'M520%20180h120v90h140v-70h160'/%3E%3Cpath%20d%3D'M1080%20510h-260v-100h-180'/%3E%3Cpath%20d%3D'M500%20520h-140v90h-180'/%3E%3Cpath%20d%3D'M160%20340h-80v80h160'/%3E%3C/g%3E%3Cg%20fill%3D'white'%3E%3Ccircle%20cx%3D'260'%20cy%3D'260'%20r%3D'6'/%3E%3Ccircle%20cx%3D'420'%20cy%3D'380'%20r%3D'5'/%3E%3Ccircle%20cx%3D'420'%20cy%3D'520'%20r%3D'5'/%3E%3Ccircle%20cx%3D'640'%20cy%3D'320'%20r%3D'6'/%3E%3Ccircle%20cx%3D'900'%20cy%3D'320'%20r%3D'5'/%3E%3Ccircle%20cx%3D'980'%20cy%3D'220'%20r%3D'6'/%3E%3Ccircle%20cx%3D'820'%20cy%3D'440'%20r%3D'5'/%3E%3Ccircle%20cx%3D'610'%20cy%3D'570'%20r%3D'6'/%3E%3Ccircle%20cx%3D'1040'%20cy%3D'510'%20r%3D'5'/%3E%3C/g%3E%3C/svg%3E");
    mask-size: 1600px 930px;
    -webkit-mask-size: 1600px 930px;
    mask-position: 0 0;
    -webkit-mask-position: 0 0;
    mask-repeat: repeat;
    -webkit-mask-repeat: repeat;
    opacity: 0.85;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 26px rgba(var(--accent-rgb), 0.18));
    will-change: transform, mask-position, -webkit-mask-position, filter;
    animation: cyberMaskWander 72s ease-in-out infinite;
    z-index: 1;
}

.bg-cyber .global-particles::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 4px),
        radial-gradient(ellipse at 70% 55%, rgba(var(--accent-rgb), 0.06) 0%, transparent 70%),
        linear-gradient(120deg, transparent 0%, rgba(0,0,0,0.0) 42%, rgba(0,0,0,0.55) 78%, rgba(0,0,0,0.75) 100%),
        linear-gradient(90deg, transparent 0%, rgba(var(--accent-rgb), 0.06) 30%, rgba(var(--accent-rgb), 0.12) 50%, rgba(var(--accent-rgb), 0.06) 70%, transparent 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 220% 120px;
    background-position: 0 0, 0 0, 0 0, -160% -160px;
    opacity: 0.85;
    animation: cyberScanBar 9.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

.bg-cyber #dynamic-background {
    position: absolute;
    left: -60%;
    right: -60%;
    bottom: -18%;
    height: 78%;
    transform: perspective(900px) rotateX(70deg);
    transform-origin: center bottom;
    background-image:
        linear-gradient(rgba(var(--accent-rgb), 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.22) 1px, transparent 1px),
        radial-gradient(ellipse at 50% 60%, rgba(var(--accent-rgb), 0.10) 0%, transparent 65%);
    background-size: 84px 84px, 84px 84px, 100% 100%;
    background-position: 0 0, 0 0, 0 0;
    opacity: 0.32;
    mask-image: linear-gradient(to top, black 0%, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 0%, black 40%, transparent 100%);
    animation: cyberGridScroll 7.5s linear infinite;
    pointer-events: none;
    z-index: 2;
}

.bg-cyber .cyber-nodes {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.bg-cyber .cyber-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.9);
    box-shadow:
        0 0 10px rgba(var(--accent-rgb), 0.55),
        0 0 28px rgba(var(--accent-rgb), 0.22);
    opacity: 0.8;
    will-change: transform, opacity;
    animation: cyberNodePulse 4.8s ease-in-out infinite, cyberNodeFloat 16s ease-in-out infinite;
}

@keyframes cyberMaskWander {
    0% {
        mask-position: 0 0;
        -webkit-mask-position: 0 0;
        filter: drop-shadow(0 0 22px rgba(var(--accent-rgb), 0.14));
    }
    18% {
        mask-position: 280px 140px;
        -webkit-mask-position: 280px 140px;
    }
    42% {
        mask-position: -180px 320px;
        -webkit-mask-position: -180px 320px;
    }
    63% {
        mask-position: 220px -160px;
        -webkit-mask-position: 220px -160px;
        filter: drop-shadow(0 0 28px rgba(var(--accent-rgb), 0.20));
    }
    82% {
        mask-position: -260px -60px;
        -webkit-mask-position: -260px -60px;
    }
    100% {
        mask-position: 0 0;
        -webkit-mask-position: 0 0;
        filter: drop-shadow(0 0 22px rgba(var(--accent-rgb), 0.14));
    }
}

@keyframes cyberGridScroll {
    from { background-position: 0 0, 0 0, 0 0; }
    to { background-position: 36px 84px, 36px 84px, 0 0; }
}

@keyframes cyberScanBar {
    0%   { background-position: 0 0, 0 0, 0 0, -160% -160px; opacity: 0; }
    18%  { opacity: 0; }
    32%  { background-position: 0 0, 0 0, 0 0, 40% 35%; opacity: 0.35; }
    52%  { background-position: 0 0, 0 0, 0 0, 160% 110%; opacity: 0.4; }
    68%  { background-position: 0 0, 0 0, 0 0, -40% 55%; opacity: 0.32; }
    82%  { opacity: 0; }
    100% { background-position: 0 0, 0 0, 0 0, -160% -160px; opacity: 0; }
}

@keyframes cyberNodePulse {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.12); }
}

@keyframes cyberNodeFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    25% { transform: translate3d(var(--dx1, 10px), var(--dy1, -12px), 0); }
    50% { transform: translate3d(var(--dx2, -12px), var(--dy2, 8px), 0); }
    75% { transform: translate3d(var(--dx3, 6px), var(--dy3, 14px), 0); }
}

body.animation-low .bg-cyber .global-particles::before { opacity: 0.65; animation-duration: 26s !important; filter: none; }
body.animation-low .bg-cyber .global-particles::after { animation-duration: 7.5s !important; opacity: 0.55; }
body.animation-low .bg-cyber #dynamic-background { opacity: 0.22; animation-duration: 4.6s !important; }

body.animation-medium .bg-cyber .global-particles::before { opacity: 0.78; animation-duration: 21s !important; }
body.animation-medium .bg-cyber .global-particles::after { animation-duration: 6.2s !important; opacity: 0.75; }
body.animation-medium .bg-cyber #dynamic-background { opacity: 0.28; animation-duration: 3.5s !important; }


.achievements-stat-box {
    cursor: pointer !important;
}

.achievements-stat-box:hover {
    transform: translateY(-2px);
}

.stat-box-percent {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
    font-weight: 600;
}

.achievements-modal {
    max-width: 800px !important;
}

.achievements-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.achievement-stat-card {
    padding: 20px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(var(--accent-rgb), 0.05));
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 16px;
    text-align: center;
}

.achievement-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 6px;
    font-family: 'Montserrat', sans-serif;
}

.achievement-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.achievement-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.achievement-card.locked {
    opacity: 0.5;
    filter: grayscale(0.7);
}

.achievement-card.unlocked {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.05));
    border-color: rgba(var(--accent-rgb), 0.3);
}

.achievement-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
}

.achievement-card.unlocked:hover {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.08));
}

.achievement-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-rgb), 0.15);
    border-radius: 12px;
    flex-shrink: 0;
}

.achievement-card.unlocked .achievement-icon {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.3);
}

.achievement-icon .icon-svg {
    color: var(--accent-primary);
}

.achievement-card.unlocked .achievement-icon .icon-svg {
    color: white;
}

.achievement-info {
    flex: 1;
    min-width: 0;
}

.achievement-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.achievement-description {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.achievement-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.achievement-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-hover));
    border-radius: 3px;
    transition: width 0.6s ease;
    box-shadow: 0 0 8px var(--accent-glow);
}

.achievement-progress-text {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.achievement-unlocked-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #22c55e;
    font-size: 12px;
    font-weight: 600;
}

.achievement-complete-gif {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    z-index: 100;
}

/* Admin Language Tabs */
.manual-lang-tabs {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    width: fit-content;
}

.manual-lang-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.manual-lang-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.manual-lang-tab.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(var(--accent-primary-rgb), 0.3);
}

.manual-lang-fields {
    animation: fadeIn 0.2s ease;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

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

.content-lang-switcher {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 4px;
}

.content-lang-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.content-lang-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.content-lang-btn.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(var(--accent-primary-rgb), 0.3);
}

@media (max-width: 768px) {
    .content-lang-switcher {
        flex-shrink: 0;
    }
    
    .content-lang-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-stats {
        grid-template-columns: 1fr;
    }
    
    .achievement-complete-gif {
        width: 60px;
        height: 60px;
        bottom: 10px;
        right: 10px;
    }
}