@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&amp;display=swap');

:root {
    --primary-neon: #ff00d4;
    /* Magenta */
    --secondary-neon: #00e5ff;
    /* Cyan */
    --accent-red: #ff3b3b;
    --bg-deep: #08040d;
    /* Even darker for emphasis */
    --bg-panel: rgba(15, 12, 25, 0.4);
    /* Less saturated panel bg */
    --bg-card: rgba(255, 255, 255, 0.02);
    --text-main: #FFFFFF;
    --text-dim: rgba(255, 255, 255, 0.45);
    /* Desaturated dim text */
    --glass-border: rgba(255, 255, 255, 0.06);
    /* Dimmer border, to let active states pop */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Select Styling */
select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1rem) center;
    padding-right: 2.5rem !important;
}

select optgroup {
    background: #1a142e;
    color: var(--secondary-neon);
    font-weight: 600;
}

select option {
    background: #1a142e;
    color: white;
}

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-cyan {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 229, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: transparent;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

/* Layout */
.app-container {
    display: grid;
    grid-template-columns: 280px 1fr 310px;
    gap: 1rem;
    padding: 1rem;
    min-height: 100vh;
    height: auto;
    max-width: 1600px;
    margin: 0 auto;
}

/* Common Panels */
.glass-panel {
    background: linear-gradient(135deg, rgba(20, 15, 30, 0.5) 0%, rgba(10, 5, 15, 0.7) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    /* Light reflection */
    border-radius: 28px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 229, 255, 0.03);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Modals Refinement - Scrollbar-free & Compact */
.modal-content {
    background: rgba(10, 7, 18, 0.8) !important;
    backdrop-filter: blur(40px) !important;
    padding: 1.5rem 2rem !important; 
    border: 1px solid var(--secondary-neon) !important;
    max-height: 95vh;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.modal-content::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.sound-upload-compact {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 0.6rem; 
    background: rgba(255,255,255,0.015); 
    padding: 1rem; 
    border-radius: 20px; 
    border: 1px dashed rgba(0,229,255,0.15);
    width: 100%;
}

.folder-btn-mini {
    width: 48px; 
    height: 48px; 
    border-radius: 50%; 
    font-size: 1.4rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 0 20px rgba(0,229,255,0.25);
    background: radial-gradient(circle, rgba(0,229,255,0.15) 0%, rgba(0,0,0,0.5) 100%);
    border: 2px solid var(--secondary-neon);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.folder-btn-mini:hover { 
    transform: scale(1.08); 
    box-shadow: 0 0 30px rgba(0,229,255,0.5);
}

/* Neon liquid edge glow (Desktop ONLY to save mobile GPU) */
@media (min-width: 769px) {
    .glass-panel::before {
        content: "";
        position: absolute;
        inset: -1px;
        /* Extends slightly outside to cover padding/border */
        border-radius: inherit;
        padding: 1px;
        background: linear-gradient(135deg, transparent 40%, rgba(0, 229, 255, 0.25) 50%, rgba(255, 0, 212, 0.25) 60%, transparent 70%);
        background-size: 300% 300%;
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        z-index: -1;
        animation: liquid-border-glow 6s infinite alternate ease-in-out;
    }
}

@keyframes liquid-border-glow {
    0% {
        background-position: 0% 50%;
        opacity: 0.3;
    }

    50% {
        background-position: 100% 50%;
        opacity: 1;
    }

    100% {
        background-position: 0% 50%;
        opacity: 0.3;
    }
}

/* Sidebar (Left) */
.sidebar {
    gap: 1rem;
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    height: auto;
    align-self: start;
    padding-bottom: 1rem !important;
    /* Ensure bottom padding */
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Main Feed (Center) */
.main-content {
    gap: 1.5rem;
    display: flex;
    flex-direction: column;
}

/* Control Panel (Right) */
.controls-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    align-self: start;
    overflow-y: auto;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.controls-panel::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
    display: none;
}

/* Header Logo Pill */
.v-logo-pill {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem 0.5rem 1rem;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.v-logo-pill img {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    object-fit: cover;
}

.v-logo-pill span {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 6px;
    color: white;
}

/* Buttons - Premium Neon Gradients */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

/* Button Ripple SVG Animation */
.btn-ripple-svg {
    position: absolute;
    width: 2px;
    height: 2px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 60%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    animation: ripple-bloom 0.6s ease-out forwards;
}

@keyframes ripple-bloom {
    0% {
        width: 0px;
        height: 0px;
        opacity: 0.8;
    }

    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

.btn-cyber {
    background: linear-gradient(135deg, #00e5ff 0%, #008ba3 100%);
    color: #08040d;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cyber:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.4);
    filter: brightness(1.15);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Desaturated */
    color: var(--text-dim);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary-neon);
    /* Pops when interactive */
    color: white;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.btn-danger {
    background: rgba(255, 60, 60, 0.05);
    /* Desaturated initially */
    border: 1px solid rgba(255, 60, 60, 0.15);
    color: #ff5050;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger:hover {
    background: #ff3b3b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 59, 59, 0.5);
}

/* Specialized Components */

/* Status Ring (Center) */
.status-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
}

.outer-ring {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.inner-ring {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 2px solid rgba(0, 229, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-main {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #2a2245;
    border: 2px solid var(--secondary-neon);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}

.status-label {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.status-label .value {
    color: var(--secondary-neon);
    margin-left: 0.5rem;
}

/* Horizontal Slider (Right) */
.volume-control {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

.horizontal-slider-container {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    position: relative;
    cursor: pointer;
}

.slider-track {
    position: absolute;
    left: 0;
    height: 100%;
    background: linear-gradient(to right, var(--secondary-neon), var(--primary-neon));
    border-radius: 100px;
}

.slider-thumb {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    z-index: 2;
}

/* Gating & Locked Sections */
.locked-section {
    position: relative;
    overflow: hidden;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: var(--transition);
}

.lock-overlay:hover {
    background: rgba(0, 0, 0, 0.6);
}

.lock-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    color: var(--secondary-neon);
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.lock-text {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: white;
    text-transform: uppercase;
}

/* Premium Badge for section headers */
.premium-badge {
    background: linear-gradient(90deg, #ffaa00, #ff7700);
    color: black;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    margin-left: 0.5rem;
}

/* Mute Button (Right) */
.mute-btn {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff3b3b 0%, #900000 100%);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 0 40px rgba(255, 59, 59, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex-shrink: 0;
}

.mute-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(255, 59, 59, 0.6), inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.mute-btn.active {
    background: #1a1a1a;
    box-shadow: none;
    border-color: #333;
    opacity: 0.6;
}

/* Voice Selection */
.voice-selection-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.voice-selection-group:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 229, 255, 0.2);
}

#voiceSelect {
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, #666 50%), linear-gradient(135deg, #666 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

#voiceSelect option {
    background: #1a152d;
    /* Matching bg-deep */
    color: white;
}

/* Live Event Feed (Center - Bottom) */
.event-feed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.event-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.event-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.event-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.event-info {
    flex: 1;
    font-size: 0.95rem;
}

.event-user {
    color: var(--secondary-neon);
    font-weight: 600;
}

/* Toggles (Right) */
.toggle-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-label:hover {
    color: var(--secondary-neon);
    filter: brightness(1.2);
}

.toggle-switch {
    width: 44px;
    height: 22px;
    background: #333;
    border-radius: 100px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-switch.on {
    background: linear-gradient(90deg, #00e5ff, #00a4b7);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch.on::after {
    left: 25px;
}

/* Sidebar Profile (Left) */
.sidebar-profile {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.sidebar-profile img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: cover;
    margin-top: 4px;
}

.profile-stats-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.mini-badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-plan {
    background: rgba(0, 229, 255, 0.1);
    color: var(--secondary-neon);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.badge-premium {
    background: rgba(255, 170, 0, 0.15);
    color: #FFAA00;
    border: 1px solid rgba(255, 170, 0, 0.3);
}

.badge-admin {
    background: rgba(0, 255, 136, 0.15);
    color: #00FF88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.badge-owner {
    background: rgba(191, 76, 255, 0.15);
    color: #BF4CFF;
    border: 1px solid rgba(191, 76, 255, 0.3);
}

.badge-sparks {
    background: rgba(0, 229, 255, 0.1);
    color: var(--secondary-neon);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

/* Usage Bar (Guest) */
.usage-container {
    margin-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.usage-text {
    font-size: 0.7rem;
    opacity: 0.8;
    letter-spacing: 0.5px;
    color: var(--text-dim);
}

.usage-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.usage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-neon), var(--primary-neon));
    width: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 16px;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    color: white;
    background: rgba(0, 229, 255, 0.05);
    /* Tinted background for interaction */
    border: 1px solid rgba(0, 229, 255, 0.15);
    box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.05);
}

.nav-item svg {
    opacity: 0.5;
}

.nav-item.active svg {
    opacity: 1;
    color: var(--secondary-neon);
}

@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .sidebar,
    .controls-panel {
        position: static;
        max-height: none;
        width: 100%;
    }

    .main-content {
        order: -1;
        /* Keep dashboard at top */
    }
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
        padding-top: 40px;
    }

    .hero-content {
        order: 2;
        align-items: center;
    }

    .hero-visual {
        order: 1;
    }

    .hero-visual img {
        max-width: 280px;
    }

    h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .cta-images {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cta-images img {
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-visual img {
        max-width: 220px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================ */
/* NAV USER BUTTON                              */
/* ============================================ */
.nav-user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}

.nav-user-btn:hover {
    border-color: var(--secondary-neon);
    color: var(--secondary-neon);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
    transform: scale(1.05);
}

.nav-user-btn.logged-in {
    border-color: var(--secondary-neon);
    color: var(--secondary-neon);
    background: rgba(0, 229, 255, 0.1);
}

/* ============================================ */
/* DASHBOARD & TOOL CARDS                       */
/* ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-top: 100px;
    /* Offset for floating nav */
    animation: fadeSlideUp 0.6s ease;
}

.card-control {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card-status {
    padding: 1.5rem;
    text-align: center;
    border-left: 4px solid var(--secondary-neon);
}

.counter-display {
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.counter-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-neon);
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

.log-container {
    height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 1rem;
    font-family: 'monospace';
    font-size: 0.85rem;
    border: 1px solid var(--glass-border);
}

.log-entry {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.badge-guest {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.badge-pro {
    background: rgba(0, 229, 255, 0.2);
    color: var(--secondary-neon);
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .nav-container {
        width: 95%;
        top: 10px;
    }

    .nav-links {
        display: none;
    }
}

/* ============================================ */
/* AUTH FORMS                                   */
/* ============================================ */
.auth-wrapper {
    animation: fadeSlideUp 0.5s ease;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-panel {
    animation: fadeSlideUp 0.4s ease;
}

.auth-slide-in {
    animation: fadeSlideUp 0.3s ease;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    transition: var(--transition);
}

.auth-input-wrapper:focus-within {
    border-color: var(--secondary-neon);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

.auth-input-wrapper svg {
    opacity: 0.5;
    flex-shrink: 0;
}

.auth-input-wrapper input,
.auth-input-wrapper textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
}

.auth-input-wrapper input::placeholder,
.auth-input-wrapper textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.auth-toggle-pass {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dim);
    opacity: 0.5;
    transition: var(--transition);
    padding: 0;
}

.auth-toggle-pass:hover {
    opacity: 1;
    color: var(--secondary-neon);
}

.auth-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
}

.auth-switch {
    width: 100%;
    text-align: center;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 0.5rem 0;
}

.auth-divider span {
    font-size: 0.85rem;
    color: var(--text-dim);
    opacity: 0.6;
}

.auth-error {
    color: #ff5050;
    font-size: 0.8rem;
    min-height: 0;
}

.pass-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin-top: 0.3rem;
}

.pass-requirements span {
    font-size: 0.75rem;
    color: rgba(255, 100, 100, 0.7);
    transition: color 0.2s;
}

.pass-requirements span.pass-ok {
    color: #00ff88;
}

.breathing {
    animation: breathe 1s ease-in-out infinite;
}

@keyframes breathe {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ============================================ */
/* PROFILE PAGE                                 */
/* ============================================ */
.profile-header {
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    animation: fadeSlideUp 0.5s ease;
}

.profile-avatar-area {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(212, 0, 255, 0.1));
    border: 2px solid var(--secondary-neon);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.15);
}

.profile-stats {
    display: flex;
    gap: 2.5rem;
}

.profile-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-neon);
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.stat-badge {
    padding: 0.3rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(0, 229, 255, 0.15);
    color: var(--secondary-neon);
    border: 1px solid rgba(0, 229, 255, 0.3);
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.4rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.profile-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.profile-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.profile-tab.active {
    background: rgba(0, 229, 255, 0.1);
    color: var(--secondary-neon);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.tab-content {
    animation: fadeSlideUp 0.3s ease;
}

/* Profile Sections */
.profile-section {
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.section-desc {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

/* ============================================ */
/* ADMIN DASHBOARD                              */
/* ============================================ */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-stat-card {
    padding: 1.5rem;
    text-align: center;
    border-radius: 20px;
}

.admin-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-neon);
    display: block;
    margin-bottom: 0.3rem;
}

.admin-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.admin-search-bar {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.admin-search-bar .auth-input-wrapper {
    flex: 1;
}

.admin-search-bar .btn {
    padding: 0.85rem 1.5rem;
    white-space: nowrap;
    font-size: 0.85rem;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.admin-table thead th {
    padding: 0.8rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--glass-border);
}

.admin-table tbody tr {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: var(--transition);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06);
}

.auth-input-wrapper.input-error {
    border-color: #ff5050 !important;
    box-shadow: 0 0 15px rgba(255, 80, 80, 0.2) !important;
}

.error-message {
    color: #ff5050;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    display: block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-content {
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    position: relative;
    animation: fadeSlideUp 0.4s ease;
}

.admin-table tbody td {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
}

.admin-table tbody tr.banned-row {
    opacity: 0.5;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.status-badge.banned {
    background: rgba(255, 80, 80, 0.1);
    color: #ff5050;
    border: 1px solid rgba(255, 80, 80, 0.2);
}

.action-cell {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-icon:hover {
    border-color: var(--secondary-neon);
    transform: scale(1.1);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    cursor: pointer;
}

.radio-label input[type="radio"] {
    accent-color: var(--secondary-neon);
}

.admin-config-row {
    margin-bottom: 1rem;
}

/* ============================================ */
/* MODAL                                        */
/* ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 20, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
    padding: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--secondary-neon);
    animation: fadeSlideUp 0.3s ease;
}

/* ============================================ */
/* TOAST NOTIFICATION                           */
/* ============================================ */
.voxie-toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.85rem 2rem;
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--secondary-neon);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 100px;
    backdrop-filter: blur(15px);
    z-index: 9999;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    max-width: 90vw;
    text-align: center;
}

.voxie-toast.show {
    bottom: 30px;
}

.voxie-toast.error {
    background: rgba(255, 80, 80, 0.12);
    border-color: rgba(255, 80, 80, 0.3);
    color: #ff5050;
}

/* ============================================ */
/* RESPONSIVE ADDITIONS                         */
/* ============================================ */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar-area {
        flex-direction: column;
    }

    .profile-stats {
        justify-content: center;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-search-bar {
        flex-direction: column;
    }

    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table thead th,
    .admin-table tbody td {
        padding: 0.5rem;
    }

    .nav-user-btn {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .profile-section {
        padding: 1.5rem;
    }

    .profile-stats {
        gap: 1.5rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .modal-content {
        padding: 1.5rem;
    }
}

/* TV / Large Screens */
@media (min-width: 2000px) {
    .container {
        max-width: 1600px;
    }

    body {
        font-size: 1.25rem;
    }
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    max-width: 450px;
    width: 100%;
    text-align: center;
    animation: fadeSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Global Footer */
.global-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    margin-top: auto;
    opacity: 0.5;
    font-size: 0.85rem;
    text-align: center;
    color: var(--text-dim);
    transition: var(--transition);
}

.global-footer:hover {
    opacity: 0.8;
}

.global-footer p {
    margin-bottom: 0.5rem;
}

.global-footer a {
    color: var(--primary-neon);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.global-footer a:hover {
    color: var(--secondary-neon);
}

/* ============================================ */
/* LIQUID GLASSMORPHISM BACKGROUND & BLOBS      */
/* ============================================ */

.liquid-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -999;
    overflow: hidden;
    pointer-events: none;
    background: #020104;
    /* Extra dark base background */
}

/* The actual glass layer that desaturates the neon blobs */
/* PERFORMANCE FIX: Removed backdrop-filter: blur(100px) which destroyed mobile framerates */
.liquid-bg-container::after {
    content: '';
    position: absolute;
    inset: -5vw;
    background: radial-gradient(circle at 50% 50%, rgba(10, 5, 15, 0.5) 0%, rgba(2, 1, 5, 0.98) 100%);
    z-index: 2;
}

.liquid-blob {
    position: absolute;
    filter: blur(75px);
    /* Increased blur here natively which is much cheaper for GPU */
    opacity: 0.4;
    z-index: 1;
    will-change: transform;
    animation: morph-liquid 25s ease-in-out infinite alternate;
}

.blob-1 {
    top: 0%;
    left: 5%;
    width: 45vw;
    height: 45vw;
    background: var(--primary-neon);
    animation-delay: 0s;
}

.blob-2 {
    bottom: 5%;
    right: 5%;
    width: 55vw;
    height: 55vw;
    background: var(--secondary-neon);
    animation-delay: -5s;
}

.blob-3 {
    top: 30%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: #6a00ff;
    /* Deep liquid purple */
    animation-delay: -10s;
}

@keyframes morph-liquid {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    33% {
        transform: translate(5%, 15%) scale(1.1) rotate(45deg);
        border-radius: 60% 40% 30% 70% / 50% 60% 40% 60%;
    }

    66% {
        transform: translate(-10%, -5%) scale(0.9) rotate(90deg);
        border-radius: 30% 70% 50% 50% / 60% 40% 70% 30%;
    }

    100% {
        transform: translate(0, 0) scale(1.05) rotate(180deg);
        border-radius: 50% 50% 40% 60% / 40% 60% 50% 50%;
    }
}

/* ============================================ */
/* MOUSE FOLLOWER (PC ONLY)                     */
/* ============================================ */
.liquid-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    margin-left: -18px;
    margin-top: -18px;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 255, 0.4);
    background: rgba(0, 229, 255, 0.03);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15), inset 0 0 10px rgba(0, 229, 255, 0.1);
    pointer-events: none;
    z-index: 9999998;
    will-change: transform;
    opacity: 0;
    transition: opacity 0.3s;
}

.liquid-cursor-ring.active {
    opacity: 1;
}

.liquid-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    margin-top: -2px;
    border-radius: 50%;
    background: var(--secondary-neon);
    box-shadow: 0 0 8px var(--secondary-neon), 0 0 15px var(--primary-neon);
    pointer-events: none;
    z-index: 9999999;
    will-change: transform;
    opacity: 0;
    transition: opacity 0.3s;
}

.liquid-cursor-dot.active {
    opacity: 1;
}

/* Hide native cursor globally when custom cursor is active */
body.hide-native-cursor,
body.hide-native-cursor * {
    cursor: none !important;
}

@media (pointer: coarse),
(hover: none) {

    .liquid-cursor-ring,
    .liquid-cursor-dot {
        display: none !important;
    }
}