/* ==========================================================================
   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-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: 230px;
    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-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-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%;
}

.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;
    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);
}

