/* ==========================================================================
   CRUZE BLAST — FUTURISTIC CSS DESIGN SYSTEM (ORANGE THEME)
   ========================================================================== */

/* 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(255, 107, 43, 0.25);

    /* Neon Accents — Orange */
    --color-accent-neon: #ff6b2b;
    --color-accent-ember: #f97316;
    --color-accent-glow: rgba(255, 107, 43, 0.45);
    --color-accent-soft: rgba(255, 107, 43, 0.15);

    /* 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);
    --color-success: #22c55e;

    /* 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);
}

/* 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.12;
    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-ember) 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; }
.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);
}
.glass-header:hover {
    border-color: rgba(255, 107, 43, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 107, 43, 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;
    border-radius: 10px;
    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(255, 107, 43, 0.95)) drop-shadow(0 0 25px rgba(249, 115, 22, 0.4));
}
@keyframes logo-core-breathe {
    0% {
        transform: scale(0.96);
        filter: drop-shadow(0 0 6px rgba(255, 107, 43, 0.45));
    }
    100% {
        transform: scale(1.04);
        filter: drop-shadow(0 0 12px rgba(255, 107, 43, 0.75)) drop-shadow(0 0 20px rgba(249, 115, 22, 0.3));
    }
}
.logo-aura {
    position: absolute;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(255, 107, 43, 0.55) 0%, rgba(249, 115, 22, 0.35) 45%, transparent 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); opacity: 0.6; }
    50% { filter: blur(14px); opacity: 0.85; }
    100% { transform: scale(1.22); filter: blur(10px); 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(255, 107, 43, 0.4);
}

/* Status Panel */
.header-status-panel {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ==========================================================================
   PROFILE PILL & DROPDOWN
   ========================================================================== */
.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(255, 107, 43, 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(255, 107, 43, 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 */
.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-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);
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
    width: 100%;
    transition: all 0.2s ease;
}
.profile-dropdown-item:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.04);
}
.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; }

/* Timer Pill */
.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);
}
.tier-timer-pill.hidden { display: none; }
#tier-timer-display {
    font-weight: 700;
    min-width: 42px;
    letter-spacing: 0.03em;
}
.earn-time-btn {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: none;
    background: #9333ea;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.1s;
    padding: 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); }

/* ==========================================================================
   MAIN DASHBOARD 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;
}

/* ==========================================================================
   DISCORD TOKEN CARD
   ========================================================================== */
.token-card-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.token-card-container.hidden { display: none !important; }

.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;
    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(255, 107, 43, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 107, 43, 0.05);
}
.token-card-icon {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(255, 107, 43, 0.1);
    border: 2px solid rgba(255, 107, 43, 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(255, 107, 43, 0.15);
    transition: all 0.3s var(--ease-ios);
}
.token-card:hover .token-card-icon {
    box-shadow: 0 0 30px rgba(255, 107, 43, 0.25);
    border-color: rgba(255, 107, 43, 0.5);
}
.token-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}
.token-card-desc {
    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);
}
.token-input::placeholder {
    color: var(--color-text-muted);
    font-family: 'Fira Code', monospace;
}
.token-input:focus {
    border-color: rgba(255, 107, 43, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 107, 43, 0.08), 0 0 15px rgba(255, 107, 43, 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(255, 107, 43, 0.3);
}
.link-discord-btn:hover {
    background: #e85d20;
    box-shadow: 0 6px 30px rgba(255, 107, 43, 0.45);
    transform: translateY(-1px);
}
.link-discord-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(255, 107, 43, 0.3);
}
.link-discord-btn svg { stroke: #000; }
.token-status {
    margin-top: 16px;
    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);
}

/* ==========================================================================
   BLANK PAGE — SERVERS SIDEBAR + MAIN CONTENT
   ========================================================================== */
.blank-page-container {
    width: 100%;
    max-width: 1400px;
    height: calc(100vh - 190px);
    display: flex;
    gap: 32px;
}
.blank-page-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: var(--color-accent-soft);
    border: 1px solid rgba(255, 107, 43, 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(255, 107, 43, 0.03);
    border-color: rgba(255, 107, 43, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.server-item.active {
    background: rgba(255, 107, 43, 0.06) !important;
    border-color: rgba(255, 107, 43, 0.3) !important;
    box-shadow: 0 0 15px rgba(255, 107, 43, 0.08) !important;
}
.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,
.server-item.active .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,
.server-item.active .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 server selected placeholder */
.no-server-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
    gap: 16px;
}
.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);
    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); }
    100% { border-color: rgba(255, 107, 43, 0.25); box-shadow: 0 0 20px rgba(255, 107, 43, 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);
}
.no-servers {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
    padding: 40px 20px;
}

/* ==========================================================================
   SERVER DETAIL / VOICE CONNECTION PANEL
   ========================================================================== */
.minimal-connect-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    min-height: 100%;
    width: 100%;
    padding: 32px;
    flex-wrap: wrap;
}
.minimal-connect-card {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.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);
}
.minimal-server-header:hover {
    border-color: rgba(255, 107, 43, 0.18);
}
.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);
}

/* Input Group */
.minimal-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}
.minimal-label {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-primary);
    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);
}
.minimal-input:focus {
    border-color: rgba(255, 107, 43, 0.35);
    box-shadow: 0 0 12px rgba(255, 107, 43, 0.08);
}
.minimal-input::placeholder { color: var(--color-text-muted); }

/* Connect/Disconnect Button */
.connect-bridge-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f97316 0%, #ff6b2b 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-shadow: 0 4px 20px rgba(255, 107, 43, 0.25);
}
.connect-bridge-btn svg { stroke: #000; }
.connect-bridge-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #e85d20 0%, #ff6b2b 60%);
    box-shadow: 0 6px 30px rgba(255, 107, 43, 0.4);
    transform: translateY(-1px);
}
.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: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;
}

/* Status Badge */
.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);
}

/* ==========================================================================
   VOICE CONTROLS — Mic / Audio toggle 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;
    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);
}
.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; }
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   AMPLIFIER CONTROLS
   ========================================================================== */
.amp-controls {
    background: rgba(255, 107, 43, 0.03);
    border: 1px solid rgba(255, 107, 43, 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(255, 107, 43, 0.7);
    margin-bottom: 0.1rem;
}
.amp-controls-header svg { opacity: 0.7; }

.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);
}
.amp-val {
    font-family: 'Fira Code', monospace;
    color: rgba(255, 107, 43, 0.85);
    font-size: 0.72rem;
    min-width: 48px;
    text-align: right;
}
.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;
}
.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: #ff6b2b;
    border: 2px solid #050507;
    box-shadow: 0 0 8px rgba(255, 107, 43, 0.6);
    cursor: pointer;
    margin-top: -6px;
    transition: transform 0.1s, box-shadow 0.1s;
}
.amp-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    box-shadow: 0 0 14px rgba(255, 107, 43, 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: #ff6b2b;
    border: 2px solid #050507;
    box-shadow: 0 0 8px rgba(255, 107, 43, 0.6);
    cursor: pointer;
}

/* ==========================================================================
   VC MEMBERS PANEL
   ========================================================================== */
.vc-members-panel {
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 107, 43, 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; }
.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;
}
.vc-members-header span { color: rgba(255, 107, 43, 0.65); }
.vc-members-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}
.vc-member-row {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}
.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(255, 107, 43, 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; }
.vc-member-avatar-wrap { width: 30px; height: 30px; position: relative; }
.vc-member-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

/* ==========================================================================
   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(255, 107, 43, 0.15);
}
.footer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.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(255, 107, 43, 0.05);
    border-color: rgba(255, 107, 43, 0.2);
    text-shadow: 0 0 8px var(--color-accent-glow);
}
.discord-icon { transition: transform var(--transition-speed); }
.footer-link:hover .discord-icon { transform: scale(1.1) rotate(-5deg); }
.footer-divider { color: rgba(255, 255, 255, 0.15); }
.footer-copyright { color: var(--color-text-muted); }
.tos-footer-btn {
    background: none;
    border: none;
    font-size: inherit;
    font-family: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    padding: 0;
}

/* ==========================================================================
   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;
}
.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;
}
.loading-cyber-ring {
    position: absolute;
    width: 96px; height: 96px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 107, 43, 0.45);
    box-shadow: 0 0 12px rgba(255, 107, 43, 0.08);
    animation: rotate-cw 8s linear infinite;
    z-index: 3;
}
.loading-brand-logo {
    width: 70px; height: 70px;
    object-fit: contain;
    border-radius: 14px;
    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(255, 107, 43, 0.6) 0%, rgba(249, 115, 22, 0.4) 45%, transparent 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;
}
.loading-bar-container {
    width: 180px; height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}
.loading-bar-progress {
    width: 60%; height: 100%;
    background: linear-gradient(90deg, var(--color-accent-neon), var(--color-accent-ember));
    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;
}
.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-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
    text-align: left;
}
.terminal-log-line {
    opacity: 0;
    animation: terminal-line-fade 4.5s infinite ease-in-out;
    white-space: nowrap;
}
.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); }
}

/* ==========================================================================
   LOGIN SCREEN
   ========================================================================== */
.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);
}
.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(255, 107, 43, 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(255, 107, 43, 0.45) 0%, rgba(249, 115, 22, 0.2) 50%, transparent 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;
    border-radius: 14px;
    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;
    margin-top: 8px;
}
.login-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 320px;
}

/* ToS Checkbox */
.tos-accept-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    cursor: pointer;
    user-select: none;
}
.tos-accept-row input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
    pointer-events: none;
}
.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(255, 107, 43, 0.2);
    border-color: #ff6b2b;
    box-shadow: 0 0 8px rgba(255, 107, 43, 0.3);
}
.tos-accept-row .tos-checkbox-box::after {
    content: '';
    display: block;
    width: 5px; height: 9px;
    border-right: 2px solid #ff6b2b;
    border-bottom: 2px solid #ff6b2b;
    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);
}
.tos-inline-link {
    background: none;
    border: none;
    color: rgba(255, 107, 43, 0.8);
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    border-bottom: 1px solid rgba(255, 107, 43, 0.3);
    transition: color 0.15s;
}
.tos-inline-link:hover { color: #ff6b2b; border-color: #ff6b2b; }

/* Discord Login 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:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}
.discord-login-btn:hover svg { transform: rotate(-5deg) scale(1.1); }
.discord-login-btn svg { transition: transform 0.3s ease; }

/* ==========================================================================
   TOS 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; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.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(255, 107, 43, 0.18);
    border-radius: 20px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 60px rgba(255, 107, 43, 0.05);
    width: 100%;
    max-width: 600px;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.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);
    background: rgba(255, 107, 43, 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: #ff6b2b;
    box-shadow: 0 0 8px #ff6b2b;
}
.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;
    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); color: #fff; }

.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;
}
.tos-modal-body::-webkit-scrollbar { width: 4px; }
.tos-modal-body::-webkit-scrollbar-thumb { background: rgba(255, 107, 43, 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(255, 107, 43, 0.7);
    margin: 1.5rem 0 0.45rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255, 107, 43, 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(255, 107, 43, 0.75); text-decoration: none; border-bottom: 1px solid rgba(255, 107, 43, 0.3); }
.tos-modal-body a:hover { color: #ff6b2b; border-color: #ff6b2b; }
.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;
}
.tos-modal-footer {
    padding: 1rem 1.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.2);
}
.tos-footer-note { font-size: 0.72rem; color: rgba(255,255,255,0.25); }
.tos-accept-btn {
    background: linear-gradient(135deg, rgba(255, 107, 43, 0.18), rgba(255, 107, 43, 0.1));
    border: 1px solid rgba(255, 107, 43, 0.35);
    color: #ff6b2b;
    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(255, 107, 43, 0.08);
}
.tos-accept-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 43, 0.28), rgba(255, 107, 43, 0.16));
    border-color: rgba(255, 107, 43, 0.7);
    transform: translateY(-1px);
}

/* ==========================================================================
   TIERS MODAL
   ========================================================================== */
.tiers-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.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;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.tiers-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.75rem;
}
.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);
}
.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;
}
.tiers-modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.tiers-modal-body {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0 1.5rem 1.75rem;
    overflow-y: auto;
}
.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); }
.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;
    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);
}
.tf-icon {
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
}
.tf-ok   { background: rgba(255, 107, 43, 0.15); color: #ff6b2b; }
.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; }

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

/* ==========================================================================
   LINKED ACCOUNTS MENU
   ========================================================================== */
.linked-accounts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
}
.linked-accounts-title {
    font-size: 11px;
    color: var(--color-text-muted);
}
.add-account-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 107, 43, 0.5);
    background: rgba(255, 107, 43, 0.1);
    color: #ff6b2b;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.add-account-form {
    padding: 0 12px 8px;
}
.add-account-input {
    width: 100%;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 11px;
    box-sizing: border-box;
    margin-bottom: 6px;
    outline: none;
}
.add-account-actions {
    display: flex;
    gap: 6px;
}
.confirm-add-btn {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 107, 43, 0.85);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
}
.cancel-add-btn {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    cursor: pointer;
}
.add-account-status {
    font-size: 10px;
    margin-top: 5px;
    text-align: center;
    min-height: 14px;
}
.linked-accounts-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 0 12px 6px;
}
.linked-accounts-list::-webkit-scrollbar { width: 4px; }
.linked-accounts-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 2px; }

.linked-account-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 6px;
    transition: all 0.2s;
}
.linked-account-item.primary {
    border-color: rgba(255, 107, 43, 0.3);
}
.switch-account-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    cursor: pointer;
}
.account-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}
.account-checkbox.checked {
    border-color: #ff6b2b;
    background: #ff6b2b;
}
.account-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}
.account-avatar.primary {
    border-color: #ff6b2b;
}
.account-info {
    min-width: 0;
}
.account-name-row {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.account-primary-badge {
    font-size: 8px;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(255, 107, 43, 0.2);
    color: #ff6b2b;
    flex-shrink: 0;
}
.account-username {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.remove-account-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 50, 50, 0.15);
    color: rgba(255, 90, 90, 0.8);
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    margin-left: 8px;
    transition: transform 0.1s, background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.remove-account-btn:hover {
    background: rgba(255, 50, 50, 0.3);
}
.remove-account-btn:active {
    transform: scale(0.9);
}
.linked-accounts-footer-text {
    padding: 0 12px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN — Full Coverage
   Breakpoints: 1200px (tablet landscape), 992px (tablet portrait),
                768px (large phone / small tablet), 480px (phone),
                360px (small phone)
   ========================================================================== */

/* ── Tablet Landscape (≤ 1200px) ────────────────────────────────────────── */
@media (max-width: 1200px) {
    .glass-header {
        width: calc(100% - 48px);
        padding: 0 24px;
    }
    .glass-footer {
        width: calc(100% - 48px);
        padding: 0 24px;
    }
    .servers-sidebar {
        width: 280px;
    }
}

/* ── Tablet Portrait (≤ 992px) ──────────────────────────────────────────── */
@media (max-width: 992px) {
    .glass-header {
        width: calc(100% - 40px);
        height: 72px;
        padding: 0 20px;
    }
    .brand-text h1 {
        font-size: 20px;
        letter-spacing: 2.5px;
    }
    .logo-container {
        width: 50px;
        height: 50px;
    }
    .brand-logo {
        width: 36px;
        height: 36px;
    }
    .logo-aura {
        width: 42px;
        height: 42px;
    }
    .main-dashboard {
        padding: 100px 28px 80px;
    }
    .blank-page-container {
        gap: 24px;
        height: calc(100vh - 180px);
    }
    .servers-sidebar {
        width: 240px;
    }
    .server-item {
        padding: 10px 14px;
        gap: 12px;
    }
    .server-icon {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    .glass-footer {
        width: calc(100% - 40px);
    }
    .tiers-modal-body {
        grid-template-columns: repeat(2, 1fr);
    }
    .tos-modal-card {
        max-width: 90vw;
    }
    .tiers-modal-card {
        max-width: 90vw;
    }
}

/* ── Large Phone / Small Tablet (≤ 768px) ───────────────────────────────── */
@media (max-width: 768px) {
    .glass-header {
        top: 12px;
        width: calc(100% - 32px);
        height: 64px;
        padding: 0 16px;
        gap: 8px;
    }
    .header-brand {
        gap: 10px;
    }
    .logo-container {
        width: 44px;
        height: 44px;
    }
    .brand-logo {
        width: 32px;
        height: 32px;
    }
    .logo-aura {
        width: 36px;
        height: 36px;
    }
    .brand-text h1 {
        font-size: 17px;
        letter-spacing: 2px;
    }

    /* Profile pill — truncate long names */
    .profile-username {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .profile-pill {
        gap: 8px;
        padding: 3px 12px 3px 3px;
    }

    /* Main layout — stack vertically */
    .main-dashboard {
        padding: 88px 16px 80px;
    }
    .blank-page-container {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 168px);
        gap: 16px;
    }

    /* Sidebar becomes horizontal scroll strip */
    .servers-sidebar {
        width: 100%;
        height: auto;
        max-height: none;
        border-radius: var(--border-radius-md);
        flex-shrink: 0;
    }
    .servers-list {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 12px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .servers-list::-webkit-scrollbar {
        height: 3px;
    }
    .servers-list::-webkit-scrollbar-thumb {
        background: rgba(255, 107, 43, 0.3);
    }
    .server-item {
        flex-shrink: 0;
        min-width: 180px;
        scroll-snap-align: start;
        padding: 10px 14px;
    }

    /* Main content area */
    .main-blank-content {
        flex: 1;
        min-height: 400px;
    }

    /* Connection panel */
    .minimal-connect-container {
        padding: 20px 16px;
    }
    .minimal-connect-card {
        max-width: 100%;
    }
    .minimal-server-header {
        padding: 14px 16px;
    }
    .minimal-server-name {
        font-size: 16px;
    }

    /* Voice controls — stack on narrow screens */
    .voice-controls {
        flex-wrap: wrap;
    }
    .voice-ctrl-btn {
        flex: 1;
        min-width: 120px;
    }

    /* Amplifier sliders — bigger touch targets */
    .amp-slider::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
        margin-top: -8px;
    }
    .amp-slider::-moz-range-thumb {
        width: 20px;
        height: 20px;
    }
    .amp-slider {
        height: 6px;
    }

    /* Footer — stack content */
    .glass-footer {
        bottom: 12px;
        width: calc(100% - 32px);
        height: auto;
        padding: 10px 16px;
        flex-direction: column;
        gap: 6px;
        border-radius: var(--border-radius-md);
        text-align: center;
    }
    .footer-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .footer-divider {
        display: none;
    }

    /* Tiers modal */
    .tiers-modal-body {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }

    /* Token card */
    .token-card {
        max-width: 100%;
        padding: 28px 24px;
    }

    /* Login card */
    .login-card {
        padding: 36px 28px;
        width: calc(100% - 32px);
    }
    .login-card h2 {
        font-size: 22px;
        letter-spacing: 3px;
    }

    /* Loading screen */
    .loading-logo-container {
        width: 90px;
        height: 90px;
    }
    .loading-brand-logo {
        width: 56px;
        height: 56px;
    }
    .loading-cyber-ring {
        width: 78px;
        height: 78px;
    }

    /* No-server placeholder */
    .no-server-selected {
        padding: 24px 16px;
    }
    .no-server-selected-icon {
        width: 64px;
        height: 64px;
    }
    .no-server-selected-icon svg {
        width: 26px;
        height: 26px;
    }
    .no-server-selected h3 {
        font-size: 16px;
    }
}

/* ── Phone (≤ 480px) ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .glass-header {
        top: 8px;
        width: calc(100% - 20px);
        height: 56px;
        padding: 0 12px;
    }
    .header-brand {
        gap: 8px;
    }
    .logo-container {
        width: 38px;
        height: 38px;
    }
    .brand-logo {
        width: 28px;
        height: 28px;
    }
    .logo-aura {
        width: 32px;
        height: 32px;
    }
    .brand-text h1 {
        font-size: 15px;
        letter-spacing: 1.5px;
    }

    /* Profile — compact */
    .profile-username {
        max-width: 70px;
        font-size: 12px;
    }
    .profile-pill {
        gap: 6px;
        padding: 2px 10px 2px 2px;
    }
    .profile-avatar-wrapper {
        width: 28px;
        height: 28px;
    }
    .profile-avatar-img {
        width: 22px;
        height: 22px;
    }

    /* Profile dropdown — absolute dropdown for mobile */
    .profile-dropdown {
        position: absolute;
        top: calc(100% + 12px);
        bottom: auto;
        left: auto;
        right: -10px;
        width: calc(100vw - 32px);
        max-width: 320px;
        max-height: calc(100vh - 100px);
        border-radius: var(--border-radius-md);
        transform: translateY(-10px);
        z-index: 9000;
    }
    .profile-dropdown.active {
        transform: translateY(0);
    }

    /* Dashboard layout */
    .main-dashboard {
        padding: 72px 10px 72px;
    }
    .blank-page-container {
        gap: 12px;
    }

    /* Sidebar servers — smaller cards */
    .servers-sidebar-header {
        padding: 14px 16px;
    }
    .servers-sidebar-header h3 {
        font-size: 12px;
    }
    .server-item {
        min-width: 160px;
        padding: 8px 12px;
        gap: 10px;
    }
    .server-icon {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
    .server-name {
        font-size: 12px;
    }

    /* Connection panel */
    .minimal-connect-container {
        padding: 14px 12px;
    }
    .minimal-server-header {
        padding: 12px 14px;
        gap: 12px;
    }
    .minimal-server-icon {
        width: 40px;
        height: 40px;
    }
    .minimal-server-name {
        font-size: 15px;
    }
    .minimal-input {
        padding: 12px 14px;
        font-size: 12px;
    }
    .connect-bridge-btn {
        padding: 14px 20px;
        font-size: 13px;
    }
    .minimal-status-badge {
        font-size: 10px;
    }

    /* Voice & Amp controls */
    .voice-ctrl-btn {
        padding: 8px 14px;
        font-size: 11px;
        min-width: 100px;
    }
    .amp-controls {
        padding: 0.7rem 0.8rem;
    }
    .amp-controls-header {
        font-size: 0.65rem;
    }
    .amp-label {
        font-size: 0.68rem;
    }
    .amp-val {
        font-size: 0.68rem;
    }

    /* Footer */
    .glass-footer {
        bottom: 8px;
        width: calc(100% - 20px);
        padding: 8px 12px;
        font-size: 8px;
        letter-spacing: 1px;
    }
    .footer-link {
        padding: 3px 6px;
        font-size: 8px;
    }

    /* Login screen */
    .login-card {
        padding: 24px 16px 22px;
        width: calc(100% - 24px);
        gap: 24px;
    }
    .login-card h2 {
        font-size: 20px;
        letter-spacing: 2.5px;
    }
    .login-card p {
        font-size: 13px;
    }
    .login-logo-container {
        width: 80px;
        height: 80px;
    }
    .login-brand-logo {
        width: 56px;
        height: 56px;
    }
    .login-logo-aura {
        width: 70px;
        height: 70px;
    }
    .discord-login-btn {
        padding: 14px 20px;
        font-size: 13px;
    }

    /* Token card */
    .token-card {
        padding: 24px 16px 20px;
    }
    .token-card-title {
        font-size: 16px;
    }
    .token-card-desc {
        font-size: 12px;
    }
    .token-input {
        padding: 10px 12px;
        font-size: 11px;
    }
    .link-discord-btn {
        padding: 13px 20px;
        font-size: 14px;
    }

    /* Tiers modal — single column */
    .tiers-modal-body {
        grid-template-columns: 1fr !important;
    }
    .tiers-modal-card {
        max-width: 95vw;
        max-height: 85vh;
    }
    .tiers-modal-header {
        padding: 1rem 1.25rem;
    }

    /* TOS modal */
    .tos-modal-overlay {
        padding: 0.75rem;
    }
    .tos-modal-card {
        max-width: 100%;
        max-height: 90vh;
        border-radius: var(--border-radius-md);
    }
    .tos-modal-header {
        padding: 1rem 1.25rem;
    }
    .tos-modal-body {
        padding: 1rem 1.25rem;
        font-size: 0.8rem;
    }
    .tos-modal-footer {
        padding: 0.75rem 1.25rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Soundboard panel inline styles adjustments */
    #soundboard-panel {
        padding: 0.6rem 0.7rem;
    }
}

/* ── Small Phone (≤ 360px) ──────────────────────────────────────────────── */
@media (max-width: 360px) {
    .glass-header {
        top: 6px;
        width: calc(100% - 16px);
        height: 52px;
        padding: 0 10px;
    }
    .brand-text h1 {
        font-size: 13px;
        letter-spacing: 1px;
    }
    .logo-container {
        width: 34px;
        height: 34px;
    }
    .brand-logo {
        width: 24px;
        height: 24px;
    }
    .profile-username {
        display: none; /* Hide username on very small screens, show avatar only */
    }
    .profile-chevron {
        display: none;
    }
    .profile-pill {
        padding: 3px;
        border-radius: 50%;
    }
    .main-dashboard {
        padding: 66px 8px 66px;
    }
    .server-item {
        min-width: 140px;
    }
    .glass-footer {
        bottom: 6px;
        width: calc(100% - 16px);
        font-size: 7px;
    }
    .login-card {
        padding: 20px 14px;
        gap: 20px;
    }
    .login-card h2 {
        font-size: 18px;
    }
}

/* ── Landscape Phone Fix ────────────────────────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
    .glass-header {
        top: 8px;
        height: 48px;
    }
    .main-dashboard {
        padding: 64px 16px 56px;
    }
    .blank-page-container {
        flex-direction: row;
        min-height: calc(100vh - 120px);
    }
    .servers-sidebar {
        width: 200px;
        height: auto;
    }
    .servers-list {
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: calc(100vh - 180px);
    }
    .glass-footer {
        bottom: 6px;
        height: 36px;
    }
    .login-card {
        padding: 20px 24px;
        gap: 16px;
    }
    .login-logo-container {
        width: 60px;
        height: 60px;
    }
    .login-brand-logo {
        width: 40px;
        height: 40px;
    }
}

/* ── Safe Area Insets (Notched Phones) ───────────────────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .glass-footer {
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }
    .glass-header {
        padding-top: env(safe-area-inset-top);
    }
    .profile-dropdown {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ── Touch Device Enhancements ──────────────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
    /* Bigger touch targets for sliders */
    .amp-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
        margin-top: -10px;
    }
    .amp-slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }
    .amp-slider {
        height: 6px;
    }

    /* Remove hover transforms that cause jank on touch */
    .server-item:hover {
        transform: none;
    }
    .connect-bridge-btn:hover:not(:disabled) {
        transform: none;
    }
    .link-discord-btn:hover {
        transform: none;
    }
    .discord-login-btn:hover {
        transform: none;
    }

    /* Bigger click targets */
    .voice-ctrl-btn {
        min-height: 44px;
    }
    .profile-dropdown-item {
        min-height: 44px;
    }
    .connect-bridge-btn {
        min-height: 48px;
    }
}

