/* ==========================================================================
   AMPLIFY CORE - FUTURISTIC CSS DESIGN SYSTEM
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    /* Color Palette */
    --color-bg-darker: #050507;
    --color-bg-dark: #0a0a0f;
    --color-bg-card: rgba(13, 13, 20, 0.65);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-glow: rgba(13, 245, 158, 0.25);
    
    /* Neon Accents */
    --color-accent-neon: #0df59e;
    --color-accent-emerald: #10b981;
    --color-accent-glow: rgba(13, 245, 158, 0.45);
    
    /* Semantic Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.45);
    --color-error: #ef4444;
    --color-error-glow: rgba(239, 68, 68, 0.4);
    
    /* Layout & Glassmorphism */
    --glass-blur: 24px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-speed: 0.3s;
    --ease-ios: cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Dynamic Animation Variables */
    --core-rotation-speed-outer: 30s;
    --core-rotation-speed-mid: 20s;
    --core-rotation-speed-inner: 12s;
    --core-pulse-speed: 3s;
    --core-glow-intensity: 20px;
}

/* Global Reset & Base Setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-bg-darker);
    color: var(--color-text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Futuristic Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-neon);
    box-shadow: 0 0 8px var(--color-accent-glow);
}

/* Canvas Particle Backdrop */
#ambient-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
}

/* Cosmic Ambient Background Glows */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    mix-blend-mode: screen;
}
.bg-glow-1 {
    top: -20%;
    left: 30%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--color-accent-neon) 0%, transparent 70%);
}
.bg-glow-2 {
    bottom: -20%;
    right: 10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--color-accent-emerald) 0%, transparent 70%);
}

/* Master Layout Wrapper */
.interface-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.interface-wrapper.hidden {
    display: none !important;
}


/* ==========================================================================
   GLASSMORPHIC HEADER
   ========================================================================== */
.glass-header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 1400px;
    height: 80px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 100;
    transition: all 0.4s var(--ease-ios);
}

/* Subtle hover shine for floating header */
.glass-header:hover {
    border-color: rgba(13, 245, 158, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(13, 245, 158, 0.05);
}

/* Brand Section */
.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}
.logo-container {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    z-index: 5;
    animation: logo-core-breathe 4s infinite ease-in-out alternate;
    transition: transform 0.8s var(--ease-ios), filter 0.8s var(--ease-ios);
}
.logo-container:hover .brand-logo {
    transform: scale(1.12) rotate(360deg);
    filter: drop-shadow(0 0 14px rgba(13, 245, 158, 0.95)) drop-shadow(0 0 25px rgba(6, 182, 212, 0.4));
}

@keyframes logo-core-breathe {
    0% {
        transform: scale(0.96);
        filter: drop-shadow(0 0 6px rgba(13, 245, 158, 0.45));
    }
    100% {
        transform: scale(1.04);
        filter: drop-shadow(0 0 12px rgba(13, 245, 158, 0.75)) drop-shadow(0 0 20px rgba(6, 182, 212, 0.3));
    }
}

.logo-aura {
    position: absolute;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(13, 245, 158, 0.55) 0%, rgba(6, 182, 212, 0.35) 45%, rgba(16, 185, 129, 0) 70%);
    filter: blur(10px);
    border-radius: 50%;
    z-index: 1;
    animation: logo-aura-breathe 4s infinite ease-in-out alternate, rotate-cw 16s linear infinite;
    opacity: 0.8;
}
@keyframes logo-aura-breathe {
    0% {
        transform: scale(0.9);
        filter: blur(8px) drop-shadow(0 0 4px rgba(13, 245, 158, 0.4));
        opacity: 0.6;
    }
    50% {
        filter: blur(14px) drop-shadow(0 0 12px rgba(6, 182, 212, 0.55));
        opacity: 0.85;
    }
    100% {
        transform: scale(1.22);
        filter: blur(10px) drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
        opacity: 0.95;
    }
}

.brand-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}
.accent-text {
    color: var(--color-accent-neon);
    text-shadow: 0 0 10px rgba(13, 245, 158, 0.4);
}
.version-tag {
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Nav HUD Section */
.header-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 24px;
    border-radius: 30px;
}
.nav-link {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-speed) var(--ease-ios);
    position: relative;
    padding: 6px 0;
}
.nav-number {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: var(--color-accent-neon);
    opacity: 0.6;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-accent-neon);
    box-shadow: 0 0 8px var(--color-accent-glow);
    transition: width var(--transition-speed) var(--ease-ios);
}
.nav-link:hover {
    color: var(--color-text-primary);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    color: var(--color-text-primary);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Status & Action Control */
.header-status-panel {
    display: flex;
    align-items: center;
    gap: 24px;
}
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 245, 158, 0.05);
    border: 1px solid rgba(13, 245, 158, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
}
.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent-neon);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent-neon), 0 0 20px var(--color-accent-neon);
    animation: status-glow-pulse 1.8s infinite ease-in-out;
}
@keyframes status-glow-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
.status-label {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-accent-neon);
}

/* Buttons */
.glass-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-speed) var(--ease-ios);
}
.glass-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}
.glass-btn.primary-glow {
    border-color: rgba(13, 245, 158, 0.3);
    background: rgba(13, 245, 158, 0.04);
}
.glass-btn.primary-glow:hover {
    background: rgba(13, 245, 158, 0.1);
    border-color: var(--color-accent-neon);
    box-shadow: 0 0 15px rgba(13, 245, 158, 0.2);
}
.btn-arrow {
    transition: transform var(--transition-speed) var(--ease-ios);
}
.glass-btn:hover .btn-arrow {
    transform: translate(2px, -2px);
}

/* ==========================================================================
   MAIN DASHBOARD GRID LAYOUT
   ========================================================================== */
.main-dashboard {
    flex: 1;
    padding: 110px 40px 80px;
    max-width: 1680px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
    align-items: start;
    width: 100%;
}

/* Panel Containers */
.dashboard-panel {
    background: var(--color-bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: border-color 0.5s var(--ease-ios), box-shadow 0.5s var(--ease-ios);
    display: flex;
    flex-direction: column;
}
.dashboard-panel:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Panel Headers */
.panel-header {
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
}
.panel-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}
.panel-icon {
    font-size: 16px;
    color: var(--color-accent-neon);
    text-shadow: 0 0 10px var(--color-accent-glow);
}
.panel-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-text-primary);
    text-transform: uppercase;
}
.system-time, .status-badge {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: var(--color-text-muted);
}
.status-badge {
    background: rgba(13, 245, 158, 0.08);
    border: 1px solid rgba(13, 245, 158, 0.2);
    color: var(--color-accent-neon);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}
.status-badge.stable {
    animation: status-shimmer 3s infinite alternate;
}
@keyframes status-shimmer {
    0% { border-color: rgba(13, 245, 158, 0.1); background: rgba(13, 245, 158, 0.03); }
    100% { border-color: rgba(13, 245, 158, 0.4); background: rgba(13, 245, 158, 0.12); }
}

/* Panel Body */
.panel-body {
    padding: 28px;
    flex: 1;
}

/* ==========================================================================
   LEFT COLUMN: CORE VISUALIZER PANE
   ========================================================================== */
.visualizer-panel {
    min-height: 720px;
}
.core-visual-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
}
.core-visualizer {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG Animating Core Components */
.core-svg {
    filter: drop-shadow(0 0 12px rgba(13, 245, 158, 0.15));
    transition: filter var(--transition-speed) var(--ease-ios);
}

/* Hexagon and Ring Base Rotations */
.rotating-ring {
    transform-origin: 250px 250px;
}
.ring-outer-dashed {
    animation: rotate-cw var(--core-rotation-speed-outer) linear infinite;
}
.ring-mid-dashed {
    animation: rotate-ccw var(--core-rotation-speed-mid) linear infinite;
}
.ring-inner-dashed {
    animation: rotate-cw var(--core-rotation-speed-inner) linear infinite;
}

.outer-hex {
    transform-origin: 250px 250px;
    animation: rotate-ccw 90s linear infinite;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.8));
}

.tech-hex-path {
    transform-origin: 250px 250px;
    animation: rotate-cw 45s linear infinite;
}

/* Keyframe Rotations */
@keyframes rotate-cw {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes rotate-ccw {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

/* Central Core Glowing Orb */
.core-radial-glow {
    animation: core-glow-pulse var(--core-pulse-speed) ease-in-out infinite alternate;
}
.core-center-orb {
    filter: drop-shadow(0 0 var(--core-glow-intensity) var(--color-accent-glow));
    animation: core-scale-pulse var(--core-pulse-speed) ease-in-out infinite alternate;
    transition: filter var(--transition-speed) var(--ease-ios);
}
@keyframes core-glow-pulse {
    0% { opacity: 0.45; transform: scale(0.96); transform-origin: 250px 250px; }
    100% { opacity: 0.9; transform: scale(1.04); transform-origin: 250px 250px; }
}
@keyframes core-scale-pulse {
    0% { transform: scale(0.97); transform-origin: 250px 250px; }
    100% { transform: scale(1.03); transform-origin: 250px 250px; }
}

/* Core Overlay Stats */
.core-hub-data {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}
.core-hud-stat {
    background: rgba(5, 5, 8, 0.65);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.core-hud-stat.right {
    align-items: flex-end;
}
.hud-label {
    font-family: 'Outfit', sans-serif;
    font-size: 8px;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}
.hud-val {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-accent-neon);
    text-shadow: 0 0 6px var(--color-accent-glow);
}

/* Core Control Panel Footer */
.core-controls {
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.control-label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.control-title {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-secondary);
    letter-spacing: 1px;
}
.control-value {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent-neon);
    text-shadow: 0 0 8px var(--color-accent-glow);
}

/* High Tech Custom Slider */
.slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.slider-min, .slider-max {
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}
.futuristic-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    outline: none;
    position: relative;
}
.futuristic-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    border-radius: 2px;
}
.futuristic-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-accent-neon);
    border: 2px solid var(--color-bg-darker);
    cursor: pointer;
    box-shadow: 0 0 10px var(--color-accent-neon);
    margin-top: -5px;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.futuristic-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    box-shadow: 0 0 15px var(--color-accent-neon), 0 0 25px var(--color-accent-neon);
}

/* Custom Checkbox Cards Grid */
.toggles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.toggle-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    padding: 14px 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-speed) var(--ease-ios);
}
.toggle-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}
.toggle-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-muted);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: none;
    transition: all var(--transition-speed) var(--ease-ios);
}
.toggle-card.active {
    border-color: var(--color-border-glow);
    background: rgba(13, 245, 158, 0.02);
}
.toggle-card.active .toggle-indicator {
    background: var(--color-accent-neon);
    border-color: transparent;
    box-shadow: 0 0 8px var(--color-accent-neon);
}
.toggle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.toggle-name {
    font-family: 'Outfit', sans-serif;
    font-size: 8px;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}
.toggle-card.active .toggle-name {
    color: var(--color-text-secondary);
}
.toggle-status {
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    font-weight: 500;
    color: var(--color-text-muted);
}
.toggle-card.active .toggle-status {
    color: var(--color-accent-neon);
}

/* ==========================================================================
   RIGHT COLUMN: TELEMETRY & LIVE CONSOLE
   ========================================================================== */
.diagnostics-panel {
    display: flex;
    flex-direction: column;
    min-height: 720px;
}

.panel-section {
    border-bottom: 1px solid var(--color-border);
}
.panel-section:last-child {
    border-bottom: none;
}

/* Telemetry Section */
.telemetry-section {
    padding-bottom: 24px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px 28px;
}

/* Metric Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: all var(--transition-speed) var(--ease-ios);
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}
.span-2 {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

/* Circular Metric */
.metric-circle-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}
.progress-circle {
    width: 100px;
    height: 100px;
    transform: rotate(-90deg);
}
.progress-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 8;
}
.progress-circle-bar {
    fill: none;
    stroke: var(--color-accent-neon);
    stroke-width: 8;
    stroke-linecap: round;
    filter: drop-shadow(0 0 4px var(--color-accent-glow));
    transition: stroke-dashoffset 0.8s var(--ease-ios);
}
.circle-val-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}
.circle-number {
    font-family: 'Fira Code', monospace;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.circle-unit {
    font-family: 'Outfit', sans-serif;
    font-size: 7px;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}

.metric-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.metric-details h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.metric-details .description {
    font-size: 11px;
    color: var(--color-text-secondary);
}
.mini-metrics {
    display: flex;
    gap: 16px;
    margin-top: 6px;
}
.mini-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.border-left {
    border-left: 1px solid var(--color-border);
    padding-left: 16px;
}
.mini-lbl {
    font-family: 'Outfit', sans-serif;
    font-size: 8px;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}
.mini-val {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: var(--color-accent-neon);
}

/* Linear Stat Cards */
.card-header-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-lbl {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--color-text-secondary);
    letter-spacing: 1px;
}
.card-stat-val {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    font-weight: 600;
}
.text-green {
    color: var(--color-accent-neon);
    text-shadow: 0 0 6px var(--color-accent-glow);
}
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s var(--ease-ios);
}
.green-glow {
    background: var(--color-accent-neon);
    box-shadow: 0 0 8px var(--color-accent-neon);
}
.card-footer-mini {
    font-family: 'Outfit', sans-serif;
    font-size: 8px;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}

/* Real-time Waveform Sparkline Card */
.sparkline-card {
    margin: 0 28px;
    padding: 20px 24px;
}
.sparkline-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.sparkline-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.sparkline-desc {
    font-size: 10px;
    color: var(--color-text-muted);
}
.sparkline-readout {
    font-family: 'Fira Code', monospace;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-accent-neon);
    text-shadow: 0 0 8px var(--color-accent-glow);
}
.sparkline-readout .unit {
    font-size: 11px;
    color: var(--color-text-muted);
}
.sparkline-svg-wrapper {
    width: 100%;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(5,5,8,0.3);
    border: 1px solid rgba(255,255,255,0.03);
}
.sparkline-svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   CONSOLE SECTION
   ========================================================================== */
.console-section {
    flex: 1;
    padding-bottom: 28px;
    display: flex;
    flex-direction: column;
}
.console-section .panel-header {
    border-bottom: none;
    padding: 24px 28px 12px 28px;
}
.text-btn {
    background: none;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--transition-speed);
}
.text-btn:hover {
    color: var(--color-accent-neon);
}

.console-wrapper {
    margin: 0 28px;
    background: rgba(5, 5, 8, 0.7);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    max-height: 250px;
}
.console-output {
    flex: 1;
    overflow-y: auto;
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 8px;
    margin-bottom: 12px;
}

/* Console Lines Colors */
.console-line {
    word-break: break-all;
}
.system-msg {
    color: var(--color-text-secondary);
}
.success-msg {
    color: var(--color-accent-neon);
    text-shadow: 0 0 6px rgba(13, 245, 158, 0.15);
}
.error-msg {
    color: var(--color-error);
    text-shadow: 0 0 6px var(--color-error-glow);
}
.text-muted {
    color: var(--color-text-muted);
}
.user-msg {
    color: #38bdf8;
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.2);
}

/* Input line */
.console-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
}
.console-prompt {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: var(--color-accent-neon);
    user-select: none;
}
#console-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--color-text-primary);
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    padding: 2px 0;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition-speed) var(--ease-ios);
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-link:hover {
    color: var(--color-accent-neon);
    background: rgba(13, 245, 158, 0.05);
    border-color: rgba(13, 245, 158, 0.2);
    text-shadow: 0 0 8px var(--color-accent-glow);
    box-shadow: 0 0 10px rgba(13, 245, 158, 0.05);
}

.discord-icon {
    transition: transform var(--transition-speed);
}

.footer-link:hover .discord-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* ==========================================================================
   GLASSMORPHIC FOOTER
   ========================================================================== */
.glass-footer {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 1400px;
    height: 48px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--color-border);
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 100;
    transition: all 0.4s var(--ease-ios);
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.glass-footer:hover {
    border-color: rgba(13, 245, 158, 0.15);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.active-status {
    color: var(--color-accent-neon);
    text-shadow: 0 0 6px var(--color-accent-glow);
}

.footer-divider {
    color: rgba(255, 255, 255, 0.15);
}

.footer-copyright {
    color: var(--color-text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN (APPLE BREAKPOINTS)
   ========================================================================== */
@media (max-width: 1200px) {
    .glass-header {
        width: calc(100% - 48px);
        padding: 0 24px;
    }
    .glass-footer {
        width: calc(100% - 48px);
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .glass-header {
        top: 16px;
        width: calc(100% - 32px);
        height: 72px;
        padding: 0 20px;
    }
    .header-brand {
        gap: 14px;
    }
    .logo-container {
        width: 52px;
        height: 52px;
    }
    .brand-logo {
        width: 38px;
        height: 38px;
    }
    .logo-aura {
        width: 44px;
        height: 44px;
        filter: blur(8px);
    }
    .brand-text h1 {
        font-size: 19px;
        letter-spacing: 2.5px;
    }
    .glass-footer {
        bottom: 16px;
        width: calc(100% - 32px);
        height: auto;
        padding: 12px 16px;
        flex-direction: column;
        gap: 6px;
        border-radius: var(--border-radius-md);
        text-align: center;
    }
    .footer-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    .footer-divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .glass-header {
        top: 12px;
        width: calc(100% - 24px);
        height: 60px;
        padding: 0 12px;
    }
    .header-brand {
        gap: 10px;
    }
    .logo-container {
        width: 44px;
        height: 44px;
    }
    .brand-logo {
        width: 32px;
        height: 32px;
    }
    .logo-aura {
        width: 36px;
        height: 36px;
        filter: blur(6px);
    }
    .brand-text h1 {
        font-size: 16px;
        letter-spacing: 1.5px;
    }
    .glass-footer {
        bottom: 10px;
        width: calc(100% - 24px);
        padding: 10px 12px;
        font-size: 9px;
        letter-spacing: 1px;
    }
    .footer-info {
        gap: 4px;
    }
}

/* ==========================================================================
   DISCORD TOKEN CARD
   ========================================================================== */
.token-card-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.token-card {
    width: 100%;
    max-width: 400px;
    background: var(--color-bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 32px 30px 28px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.4s var(--ease-ios), box-shadow 0.4s var(--ease-ios);
}

.token-card:hover {
    border-color: rgba(13, 245, 158, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(13, 245, 158, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.token-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(13, 245, 158, 0.1);
    border: 2px solid rgba(13, 245, 158, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--color-accent-neon);
    box-shadow: 0 0 20px rgba(13, 245, 158, 0.15);
    transition: all 0.3s var(--ease-ios);
}

.token-card-icon svg {
    width: 22px;
    height: 17px;
}

.token-card:hover .token-card-icon {
    box-shadow: 0 0 30px rgba(13, 245, 158, 0.25);
    border-color: rgba(13, 245, 158, 0.5);
}

.token-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.token-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 22px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.token-input-group {
    text-align: left;
    margin-bottom: 16px;
}

.token-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.token-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    color: var(--color-text-primary);
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    outline: none;
    transition: all 0.3s var(--ease-ios);
    box-sizing: border-box;
}

.token-input::placeholder {
    color: var(--color-text-muted);
    font-family: 'Fira Code', monospace;
}

.token-input:focus {
    border-color: rgba(13, 245, 158, 0.4);
    box-shadow: 0 0 0 3px rgba(13, 245, 158, 0.08), 0 0 15px rgba(13, 245, 158, 0.1);
    background: rgba(0, 0, 0, 0.45);
}

.link-discord-btn {
    width: 100%;
    padding: 15px 24px;
    background: var(--color-accent-neon);
    border: none;
    border-radius: var(--border-radius-md);
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s var(--ease-ios);
    box-shadow: 0 4px 20px rgba(13, 245, 158, 0.3);
}

.link-discord-btn:hover {
    background: #0bdf8e;
    box-shadow: 0 6px 30px rgba(13, 245, 158, 0.45);
    transform: translateY(-1px);
}

.link-discord-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(13, 245, 158, 0.3);
}

.link-discord-btn svg {
    stroke: #000;
}

.token-status {
    margin-top: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    min-height: 20px;
    transition: all 0.3s var(--ease-ios);
}

.token-status.success {
    color: var(--color-accent-neon);
    text-shadow: 0 0 8px var(--color-accent-glow);
}

.token-status.error {
    color: var(--color-error);
    text-shadow: 0 0 8px var(--color-error-glow);
}

.token-status.loading {
    color: var(--color-text-secondary);
}

@media (max-width: 768px) {
    .main-dashboard {
        padding: 94px 24px 72px;
    }
    .token-card-container {
        padding: 0;
    }
    .token-card {
        padding: 32px 24px 28px;
    }
    .token-card-title {
        font-size: 19px;
    }
    .token-card-desc {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .main-dashboard {
        padding: 78px 16px 66px;
    }
    .token-card-container {
        padding: 0;
    }
    .token-card {
        padding: 28px 18px 24px;
    }
    .token-card-title {
        font-size: 17px;
    }
    .token-input {
        padding: 12px 14px;
        font-size: 12px;
    }
    .link-discord-btn {
        padding: 13px 20px;
        font-size: 14px;
    }
}

/* ==========================================================================
   AUTHENTICATION & LOGIN LAYOUT
   ========================================================================== */
.display-none {
    display: none !important;
}

.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-darker);
    transition: opacity 0.8s var(--ease-ios), transform 0.8s var(--ease-ios);
    overflow-y: auto;
    box-sizing: border-box;
}

.login-screen.hidden {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.login-card {
    width: 90%;
    max-width: 440px;
    background: var(--color-bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 48px 36px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 10;
}

.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 245, 158, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.login-header-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

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

.login-logo-aura {
    position: absolute;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(13, 245, 158, 0.45) 0%, rgba(6, 182, 212, 0.2) 50%, rgba(16, 185, 129, 0) 70%);
    filter: blur(14px);
    border-radius: 50%;
    z-index: 1;
    animation: logo-aura-breathe 4s infinite ease-in-out alternate, rotate-cw 16s linear infinite;
}

.login-brand-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    z-index: 5;
    animation: logo-core-breathe 4s infinite ease-in-out alternate;
}

.login-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-text-primary);
    margin-top: 8px;
}

.login-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 320px;
}

/* Discord Neon Button */
.discord-login-btn {
    width: 100%;
    background: #5865F2;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 16px 24px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s var(--ease-ios);
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.discord-login-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5), 0 0 15px var(--color-accent-glow);
    border-color: var(--color-accent-neon);
}

.discord-login-btn:active {
    transform: translateY(0);
}

.discord-login-btn svg {
    transition: transform 0.3s ease;
}

.discord-login-btn:hover svg {
    transform: rotate(-5deg) scale(1.1);
}

/* ==========================================================================
   DISCORD OAUTH MOCK MODAL
   ========================================================================== */
.discord-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-ios);
}

.discord-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.discord-modal {
    width: 90%;
    max-width: 485px;
    background: #313338;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: #dbdee1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 1px rgba(0,0,0,0.4);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s var(--ease-ios);
    display: flex;
    flex-direction: column;
}

.discord-modal-overlay.active .discord-modal {
    transform: scale(1) translateY(0);
}

/* Modal Branding Header */
.discord-modal-header {
    background: #2b2d31;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.discord-logos-sync {
    display: flex;
    align-items: center;
    gap: 24px;
}

.discord-sync-icon-container {
    width: 60px;
    height: 60px;
    background: #5865F2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.35);
}

.discord-sync-logo-amplify {
    width: 60px;
    height: 60px;
    background: #050507;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 15px rgba(13, 245, 158, 0.2);
}

.discord-sync-logo-amplify img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.discord-sync-connector {
    display: flex;
    align-items: center;
    gap: 6px;
}

.discord-sync-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #80848e;
    animation: connector-pulse 1.5s infinite ease-in-out;
}

.discord-sync-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.discord-sync-dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes connector-pulse {
    0%, 100% { background: #80848e; transform: scale(1); }
    50% { background: var(--color-accent-neon); transform: scale(1.3); }
}

/* Modal Body */
.discord-modal-body {
    padding: 24px 40px;
    flex: 1;
    overflow-y: auto;
}

.discord-modal-body h3 {
    color: white;
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px;
}

.discord-app-tag {
    background: rgba(88, 101, 242, 0.15);
    color: #5865F2;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 6px;
    vertical-align: middle;
}

.discord-modal-body p {
    font-size: 13.5px;
    line-height: 1.5;
    color: #b5bac1;
    margin-bottom: 24px;
}

.discord-user-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2b2d31;
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.discord-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.discord-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.discord-user-names {
    display: flex;
    flex-direction: column;
}

.discord-user-displayname {
    color: white;
    font-size: 13.5px;
    font-weight: 600;
}

.discord-user-tag {
    color: #949ba4;
    font-size: 11.5px;
}

.discord-switch-link {
    color: #00a8fc;
    font-size: 11.5px;
    text-decoration: none;
    font-weight: 500;
}

.discord-switch-link:hover {
    text-decoration: underline;
}

.discord-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #949ba4;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.discord-permission-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid rgba(78, 80, 88, 0.45);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.discord-permission-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13.5px;
    line-height: 1.4;
    color: #dbdee1;
}

.discord-permission-icon {
    color: #23a55a;
    font-size: 15px;
    margin-top: 1px;
}

.discord-permission-item.disabled {
    color: #949ba4;
}

.discord-permission-item.disabled .discord-permission-icon {
    color: #80848e;
}

.discord-disclaimer {
    font-size: 11.5px;
    line-height: 1.4;
    color: #949ba4;
}

/* Modal Footer */
.discord-modal-footer {
    background: #2b2d31;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.discord-footer-left {
    font-size: 11.5px;
    color: #949ba4;
}

.discord-footer-left a {
    color: #00a8fc;
    text-decoration: none;
}

.discord-footer-left a:hover {
    text-decoration: underline;
}

.discord-btn-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.discord-btn-cancel {
    background: none;
    border: none;
    color: white;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 16px;
}

.discord-btn-cancel:hover {
    text-decoration: underline;
}

.discord-btn-authorize {
    background: #5865F2;
    color: white;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.discord-btn-authorize:hover {
    background: #4752C4;
}

/* Loading/Syncing Overlay Inside Discord Modal */
.discord-syncing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #313338;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.discord-syncing-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.discord-loader-circle {
    width: 64px;
    height: 64px;
    border: 3px solid rgba(13, 245, 158, 0.1);
    border-top: 3px solid var(--color-accent-neon);
    border-radius: 50%;
    animation: rotate-cw 1s linear infinite;
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(13, 245, 158, 0.1);
}

.discord-sync-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.discord-sync-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    width: 240px;
    font-family: 'Fira Code', monospace;
    font-size: 11px;
}

.discord-sync-step {
    color: #80848e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.discord-sync-step.active {
    color: var(--color-accent-neon);
}

.discord-sync-step.done {
    color: #23a55a;
}

.discord-sync-step.done::before {
    content: '✓ ';
    font-weight: bold;
}

.discord-sync-step.active::before {
    content: '▶ ';
    font-size: 9px;
    animation: blink-indicator 0.8s infinite alternate;
}

.discord-sync-step.pending::before {
    content: '• ';
    padding-left: 4px;
}

@keyframes blink-indicator {
    0% { opacity: 0.2; }
    100% { opacity: 1; }
}


/* ==========================================================================
   USER PROFILE HEADER BADGE
   ========================================================================== */
.profile-container {
    position: relative;
    z-index: 150;
}
.profile-container.hidden {
    display: none !important;
}

.profile-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(5, 5, 7, 0.4);
    border: 1px solid var(--color-border);
    padding: 4px 16px 4px 4px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s var(--ease-ios);
    user-select: none;
}

.profile-pill:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--color-border-glow);
    box-shadow: 0 0 15px rgba(13, 245, 158, 0.08);
}

.profile-pill.active-dropdown {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-accent-neon);
    box-shadow: 0 0 20px rgba(13, 245, 158, 0.15);
}

.profile-avatar-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-accent-neon);
    box-shadow: 0 0 8px var(--color-accent-glow);
    animation: avatar-glow-breathe 3s infinite ease-in-out alternate;
}

@keyframes avatar-glow-breathe {
    0% { transform: scale(0.96); opacity: 0.7; box-shadow: 0 0 4px var(--color-accent-glow); }
    100% { transform: scale(1.04); opacity: 1; box-shadow: 0 0 12px var(--color-accent-glow); }
}

.profile-avatar-img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
}

.profile-username {
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.profile-pill:hover .profile-username,
.profile-pill.active-dropdown .profile-username {
    color: var(--color-accent-neon);
}

.profile-chevron {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: var(--color-text-muted);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s var(--ease-ios), stroke 0.3s;
}

.profile-pill:hover .profile-chevron,
.profile-pill.active-dropdown .profile-chevron {
    stroke: var(--color-accent-neon);
}

.profile-pill.active-dropdown .profile-chevron {
    transform: rotate(180deg);
}

/* Profile Dropdown Menu */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    background: var(--color-bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s var(--ease-ios);
    z-index: 200;
}

.profile-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.profile-dropdown.token-dropdown {
    right: auto;
    left: 0;
}

.profile-dropdown-header {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-dropdown-title {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.profile-dropdown-user {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: var(--color-accent-neon);
    font-weight: 500;
}

.profile-dropdown-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin-top: 2px;
}

.profile-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 6px 0;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--border-radius-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
    width: 100%;
}

.profile-dropdown-item:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.profile-dropdown-item svg {
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.profile-dropdown-item:hover svg {
    color: var(--color-accent-neon);
}

.profile-dropdown-item.disconnect-btn {
    color: var(--color-error);
}

.profile-dropdown-item.disconnect-btn:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #ff6b6b;
}

.profile-dropdown-item.disconnect-btn:hover svg {
    color: #ff6b6b;
}

/* Main Dashboard Fade States */
.interface-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: opacity 0.8s var(--ease-ios), transform 0.8s var(--ease-ios);
}

.interface-main-content.hidden {
    opacity: 0;
    transform: scale(0.98);
    pointer-events: none;
}

/* ==========================================================================
   TOKEN PROFILE PILL & BLANK PAGE
   ========================================================================== */
.token-badge {
    font-family: 'Outfit', sans-serif;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.8px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: #00f0ff;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-left: 4px;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.1);
}

.token-glow {
    border-color: #00f0ff !important;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.4) !important;
    animation: token-glow-breathe 3s infinite ease-in-out alternate !important;
}

@keyframes token-glow-breathe {
    0% { transform: scale(0.96); opacity: 0.7; box-shadow: 0 0 4px rgba(0, 240, 255, 0.3); }
    100% { transform: scale(1.04); opacity: 1; box-shadow: 0 0 12px rgba(0, 240, 255, 0.6); }
}

.profile-pill.token-pill:hover {
    background: rgba(0, 240, 255, 0.02) !important;
    border-color: rgba(0, 240, 255, 0.4) !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15) !important;
}

.blank-page-container {
    width: 100%;
    max-width: 1400px;
    height: calc(100vh - 190px);
    display: flex;
    gap: 32px;
    box-sizing: border-box;
}

.blank-page-container.hidden {
    display: none !important;
}

.token-card-container.hidden {
    display: none !important;
}

.servers-sidebar {
    width: 320px;
    background: var(--color-bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s var(--ease-ios);
}

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

.servers-sidebar-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-primary);
}

.servers-count {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    background: rgba(13, 245, 158, 0.08);
    border: 1px solid rgba(13, 245, 158, 0.2);
    color: var(--color-accent-neon);
    padding: 2px 8px;
    border-radius: 12px;
}

.servers-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.servers-list::-webkit-scrollbar {
    width: 4px;
}
.servers-list::-webkit-scrollbar-track {
    background: transparent;
}
.servers-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}
.servers-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-neon);
}

.server-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.3s var(--ease-ios);
}

.server-item:hover {
    background: rgba(13, 245, 158, 0.03);
    border-color: rgba(13, 245, 158, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.server-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--color-text-secondary);
    transition: all 0.3s;
    flex-shrink: 0;
}

.server-item:hover .server-icon {
    border-color: var(--color-accent-neon);
    color: var(--color-accent-neon);
    box-shadow: 0 0 8px var(--color-accent-glow);
}

.server-name {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.server-item:hover .server-name {
    color: var(--color-text-primary);
}

.main-blank-content {
    flex: 1;
    background: var(--color-bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.no-servers {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .blank-page-container {
        height: calc(100vh - 160px);
        gap: 20px;
    }
    .servers-sidebar {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .blank-page-container {
        height: calc(100vh - 140px);
        flex-direction: column;
        gap: 16px;
    }
    .servers-sidebar {
        width: 100%;
        height: 100%;
    }
    .main-blank-content {
        display: none;
    }
}

/* ==========================================================================
   CUSTOM COMPONENT ADDITIONS
   ========================================================================== */

/* Selected server highlighting */
.server-item.active {
    background: rgba(13, 245, 158, 0.06) !important;
    border-color: rgba(13, 245, 158, 0.3) !important;
    box-shadow: 0 0 15px rgba(13, 245, 158, 0.08) !important;
}

.server-item.active .server-icon {
    border-color: var(--color-accent-neon) !important;
    color: var(--color-accent-neon) !important;
    box-shadow: 0 0 8px var(--color-accent-glow) !important;
}

.server-item.active .server-name {
    color: var(--color-text-primary) !important;
}

/* No server selected placeholder screen */
.no-server-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
    gap: 16px;
    color: var(--color-text-secondary);
}

.no-server-selected-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.01);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 32px;
    animation: pulse-dashed 3s infinite alternate;
}

.no-server-selected-icon svg {
    stroke: var(--color-text-muted);
    width: 32px;
    height: 32px;
}

@keyframes pulse-dashed {
    0% { border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
    100% { border-color: rgba(13, 245, 158, 0.25); box-shadow: 0 0 20px rgba(13, 245, 158, 0.06); }
}

.no-server-selected h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.no-server-selected p {
    font-size: 13px;
    max-width: 320px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

/* Minimal Connection Layout */
.minimal-connect-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100%;
    width: 100%;
    padding: 32px;
    box-sizing: border-box;
}

.minimal-connect-card {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

/* Server Header Card — prominent rounded dark card */
.minimal-server-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: rgba(30, 30, 40, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: border-color 0.3s var(--ease-ios), box-shadow 0.3s var(--ease-ios);
}

.minimal-server-header:hover {
    border-color: rgba(13, 245, 158, 0.18);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4), 0 0 12px rgba(13, 245, 158, 0.04);
}

.minimal-server-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

.minimal-server-name {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: 0.3px;
}

/* Input Group */
.minimal-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    width: 100%;
}

.minimal-label {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.label-hash {
    color: var(--color-accent-neon);
    font-weight: 800;
    font-size: 15px;
    text-shadow: 0 0 6px var(--color-accent-glow);
}

.minimal-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(20, 20, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--color-text-primary);
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    outline: none;
    transition: all 0.3s var(--ease-ios);
    box-sizing: border-box;
}

.minimal-input:focus {
    border-color: rgba(13, 245, 158, 0.35);
    box-shadow: 0 0 12px rgba(13, 245, 158, 0.08);
    background: rgba(16, 16, 24, 0.9);
}

.minimal-input::placeholder {
    color: var(--color-text-muted);
}

/* Connect Button — bold solid green */
.connect-bridge-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #10b981 0%, #0df59e 100%);
    border: none;
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--ease-ios);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(13, 245, 158, 0.25);
}

.connect-bridge-btn svg {
    stroke: #000;
}

.connect-bridge-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0bdf8e 0%, #0df59e 60%);
    box-shadow: 0 6px 30px rgba(13, 245, 158, 0.4);
    transform: translateY(-1px);
}

.connect-bridge-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(13, 245, 158, 0.3);
}

.connect-bridge-btn.active {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.connect-bridge-btn.active svg {
    stroke: #000;
}

.connect-bridge-btn.active:hover {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    box-shadow: 0 6px 30px rgba(239, 68, 68, 0.45);
}

.connect-bridge-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Status Badge (inline) */
.minimal-status-badge {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    text-align: center;
    display: block;
}

.minimal-status-badge.connected {
    color: var(--color-accent-neon);
    text-shadow: 0 0 8px var(--color-accent-glow);
}

.minimal-status-badge.connecting {
    color: #eab308;
    text-shadow: 0 0 8px rgba(234, 179, 8, 0.3);
    animation: status-pulse-connecting 1.2s infinite alternate;
}

@keyframes status-pulse-connecting {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.minimal-log-wrapper {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 14px;
    height: 130px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.minimal-logs {
    flex: 1;
    overflow-y: auto;
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    line-height: 1.5;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.minimal-logs::-webkit-scrollbar {
    width: 4px;
}
.minimal-logs::-webkit-scrollbar-track {
    background: transparent;
}
.minimal-logs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}
.minimal-logs::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-neon);
}

/* ==========================================================================
   VOICE CONTROLS — Mute / Deafen buttons
   ========================================================================== */
.voice-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    animation: fadeSlideIn 0.3s var(--ease-ios);
}

.voice-controls.hidden {
    display: none;
}

.voice-ctrl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--color-text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s var(--ease-ios);
    flex: 1;
}

.voice-ctrl-btn svg {
    stroke: var(--color-text-secondary);
    transition: stroke 0.25s var(--ease-ios);
}

.voice-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

/* Active = muted/deafened state (red) */
.voice-ctrl-btn.active {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.voice-ctrl-btn.active svg {
    stroke: #ef4444;
}

.voice-ctrl-btn.active:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.45);
}

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

/* ==========================================================================
   CONSOLE LOG LINES
   ========================================================================== */
.console-line {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    line-height: 1.6;
    color: var(--color-text-muted);
    word-break: break-all;
}

.console-line .text-muted {
    color: rgba(255, 255, 255, 0.25);
}

.system-msg {
    color: var(--color-text-muted);
}

.success-msg {
    color: var(--color-accent-neon);
}

.error-msg {
    color: var(--color-error);
}

.text-muted-msg {
    color: rgba(255, 255, 255, 0.2);
}


/* ============================================================
   TERMS & CONDITIONS MODAL
   ============================================================ */
.tos-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.2s ease;
}
.tos-modal-overlay.hidden { display: none; }

.tos-modal-card {
    background: linear-gradient(160deg, rgba(12, 18, 25, 0.98) 0%, rgba(6, 10, 14, 0.99) 100%);
    border: 1px solid rgba(13, 245, 158, 0.18);
    border-radius: 20px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset, 0 0 60px rgba(13, 245, 158, 0.05);
    width: 100%;
    max-width: 600px;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.tos-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.75rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    background: rgba(13, 245, 158, 0.03);
}
.tos-modal-header h3 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.tos-modal-header h3::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0df59e;
    box-shadow: 0 0 8px #0df59e;
    flex-shrink: 0;
}
.tos-modal-close {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.tos-modal-close:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.18);
    color: #fff;
}

/* Body */
.tos-modal-body {
    padding: 1.5rem 1.75rem;
    overflow-y: auto;
    flex: 1;
    color: rgba(255,255,255,0.65);
    font-size: 0.84rem;
    line-height: 1.75;
    scrollbar-width: thin;
    scrollbar-color: rgba(13,245,158,0.2) transparent;
}
.tos-modal-body::-webkit-scrollbar { width: 4px; }
.tos-modal-body::-webkit-scrollbar-thumb { background: rgba(13,245,158,0.2); border-radius: 2px; }

.tos-modal-body h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(13,245,158,0.7);
    margin: 1.5rem 0 0.45rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(13,245,158,0.08);
}
.tos-modal-body h4:first-child { margin-top: 0; }
.tos-modal-body p { margin: 0 0 0.5rem; color: rgba(255,255,255,0.6); }
.tos-modal-body a { color: rgba(13,245,158,0.75); text-decoration: none; border-bottom: 1px solid rgba(13,245,158,0.3); transition: color 0.15s, border-color 0.15s; }
.tos-modal-body a:hover { color: #0df59e; border-color: #0df59e; }
.tos-updated {
    display: inline-block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
    padding: 0.2rem 0.6rem;
    margin-bottom: 1.2rem !important;
    letter-spacing: 0.04em;
}

/* Footer */
.tos-modal-footer {
    padding: 1rem 1.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.2);
    gap: 1rem;
}
.tos-footer-note {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.25);
}
.tos-accept-btn {
    background: linear-gradient(135deg, rgba(13,245,158,0.18), rgba(13,245,158,0.1));
    border: 1px solid rgba(13,245,158,0.35);
    color: #0df59e;
    padding: 0.55rem 1.6rem;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 16px rgba(13,245,158,0.08);
    white-space: nowrap;
}
.tos-accept-btn:hover {
    background: linear-gradient(135deg, rgba(13,245,158,0.28), rgba(13,245,158,0.16));
    border-color: rgba(13,245,158,0.7);
    box-shadow: 0 0 24px rgba(13,245,158,0.18);
    transform: translateY(-1px);
}

/* ── Custom checkbox on login card ── */
.tos-accept-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    cursor: pointer;
    user-select: none;
}

/* Hide the native checkbox */
.tos-accept-row input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom checkbox box */
.tos-accept-row .tos-checkbox-box {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.04);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.tos-accept-row input[type="checkbox"]:checked + .tos-checkbox-box {
    background: rgba(13,245,158,0.2);
    border-color: #0df59e;
    box-shadow: 0 0 8px rgba(13,245,158,0.3);
}
.tos-accept-row .tos-checkbox-box::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border-right: 2px solid #0df59e;
    border-bottom: 2px solid #0df59e;
    transform: rotate(45deg) translate(-1px, -1px);
    opacity: 0;
    transition: opacity 0.1s;
}
.tos-accept-row input[type="checkbox"]:checked + .tos-checkbox-box::after {
    opacity: 1;
}
.tos-accept-row span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
}

.tos-inline-link {
    background: none;
    border: none;
    color: rgba(13,245,158,0.8);
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    border-bottom: 1px solid rgba(13,245,158,0.3);
    transition: color 0.15s, border-color 0.15s;
}
.tos-inline-link:hover { color: #0df59e; border-color: #0df59e; }

/* Disabled login button */
.discord-login-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}
.discord-login-btn:not(:disabled) {
    pointer-events: auto;
    cursor: pointer;
}

/* Footer T&C link */
.tos-footer-btn {
    background: none;
    border: none;
    font-size: inherit;
    font-family: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    padding: 0;
}

/* ============================================================
   VC MEMBERS PANEL — compact horizontal strip
   ============================================================ */
.vc-members-panel {
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(13, 245, 158, 0.1);
    border-radius: 10px;
    padding: 0.45rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.vc-members-panel.hidden { display: none; }

/* Label on the left */
.vc-members-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}
.vc-members-header svg { opacity: 0.4; flex-shrink: 0; }
.vc-members-header span { color: rgba(13, 245, 158, 0.65); }

/* Horizontal avatar list */
.vc-members-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

/* Each member = just their avatar + tooltip name */
.vc-member-row {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

/* Tooltip on hover */
.vc-member-row::after {
    content: attr(data-name);
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 12, 18, 0.95);
    border: 1px solid rgba(13, 245, 158, 0.2);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 50;
}
.vc-member-row:hover::after { opacity: 1; }

/* Avatar */
.vc-member-avatar-wrap {
    position: relative;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}
.vc-member-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Speaking ring */
.vc-speaking-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    pointer-events: none;
    transition: border-color 0.12s, box-shadow 0.12s;
}
.vc-speaking-ring.speaking {
    border-color: #23a55a;
    box-shadow: 0 0 0 2px rgba(35, 165, 90, 0.3);
    animation: speaking-pulse 1.2s ease-in-out infinite;
}
@keyframes speaking-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(35, 165, 90, 0.25); }
    50%       { box-shadow: 0 0 0 4px rgba(35, 165, 90, 0.12); }
}

/* Name label hidden — shown via tooltip */
.vc-member-name { display: none; }

/* ============================================================
   AMPLIFIER CONTROLS PANEL
   ============================================================ */
.amp-controls {
    background: rgba(13, 245, 158, 0.03);
    border: 1px solid rgba(13, 245, 158, 0.12);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.amp-controls.hidden { display: none; }

.amp-controls-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(13, 245, 158, 0.7);
    margin-bottom: 0.1rem;
}
.amp-controls-header svg { opacity: 0.7; flex-shrink: 0; }

/* Each row: label+value on top, slider below */
.amp-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.amp-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.04em;
    line-height: 1;
}

.amp-val {
    font-family: 'Fira Code', monospace;
    color: rgba(13, 245, 158, 0.85);
    font-size: 0.72rem;
    min-width: 48px;
    text-align: right;
}

/* Slider wrapper to contain the thumb overflow */
.amp-slider-wrap {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
}

.amp-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
    display: block;
    margin: 0;
    padding: 0;
}
.amp-slider::-webkit-slider-container { /* for overflow */ }
.amp-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
}
.amp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0df59e;
    border: 2px solid #050507;
    box-shadow: 0 0 8px rgba(13, 245, 158, 0.6);
    cursor: pointer;
    margin-top: -6px; /* centers 16px thumb on 4px track */
    transition: transform 0.1s, box-shadow 0.1s;
}
.amp-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    box-shadow: 0 0 14px rgba(13, 245, 158, 0.9);
}
.amp-slider::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
}
.amp-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0df59e;
    border: 2px solid #050507;
    box-shadow: 0 0 8px rgba(13, 245, 158, 0.6);
    cursor: pointer;
}

/* ============================================================
   SOUNDBOARD PANEL
   ============================================================ */
.soundboard-panel {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
}

.soundboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.soundboard-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}
.soundboard-title svg { opacity: 0.5; }

.soundboard-upload-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(13, 245, 158, 0.75);
    cursor: pointer;
    padding: 0.28rem 0.65rem;
    border-radius: 6px;
    border: 1px solid rgba(13, 245, 158, 0.25);
    background: rgba(13, 245, 158, 0.06);
    transition: all 0.15s;
    user-select: none;
}
.soundboard-upload-btn:hover {
    background: rgba(13, 245, 158, 0.14);
    border-color: rgba(13, 245, 158, 0.5);
    color: #0df59e;
}

.soundboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.7rem 0.85rem;
    min-height: 52px;
}

.soundboard-empty {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0;
    width: 100%;
}

/* Individual sound button */
.sfx-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.3rem 0.5rem 0.3rem 0.35rem;
    transition: all 0.15s;
    max-width: 160px;
}
.sfx-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
}
.sfx-btn.playing {
    background: rgba(13, 245, 158, 0.1);
    border-color: rgba(13, 245, 158, 0.4);
    animation: sfx-pulse 1s ease-in-out infinite;
}
@keyframes sfx-pulse {
    0%, 100% { border-color: rgba(13, 245, 158, 0.3); }
    50%       { border-color: rgba(13, 245, 158, 0.7); box-shadow: 0 0 8px rgba(13, 245, 158, 0.2); }
}

.sfx-play-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(13, 245, 158, 0.15);
    color: #0df59e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.1s;
    padding: 0;
}
.sfx-play-btn:hover {
    background: rgba(13, 245, 158, 0.3);
    transform: scale(1.1);
}
.sfx-btn.playing .sfx-play-btn {
    background: rgba(13, 245, 158, 0.25);
}

.sfx-name {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
    flex: 1;
}

.sfx-del-btn {
    width: 18px;
    height: 18px;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
    padding: 0;
    transition: color 0.15s, background 0.15s;
}
.sfx-del-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ============================================================
   SIDEBAR SOUNDBOARD
   ============================================================ */
.sidebar-soundboard {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
    flex-shrink: 0;
}
.sidebar-soundboard.hidden {
    display: none !important;
}

.sidebar-soundboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.85rem 0.5rem;
}

.sidebar-soundboard-title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}
.sidebar-soundboard-title svg { opacity: 0.4; }

.sidebar-sb-upload-btn {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(13, 245, 158, 0.08);
    border: 1px solid rgba(13, 245, 158, 0.2);
    color: rgba(13, 245, 158, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
}
.sidebar-sb-upload-btn:hover {
    background: rgba(13, 245, 158, 0.18);
    border-color: rgba(13, 245, 158, 0.5);
    color: #0df59e;
}

.sidebar-sb-grid {
    padding: 0 0.6rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-height: 340px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.sidebar-sb-grid::-webkit-scrollbar { width: 3px; }
.sidebar-sb-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* Override sfx-btn for sidebar (full-width row style) */
.sidebar-sb-grid .sfx-btn {
    width: 100%;
    max-width: 100%;
    border-radius: 7px;
    padding: 0.32rem 0.5rem;
}
.sidebar-sb-grid .sfx-name {
    max-width: none;
    flex: 1;
    min-width: 0;
}

.sidebar-sb-stop-btn {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: rgba(239, 68, 68, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
    padding: 0;
}
.sidebar-sb-stop-btn:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

/* ── Timer pill matching screenshot style ── */
.tier-timer-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(5, 5, 7, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 5px 8px 5px 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.02em;
}
.tier-timer-pill.hidden { display: none; }
.tier-timer-pill svg { flex-shrink: 0; }

#tier-timer-display {
    font-weight: 700;
    min-width: 42px;
    letter-spacing: 0.03em;
    transition: color 0.3s;
}

.earn-time-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: #9333ea;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.1s;
    padding: 0;
    flex-shrink: 0;
}
.earn-time-btn:hover {
    background: #7c3aed;
    transform: scale(1.1);
}
.tier-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
}
.tier-free    { background: rgba(156,163,175,0.15); color: #9ca3af; border: 1px solid rgba(156,163,175,0.3); }
.tier-silver  { background: rgba(192,192,192,0.15); color: #d1d5db; border: 1px solid rgba(192,192,192,0.4); }
.tier-gold    { background: rgba(251,191,36,0.12);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.35); }
.tier-diamond { background: rgba(103,232,249,0.12); color: #67e8f9; border: 1px solid rgba(103,232,249,0.35); }
.tier-admin   { background: rgba(13,245,158,0.12);  color: #0df59e; border: 1px solid rgba(13,245,158,0.35); }

/* ── Earn time modal ── */
.earn-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.earn-modal-overlay.hidden { display: none; }

.earn-modal-card {
    background: linear-gradient(160deg, rgba(12,18,25,0.98), rgba(6,10,14,0.99));
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(239,68,68,0.05);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.earn-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(239,68,68,0.04);
}
.earn-modal-header h3 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.88);
}

.earn-modal-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.84rem;
    line-height: 1.6;
}
.earn-modal-body strong { color: rgba(255,255,255,0.85); }

.earn-task-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(239,68,68,0.18), rgba(239,68,68,0.1));
    border: 1px solid rgba(239,68,68,0.4);
    color: #f87171;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}
.earn-task-btn:hover {
    background: linear-gradient(135deg, rgba(239,68,68,0.28), rgba(239,68,68,0.18));
    border-color: rgba(239,68,68,0.7);
    color: #fca5a5;
    transform: translateY(-1px);
}

.earn-note {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    text-align: center;
}

/* ============================================================
   TIER TABLE IN DROPDOWN
   ============================================================ */
.tier-table {
    padding: 0.5rem 0.75rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.tier-table-header {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    padding: 0 0.45rem 0.3rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 0.15rem;
}

.tier-table-row {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    padding: 0.32rem 0.45rem;
    border-radius: 6px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    transition: background 0.15s;
    cursor: default;
}
.tier-table-row:hover { background: rgba(255,255,255,0.04); }
.tier-table-row span { white-space: nowrap; }

.tier-row-name { font-weight: 600; }

/* Highlight the user's current tier */
.tier-table-row.is-current-tier {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
}

.tier-row-free.is-current-tier    .tier-row-name { color: #9ca3af; }
.tier-row-silver.is-current-tier  .tier-row-name { color: #d1d5db; }
.tier-row-gold.is-current-tier    .tier-row-name { color: #fbbf24; }
.tier-row-diamond.is-current-tier .tier-row-name { color: #67e8f9; }

/* ============================================================
   TIERS MODAL
   ============================================================ */
.tiers-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.2s ease;
}
.tiers-modal-overlay.hidden { display: none; }

.tiers-modal-card {
    background: rgba(11, 16, 22, 0.97);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.7);
    width: 100%;
    max-width: 820px;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.tiers-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.75rem 1.2rem;
}
.tiers-modal-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.02em;
}
.tiers-modal-close {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.tiers-modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* 4-column grid */
.tiers-modal-body {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0 1.5rem 1.75rem;
    overflow-y: auto;
    flex: 1;
}

/* Individual tier card */
.tier-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 1.25rem 1.1rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: border-color 0.2s, background 0.2s;
}
.tier-card:hover { background: rgba(255,255,255,0.055); border-color: rgba(255,255,255,0.14); }

/* Current tier gets a highlight */
.tier-card.is-current {
    border-width: 1.5px;
}
.tier-card-free.is-current    { border-color: #9ca3af; background: rgba(156,163,175,0.07); }
.tier-card-silver.is-current  { border-color: #c0c0c0; background: rgba(192,192,192,0.07); }
.tier-card-gold.is-current    { border-color: #fbbf24; background: rgba(251,191,36,0.07); }
.tier-card-diamond.is-current { border-color: #67e8f9; background: rgba(103,232,249,0.07); }

.tier-card-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.05rem;
}
.tier-card-free    .tier-card-name { color: #9ca3af; }
.tier-card-silver  .tier-card-name { color: #e5e7eb; }
.tier-card-gold    .tier-card-name { color: #fbbf24; }
.tier-card-diamond .tier-card-name { color: #67e8f9; }

.tier-card-sub {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-bottom: 0.9rem;
}

.tier-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.tier-card-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.3;
}

/* Feature icons */
.tf-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 700;
}
.tf-ok   { background: rgba(13,245,158,0.15); color: #0df59e; }
.tf-ok::after   { content: '✓'; }
.tf-no   { background: rgba(239,68,68,0.15);  color: #f87171; }
.tf-no::after   { content: '✗'; }
.tf-sound { background: rgba(251,191,36,0.15); color: #fbbf24; }
.tf-sound::after { content: '♪'; }
.tf-time  { background: rgba(103,232,249,0.15); color: #67e8f9; }
.tf-time::after  { content: '◷'; font-size: 0.7rem; }
.tf-user  { background: rgba(167,139,250,0.15); color: #a78bfa; }
.tf-user::after  { content: '👤'; font-size: 0.6rem; }

@media (max-width: 640px) {
    .tiers-modal-body { grid-template-columns: repeat(2, 1fr); }
}

/* Profile pill text stack (username + sublabel) */
.profile-pill-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.profile-pill-sublabel {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(0, 240, 255, 0.6);
    text-transform: uppercase;
    line-height: 1;
}

/* ============================================================
   MOBILE RESPONSIVE — Complete overhaul
   ============================================================ */

/* ── Header: compact pill-only style on mobile (matches screenshot) ── */
@media (max-width: 600px) {

    /* Interface wrapper — allow scrolling on mobile */
    .interface-wrapper {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    /* Header: slim floating bar */
    .glass-header {
        top: 12px;
        width: calc(100% - 20px);
        height: 60px;
        padding: 0 12px;
        border-radius: 20px;
        background: rgba(10, 10, 15, 0.9) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    }

    /* Brand: logo + stacked text */
    .header-brand { 
        gap: 8px; 
    }
    .logo-container { 
        width: 38px; 
        height: 38px; 
    }
    .brand-logo { 
        width: 28px; 
        height: 28px; 
    }
    .logo-aura { 
        width: 32px; 
        height: 32px; 
        filter: blur(6px);
    }
    .brand-text h1 {
        font-size: 13px;
        letter-spacing: 1px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        line-height: 1.1;
        font-weight: 800;
    }
    .version-tag { display: none; }

    /* Header nav — hide on mobile */
    .header-nav { display: none; }

    /* Status panel: compact, avatars only */
    .header-status-panel {
        gap: 8px;
        align-items: center;
        flex-shrink: 0;
    }

    /* Profile pills — avatar-only on mobile */
    .profile-pill,
    .profile-pill.token-pill {
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(10, 10, 15, 0.75) !important;
        border: 2.2px solid var(--color-accent-emerald) !important; /* Green squircle border */
        border-radius: 10px !important; /* Squircle shape */
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.15) !important;
        cursor: pointer;
        transition: all 0.3s ease;
        gap: 0 !important;
    }
    
    .profile-pill:hover,
    .profile-pill.token-pill:hover,
    .profile-pill.active-dropdown {
        border-color: var(--color-accent-neon) !important;
        box-shadow: 0 0 15px var(--color-accent-glow) !important;
    }

    .profile-username { display: none !important; }
    .profile-chevron { display: none !important; }
    
    .profile-avatar-wrapper { 
        width: 24px !important; 
        height: 24px !important; 
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .profile-avatar-img { 
        width: 24px !important; 
        height: 24px !important; 
        border-radius: 50% !important;
    }
    
    .profile-avatar-glow { 
        border-width: 1.5px !important; 
        border-color: var(--color-accent-neon) !important;
        box-shadow: 0 0 6px var(--color-accent-glow) !important;
    }
    
    .profile-avatar-glow.token-glow {
        border-color: var(--color-accent-neon) !important;
        box-shadow: 0 0 6px var(--color-accent-glow) !important;
    }

    /* Timer pill: compact */
    .tier-timer-pill {
        display: flex !important;
        align-items: center !important;
        background: rgba(10, 10, 15, 0.8) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 30px !important; /* capsule */
        padding: 4px 6px 4px 10px !important;
        gap: 6px !important;
        font-family: 'Outfit', sans-serif;
        font-size: 0.85rem !important;
        font-weight: 700;
        color: #ffffff !important;
        letter-spacing: 0.02em;
        height: 36px !important;
        box-sizing: border-box;
    }
    .tier-timer-pill svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }
    #tier-timer-display {
        font-weight: 700;
        color: #ffffff !important;
        font-size: 0.85rem !important;
        min-width: unset !important;
    }
    .earn-time-btn { 
        width: 22px !important; 
        height: 22px !important; 
        font-size: 0.9rem !important; 
        border-radius: 50% !important;
        border: none !important;
        background: #8b5cf6 !important; /* purple background */
        color: #ffffff !important;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        flex-shrink: 0;
        transition: transform 0.15s ease;
    }

    /* Profile dropdowns — full width on mobile */
    .profile-dropdown {
        position: fixed !important;
        top: 80px !important;
        left: 12px !important;
        right: 12px !important;
        width: calc(100vw - 24px) !important;
        max-height: 80vh;
        overflow-y: auto;
    }

    /* Main dashboard padding adjusted for smaller header */
    .main-dashboard {
        padding: 80px 12px 90px;
    }

    /* Blank page: stack vertically, full width */
    .blank-page-container {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 160px);
        gap: 12px;
    }

    /* Sidebar: full width, short on mobile */
    .servers-sidebar {
        width: 100%;
        height: auto;
        max-height: 450px;
        border-radius: 16px;
    }

    .servers-list {
        max-height: 200px;
        padding: 10px;
        gap: 7px;
    }

    /* Main content panel: show and full width */
    .main-blank-content {
        display: block;
        width: 100%;
        height: auto;
        min-height: 400px;
        border-radius: 16px;
    }

    /* Soundboard under sidebar */
    .sidebar-soundboard {
        max-height: 200px;
    }
    .sidebar-sb-grid {
        max-height: 150px;
    }

    /* Connect card — full width */
    .minimal-connect-container {
        padding: 16px;
    }
    .minimal-connect-card {
        max-width: 100%;
    }

    /* Amp controls — full width sliders */
    .amp-controls { padding: 0.7rem 0.8rem; }

    /* VC members — wrap */
    .vc-members-panel { flex-wrap: wrap; }

    /* Footer: hide on mobile (replaced by bottom nav) */
    .glass-footer { display: none; }

    /* Token card */
    .token-card { padding: 24px 16px 20px; }
    .token-card-title { font-size: 16px; }
    .token-input { font-size: 13px; }

    /* Login screen */
    .login-card { padding: 28px 18px 24px; width: calc(100% - 32px); }

    /* Tiers modal */
    .tiers-modal-body { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
    .tiers-modal-card { border-radius: 16px; }
    .tier-card { padding: 1rem 0.85rem 1.1rem; }
    .tier-card-name { font-size: 0.95rem; }
    .tier-card-features li { font-size: 0.72rem; }

    /* TOS modal */
    .tos-modal-card { border-radius: 14px; }

    /* Earn modal */
    .earn-modal-card { border-radius: 14px; max-width: 100%; margin: 0 12px; }
}

/* ── Bottom navigation bar for mobile ── */
@media (max-width: 600px) {
    .mobile-bottom-nav {
        display: flex;
    }
}

.mobile-bottom-nav {
    display: none; /* hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(8, 10, 14, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 200;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
}

.mob-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 10px;
    transition: all 0.15s;
    flex: 1;
}
.mob-nav-btn svg { opacity: 0.5; transition: opacity 0.15s; }
.mob-nav-btn.active {
    color: #0df59e;
    background: rgba(13,245,158,0.08);
}
.mob-nav-btn.active svg { opacity: 1; }
.mob-nav-btn:hover { color: rgba(255,255,255,0.7); }

/* ==========================================================================
   AUTH LOADING SCREEN
   ========================================================================== */
.auth-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-darker);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.auth-loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* High-tech scanner laser line */
.loading-scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: linear-gradient(90deg, transparent, var(--color-accent-neon), transparent);
    box-shadow: 0 0 15px var(--color-accent-glow), 0 0 30px var(--color-accent-neon);
    opacity: 0.45;
    animation: loading-scanner-sweep 3.5s infinite ease-in-out;
    pointer-events: none;
    z-index: 10;
}

@keyframes loading-scanner-sweep {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 15;
}

.loading-logo-container {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

/* Cyber spin ring spinner */
.loading-cyber-ring {
    position: absolute;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px dashed rgba(13, 245, 158, 0.45);
    box-shadow: 0 0 12px rgba(13, 245, 158, 0.08);
    animation: rotate-cw 8s linear infinite;
    z-index: 3;
}

.loading-brand-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    z-index: 5;
    animation: logo-core-breathe 2s infinite ease-in-out alternate;
}

.loading-logo-aura {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(13, 245, 158, 0.6) 0%, rgba(6, 182, 212, 0.4) 45%, rgba(16, 185, 129, 0) 70%);
    filter: blur(12px);
    border-radius: 50%;
    z-index: 1;
    animation: logo-aura-breathe 2s infinite ease-in-out alternate, rotate-cw 8s linear infinite;
}

.loading-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-text-primary);
}

.loading-bar-container {
    width: 180px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-top: 8px;
}

.loading-bar-progress {
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent-neon), var(--color-accent-emerald));
    border-radius: 10px;
    animation: loading-bar-shift 1.6s infinite ease-in-out;
    position: absolute;
    left: -20%;
}

@keyframes loading-bar-shift {
    0% {
        left: -60%;
    }
    50% {
        left: 40%;
    }
    100% {
        left: 100%;
    }
}

.loading-status-text {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Monospace telemetry logs */
.loading-terminal-logs {
    width: 280px;
    height: 66px;
    background: rgba(5, 5, 8, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 8.5px;
    color: rgba(255, 255, 255, 0.45);
    box-sizing: border-box;
    overflow: hidden;
    text-align: left;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.terminal-log-line {
    opacity: 0;
    animation: terminal-line-fade 4.5s infinite ease-in-out;
    white-space: nowrap;
    width: 100%;
}

.terminal-log-line:nth-child(1) { animation-delay: 0s; }
.terminal-log-line:nth-child(2) { animation-delay: 1.5s; }
.terminal-log-line:nth-child(3) { animation-delay: 3s; }

@keyframes terminal-line-fade {
    0%, 100% { opacity: 0; transform: translateY(3px); }
    15%, 85% { opacity: 0.85; transform: translateY(0); }
}

/* ==========================================================================
   MULTIPLE ACCOUNTS STYLING
   ========================================================================== */
.add-account-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.add-account-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(13, 245, 158, 0.3);
    color: var(--color-accent-neon);
    box-shadow: 0 0 10px var(--color-accent-glow);
}
.add-account-btn.hidden {
    display: none !important;
}

/* Dropdown list rows */
.dropdown-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 6px;
    gap: 12px;
}
.dropdown-account-row:hover {
    background: rgba(255, 255, 255, 0.04);
}
.dropdown-account-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.dropdown-account-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid #00f0ff;
    box-shadow: 0 0 6px rgba(0, 240, 255, 0.3);
}
.dropdown-account-username {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dropdown-account-unlink-btn {
    background: none;
    border: none;
    color: var(--color-error);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.dropdown-account-unlink-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Voice joining selective list checkboxes */
.voice-account-checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}
.voice-account-checkbox-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}
.voice-account-checkbox-row.selected {
    border-color: rgba(13, 245, 158, 0.3);
    background: rgba(13, 245, 158, 0.02);
}
.voice-account-checkbox-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.voice-account-checkbox-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--color-accent-neon);
}
.voice-account-checkbox-name {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.voice-account-checkbox-box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.2);
}
.voice-account-checkbox-row.selected .voice-account-checkbox-box {
    border-color: var(--color-accent-neon);
    background: var(--color-accent-neon);
    color: #050507;
}
.voice-account-checkbox-box::after {
    content: '✓';
    font-size: 11px;
    font-weight: 900;
    display: none;
}
.voice-account-checkbox-row.selected .voice-account-checkbox-box::after {
    display: block;
}

@media (max-width: 480px) {
    .tiers-modal-body {
        grid-template-columns: 1fr !important;
    }
}

/* Generic Utilities */
.hidden {
    display: none !important;
}

/* ==========================================================================
   PWA INSTALL BANNER
   ========================================================================== */
.pwa-install-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    max-width: 380px;
    width: calc(100% - 48px);
    background: rgba(13, 13, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(13, 245, 158, 0.25);
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(13, 245, 158, 0.08);
    animation: pwaSlideUp 0.4s var(--ease-ios) forwards;
}

@keyframes pwaSlideUp {
    from {
        transform: translateY(40px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-banner-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
}

.pwa-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pwa-banner-text h4 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.pwa-banner-text p {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    color: var(--color-text-muted);
}

.pwa-banner-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.pwa-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.pwa-btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.pwa-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-primary);
}

.pwa-btn-primary {
    background: var(--color-accent-neon);
    color: #050507;
    box-shadow: 0 0 10px rgba(13, 245, 158, 0.2);
}

.pwa-btn-primary:hover {
    background: #0be08f;
    box-shadow: 0 0 14px rgba(13, 245, 158, 0.35);
    transform: translateY(-1px);
}

