/* LeakZone base styles (moved out of templates/base.html so browsers cache them). */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Main colors */
    --bg-primary: #030308;
    --bg-secondary: #08080f;
    --bg-tertiary: #0c0c14;
    --bg-card: #0e0e18;
    --bg-card-hover: #121220;
    --bg-hover: #121220;
    --bg-input: #0a0a12;

    /* Borders */
    --border: #1a1a2e;
    --border-color: #1a1a2e;
    --border-light: #252540;
    --border-glow: rgba(99, 102, 241, 0.3);
    
    /* Text */
    --text-primary: #f0f0f8;
    --text-secondary: #a0a0b8;
    --text-muted: #606078;
    --text-dim: #45455a;
    
    /* Accent colors */
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --accent-secondary: #22d3ee;
    --accent-secondary-glow: rgba(34, 211, 238, 0.35);
    --cyan: #22d3ee;
    --cyan-glow: rgba(34, 211, 238, 0.3);
    --purple: #a855f7;
    --pink: #ec4899;
    --green: #10b981;
    --red: #ef4444;
    --orange: #f59e0b;
    --gold: #fbbf24;

    /* Semantic status colors (aliased so templates resolve them) */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #22d3ee;

    /* Elevation / radius scale (used by refined components) */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.45);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-premium: linear-gradient(135deg, #f59e0b, #fbbf24);
    --gradient-cyber: linear-gradient(135deg, #06b6d4, #6366f1);
    --gradient-fire: linear-gradient(135deg, #f97316, #ef4444);
    --gradient-success: linear-gradient(135deg, #10b981, #34d399);
    --gradient-rainbow: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899, #f43f5e, #f59e0b, #10b981, #06b6d4);
}

/* ========== PREMIUM UTILITY CLASSES ========== */

/* Glass Morphism Effects */
.glass {
    background: rgba(14, 14, 24, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-strong {
    background: rgba(14, 14, 24, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glow Effects */
.glow-accent { box-shadow: 0 0 30px rgba(99, 102, 241, 0.3); }
.glow-cyan { box-shadow: 0 0 30px rgba(34, 211, 238, 0.3); }
.glow-purple { box-shadow: 0 0 30px rgba(168, 85, 247, 0.3); }
.glow-pink { box-shadow: 0 0 30px rgba(236, 72, 153, 0.3); }
.glow-gold { box-shadow: 0 0 30px rgba(251, 191, 36, 0.3); }

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.2);
}

/* Shimmer Text Effect */
.shimmer-text {
    background: linear-gradient(90deg, #fff 0%, #6366f1 25%, #a855f7 50%, #ec4899 75%, #fff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s linear infinite;
}

@keyframes shimmerText {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Animated Gradient Border */
.gradient-border {
    position: relative;
    background: var(--bg-card);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899, #f59e0b, #10b981, #06b6d4, #6366f1);
    background-size: 400% 400%;
    border-radius: inherit;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: gradientRotate 8s linear infinite;
}

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Pulse Ring Effect */
.pulse-ring {
    position: relative;
}

.pulse-ring::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid var(--accent);
    opacity: 0;
    animation: pulseRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.02); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

/* Floating Animation */
.float-animation {
    animation: floatUpDown 3s ease-in-out infinite;
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Rotate Glow Effect */
.rotate-glow {
    position: relative;
    overflow: hidden;
}

.rotate-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.3), transparent 30%);
    animation: rotateGlow 4s linear infinite;
}

@keyframes rotateGlow {
    100% { transform: rotate(360deg); }
}

/* Typewriter Effect for Status Text */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--accent);
    white-space: nowrap;
    animation: typewriter 3s steps(40) infinite, blinkCursor 0.7s step-end infinite;
}

@keyframes typewriter {
    0%, 100% { width: 0; }
    50% { width: 100%; }
}

@keyframes blinkCursor {
    50% { border-color: transparent; }
}

/* Particle Background */
.particles {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: particleRise 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 6s; }
.particle:nth-child(8) { left: 80%; animation-delay: 7s; }
.particle:nth-child(9) { left: 90%; animation-delay: 0.5s; }
.particle:nth-child(10) { left: 95%; animation-delay: 2.5s; }

@keyframes particleRise {
    0% { bottom: -10px; opacity: 0; transform: translateX(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { bottom: 100vh; opacity: 0; transform: translateX(50px); }
}

/* Glitch Effect */
.glitch {
    position: relative;
    animation: glitchSkew 2s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitchAnim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitchAnim2 5s infinite linear alternate-reverse;
}

@keyframes glitchSkew {
    0% { transform: skew(0deg); }
    20% { transform: skew(0.5deg); }
    40% { transform: skew(-0.5deg); }
    60% { transform: skew(0.3deg); }
    80% { transform: skew(-0.3deg); }
    100% { transform: skew(0deg); }
}

@keyframes glitchAnim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(112px, 9999px, 76px, 0); }
    40% { clip: rect(85px, 9999px, 23px, 0); }
    60% { clip: rect(9px, 9999px, 64px, 0); }
    80% { clip: rect(54px, 9999px, 89px, 0); }
    100% { clip: rect(78px, 9999px, 41px, 0); }
}

@keyframes glitchAnim2 {
    0% { clip: rect(65px, 9999px, 11px, 0); }
    20% { clip: rect(47px, 9999px, 87px, 0); }
    40% { clip: rect(23px, 9999px, 115px, 0); }
    60% { clip: rect(82px, 9999px, 56px, 0); }
    80% { clip: rect(19px, 9999px, 71px, 0); }
    100% { clip: rect(94px, 9999px, 33px, 0); }
}

/* Neon Text Effect */
.neon-text {
    text-shadow:
        0 0 5px var(--accent),
        0 0 10px var(--accent),
        0 0 20px var(--accent),
        0 0 40px var(--accent);
    animation: neonFlicker 1.5s infinite alternate;
}

@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow:
            0 0 5px var(--accent),
            0 0 10px var(--accent),
            0 0 20px var(--accent),
            0 0 40px var(--accent);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Morphing Background */
.morph-bg {
    position: relative;
    overflow: hidden;
}

.morph-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(34, 211, 238, 0.08) 0%, transparent 50%);
    animation: morphBg 20s ease-in-out infinite;
}

@keyframes morphBg {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(5%, 5%) rotate(2deg); }
    50% { transform: translate(-5%, 10%) rotate(-2deg); }
    75% { transform: translate(-10%, -5%) rotate(1deg); }
}

/* Scanline Effect */
.scanlines::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.05) 2px,
        rgba(0, 0, 0, 0.05) 4px
    );
    pointer-events: none;
    animation: scanlines 10s linear infinite;
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

/* Card 3D Tilt on Hover */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
}

/* Spotlight Effect */
.spotlight {
    position: relative;
    overflow: hidden;
}

.spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transition: none;
}

.spotlight:hover::before {
    animation: spotlightSweep 0.6s ease-out forwards;
}

@keyframes spotlightSweep {
    100% { left: 150%; }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Premium Animated Background */
.bg-grid {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(5deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(5deg) translateY(60px); }
}

.bg-glow {
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.06) 0%, transparent 40%);
    z-index: -2;
    animation: bgFloat 25s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    25% { transform: translate(2%, 2%) rotate(1deg); opacity: 0.9; }
    50% { transform: translate(-1%, 3%) rotate(-1deg); opacity: 1; }
    75% { transform: translate(-2%, -1%) rotate(0.5deg); opacity: 0.95; }
}

/* Floating Orbs */
.bg-orbs {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-orbs::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: orbFloat1 20s ease-in-out infinite;
}

.bg-orbs::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 15%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    animation: orbFloat2 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.05); }
    66% { transform: translate(30px, -50px) scale(0.9); }
}

/* Noise overlay for texture */
.bg-noise {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    opacity: 0.015;
    pointer-events: none;
    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");
}

a { color: var(--accent); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--accent-hover); }

/* Top Quick Bar - Premium Glass Style */
.top-quick-bar {
    background: linear-gradient(180deg, rgba(10, 10, 18, 0.95), rgba(8, 8, 15, 0.9));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 10000;
}

.top-quick-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3), transparent);
}

.quick-left {
    flex: 1;
}

.quick-right {
    display: flex;
    align-items: center;
    gap: 0;
}

.quick-icons {
    display: flex;
    align-items: center;
    padding-right: 5px;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.quick-icon {
    width: 44px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 15px;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 6px;
    margin: 4px 2px;
}

.quick-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.quick-icon.upgrade-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.15));
    color: #fbbf24;
}

.quick-icon.upgrade-icon:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.4), rgba(245, 158, 11, 0.25));
    color: #fcd34d;
}

.quick-icon .icon-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ef4444;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Notification Dropdown Styles */
.notification-wrapper {
    position: relative;
    z-index: 9999;
}

.notification-trigger {
    background: none;
    border: none;
    cursor: pointer;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-height: 500px;
    background: linear-gradient(180deg, rgba(15, 15, 25, 0.98), rgba(10, 10, 18, 0.98));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.1);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(99, 102, 241, 0.05);
}

.notification-dropdown-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-dropdown-header h3 i {
    color: var(--accent);
}

.notification-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mark-all-read-btn,
.view-all-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s;
}

.mark-all-read-btn:hover,
.view-all-link:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #fff;
}

.notification-dropdown-body {
    max-height: 360px;
    overflow-y: auto;
}

.notification-dropdown-body::-webkit-scrollbar {
    width: 5px;
}

.notification-dropdown-body::-webkit-scrollbar-track {
    background: transparent;
}

.notification-dropdown-body::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notification-item.unread {
    background: rgba(99, 102, 241, 0.05);
    border-left: 3px solid var(--accent);
}

.notification-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.notification-item-icon.reply {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.notification-item-icon.mention {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.notification-item-icon.message {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.notification-item-icon.reputation {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.notification-item-icon.quote {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

.notification-item-icon.system {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.notification-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.notification-item-content {
    flex: 1;
    min-width: 0;
}

.notification-item-title {
    font-size: 13px;
    font-weight: 500;
    color: #f0f0f8;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-item-text {
    font-size: 12px;
    color: #9ca3af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-item-time {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

.notification-loading,
.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 13px;
    gap: 10px;
}

.notification-empty i {
    font-size: 32px;
    color: #4b5563;
}

.notification-dropdown-footer {
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.notification-dropdown-footer a {
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.notification-dropdown-footer a:hover {
    color: var(--accent-hover);
}

.quick-auth {
    display: flex;
    align-items: center;
    gap: 0;
    padding-right: 10px;
}

.quick-auth-btn {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    margin: 4px 2px;
}

.quick-auth-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.quick-auth-btn.register-btn {
    background: var(--gradient-primary);
    color: #fff;
}

.quick-auth-btn.register-btn:hover {
    opacity: 0.9;
    color: #fff;
}

/* Header - Premium Glass */
.header {
    background: linear-gradient(180deg, rgba(13, 13, 21, 0.98), rgba(10, 10, 17, 0.95));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.5), transparent);
}

.header-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    position: relative;
    padding: 8px 12px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.logo-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    box-shadow: 
        0 0 30px rgba(99, 102, 241, 0.5),
        0 0 60px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    animation: logoFloat 4s ease-in-out infinite;
    transition: all 0.4s ease;
}

.logo:hover .logo-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 
        0 0 40px rgba(99, 102, 241, 0.7),
        0 0 80px rgba(139, 92, 246, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg, 
        transparent 30%, 
        rgba(255,255,255,0.2) 50%, 
        transparent 70%
    );
    animation: logoShine 3s ease-in-out infinite;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent, rgba(255,255,255,0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.logo-icon i {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: skullPulse 2s ease-in-out infinite;
}

@keyframes skullPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes logoShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 3px;
    position: relative;
    display: flex;
    align-items: center;
}

.logo-text-leak {
    color: #fff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(99, 102, 241, 0.5),
        0 0 40px rgba(99, 102, 241, 0.3);
    animation: leakGlow 3s ease-in-out infinite;
    position: relative;
}

.logo-text-leak::after {
    content: 'LEAK';
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(90deg, #fff, #6366f1, #fff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: leakShimmer 4s ease-in-out infinite;
    opacity: 0;
}

.logo:hover .logo-text-leak::after {
    opacity: 1;
}

@keyframes leakGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(99, 102, 241, 0.5); }
    50% { text-shadow: 0 0 15px rgba(255, 255, 255, 0.7), 0 0 30px rgba(99, 102, 241, 0.7), 0 0 50px rgba(99, 102, 241, 0.4); }
}

@keyframes leakShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.logo-text-zone {
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6, #fb7185);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: zoneGradient 5s ease infinite;
    position: relative;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
}

@keyframes zoneGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo-badge {
    position: absolute;
    top: -8px;
    right: -35px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #000;
    font-size: 8px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.4);
    animation: badgeBounce 2s ease-in-out infinite;
}

@keyframes badgeBounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-2px) rotate(-5deg); }
}

/* Particles around logo on hover */
.logo-particles {
    position: absolute;
    inset: -20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.logo:hover .logo-particles {
    opacity: 1;
}

.logo-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    animation: particleFloat 2s ease-in-out infinite;
}

.logo-particle:nth-child(1) { top: 0; left: 20%; animation-delay: 0s; }
.logo-particle:nth-child(2) { top: 10%; right: 10%; animation-delay: 0.3s; }
.logo-particle:nth-child(3) { bottom: 10%; left: 10%; animation-delay: 0.6s; }
.logo-particle:nth-child(4) { bottom: 0; right: 20%; animation-delay: 0.9s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-10px) scale(1.2); opacity: 1; }
}

/* User area in header */
.header-user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.header-icon:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--accent);
    transform: translateY(-2px);
}

.header-icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: pulse-badge 2s ease-in-out infinite;
}

.header-credits {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.header-credits::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.header-credits:hover::before {
    left: 100%;
}

.header-credits:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(16, 185, 129, 0.25);
    color: #34d399;
}

.header-credits i {
    font-size: 14px;
}

/* User dropdown - Premium style */
.user-dropdown {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
}

.user-trigger:hover {
    transform: scale(1.08);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.5));
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.user-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 2px solid transparent;
    object-fit: cover;
    transition: all 0.3s ease;
}

.user-trigger:hover .user-avatar {
    border-color: rgba(255,255,255,0.3);
}

.user-info {
    text-align: left;
}

.user-name {
    font-weight: 600;
    font-size: 13px;
    display: block;
    color: var(--text-primary);
}

.user-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    padding: 3px 9px;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.45;
    white-space: nowrap;
    vertical-align: middle;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 260px;
    background: linear-gradient(180deg, rgba(14, 14, 24, 0.98), rgba(10, 10, 18, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.1);
    display: none;
    z-index: 1001;
    overflow: hidden;
    margin-top: 8px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.5), transparent);
}

.user-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
}

.user-dropdown:hover .dropdown-menu { display: block; }

.dropdown-header {
    padding: 15px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 2px solid var(--accent);
}

.dropdown-user-details h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.dropdown-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.dropdown-stat {
    background: var(--bg-input);
    padding: 8px;
    border-radius: 6px;
    text-align: center;
}

.dropdown-stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.dropdown-stat-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}

.dropdown-menu a:last-child { border-bottom: none; }

.dropdown-menu a:hover {
    background: var(--bg-card-hover);
    color: var(--accent);
}

.dropdown-menu a i { width: 18px; color: var(--accent); }
.dropdown-menu a.danger { color: var(--red); }
.dropdown-menu a.danger i { color: var(--red); }
.dropdown-menu a.admin-link { color: var(--red); }
.dropdown-menu a.admin-link i { color: var(--red); }

/* Main Navigation Tabs - Premium Glass Style */
.main-nav {
    background: linear-gradient(180deg, rgba(10, 10, 17, 0.95), rgba(8, 8, 14, 0.9));
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.main-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2), transparent);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: stretch;
    gap: 0;
    /* Tabs must never be squeezed: .nav-tab sets overflow:hidden for its
       underline animation, so any flex shrink silently clipped the labels
       ("Members" -> "Membe") and let .nav-right-tabs ride over the last tab.
       Scrolling the strip instead keeps every label intact at any width. */
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-inner::-webkit-scrollbar { display: none; }

.nav-tab {
    padding: 14px 20px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    border-bottom: 2px solid transparent;
    overflow: hidden;
}

.nav-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    transition: width 0.3s ease;
}

.nav-tab:hover::before {
    width: 100%;
}

.nav-tab:hover {
    color: #fff;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1), transparent);
}

.nav-tab.active {
    color: #fff;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
}

.nav-tab.active::before {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.2), transparent);
    pointer-events: none;
}

.nav-tab i { 
    font-size: 15px; 
    width: 18px;
    text-align: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-tab:hover i,
.nav-tab.active i {
    opacity: 1;
    transform: scale(1.1);
}

.nav-tab.premium-tab {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.nav-tab.premium-tab:hover {
    color: #fcd34d;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.1), transparent);
}

.nav-tab.premium-tab::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.nav-tab.premium-tab.active {
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05));
}

.nav-tab-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.nav-spacer {
    flex: 1;
}

.nav-right-tabs {
    display: flex;
    align-items: stretch;
    /* margin-left:auto pushes this group right when there is spare room, and
       resolves to 0 once the strip overflows, so it never overlaps the tabs. */
    margin-left: auto;
    flex: 0 0 auto;
    border-left: 1px solid rgba(255,255,255,0.05);
}

/* Search bar - Premium style */
.header-search {
    flex: 1;
    max-width: 450px;
}

.search-wrapper {
    position: relative;
}

.search-wrapper input {
    width: 100%;
    padding: 12px 50px 12px 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-wrapper input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}

.search-wrapper input::placeholder { color: #6b7280; }

.search-wrapper button {
    position: absolute;
    right: 4px; top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    width: 36px; height: 36px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.search-wrapper button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon-btn {
    width: 42px; height: 42px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.header-icon-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.header-icon-btn .badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    color: var(--text-primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: rgba(99, 102, 241, 0.6);
    color: #fff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.btn-upgrade {
    background: linear-gradient(135deg, #f59e0b, #fbbf24, #fcd34d);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
    position: relative;
    z-index: 1;
}

.btn-upgrade:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 35px rgba(251, 191, 36, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
    color: #000;
}

/* NOTE: the older "plain" copies of .user-dropdown / .user-trigger /
   .user-avatar / .dropdown-menu / .main-nav / .nav-link that used to live
   here have been removed. They came after the "Premium Glass" definitions
   above and silently overrode them, flattening the header and user menu.
   The premium versions above are the intended, active styles. */

/* Main wrapper */
.main-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px 24px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 25px;
}

.main-content { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }

/* Stats bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(14, 14, 24, 0.9), rgba(10, 10, 18, 0.8));
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.15);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

/* Section boxes - Premium */
.section-box {
    background: linear-gradient(180deg, rgba(14, 14, 24, 0.95), rgba(10, 10, 18, 0.9));
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.section-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
}

.section-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.05));
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

.section-header.premium {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.05));
}

.section-header.premium::after {
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.4), transparent);
}

.section-header.cracking {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.05));
}

.section-header.cracking::after {
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.3), transparent);
}

.section-header.marketplace {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.05));
}

.section-header.marketplace::after {
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.3), transparent);
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Orbitron', monospace;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.section-header h2 .icon {
    font-size: 22px;
    filter: drop-shadow(0 0 10px currentColor);
}

.section-toggle {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.section-toggle:hover {
    color: #fff;
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

/* Forum table */
.forum-table-header {
    display: grid;
    grid-template-columns: 1fr 100px 100px 200px;
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.forum-table-header span:not(:first-child) { text-align: center; }
.forum-table-header span:last-child { text-align: right; }

.forum-row {
    display: grid;
    grid-template-columns: 1fr 100px 100px 200px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.forum-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #6366f1, #a855f7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.forum-row:last-child { border-bottom: none; }

.forum-row:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.08), transparent);
}

.forum-row:hover::before {
    opacity: 1;
}

.forum-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.forum-icon {
    width: 54px; height: 54px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.forum-row:hover .forum-icon {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

.forum-icon.has-new::after {
    content: '';
    position: absolute;
    top: -4px; right: -4px;
    width: 14px; height: 14px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.forum-details { min-width: 0; }

.forum-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    display: block;
}

.forum-name:hover { color: var(--accent); }

.forum-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.forum-subforums {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.subforum-link {
    font-size: 11px;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 5px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.subforum-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.forum-stat {
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.forum-stat small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 2px;
}

.forum-lastpost {
    text-align: right;
}

.lastpost-title {
    font-size: 12px;
    font-weight: 500;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    margin-left: auto;
    margin-bottom: 4px;
}

.lastpost-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.lastpost-meta a { color: var(--accent); }

/* Thread rows */
.thread-row {
    display: grid;
    grid-template-columns: 1fr 80px 80px 180px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    align-items: center;
    transition: all 0.2s;
}

.thread-row:hover { background: var(--bg-card-hover); }

.thread-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.thread-avatar {
    width: 40px; height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}

.thread-details { min-width: 0; }

.thread-title-link {
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.thread-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.thread-meta a { color: var(--accent); }

.thread-stat {
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    font-weight: 600;
}

.thread-lastpost {
    text-align: right;
    font-size: 11px;
    color: var(--text-muted);
}

.thread-lastpost a { color: var(--accent); }

/* Badges - Premium */
.badge-tag {
    font-size: 9px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.badge-pinned {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.badge-hot {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #fff;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.4);
    animation: hotPulse 1.5s ease-in-out infinite;
}

@keyframes hotPulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(249, 115, 22, 0.4); }
    50% { box-shadow: 0 2px 20px rgba(249, 115, 22, 0.6); }
}

.badge-locked {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
}

.badge-new {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.badge-exclusive {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #000;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.4);
}

/* Widget cards - Premium */
.widget {
    background: linear-gradient(180deg, rgba(14, 14, 24, 0.95), rgba(10, 10, 18, 0.9));
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
}

.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
}

.widget-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.05));
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.widget-header i {
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

.widget-body { padding: 20px; }

.widget-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.widget-stat {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    padding: 18px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.widget-stat:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.widget-stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.widget-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

/* Online users - Premium */
.online-list {
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.online-list::-webkit-scrollbar {
    width: 6px;
}

.online-list::-webkit-scrollbar-track {
    background: transparent;
}

.online-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

.online-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
    transition: all 0.3s ease;
}

.online-user:last-child { border-bottom: none; }

.online-user:hover {
    background: rgba(99, 102, 241, 0.05);
    padding-left: 8px;
    margin-left: -8px;
    margin-right: -8px;
    padding-right: 8px;
    border-radius: 8px;
}

.online-avatar {
    width: 34px; height: 34px;
    border-radius: 10px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.online-user:hover .online-avatar {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.online-name {
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.online-user:hover .online-name {
    color: var(--accent);
}

.online-dot {
    width: 10px; height: 10px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 50%;
    margin-left: auto;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    animation: onlinePulse 2s ease-in-out infinite;
}

@keyframes onlinePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }
    50% { transform: scale(1.1); box-shadow: 0 0 15px rgba(16, 185, 129, 0.7); }
}

/* Upgrade card - Premium */
.upgrade-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.upgrade-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.6), transparent);
}

.upgrade-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
    animation: upgradeGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes upgradeGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

.upgrade-icon {
    font-size: 48px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.5));
    animation: crownFloat 3s ease-in-out infinite;
}

@keyframes crownFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.upgrade-title {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24, #fcd34d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
}

.upgrade-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* Post styling */
.post {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    overflow: hidden;
}

.post-sidebar {
    width: 200px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-right: 1px solid var(--border);
    text-align: center;
    flex-shrink: 0;
}

.post-avatar {
    width: 90px; height: 90px;
    border-radius: 12px;
    margin: 0 auto 12px;
    border: 3px solid var(--border);
}

.post-username {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
}

.post-username a { color: var(--accent); }

.post-userstats {
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 12px;
}

.post-userstats div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.post-content {
    flex: 1;
    padding: 20px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.post-date { font-size: 12px; color: var(--text-muted); }

.post-actions { display: flex; gap: 6px; }

.post-actions a {
    font-size: 11px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-muted);
}

.post-actions a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.post-body {
    font-size: 14px;
    line-height: 1.8;
}

.post-signature {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* Flash messages */
.flash-container {
    max-width: 1400px;
    margin: 20px auto 0;
    padding: 0 24px;
}

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--green);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--red);
}

.alert-info {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--accent);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 13px;
    margin-bottom: 20px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-dim); }

/* Page header */
.page-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Forms */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

textarea.form-control { min-height: 140px; resize: vertical; }

.form-error { color: var(--red); font-size: 12px; margin-top: 5px; }

/* Auth box */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 40px 24px;
}

.auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.auth-header { text-align: center; margin-bottom: 32px; }

.auth-icon {
    width: 70px; height: 70px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 0 40px var(--accent-glow);
}

.auth-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    margin-bottom: 8px;
}

.auth-header p { color: var(--text-muted); font-size: 14px; }

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ========== FORUM STATISTICS BAR - PREMIUM DESIGN ========== */
.forum-stats-bar {
    background: linear-gradient(180deg, #0a0a12 0%, #080810 100%);
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.forum-stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #a855f7 30%, #00d4ff 50%, #a855f7 70%, transparent 100%);
}

.forum-stats-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.forum-stats-inner {
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Online Users Section */
.forum-stats-online {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    position: relative;
}

.online-indicator {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.8), 0 0 30px rgba(16, 185, 129, 0.4);
    animation: online-pulse 2s ease-in-out infinite;
}

@keyframes online-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.online-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.online-text strong {
    color: #fff;
    font-weight: 700;
    background: linear-gradient(90deg, #a855f7, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* User Groups Section */
.forum-stats-groups {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 24px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.03), transparent);
}

.user-group {
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.user-group::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    padding: 1px;
    background: linear-gradient(135deg, currentColor, transparent);
    -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;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-group:hover::before {
    opacity: 0.5;
}

.user-group:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    text-shadow: 0 0 20px currentColor;
}

/* Stats Cards Row */
.forum-stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 24px 0;
}

.forum-stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px 16px;
    background: linear-gradient(145deg, rgba(20, 20, 35, 0.8), rgba(15, 15, 25, 0.6));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.forum-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--stat-color, #a855f7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.forum-stat-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, var(--stat-color-alpha, rgba(139, 92, 246, 0.1)) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.forum-stat-item:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
}

.forum-stat-item:hover::before,
.forum-stat-item:hover::after {
    opacity: 1;
}

/* Individual stat colors */
.forum-stat-item:nth-child(1) { --stat-color: #a855f7; --stat-color-alpha: rgba(168, 85, 247, 0.1); }
.forum-stat-item:nth-child(2) { --stat-color: #00d4ff; --stat-color-alpha: rgba(0, 212, 255, 0.1); }
.forum-stat-item:nth-child(3) { --stat-color: #10b981; --stat-color-alpha: rgba(16, 185, 129, 0.1); }
.forum-stat-item:nth-child(4) { --stat-color: #f59e0b; --stat-color-alpha: rgba(245, 158, 11, 0.1); }
.forum-stat-item:nth-child(5) { --stat-color: #ec4899; --stat-color-alpha: rgba(236, 72, 153, 0.1); }

.forum-stat-item i {
    font-size: 28px;
    color: var(--stat-color, #a855f7);
    opacity: 0.9;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 8px var(--stat-color-alpha, rgba(139, 92, 246, 0.5)));
    transition: transform 0.3s ease;
}

.forum-stat-item:hover i {
    transform: scale(1.1);
}

.forum-stat-item .stat-info {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.forum-stat-item .stat-number {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
    line-height: 1.2;
}

.forum-stat-item .stat-name {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 4px;
}

/* Responsive Stats */
@media (max-width: 1024px) {
    .forum-stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .forum-stat-item:nth-child(4),
    .forum-stat-item:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .forum-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px 0;
    }
    .forum-stat-item {
        padding: 16px 12px;
    }
    .forum-stat-item .stat-number {
        font-size: 18px;
    }
    .forum-stat-item i {
        font-size: 22px;
    }
    .forum-stats-groups {
        gap: 6px 12px;
        padding: 14px 0;
    }
    .user-group {
        font-size: 11px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .forum-stats-row {
        grid-template-columns: 1fr;
    }
    .forum-stat-item {
        justify-content: flex-start;
        padding-left: 24px;
    }
}

/* Footer - Premium */
.footer {
    background: linear-gradient(180deg, rgba(8, 8, 15, 0.98), rgba(3, 3, 8, 1));
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), rgba(168, 85, 247, 0.5), transparent);
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 24px 40px;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 50px;
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    text-decoration: none;
}

.footer-logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
}

.footer-logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #a0a0b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.footer-section h4 {
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section h4 i {
    color: var(--accent);
    filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.5));
}

.footer-section a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 10px 0;
    transition: all 0.3s ease;
    position: relative;
}

.footer-section a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transition: width 0.3s ease;
}

.footer-section a:hover::before {
    width: 100%;
}

.footer-section a:hover { 
    color: var(--accent);
    padding-left: 8px;
}

.footer-section a i { 
    width: 18px;
    transition: transform 0.3s ease;
}

.footer-section a:hover i {
    transform: scale(1.2);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 25px 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    z-index: 1;
}

.footer-bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-copyright .heart {
    color: #ef4444;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.pagination a, .pagination span {
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

/* Member rows */
.member-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}

.member-row:hover { background: var(--bg-card-hover); }

.member-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.member-avatar {
    width: 44px; height: 44px;
    border-radius: 10px;
}

.member-details { min-width: 0; }
.member-name { font-weight: 600; font-size: 14px; }
.member-rank { font-size: 11px; color: var(--text-muted); }

.member-stat {
    width: 100px;
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
}

.member-date {
    width: 140px;
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
}

/* Message rows */
.message-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}

.message-row:hover { background: var(--bg-card-hover); }
.message-row.unread { background: rgba(99, 102, 241, 0.05); }

.message-avatar {
    width: 44px; height: 44px;
    border-radius: 10px;
    margin-right: 14px;
}

.message-info { flex: 1; }
.message-subject { font-size: 14px; font-weight: 500; margin-bottom: 3px; }
.message-from { font-size: 12px; color: var(--text-muted); }
.message-date { font-size: 12px; color: var(--text-muted); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Responsive */

/* Nav overflow/no-shrink is handled on .nav-inner itself (see above) so it
   holds at every width, not just under a breakpoint. */
@media (max-width: 1150px) {
    .nav-tab { padding: 14px 16px; }
    .nav-right-tabs { border-left: none; }
}

@media (max-width: 1024px) {
    .main-wrapper { grid-template-columns: 1fr; }
    .sidebar { order: -1; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .forum-table-header { display: none; }
    .forum-row { grid-template-columns: 1fr; gap: 12px; }
    .forum-stat, .forum-lastpost { display: none; }
    .thread-row { grid-template-columns: 1fr; gap: 8px; }
    .thread-stat, .thread-lastpost { display: none; }
    .header-search { display: none; }
    .nav-inner { padding: 0 12px; }
    /* was .nav-link, a class the header no longer renders, so the nav kept its
       full desktop sizing on phones */
    .nav-tab { padding: 12px 14px; font-size: 12px; gap: 8px; }
    /* The logo + login/register row is ~490 px wide and used to run off the
       right edge of a 375 px phone, giving EVERY page ~130 px of horizontal
       scroll. Letting it wrap keeps the page exactly as wide as the viewport. */
    .header-main { padding: 10px 14px; gap: 10px 12px; flex-wrap: wrap; }
    .header-user-area { flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
    .logo { min-width: 0; padding: 4px 6px; }
    .logo-text { font-size: 20px; letter-spacing: 2px; }
    .logo-icon { width: 40px; height: 40px; font-size: 18px; }
    .footer-inner { grid-template-columns: 1fr; }
    .post { flex-direction: column; }
    .post-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 480px) {
    .main-container { padding: 14px !important; }
    .logo-badge { display: none; }
    .header-credits { padding: 8px 10px; }
    .stats-bar { grid-template-columns: 1fr; }
}

/* ============================================
   Username Neon Glow Effects
   ============================================ */

.username-neon {
    --neon-color: #6366f1;
    color: var(--neon-color);
    font-weight: 700;
    text-shadow: 
        0 0 5px var(--neon-color),
        0 0 10px var(--neon-color),
        0 0 20px var(--neon-color),
        0 0 40px var(--neon-color);
    animation: neonPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.username-neon:hover {
    text-shadow: 
        0 0 5px var(--neon-color),
        0 0 10px var(--neon-color),
        0 0 20px var(--neon-color),
        0 0 40px var(--neon-color),
        0 0 60px var(--neon-color),
        0 0 80px var(--neon-color);
}

@keyframes neonPulse {
    0%, 100% {
        text-shadow: 
            0 0 5px var(--neon-color),
            0 0 10px var(--neon-color),
            0 0 20px var(--neon-color),
            0 0 40px var(--neon-color);
    }
    50% {
        text-shadow: 
            0 0 2px var(--neon-color),
            0 0 5px var(--neon-color),
            0 0 10px var(--neon-color),
            0 0 20px var(--neon-color);
    }
}

/* Username default style for free users */
.username-default {
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.2s;
}

.username-default:hover {
    color: var(--accent);
}

/* Author name styles in posts - matching neon */
.author-name.neon-glow {
    --neon-color: #6366f1;
    color: var(--neon-color) !important;
    font-weight: 700;
    text-shadow: 
        0 0 5px var(--neon-color),
        0 0 10px var(--neon-color),
        0 0 20px var(--neon-color);
    animation: neonPulse 2s ease-in-out infinite;
}

.author-name.neon-glow:hover {
    text-decoration: none !important;
    text-shadow: 
        0 0 5px var(--neon-color),
        0 0 10px var(--neon-color),
        0 0 20px var(--neon-color),
        0 0 40px var(--neon-color),
        0 0 60px var(--neon-color);
}

/* ============================================
   BBCode Styles - Cracked.sh Style
   ============================================ */

/* Links */
.bbcode-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
    transition: all 0.2s;
}
.bbcode-link:hover {
    color: var(--accent-hover);
    border-bottom-style: solid;
}

/* Images */
.bbcode-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    cursor: pointer;
    transition: transform 0.2s;
}
.bbcode-image:hover {
    transform: scale(1.02);
}

/* Video Container */
.bbcode-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 15px 0;
    border-radius: 12px;
    background: var(--bg-secondary);
}
.bbcode-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}
.bbcode-video-player {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    margin: 10px 0;
}
.bbcode-audio {
    width: 100%;
    margin: 10px 0;
}

/* Quote */
.bbcode-quote {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.05));
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    margin: 15px 0;
    overflow: hidden;
}
.bbcode-quote-header {
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}
.bbcode-quote-header i {
    opacity: 0.7;
}
.bbcode-quote-content {
    padding: 15px 18px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Code */
.bbcode-code {
    background: #0d0d15;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 15px 0;
    overflow: hidden;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.bbcode-code-header {
    padding: 10px 16px;
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}
.bbcode-code-content {
    padding: 16px;
    margin: 0;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e0e0e0;
}
.bbcode-code-content code {
    background: none;
    padding: 0;
}
.bbcode-inline-code {
    background: rgba(99, 102, 241, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    color: var(--accent);
}

/* Spoiler */
.bbcode-spoiler {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
}
.bbcode-spoiler-btn {
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent);
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    text-align: left;
}
.bbcode-spoiler-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), transparent);
}
.bbcode-spoiler-btn .spoiler-arrow {
    margin-left: auto;
    transition: transform 0.3s;
}
.bbcode-spoiler.open .spoiler-arrow {
    transform: rotate(180deg);
}
.bbcode-spoiler-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.bbcode-spoiler.open .bbcode-spoiler-content {
    max-height: 2000px;
    padding: 18px;
    border-top: 1px solid var(--border);
}

/* Hide */
.bbcode-hide {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), transparent);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
}
.bbcode-hide-header {
    padding: 12px 18px;
    background: rgba(239, 68, 68, 0.1);
    font-size: 0.9rem;
    font-weight: 600;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 10px;
}
.bbcode-hide-content {
    padding: 15px 18px;
}
.bbcode-hide-content.hidden-blur {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}
.bbcode-hide-reply {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), transparent);
}
.bbcode-hide-reply .bbcode-hide-header {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
.bbcode-hide-thanks {
    border-color: rgba(236, 72, 153, 0.3);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), transparent);
}
.bbcode-hide-thanks .bbcode-hide-header {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}
.bbcode-hide-group {
    border-color: rgba(168, 85, 247, 0.3);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), transparent);
}
.bbcode-hide-group .bbcode-hide-header {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

/* Lists */
.bbcode-list {
    margin: 10px 0 10px 25px;
    padding: 0;
}
.bbcode-list li {
    margin: 6px 0;
    padding-left: 5px;
}

/* Tables */
.bbcode-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
}
.bbcode-table th,
.bbcode-table td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    text-align: left;
}
.bbcode-table th {
    background: rgba(99, 102, 241, 0.1);
    font-weight: 600;
    color: var(--accent);
}
.bbcode-table tr:hover td {
    background: rgba(99, 102, 241, 0.05);
}

/* Horizontal Rule */
.bbcode-hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    margin: 20px 0;
}

/* Progress Bar */
.bbcode-progress {
    position: relative;
    height: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    margin: 10px 0;
    border: 1px solid var(--border);
}
.bbcode-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    border-radius: 12px;
    transition: width 0.5s ease;
}
.bbcode-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Alerts */
.bbcode-alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}
.bbcode-alert i {
    margin-top: 2px;
    font-size: 1.1rem;
}
.bbcode-alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}
.bbcode-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}
.bbcode-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}
.bbcode-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Mention */
.bbcode-mention {
    background: rgba(99, 102, 241, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    color: var(--accent);
    transition: all 0.2s;
}
.bbcode-mention:hover {
    background: rgba(99, 102, 241, 0.25);
}

/* Copy Box */
.bbcode-copy {
    display: flex;
    align-items: stretch;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 10px 0;
    overflow: hidden;
}
.bbcode-copy-text {
    flex: 1;
    padding: 12px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: transparent;
    word-break: break-all;
}
.bbcode-copy-btn {
    padding: 12px 18px;
    background: var(--accent);
    border: none;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}
.bbcode-copy-btn:hover {
    background: var(--accent-hover);
}

/* Emoji */
.bbcode-emoji {
    font-size: 1.2em;
    vertical-align: middle;
}

/* Announcement Banner - Global */
.announcement-banner {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(0, 212, 255, 0.2));
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    margin: 0 auto 25px auto;
    width: calc(100% - 40px);
    max-width: 1560px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    box-sizing: border-box;
}

.announcement-icon {
    font-size: 1.5rem;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.announcement-tag {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.announcement-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
    position: absolute;
    right: 20px;
}

.announcement-close:hover {
    color: var(--text-primary);
}

/* ============================================
   ACCESSIBILITY & GLOBAL REFINEMENTS
   ============================================ */

/* Themed text selection */
::selection {
    background: rgba(99, 102, 241, 0.35);
    color: #fff;
}

/* Visible keyboard focus (only for keyboard users, not mouse clicks).
   The site previously had no focus styles, making it hard to navigate
   without a mouse. */
:focus-visible {
    outline: 2px solid var(--accent-hover);
    outline-offset: 2px;
    border-radius: 4px;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-tab:focus-visible,
.quick-icon:focus-visible,
.header-icon:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent-hover);
    outline-offset: 2px;
}

/* Respect users who ask for less motion: this theme runs many looping
   animations (glow, float, glitch, particles, gradients). Quiet them
   down instead of removing the visual design. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .bg-grid,
    .bg-glow,
    .bg-orbs,
    .particles,
    .particle {
        animation: none !important;
    }
}

/* ============================================
   DESIGN REFINEMENTS
   Shared polish applied across every page. Page-level <style> blocks still
   win where they set the same property, so this only lifts what is unstyled
   or left at browser defaults.
   ============================================ */

/* ---------- Typography ---------- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

h1 { font-weight: 800; }
h2, h3 { font-weight: 700; }

p { line-height: 1.65; }

small, .text-muted { color: var(--text-muted); }

/* ---------- Scrollbars ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--border-light), #2e2e4d);
    border: 2px solid var(--bg-secondary);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent), var(--purple));
}

::-webkit-scrollbar-corner { background: var(--bg-secondary); }

* { scrollbar-color: var(--border-light) var(--bg-secondary); }

/* ---------- Buttons ---------- */
.btn {
    line-height: 1.2;
    text-decoration: none;
    user-select: none;
    white-space: nowrap;
}

.btn:active { transform: translateY(0) scale(0.99); }

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled::before,
.btn.disabled::before { display: none; }

.btn-sm { padding: 8px 14px; font-size: 12px; border-radius: 9px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-danger:hover,
.btn-success:hover { transform: translateY(-2px); color: #fff; }

/* ---------- Form controls ---------- */
.form-control::placeholder,
input::placeholder,
textarea::placeholder { color: var(--text-dim); }

.form-control:hover:not(:focus) { border-color: var(--border-light); }

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
    background: var(--bg-tertiary);
}

textarea.form-control { min-height: 120px; resize: vertical; line-height: 1.6; }

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
                      linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position: calc(100% - 19px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(14, 14, 24, 0.75), rgba(10, 10, 18, 0.55));
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.breadcrumb a { transition: color 0.2s ease; }
.breadcrumb .separator, .breadcrumb .sep { color: var(--text-dim); opacity: 0.7; }
.breadcrumb .current { color: var(--text-primary); font-weight: 600; }

/* ---------- Pagination ---------- */
.pagination { flex-wrap: wrap; }

.pagination a,
.pagination span {
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.pagination a:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.pagination .active {
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

/* ---------- Alerts ---------- */
.alert {
    position: relative;
    overflow: hidden;
    padding-left: 20px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: currentColor;
    opacity: 0.85;
}

.alert i { font-size: 15px; flex-shrink: 0; }

/* ---------- Surfaces ---------- */
.page-header {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.section-box:hover,
.widget:hover {
    border-color: rgba(99, 102, 241, 0.22);
}

/* ---------- Avatars ---------- */
img.avatar,
.avatar img,
.post-avatar img,
.author-avatar img {
    object-fit: cover;
    background: var(--bg-tertiary);
}

/* ---------- Tables ---------- */
table { border-collapse: collapse; width: 100%; }

th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    font-weight: 700;
}

/* ---------- Empty states ---------- */
.no-content,
.no-posts,
.empty-state {
    display: block;
    text-align: center;
    padding: 28px 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.empty-state i {
    display: block;
    font-size: 34px;
    margin-bottom: 10px;
    color: var(--text-dim);
    opacity: 0.8;
}

/* ---------- Misc ---------- */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    margin: 20px 0;
}

code, kbd, pre {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
