:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text: #1e293b;
    --dim: #64748b;
    --green: #059669;
    --blue: #6366f1; /* Vibrant Indigo */
    --gold: #d97706; /* Amber/Gold for BTC feeling */
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: var(--text);
    padding: 40px 0;
    /* Performance: Smooths text rendering on high-DPI displays */
    -webkit-font-smoothing: antialiased;
}

.glass-card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--shadow);
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 20px;
    /* Performance: Forces GPU layer for the backdrop-filter to prevent scroll lag */
    transform: translateZ(0);
    /* Performance: Limits the browser's repaint area to the card itself */
    contain: layout style;
}

.stat-value { font-family: 'JetBrains Mono', monospace; font-weight: 800; }
.stat-label { color: var(--dim); font-size: 0.75rem; text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; }
.timer-display { font-size: 1.8rem; font-weight: 800; color: var(--blue); }
.timer-date { font-size: 0.85rem; color: var(--dim); margin-top: 5px; font-weight: 500; }

.progress { 
    height: 16px; 
    border-radius: 10px; 
    margin-top: 10px; 
    background: rgba(0,0,0,0.05); 
    overflow: hidden; 
    /* Performance: Prevents browser from re-painting the background when the bar moves */
    isolation: isolate;
}

.progress-bar { 
    background: var(--blue); 
    transition: width 1s ease-in-out; 
    font-size: 0.7rem; 
    font-weight: 800; 
    line-height: 16px; 
    text-align: center;
    /* Performance: Notifies browser to pre-optimize the width animation */
    will-change: width;
}

.bg-custom-blue { background-color: #6366f1 !important; }
.bg-custom-gold { background-color: #f59e0b !important; }
.bg-custom-teal { background-color: #14b8a6 !important; }

.math-box { font-size: 0.85rem; color: #475569; line-height: 1.6; }
.price-text { color: var(--green); font-size: 1.5rem; }
.mcap-text { color: var(--gold); font-weight: 800; }

.predict-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-top: 10px;
}
.predict-up { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.predict-down { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }

.chart-container { 
    position: relative; 
    height: 250px; 
    width: 100%; 
    /* Performance: Ensures chart rendering doesn't trigger layout shifts outside its container */
    contain: strict;
}

/* Style for the new table */
.btc-table { font-size: 0.85rem; margin-top: 10px; }
.btc-table th { color: var(--dim); text-transform: uppercase; font-size: 0.7rem; }
.btc-table td { font-family: 'JetBrains Mono', monospace; font-weight: 700; }