/* ============================================
   FROSTBYTE v2.0 - Cyberpunk Crypto Terminal
   ============================================ */

/* ============================================
   THEME VARIABLES
   ============================================ */

:root {
    /* Arctic Theme (Default) */
    --primary: #00ffff;
    --primary-rgb: 0, 255, 255;
    --primary-dim: #00aaaa;
    --secondary: #ff00ff;
    --secondary-rgb: 255, 0, 255;
    --accent: #00ff88;
    --accent-rgb: 0, 255, 136;
    --warning: #ffaa00;
    --danger: #ff4757;
    --success: #00ff88;
    
    --bg-dark: #0a0a12;
    --bg-panel: rgba(13, 17, 23, 0.85);
    --bg-card: rgba(20, 25, 35, 0.9);
    --bg-hover: rgba(0, 255, 255, 0.1);
    
    --text: #e6edf3;
    --text-dim: #7d8590;
    --text-muted: #484f58;
    
    --border: rgba(0, 255, 255, 0.2);
    --border-bright: rgba(0, 255, 255, 0.5);
    
    --glow: 0 0 10px rgba(var(--primary-rgb), 0.5), 0 0 20px rgba(var(--primary-rgb), 0.3), 0 0 40px rgba(var(--primary-rgb), 0.1);
    --glow-soft: 0 0 5px rgba(var(--primary-rgb), 0.3);
    --glow-intense: 0 0 20px rgba(var(--primary-rgb), 0.8), 0 0 40px rgba(var(--primary-rgb), 0.4), 0 0 80px rgba(var(--primary-rgb), 0.2);
    
    --glass-bg: rgba(13, 17, 23, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --sidebar-width: 280px;
    --topbar-height: 60px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Magma Theme */
[data-theme="magma"] {
    --primary: #ff6b35;
    --primary-rgb: 255, 107, 53;
    --primary-dim: #cc5529;
    --secondary: #ff00ff;
    --secondary-rgb: 255, 0, 255;
    --accent: #ffd700;
    --accent-rgb: 255, 215, 0;
    
    --bg-dark: #120a0a;
    --bg-panel: rgba(23, 13, 13, 0.85);
    --bg-card: rgba(35, 20, 20, 0.9);
    --bg-hover: rgba(255, 107, 53, 0.1);
    
    --border: rgba(255, 107, 53, 0.2);
    --border-bright: rgba(255, 107, 53, 0.5);
}

/* Matrix Theme */
[data-theme="matrix"] {
    --primary: #00ff00;
    --primary-rgb: 0, 255, 0;
    --primary-dim: #00aa00;
    --secondary: #00ff00;
    --secondary-rgb: 0, 255, 0;
    --accent: #00ff00;
    --accent-rgb: 0, 255, 0;
    
    --bg-dark: #000a00;
    --bg-panel: rgba(0, 13, 0, 0.85);
    --bg-card: rgba(0, 20, 0, 0.9);
    --bg-hover: rgba(0, 255, 0, 0.1);
    
    --text: #00ff00;
    --text-dim: #00aa00;
    
    --border: rgba(0, 255, 0, 0.2);
    --border-bright: rgba(0, 255, 0, 0.5);
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Fira Code', monospace;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow: hidden;
    line-height: 1.5;
}

/* ============================================
   AMBIENT BACKGROUND
   ============================================ */

.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(var(--primary-rgb), 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(var(--secondary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(var(--accent-rgb), 0.05) 0%, transparent 70%);
    animation: ambientPulse 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes ambientPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Ice Particles Container */
#ice-particles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.ice-particle {
    position: absolute;
    color: rgba(var(--primary-rgb), 0.6);
    font-size: 12px;
    animation: floatParticle linear infinite;
    text-shadow: 0 0 5px rgba(var(--primary-rgb), 0.5);
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   CRT EFFECTS
   ============================================ */

.crt {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.crt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
    z-index: 1000;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 999;
    opacity: 0.5;
}

#matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.12;
    z-index: 1;
}

/* ============================================
   APP CONTAINER
   ============================================ */

.app-container {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    z-index: 10;
}

/* ============================================
   TOP BAR
   ============================================ */

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--topbar-height);
    padding: 0 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 24px;
    animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { text-shadow: var(--glow-soft); transform: scale(1); }
    50% { text-shadow: var(--glow); transform: scale(1.1); }
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    text-shadow: var(--glow-soft);
    letter-spacing: 2px;
}

.version {
    font-size: 10px;
    color: var(--text-dim);
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* Quick Prices */
.top-bar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.quick-prices {
    display: flex;
    gap: 20px;
}

.quick-price {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: var(--transition-fast);
    cursor: pointer;
}

.quick-price:hover {
    border-color: var(--border-bright);
    transform: translateY(-2px);
    box-shadow: var(--glow-soft);
}

.quick-price.loading {
    opacity: 0.5;
}

.coin-symbol {
    font-weight: 600;
    color: var(--primary);
}

.coin-price {
    color: var(--text);
    font-weight: 500;
}

.coin-change {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
}

.coin-change.positive {
    color: var(--success);
    background: rgba(0, 255, 136, 0.1);
}

.coin-change.negative {
    color: var(--danger);
    background: rgba(255, 71, 87, 0.1);
}

/* Top Bar Right */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-switcher {
    display: flex;
    gap: 5px;
    background: var(--bg-card);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.theme-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-fast);
    opacity: 0.5;
}

.theme-btn:hover {
    opacity: 0.8;
    background: var(--bg-hover);
}

.theme-btn.active {
    opacity: 1;
    background: var(--bg-hover);
    box-shadow: inset 0 0 10px rgba(var(--primary-rgb), 0.2);
}

.community-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: pointer;
}

.community-btn:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
    box-shadow: var(--glow-soft);
    transform: translateY(-2px);
}

.community-icon {
    font-size: 14px;
    font-weight: 700;
}

.community-text {
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .community-text {
        display: none;
    }
    
    .community-btn {
        padding: 8px 12px;
    }
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
}

.status-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--success);
    letter-spacing: 1px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    width: var(--sidebar-width);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: var(--transition-normal);
    z-index: 50;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.sidebar-toggle {
    display: none;
    position: absolute;
    top: 10px;
    right: -40px;
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    z-index: 100;
}

.sidebar-toggle span {
    width: 18px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
}

.sidebar-section {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-header h3 {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.refresh-btn {
    width: 24px;
    height: 24px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-fast);
}

.refresh-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: rotate(180deg);
}

.alert-count {
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Watchlist */
.watchlist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.watchlist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.watchlist-item:hover {
    border-color: var(--border-bright);
    transform: translateX(4px);
}

.watchlist-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.watchlist-icon {
    width: 28px;
    height: 28px;
    background: var(--bg-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.watchlist-info {
    display: flex;
    flex-direction: column;
}

.watchlist-symbol {
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
}

.watchlist-name {
    font-size: 10px;
    color: var(--text-dim);
}

.watchlist-item-right {
    text-align: right;
}

.watchlist-price {
    font-weight: 500;
    color: var(--text);
    font-size: 13px;
}

.watchlist-change {
    font-size: 11px;
}

.watchlist-change.positive { color: var(--success); }
.watchlist-change.negative { color: var(--danger); }

/* Mini Chart */
.mini-chart-container {
    height: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
}

#mini-chart {
    width: 100%;
    height: 100%;
}

/* Alerts List */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
}

.no-alerts {
    text-align: center;
    color: var(--text-dim);
    font-size: 12px;
    padding: 20px;
}

.alert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 11px;
}

.alert-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-type {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
}

.alert-type.above {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
}

.alert-type.below {
    background: rgba(255, 71, 87, 0.2);
    color: var(--danger);
}

.alert-delete {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    transition: var(--transition-fast);
}

.alert-delete:hover {
    color: var(--danger);
}

/* Mini Stats */
.penguin-stats-mini {
    margin-top: auto;
}

.mini-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-label {
    font-size: 11px;
    color: var(--text-dim);
}

.stat-value {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

.mini-bar {
    width: 80px;
    height: 6px;
    background: var(--bg-dark);
    border-radius: 3px;
    overflow: hidden;
}

.mini-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* ============================================
   TERMINAL PANEL
   ============================================ */

.terminal-panel {
    flex: 1;
    padding: 20px;
    display: flex;
    overflow: hidden;
}

.terminal {
    flex: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 
        0 0 40px rgba(var(--primary-rgb), 0.1),
        inset 0 0 80px rgba(var(--primary-rgb), 0.02);
    animation: terminalGlow 4s ease-in-out infinite;
}

@keyframes terminalGlow {
    0%, 100% { box-shadow: 0 0 40px rgba(var(--primary-rgb), 0.1), inset 0 0 80px rgba(var(--primary-rgb), 0.02); }
    50% { box-shadow: 0 0 60px rgba(var(--primary-rgb), 0.15), inset 0 0 100px rgba(var(--primary-rgb), 0.03); }
}

/* Terminal Header */
.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.1) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.terminal-buttons span:hover {
    transform: scale(1.2);
}

.btn-close { background: #ff5f56; box-shadow: 0 0 10px rgba(255, 95, 86, 0.5); }
.btn-minimize { background: #ffbd2e; box-shadow: 0 0 10px rgba(255, 189, 46, 0.5); }
.btn-maximize { background: #27ca40; box-shadow: 0 0 10px rgba(39, 202, 64, 0.5); }

.terminal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
}

.terminal-icon {
    font-size: 16px;
}

.terminal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.terminal-time {
    font-size: 12px;
    color: var(--text-dim);
    font-family: 'Fira Code', monospace;
}

/* Terminal Body */
.terminal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
    background: rgba(var(--primary-rgb), 0.05);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* ============================================
   PENGUIN DISPLAY
   ============================================ */

#penguin-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(var(--primary-rgb), 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
}

#penguin-art {
    color: var(--primary);
    font-size: 11px;
    line-height: 1.15;
    text-shadow: var(--glow-soft);
    white-space: pre;
    transition: all 0.3s ease;
    font-family: 'Fira Code', monospace;
}

#penguin-art.walking {
    animation: waddle 0.3s ease-in-out infinite;
}

#penguin-art.dancing {
    animation: dance 0.5s ease-in-out infinite;
}

#penguin-art.hacking {
    color: var(--accent);
    animation: glitch 0.1s infinite;
}

#penguin-art.alerting {
    color: var(--warning);
    animation: alertPulse 0.5s ease-in-out infinite;
}

@keyframes waddle {
    0%, 100% { transform: rotate(-3deg) translateX(-5px); }
    50% { transform: rotate(3deg) translateX(5px); }
}

@keyframes dance {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes glitch {
    0% { transform: translate(0); filter: hue-rotate(0deg); }
    25% { transform: translate(-2px, 2px); filter: hue-rotate(90deg); }
    50% { transform: translate(2px, -2px); filter: hue-rotate(180deg); }
    75% { transform: translate(-2px, -2px); filter: hue-rotate(270deg); }
    100% { transform: translate(0); filter: hue-rotate(360deg); }
}

@keyframes alertPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); filter: brightness(1.2); }
}

/* Speech Bubble */
#penguin-speech {
    position: relative;
    margin-top: 15px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: 12px;
    color: var(--primary);
    font-size: 13px;
    max-width: 400px;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: var(--glow-soft);
}

#penguin-speech.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#penguin-speech::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: var(--border-bright);
}

#penguin-speech::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--bg-card);
}

/* ============================================
   OUTPUT AREA
   ============================================ */

#output {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 10px;
}

.output-line {
    margin-bottom: 8px;
    line-height: 1.6;
    animation: fadeInUp 0.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.output-line.command {
    color: var(--text-dim);
}

.output-line.response {
    color: var(--primary);
    padding-left: 20px;
}

.output-line.error {
    color: var(--danger);
    padding-left: 20px;
}

.output-line.success {
    color: var(--success);
    padding-left: 20px;
}

.output-line.system {
    color: var(--secondary);
    padding-left: 20px;
}

.output-line.crypto {
    color: var(--accent);
    padding-left: 20px;
}

.output-line pre {
    color: inherit;
    white-space: pre;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
}

/* ============================================
   INPUT LINE
   ============================================ */

.input-line {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    gap: 8px;
}

.prompt {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 13px;
}

.prompt-user { color: var(--success); font-weight: 600; }
.prompt-at { color: var(--text-dim); }
.prompt-host { color: var(--primary); font-weight: 600; }
.prompt-colon { color: var(--text-dim); }
.prompt-path { color: var(--accent); }
.prompt-symbol { color: var(--text); margin-left: 2px; }

#command-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    caret-color: var(--primary);
    caret-shape: block;
}

#command-input::placeholder {
    color: var(--text-muted);
}

/* ============================================
   ALERT POPUP
   ============================================ */

.alert-popup {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.alert-popup.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.alert-popup-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 2px solid var(--warning);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.3);
    animation: alertShake 0.5s ease-in-out;
}

@keyframes alertShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.alert-popup-icon {
    font-size: 24px;
    animation: alertIconPulse 0.5s ease-in-out infinite;
}

@keyframes alertIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.alert-popup-text {
    color: var(--text);
    font-weight: 500;
}

/* ============================================
   BOOT SCREEN
   ============================================ */

#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

#boot-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.boot-content {
    text-align: center;
    max-width: 90%;
}

.boot-logo {
    color: var(--primary);
    font-size: 9px;
    line-height: 1.1;
    text-shadow: var(--glow);
    margin-bottom: 20px;
    animation: bootLogoGlow 2s ease-in-out infinite;
}

@keyframes bootLogoGlow {
    0%, 100% { text-shadow: var(--glow); }
    50% { text-shadow: var(--glow-intense); }
}

.boot-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    color: var(--secondary);
    letter-spacing: 4px;
    margin-bottom: 30px;
    opacity: 0.8;
}

.boot-text {
    text-align: left;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.boot-text p {
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.boot-text p.visible {
    opacity: 1;
    transform: translateX(0);
}

.boot-text p.visible:nth-child(2),
.boot-text p.visible:nth-child(3),
.boot-text p.visible:nth-child(4) {
    color: var(--accent);
}

.boot-text p.visible:nth-child(5) {
    color: var(--primary);
    text-shadow: var(--glow-soft);
}

.boot-progress {
    width: 400px;
    max-width: 100%;
    height: 4px;
    background: rgba(var(--primary-rgb), 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 20px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    animation: progressGradient 2s linear infinite;
    box-shadow: var(--glow-soft);
    transition: width 0.3s ease;
}

@keyframes progressGradient {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.boot-stats {
    font-size: 11px;
    color: var(--text-dim);
    animation: bootStatsBlink 1s ease-in-out infinite;
}

@keyframes bootStatsBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: var(--topbar-height);
        bottom: 0;
        transform: translateX(-100%);
        z-index: 200;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .quick-prices {
        display: none;
    }
    
    .terminal-panel {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    :root {
        --topbar-height: 50px;
        --sidebar-width: 260px;
    }
    
    .top-bar {
        padding: 0 12px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .version {
        display: none;
    }
    
    .theme-switcher {
        display: none;
    }
    
    .terminal-panel {
        padding: 8px;
    }
    
    .terminal-body {
        padding: 12px;
    }
    
    #penguin-art {
        font-size: 9px;
    }
    
    .boot-logo {
        font-size: 5px;
    }
    
    .boot-progress {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .connection-status .status-text {
        display: none;
    }
    
    .prompt-user,
    .prompt-at,
    .prompt-host,
    .prompt-colon {
        display: none;
    }
    
    .prompt-path::before {
        content: '>';
        color: var(--accent);
        margin-right: 4px;
    }
    
    #penguin-container {
        padding: 10px;
    }
    
    #penguin-art {
        font-size: 8px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.glitch-text {
    animation: glitchText 0.3s infinite;
}

@keyframes glitchText {
    0% { text-shadow: 2px 0 var(--secondary), -2px 0 var(--accent); }
    25% { text-shadow: -2px 0 var(--secondary), 2px 0 var(--accent); }
    50% { text-shadow: 2px 2px var(--secondary), -2px -2px var(--accent); }
    75% { text-shadow: -2px 2px var(--secondary), 2px -2px var(--accent); }
    100% { text-shadow: 2px 0 var(--secondary), -2px 0 var(--accent); }
}

.snow-particle {
    position: fixed;
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    pointer-events: none;
    z-index: 500;
    animation: snowFall linear forwards;
}

@keyframes snowFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Chart Colors */
.chart-positive { stroke: var(--success); }
.chart-negative { stroke: var(--danger); }

/* Selection */
::selection {
    background: rgba(var(--primary-rgb), 0.3);
    color: var(--text);
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
