:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(22, 22, 35, 0.8);
    --btc-orange: #F7931A;
    --btc-orange-glow: rgba(247, 147, 26, 0.3);
    --gold: #FFD700;
    --gold-glow: rgba(255, 215, 0, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --positive: #00ff88;
    --negative: #ff4466;
    --border-color: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-primary);
    background-image: 
        radial-gradient(ellipse at 20% 20%, rgba(247, 147, 26, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 215, 0, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, #0d0d15 100%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.dashboard-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.btc-side {
    background: linear-gradient(135deg, var(--btc-orange) 0%, #ff9500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: transform 0.2s;
}

.btc-side:hover {
    transform: scale(1.05);
}

.vs-text {
    color: var(--text-secondary);
    font-size: 0.6em;
    font-weight: 400;
}

.gold-side {
    background: linear-gradient(135deg, var(--gold) 0%, #ffaa00 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--positive);
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--positive);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
}

.refresh-timer {
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* Main Dashboard Grid */
.dashboard-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    flex: 1;
}

/* Cards */
.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dashboard-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dashboard-card.expanded {
    grid-column: span 2;
}

.card-header {
    margin-bottom: 1rem;
}

.card-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Spot Price Card */
.spot-price-card {
    grid-column: span 2;
}

.price-comparison {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.price-item {
    text-align: center;
    flex: 1;
    min-width: 140px;
}

.asset-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.price-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.price-item.btc .price-value {
    color: var(--btc-orange);
    text-shadow: 0 0 30px var(--btc-orange-glow);
}

.price-item.gold .price-value {
    color: var(--gold);
    text-shadow: 0 0 30px var(--gold-glow);
}

.price-change {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.price-change.positive { color: var(--positive); }
.price-change.negative { color: var(--negative); }

.sparkline {
    display: block;
    margin: 0 auto;
}

/* Market Cap Card */
.market-cap-card.hero {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.2);
}

.market-cap-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cap-values {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.cap-item {
    text-align: center;
    flex: 1;
    min-width: 140px;
}

.cap-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.cap-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 700;
}

.cap-item.btc .cap-value { color: var(--btc-orange); }
.cap-item.gold .cap-value { color: var(--gold); }

.progress-section {
    text-align: center;
}

.progress-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.progress-bar-container {
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--btc-orange) 0%, var(--gold) 100%);
    border-radius: 12px;
    transition: width 1s ease;
    position: relative;
}

.progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Volatility Card */
.volatility-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.gauges {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.gauge-container {
    text-align: center;
}

.gauge-track {
    width: 100px;
    height: 50px;
    position: relative;
    overflow: hidden;
}

.gauge-fill {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: absolute;
    top: 0;
}

.gauge-center {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 35px;
    background: var(--bg-secondary);
    border-radius: 70px 70px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
}

.gauge-label {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.volatility-ratio {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.ratio-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ratio-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--btc-orange);
}

/* Volume Card */
.volume-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.volume-bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.volume-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.volume-value.btc { color: var(--btc-orange); }
.volume-value.gold { color: var(--gold); }

.volume-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.volume-bar.btc .volume-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--btc-orange), rgba(247, 147, 26, 0.6));
    border-radius: 6px;
    transition: width 0.5s ease;
}

.volume-bar.gold .volume-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), rgba(255, 215, 0, 0.6));
    border-radius: 6px;
}

/* Futures Card */
.futures-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.futures-bars {
    display: flex;
    gap: 3rem;
    align-items: flex-end;
    height: 120px;
}

.futures-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.futures-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.futures-bar {
    width: 50px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.futures-bar.btc .futures-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--btc-orange), rgba(247, 147, 26, 0.5));
    border-radius: 8px 8px 0 0;
    transition: height 0.5s ease;
}

.futures-bar.gold .futures-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--gold), rgba(255, 215, 0, 0.5));
    border-radius: 8px 8px 0 0;
}

.futures-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
}

.futures-ratio {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

/* Summary Panel */
.summary-panel {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(20px);
}

.summary-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.stat-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    text-align: center;
}

.stat-item.quip {
    font-style: italic;
    color: var(--gold);
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.vibe-button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--btc-orange) 0%, var(--gold) 100%);
    border: none;
    border-radius: 8px;
    color: #000;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.vibe-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px var(--btc-orange-glow);
}

.sound-toggle {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.sound-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.sound-toggle.active {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--positive);
}

/* Vibe Toast */
.vibe-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1.5rem 2.5rem;
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.95) 0%, rgba(255, 215, 0, 0.95) 100%);
    border-radius: 16px;
    color: #000;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 1000;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s;
    box-shadow: 0 8px 40px rgba(247, 147, 26, 0.5);
}

@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    to { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* Laser Eyes */
.laser-eyes-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.laser-beam {
    position: absolute;
    top: 20%;
    width: 4px;
    height: 80%;
    background: linear-gradient(180deg, var(--btc-orange), transparent);
    animation: laser 0.5s ease-out infinite;
    box-shadow: 0 0 20px var(--btc-orange), 0 0 40px var(--btc-orange);
}

.laser-beam.left { left: 35%; }
.laser-beam.right { left: 65%; }

@keyframes laser {
    0% { opacity: 1; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
    100% { opacity: 0; transform: scaleY(1); }
}

/* Footer */
.dashboard-footer {
    margin-top: auto;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.berrry-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.berrry-link:hover {
    color: var(--btc-orange);
}

.footer-disclaimer {
    font-size: 0.7rem;
    color: var(--text-secondary);
    max-width: 500px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-main {
        grid-template-columns: 1fr;
    }
    
    .spot-price-card,
    .market-cap-card.hero,
    .dashboard-card.expanded {
        grid-column: span 1;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-status {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .price-comparison,
    .cap-values {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .gauges {
        gap: 1.5rem;
    }
    
    .futures-bars {
        gap: 2rem;
    }
    
    .summary-stats {
        flex-direction: column;
    }
    
    .vibe-toast {
        font-size: 1.2rem;
        padding: 1rem 1.5rem;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: 0.75rem;
    }
    
    .dashboard-card {
        padding: 1rem;
    }
    
    .header-title {
        flex-wrap: wrap;
        justify-content: center;
    }
}