/* Premium CSS for Bunch Speed Bitcoin Tracker */
/* Elite Trading Terminal Design */

/* Color Variables */
:root {
    --bitcoin: #F7931A;
    --bitcoin-dark: #E6820A;
    --gold: #FFD700;
    --gold-dark: #DAB700;
    --matte-black: #1A1A1A;
    --gunmetal: #2C3539;
    --slate-dark: #1E293B;
    --terminal-green: #00FF88;
    --terminal-red: #FF4757;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Premium Transitions */
* {
    transition: all 0.3s ease;
}

/* Typography Hierarchy */
.font-display {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.font-numeric {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

/* ===== DYNAMIC BITCOIN COCKPIT ===== */
:root {
    --cockpit-height: 120px;
}

.bitcoin-cockpit {
    background: linear-gradient(135deg, 
        var(--matte-black) 0%, 
        var(--gunmetal) 30%,
        #2a2a2a 70%,
        var(--matte-black) 100%);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 6px 30px rgba(247, 147, 26, 0.4);
    position: relative;
    overflow: hidden;
    height: var(--cockpit-height);
    max-height: var(--cockpit-height);
}

@media (max-width: 768px) {
    :root {
        --cockpit-height: 100px;
    }
    .bitcoin-cockpit {
        height: var(--cockpit-height);
        max-height: var(--cockpit-height);
    }
}

.bitcoin-cockpit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(247, 147, 26, 0.1), 
        transparent);
    animation: scanner 3s infinite;
}

@keyframes scanner {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Cockpit Main Display */
.cockpit-main-display {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

@media (max-width: 768px) {
    .cockpit-main-display {
        padding: 0.25rem 0;
        gap: 0.25rem;
    }
}

@media (min-width: 768px) {
    .cockpit-main-display {
        grid-template-columns: 2fr 3fr 1fr;
        align-items: center;
        padding: 1rem 0;
    }
}

/* Price Command Center */
.price-command-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.price-display-hub {
    background: rgba(247, 147, 26, 0.1);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.price-display-hub.flash-up {
    background: rgba(0, 255, 136, 0.3);
    border-color: var(--terminal-green);
    animation: price-flash-up 0.5s ease-out;
}

.price-display-hub.flash-down {
    background: rgba(255, 71, 87, 0.3);
    border-color: var(--terminal-red);
    animation: price-flash-down 0.5s ease-out;
}

@keyframes price-flash-up {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes price-flash-down {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

/* Live Micro Chart */
.live-micro-chart {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    position: relative;
}

#live-micro-chart {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.trend-indicator {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.trend-indicator.bullish { color: var(--terminal-green); }
.trend-indicator.bearish { color: var(--terminal-red); }
.trend-indicator.neutral { color: var(--gold); }

/* Movement Flash */
.movement-flash {
    position: relative;
}

.flash-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.flash-dot.flash-green {
    background: var(--terminal-green);
    opacity: 1;
    animation: pulse-green 1s ease-out;
}

.flash-dot.flash-red {
    background: var(--terminal-red);
    opacity: 1;
    animation: pulse-red 1s ease-out;
}

@keyframes pulse-green {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

/* Timeframe Grid */
.timeframe-grid {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.timeframe-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    min-width: 50px;
}

.timeframe-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.timeframe-value {
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
}

/* Network Stats Grid */
.network-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    justify-items: center;
}

@media (min-width: 768px) {
    .network-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .network-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-pod {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(247, 147, 26, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    min-width: 120px;
    transition: all 0.3s ease;
}

.stat-pod:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 1rem;
}

.stat-data {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    color: white;
}

/* Simplified Cockpit Controls */
.cockpit-btn-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(247, 147, 26, 0.1);
    border: 1px solid rgba(247, 147, 26, 0.3);
    border-radius: 8px;
    color: var(--gold);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cockpit-btn-mini:hover {
    background: rgba(247, 147, 26, 0.2);
    border-color: var(--gold);
    transform: scale(1.1);
}

.cockpit-btn-mini.active {
    background: var(--gold);
    color: var(--matte-black);
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 40px;
}

.stat-mini span:first-child {
    font-size: 0.6rem;
    line-height: 1;
    margin-bottom: 2px;
}

.stat-mini span:last-child {
    font-size: 0.7rem;
    line-height: 1;
}

.alert-count, .compare-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--terminal-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    animation: count-bounce 0.3s ease-out;
}

@keyframes count-bounce {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Flash Alert System */
#flash-alert.flash-active {
    opacity: 0.3;
    animation: flash-alert 0.6s ease-in-out;
}

@keyframes flash-alert {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.5; }
}

/* ===== PRO MODE TOGGLE SYSTEM ===== */
.pro-mode-toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(247, 147, 26, 0.05), rgba(0, 0, 0, 0.05));
    border: 2px solid rgba(247, 147, 26, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    max-width: 400px;
}

.pro-mode-labels {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.mode-label {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    transition: all 0.3s ease;
    position: relative;
}

.mode-label.active {
    color: var(--bitcoin);
    font-size: 1.1rem;
}

.mode-label.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bitcoin);
    border-radius: 1px;
}

.pro-toggle-switch {
    position: relative;
    width: 80px;
    height: 40px;
    background: linear-gradient(145deg, #333, #1a1a1a);
    border: 2px solid var(--gold);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: hidden;
}

.pro-toggle-switch:hover {
    box-shadow: 0 0 20px rgba(247, 147, 26, 0.4);
    transform: scale(1.05);
}

.pro-toggle-switch.pro-mode {
    background: linear-gradient(145deg, var(--bitcoin), var(--bitcoin-dark));
    border-color: var(--terminal-green);
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 30px;
    height: 30px;
    background: linear-gradient(145deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pro-toggle-switch.pro-mode .toggle-slider {
    left: 43px;
    background: linear-gradient(145deg, var(--terminal-green), #00cc6a);
}

.toggle-icons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-between;
    width: 60px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.toggle-icons i:first-child {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.toggle-icons i:last-child {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.pro-toggle-switch.pro-mode .toggle-icons i:first-child {
    opacity: 0.3;
}

.pro-toggle-switch.pro-mode .toggle-icons i:last-child {
    opacity: 1;
}

.pro-mode-description {
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.mode-description {
    font-size: 0.875rem;
    color: #6b7280;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    position: absolute;
}

.mode-description.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

/* Risk Heatmap for Loans Pro Mode */
.risk-heatmap {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.05), rgba(255, 71, 87, 0.05));
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.risk-heatmap-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--terminal-red);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.risk-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.risk-cell {
    text-align: center;
    padding: 0.5rem 0.25rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.risk-cell.safe {
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid var(--terminal-green);
    color: var(--terminal-green);
}

.risk-cell.moderate {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold);
}

.risk-cell.high {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid var(--terminal-red);
    color: var(--terminal-red);
}

.risk-cell:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Liquidity Depth for Exchanges Pro Mode */
.liquidity-depth {
    background: linear-gradient(145deg, rgba(0, 255, 136, 0.05), rgba(0, 0, 0, 0.05));
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.liquidity-depth-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--terminal-green);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.depth-bars {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: 60px;
    gap: 2px;
}

.depth-bar {
    flex: 1;
    background: linear-gradient(to top, var(--terminal-green), rgba(0, 255, 136, 0.3));
    border-radius: 2px 2px 0 0;
    min-height: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.depth-bar:hover {
    background: linear-gradient(to top, var(--bitcoin), rgba(247, 147, 26, 0.3));
    transform: scaleY(1.1);
}

.depth-bar::after {
    content: attr(data-value);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: #6b7280;
}

/* ===== BUNCH SPEED LIVE SECTION ===== */
#bunch-speed-live {
    background: linear-gradient(135deg, 
        var(--matte-black) 0%, 
        var(--gunmetal) 30%,
        #1f2937 70%,
        var(--matte-black) 100%);
}

.speed-lines-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(247, 147, 26, 0.03) 20px,
        rgba(247, 147, 26, 0.03) 40px
    );
    animation: speed-lines-move 10s linear infinite;
}

@keyframes speed-lines-move {
    0% { transform: translateX(-40px); }
    100% { transform: translateX(0); }
}

.pulse-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(247, 147, 26, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(0, 255, 136, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: pulse-grid 4s ease-in-out infinite;
}

@keyframes pulse-grid {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--terminal-green);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--terminal-green);
    border-radius: 50%;
    animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
    0% { 
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }
    70% { 
        opacity: 0.7;
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

/* Live Commentary Feed */
.live-commentary-feed {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(247, 147, 26, 0.2);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.feed-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(247, 147, 26, 0.2);
}

.feed-timestamp {
    display: flex;
    align-items: center;
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 600;
}

.commentary-stream {
    max-height: 500px;
    overflow-y: auto;
    space-y: 2rem;
}

.commentary-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(247, 147, 26, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.commentary-item:hover {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.commentary-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.champion-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    color: var(--matte-black);
    font-size: 1.2rem;
}

.commentary-info strong {
    color: var(--gold);
    font-size: 1rem;
}

.commentary-time {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.commentary-content p {
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.commentary-metrics {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.metric {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.commentary-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    background: rgba(247, 147, 26, 0.2);
    color: var(--bitcoin);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* BTC Speed Index Widget */
.speed-index-widget {
    background: linear-gradient(145deg, 
        rgba(247, 147, 26, 0.1), 
        rgba(0, 0, 0, 0.3));
    border: 2px solid var(--bitcoin);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.widget-header h3 {
    margin-bottom: 0.5rem;
}

.index-subtitle {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 2rem;
}

.speed-index-display {
    space-y: 1.5rem;
}

.index-score {
    margin-bottom: 1.5rem;
}

.score-number {
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    background: linear-gradient(45deg, var(--bitcoin), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
}

.score-label {
    font-size: 0.875rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.index-gauge {
    margin: 2rem 0;
}

.gauge-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--terminal-green) 0%, 
        var(--gold) 50%, 
        var(--terminal-red) 100%);
    border-radius: 4px;
    transition: width 1s ease;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
    font-weight: 600;
}

.status-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.status-description {
    font-size: 0.875rem;
    color: #d1d5db;
    line-height: 1.5;
}

/* Weekly Picks Widget */
.weekly-picks-widget {
    background: linear-gradient(145deg, 
        rgba(0, 255, 136, 0.1), 
        rgba(0, 0, 0, 0.3));
    border: 2px solid var(--terminal-green);
    border-radius: 20px;
    padding: 2rem;
}

.picks-date {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.picks-list {
    space-y: 1rem;
}

.pick-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.pick-item:hover {
    border-color: var(--terminal-green);
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.pick-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 50px;
}

.pick-type span {
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
    font-weight: 600;
}

.pick-details {
    flex: 1;
}

.pick-details strong {
    display: block;
    color: white;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.pick-details p {
    font-size: 0.8rem;
    color: #d1d5db;
    margin: 0;
}

.pick-score {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Rajdhani', sans-serif;
    color: var(--gold);
    text-align: center;
    min-width: 40px;
}

/* ===== CHAMPION'S VISUAL ENERGY ===== */
.champion-divider {
    background: linear-gradient(45deg, 
        transparent 40%, 
        rgba(247, 147, 26, 0.1) 45%, 
        rgba(247, 147, 26, 0.2) 50%, 
        rgba(247, 147, 26, 0.1) 55%, 
        transparent 60%);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transform: skewY(-1deg);
    margin: 2rem 0;
}

.champion-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.3), 
        transparent);
    animation: speed-flash 3s infinite;
}

@keyframes speed-flash {
    0% { left: -100%; }
    100% { left: 100%; }
}

.divider-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 1;
}

.champion-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--gold), 
        var(--bitcoin), 
        var(--gold), 
        transparent);
    position: relative;
    overflow: hidden;
}

.champion-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        white, 
        transparent);
    animation: line-shimmer 2s infinite;
}

@keyframes line-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.lightning-bolt {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, 
        var(--bitcoin), 
        var(--bitcoin-dark));
    border: 3px solid var(--gold);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    animation: lightning-pulse 1.5s infinite;
    box-shadow: 0 0 20px rgba(247, 147, 26, 0.5);
}

@keyframes lightning-pulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 20px rgba(247, 147, 26, 0.5);
    }
    50% { 
        transform: scale(1.1) rotate(15deg);
        box-shadow: 0 0 30px rgba(247, 147, 26, 0.8);
    }
}

.speed-pulse {
    width: 20px;
    height: 20px;
    background: var(--terminal-green);
    border-radius: 50%;
    animation: speed-pulse-energy 1s infinite alternate;
}

@keyframes speed-pulse-energy {
    0% { 
        transform: scale(0.8);
        opacity: 0.6;
        box-shadow: 0 0 10px var(--terminal-green);
    }
    100% { 
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 20px var(--terminal-green);
    }
}

/* Enhanced Price Change Animations */
.price-up {
    animation: champion-price-up 0.8s ease-out;
}

.price-down {
    animation: champion-price-down 0.8s ease-out;
}

@keyframes champion-price-up {
    0% { 
        color: white;
        transform: scale(1);
    }
    30% { 
        color: var(--terminal-green);
        transform: scale(1.05);
        text-shadow: 0 0 10px var(--terminal-green);
    }
    100% { 
        color: white;
        transform: scale(1);
        text-shadow: none;
    }
}

@keyframes champion-price-down {
    0% { 
        color: white;
        transform: scale(1);
    }
    30% { 
        color: var(--terminal-red);
        transform: scale(0.98);
        text-shadow: 0 0 10px var(--terminal-red);
    }
    100% { 
        color: white;
        transform: scale(1);
        text-shadow: none;
    }
}

/* Haptic Feedback Visual Effects */
.haptic-pulse {
    animation: haptic-feedback 0.2s ease-in-out;
}

@keyframes haptic-feedback {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

/* Champion's Success Animations */
.success-message {
    background: linear-gradient(135deg, 
        var(--terminal-green), 
        rgba(0, 255, 136, 0.8));
    color: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    border: 2px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
    animation: success-champion-entry 0.5s ease-out;
}

@keyframes success-champion-entry {
    0% {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Error Message with Champion Style */
.error-message {
    background: linear-gradient(135deg, 
        var(--terminal-red), 
        rgba(255, 71, 87, 0.8));
    color: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    border: 2px solid var(--gold);
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
    animation: error-champion-entry 0.5s ease-out;
}

@keyframes error-champion-entry {
    0% {
        transform: translateX(100%) rotate(5deg);
        opacity: 0;
    }
    100% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
}

.speedometer-icon {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 5px var(--bitcoin));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px var(--bitcoin));
    }
}

/* Mini Chart Container */
.mini-chart-container {
    width: 50px;
    height: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mini-trend-chart {
    width: 40px;
    height: 20px;
}

/* Bitcoin Metrics Ticker Bar */
.bitcoin-metrics-ticker {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 8px 0;
    margin: 8px 0;
}

.ticker-scroll-container {
    overflow: hidden;
    width: 100%;
}

.ticker-scroll-content {
    display: flex;
    animation: ticker-scroll 60s linear infinite;
    white-space: nowrap;
}

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ticker-metric {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0 20px;
    min-width: 80px;
}

.metric-label {
    font-size: 0.6rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
}

.metric-value {
    font-size: 0.75rem;
    color: white;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
}

/* Enhanced Mobile Buttons */
.mobile-btn-compare {
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid var(--terminal-green);
    color: var(--terminal-green);
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-btn-compare:hover,
.mobile-btn-compare:active {
    background: rgba(0, 255, 136, 0.3);
    transform: scale(0.95);
}

.ticker-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.ticker-data-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--gold);
    border-radius: 0.25rem;
}

.data-label {
    font-size: 0.625rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.data-value {
    font-size: 0.875rem;
    color: white;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
}

/* ===== BUNCH'S ELITE PICKS SECTION ===== */
.bunch-pick-card {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.9), 
        rgba(255, 255, 255, 0.7));
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.dark .bunch-pick-card {
    background: linear-gradient(145deg, 
        rgba(26, 26, 26, 0.95), 
        rgba(44, 53, 57, 0.9));
    border-color: var(--gold);
}

.bunch-pick-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(247, 147, 26, 0.3);
    border-color: var(--bitcoin);
}

.bunch-pick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bitcoin), var(--gold), var(--terminal-green));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bunch-pick-card:hover::before {
    opacity: 1;
}

.elite-badge {
    background: linear-gradient(45deg, var(--gold), var(--gold-dark));
    color: var(--matte-black);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.pick-platform {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(247, 147, 26, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.platform-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(247, 147, 26, 0.2);
    border-radius: 50%;
    border: 2px solid var(--bitcoin);
}

.platform-info h4 {
    margin-bottom: 0.25rem;
}

.pick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(247, 147, 26, 0.2);
}

.dark .stat-item {
    background: rgba(255, 255, 255, 0.05);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.dark .stat-label {
    color: #ccc;
}

.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 900;
    font-family: 'Rajdhani', sans-serif;
}

.pick-reason {
    padding: 1.5rem;
    background: rgba(247, 147, 26, 0.05);
    border-left: 4px solid var(--bitcoin);
    border-radius: 0 8px 8px 0;
}

.pick-reason p {
    margin: 0;
    line-height: 1.6;
}

/* ===== ENHANCED STICKY NAVIGATION ===== */
#main-header {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark #main-header {
    background: rgba(30, 41, 59, 0.95);
}

#main-header.scrolled {
    top: 0;
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#main-header.scrolled .brand-icon-container i {
    font-size: 2rem;
}

#main-header.scrolled h1 {
    font-size: 1.5rem;
}

.nav-link {
    position: relative;
    padding: 0.75rem 1rem;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    background: transparent;
}

.dark .nav-link {
    color: #9ca3af;
}

.nav-link:hover,
.nav-link.active {
    color: var(--bitcoin);
    background: rgba(247, 147, 26, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bitcoin);
    border-radius: 1px;
}

/* Quick Action Buttons */
.quick-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(247, 147, 26, 0.1);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--bitcoin);
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-action-btn:hover {
    background: rgba(247, 147, 26, 0.2);
    border-color: var(--bitcoin);
    transform: scale(1.05);
}

.quick-action-btn.active {
    background: var(--bitcoin);
    color: white;
}

.compare-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--terminal-red);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.compare-count:not(.hidden) {
    display: block;
}

/* Collapsible Sections */
.collapsible-section {
    border: 1px solid rgba(247, 147, 26, 0.2);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.dark .collapsible-section {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(247, 147, 26, 0.3);
}

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: between;
    padding: 1rem 1.5rem;
    cursor: pointer;
    background: rgba(247, 147, 26, 0.05);
    transition: all 0.3s ease;
}

.collapsible-header:hover {
    background: rgba(247, 147, 26, 0.1);
}

.collapsible-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #374151;
    flex: 1;
}

.dark .collapsible-title {
    color: #f3f4f6;
}

.collapsible-toggle {
    font-size: 1.25rem;
    color: var(--bitcoin);
    transition: transform 0.3s ease;
}

.collapsible-section.collapsed .collapsible-toggle {
    transform: rotate(180deg);
}

.collapsible-content {
    padding: 0 1.5rem 1.5rem;
    max-height: 1000px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.collapsible-section.collapsed .collapsible-content {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Compare Panel */
.compare-panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--matte-black), var(--gunmetal));
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    border-top: 3px solid var(--gold);
    transition: all 0.4s ease;
    z-index: 60;
    max-height: 50vh;
    overflow-y: auto;
}

.compare-panel.active {
    bottom: 0;
}

.compare-panel-header {
    display: flex;
    align-items: center;
    justify-content: between;
    margin-bottom: 1rem;
}

.compare-panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
}

.compare-clear-btn {
    background: var(--terminal-red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.compare-clear-btn:hover {
    background: #e63946;
    transform: scale(1.05);
}

.compare-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.compare-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(247, 147, 26, 0.3);
}

.compare-item-header {
    display: flex;
    align-items: center;
    justify-content: between;
    margin-bottom: 0.75rem;
}

.compare-item-name {
    font-weight: 700;
    color: white;
}

.compare-remove-btn {
    background: var(--terminal-red);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
}

.compare-item-details {
    font-size: 0.875rem;
    color: #d1d5db;
}

/* Premium Buttons */
.premium-btn-secondary {
    background: linear-gradient(135deg, transparent, rgba(255, 215, 0, 0.1));
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.premium-btn-secondary:hover {
    background: var(--gold);
    color: var(--matte-black);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.premium-btn-icon {
    background: rgba(247, 147, 26, 0.2);
    border: 1px solid var(--bitcoin);
    color: var(--bitcoin);
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.premium-btn-icon:hover {
    background: var(--bitcoin);
    color: white;
    box-shadow: 0 0 15px rgba(247, 147, 26, 0.6);
}

/* ===== NAVIGATION STYLING ===== */
.nav-link {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: #64748b;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    letter-spacing: 0.05em;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--bitcoin);
    background: rgba(247, 147, 26, 0.1);
    transform: translateY(-1px);
}

.dark .nav-link {
    color: #94a3b8;
}

.dark .nav-link:hover {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
}

/* Brand Icon Animation */
.brand-icon-container {
    position: relative;
}

.brand-icon-container::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--bitcoin), var(--gold), var(--bitcoin));
    border-radius: 50%;
    opacity: 0;
    animation: brand-glow 3s infinite;
}

@keyframes brand-glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}

/* ===== PREMIUM HERO SECTION ===== */
.premium-hero-section {
    background: linear-gradient(135deg, 
        var(--matte-black) 0%, 
        var(--gunmetal) 25%,
        var(--slate-dark) 50%,
        var(--gunmetal) 75%,
        var(--matte-black) 100%);
    position: relative;
}

.grid-pattern {
    background-image: 
        linear-gradient(rgba(247, 147, 26, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 147, 26, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

/* ===== SPEEDOMETER WIDGET ===== */
.speedometer-container {
    perspective: 1000px;
}

.speedometer-widget {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%,
        rgba(44, 53, 57, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid var(--gold);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 215, 0, 0.2);
}

.speedometer-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gold);
}

.price-display-main {
    text-align: center;
    position: relative;
    z-index: 10;
}

.speed-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.speed-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--bitcoin), 
        transparent);
    animation: speed-dash 2s linear infinite;
    opacity: 0.6;
}

.speed-line:nth-child(1) {
    top: 30%;
    animation-delay: 0s;
}

.speed-line:nth-child(2) {
    top: 50%;
    animation-delay: 0.7s;
}

.speed-line:nth-child(3) {
    top: 70%;
    animation-delay: 1.4s;
}

@keyframes speed-dash {
    0% {
        left: -100%;
        width: 0%;
    }
    50% {
        width: 100%;
    }
    100% {
        left: 100%;
        width: 0%;
    }
}

/* ===== MARKET DATA TERMINAL ===== */
.market-data-terminal {
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.95) 0%,
        rgba(26, 26, 26, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--bitcoin);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(247, 147, 26, 0.2);
}

.terminal-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bitcoin);
}

.terminal-data-grid {
    display: grid;
    gap: 1rem;
}

.data-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: rgba(247, 147, 26, 0.1);
    border: 1px solid rgba(247, 147, 26, 0.3);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.data-cell:hover {
    background: rgba(247, 147, 26, 0.2);
    border-color: var(--bitcoin);
    transform: translateY(-2px);
}

.data-cell .data-label {
    font-size: 0.625rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.data-cell .data-value {
    font-size: 1rem;
    color: white;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
}

/* ===== PRICE ANIMATIONS ===== */
.price-up {
    color: var(--terminal-green) !important;
    animation: flash-green 0.5s ease-in-out;
}

.price-down {
    color: var(--terminal-red) !important;
    animation: flash-red 0.5s ease-in-out;
}

@keyframes flash-green {
    0% { 
        background-color: transparent; 
        box-shadow: none;
    }
    50% { 
        background-color: rgba(0, 255, 136, 0.2);
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    }
    100% { 
        background-color: transparent;
        box-shadow: none;
    }
}

@keyframes flash-red {
    0% { 
        background-color: transparent;
        box-shadow: none;
    }
    50% { 
        background-color: rgba(255, 71, 87, 0.2);
        box-shadow: 0 0 20px rgba(255, 71, 87, 0.4);
    }
    100% { 
        background-color: transparent;
        box-shadow: none;
    }
}

/* ===== SECTION DIVIDERS ===== */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--gold), 
        var(--bitcoin), 
        var(--gold), 
        transparent);
    margin: 2rem 0;
}

/* ===== EDUCATION CARDS ===== */
.education-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(249, 250, 251, 0.95) 100%);
}

.education-card:hover {
    transform: translateY(-8px);
    border-color: var(--bitcoin);
    box-shadow: 0 20px 40px rgba(247, 147, 26, 0.2);
}

.dark .education-card {
    background: linear-gradient(135deg, 
        rgba(55, 65, 81, 0.95) 0%,
        rgba(75, 85, 99, 0.95) 100%);
}

.dark .education-card:hover {
    background: linear-gradient(135deg, 
        rgba(75, 85, 99, 0.95) 0%,
        rgba(107, 114, 128, 0.95) 100%);
    border-color: var(--gold);
}

/* ===== FILTER BUTTONS ===== */
.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--bitcoin);
    background: transparent;
    color: var(--bitcoin);
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.filter-btn:hover {
    background: var(--bitcoin);
    color: white;
    box-shadow: 0 0 20px rgba(247, 147, 26, 0.4);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--bitcoin);
    color: white;
    box-shadow: 0 0 15px rgba(247, 147, 26, 0.6);
}

/* ===== MOBILE-FIRST RESPONSIVE DESIGN ===== */

/* Safe Area Support for iPhones */
.safe-area-padding {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding: 0.5rem max(1rem, env(safe-area-inset-left)) 0.5rem max(1rem, env(safe-area-inset-right));
}

/* Mobile Ticker Styling */
.mobile-ticker-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.5rem;
    align-items: center;
}

.mobile-price-section {
    grid-column: 1 / -1;
    grid-row: 1;
}

.mobile-data-grid {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
}

.mobile-actions {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    gap: 0.5rem;
    justify-self: end;
}

.mobile-data-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 0.25rem;
    min-width: 0;
}

.mobile-data-label {
    font-size: 0.5rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
}

.mobile-data-value {
    font-size: 0.625rem;
    color: white;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 4rem;
}

/* Mobile Action Buttons */
.mobile-btn-alert,
.mobile-btn-theme {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-btn-alert:hover,
.mobile-btn-theme:hover {
    background: var(--gold);
    color: var(--matte-black);
    transform: scale(1.05);
}

/* Mobile Speedometer Widget */
.mobile-speedometer-widget {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%,
        rgba(44, 53, 57, 0.95) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid var(--gold);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 215, 0, 0.2);
}

.mobile-market-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.mobile-market-card {
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.95) 0%,
        rgba(26, 26, 26, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid var(--bitcoin);
    border-radius: 0.75rem;
    padding: 1rem 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-market-card:active {
    transform: scale(0.98);
    background: rgba(247, 147, 26, 0.1);
}

.mobile-market-label {
    display: block;
    font-size: 0.625rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.mobile-market-value {
    display: block;
    font-size: 0.875rem;
    color: white;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
}

/* Mobile Navigation Improvements */
.nav-link {
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 0.5rem;
    touch-action: manipulation;
}

/* Mobile Touch Improvements */
button, .btn, .nav-link, .education-card, .filter-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(247, 147, 26, 0.3);
}

/* Mobile Optimized Tables */
.mobile-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0.75rem;
    border: 1px solid var(--bitcoin);
}

.mobile-card-view {
    display: block;
}

.provider-card-mobile {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.provider-card-mobile:active {
    transform: scale(0.98);
    box-shadow: 0 8px 12px rgba(247, 147, 26, 0.2);
}

.dark .provider-card-mobile {
    background: var(--slate-dark);
    border-color: var(--bitcoin);
}

/* Mobile Modal Improvements */
.mobile-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: flex-end;
    z-index: 100;
    padding: 0;
}

.mobile-modal-content {
    background: white;
    width: 100%;
    border-radius: 1rem 1rem 0 0;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.dark .mobile-modal-content {
    background: var(--slate-dark);
}

/* Pull to Refresh Indicator */
.pull-indicator {
    text-align: center;
    padding: 1rem;
    color: var(--bitcoin);
    font-weight: 600;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.pull-indicator.active {
    transform: translateY(0);
}

/* Mobile Responsive Breakpoints */
@media (max-width: 640px) {
    /* Extra small phones */
    .mobile-data-item {
        padding: 0.2rem 0.4rem;
    }
    
    .mobile-data-value {
        font-size: 0.55rem;
        max-width: 3rem;
    }
    
    .mobile-market-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .font-display {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 375px) {
    /* iPhone SE and smaller */
    .safe-area-padding {
        padding: 0.25rem 0.75rem;
    }
    
    .mobile-ticker-grid {
        gap: 0.25rem;
    }
    
    .mobile-data-grid {
        gap: 0.25rem;
    }
    
    .mobile-data-item {
        min-width: 2.5rem;
    }
}

@media (min-width: 768px) {
    /* Tablet and up */
    .mobile-ticker-grid {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-price-section {
        flex: 1;
    }
    
    .mobile-data-grid {
        display: flex;
        gap: 1rem;
    }
}

/* PWA Specific Styles */
@media (display-mode: standalone) {
    /* When added to home screen */
    body {
        padding-top: env(safe-area-inset-top);
    }
    
    .premium-ticker {
        padding-top: calc(0.5rem + env(safe-area-inset-top));
    }
}

/* Dark mode mobile optimizations */
.dark .mobile-market-card {
    background: linear-gradient(135deg, 
        rgba(75, 85, 99, 0.95) 0%,
        rgba(55, 65, 81, 0.95) 100%);
}

.dark .mobile-speedometer-widget {
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.95) 0%,
        rgba(26, 26, 26, 0.95) 100%);
}

/* Loading states for mobile */
.mobile-loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== MOBILE LOAN CALCULATOR ===== */
.mobile-calculator-layout {
    width: 100%;
}

.mobile-input-section {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%,
        rgba(44, 53, 57, 0.95) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid var(--gold);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.mobile-results-section {
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.95) 0%,
        rgba(26, 26, 26, 0.95) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid var(--bitcoin);
    border-radius: 1rem;
    padding: 1.5rem;
}

.mobile-input-group {
    margin-bottom: 1.5rem;
}

.mobile-slider-group {
    margin-bottom: 1.5rem;
}

.mobile-input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: white;
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    outline: none;
}

.mobile-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: white;
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.mobile-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    margin: 1rem 0;
}

.mobile-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--bitcoin));
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    border: 2px solid white;
}

.mobile-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--bitcoin));
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.mobile-slider-value {
    text-align: center;
    margin-top: 0.5rem;
}

.mobile-slider-value span {
    background: linear-gradient(135deg, var(--gold), var(--bitcoin));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1.125rem;
}

.mobile-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mobile-result-card {
    background: rgba(247, 147, 26, 0.1);
    border: 1px solid rgba(247, 147, 26, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-result-card.highlight {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--gold);
    grid-column: 1 / -1;
}

.mobile-result-card:active {
    transform: scale(0.98);
    background: rgba(247, 147, 26, 0.2);
}

.mobile-result-label {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.mobile-result-value {
    font-size: 1rem;
    color: white;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
}

.mobile-result-card.highlight .mobile-result-value {
    font-size: 1.25rem;
    color: var(--gold);
}

/* ===== MOBILE ANIMATIONS ===== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.active\:scale-98:active {
    transform: scale(0.98);
}

/* ===== MOBILE MODAL IMPROVEMENTS ===== */
@media (max-width: 768px) {
    .fixed.inset-0 {
        align-items: flex-end;
    }
    
    .fixed.inset-0 > div {
        margin: 0;
        border-radius: 1rem 1rem 0 0;
        max-height: 85vh;
        width: 100%;
    }
}

/* ===== iOS SPECIFIC OPTIMIZATIONS ===== */
.ios-device .mobile-input,
.ios-device .mobile-select {
    font-size: 16px; /* Prevent zoom on focus */
}

.ios-device .premium-ticker {
    padding-top: env(safe-area-inset-top, 0);
}

/* ===== MOBILE PERFORMANCE OPTIMIZATIONS ===== */
.mobile-device * {
    -webkit-tap-highlight-color: rgba(247, 147, 26, 0.2);
    -webkit-touch-callout: none;
}

.mobile-device .speedometer-widget,
.mobile-device .market-data-terminal,
.mobile-device .mobile-speedometer-widget {
    will-change: transform;
    transform: translateZ(0);
}

/* ===== HAPTIC FEEDBACK STYLES ===== */
.haptic-feedback:active {
    animation: haptic-pulse 0.1s ease-in-out;
}

@keyframes haptic-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

/* ===== LOADING ANIMATIONS ===== */
@keyframes loading-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.loading {
    animation: loading-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== PREMIUM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--matte-black);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--bitcoin), var(--gold));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--gold), var(--bitcoin));
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #f7931a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e6820a;
}

/* Loading animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Price change animations */
.price-up {
    color: #10b981 !important;
    animation: flash-green 0.5s ease-in-out;
}

.price-down {
    color: #ef4444 !important;
    animation: flash-red 0.5s ease-in-out;
}

@keyframes flash-green {
    0% { background-color: transparent; }
    50% { background-color: rgba(16, 185, 129, 0.2); }
    100% { background-color: transparent; }
}

@keyframes flash-red {
    0% { background-color: transparent; }
    50% { background-color: rgba(239, 68, 68, 0.2); }
    100% { background-color: transparent; }
}

/* Card hover effects */
.exchange-card, .loan-card {
    transition: all 0.3s ease;
}

.exchange-card:hover, .loan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-online {
    background-color: #dcfce7;
    color: #166534;
}

.status-offline {
    background-color: #fef2f2;
    color: #991b1b;
}

.status-maintenance {
    background-color: #fef3c7;
    color: #92400e;
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(135deg, #f7931a 0%, #e6820a 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(247, 147, 26, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #f7931a;
    border: 2px solid #f7931a;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #f7931a;
    color: white;
}

/* Feature icons */
.feature-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #f7931a 0%, #e6820a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Chart container styling */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chart-container {
        height: 300px;
    }
    
    #current-price {
        font-size: 2.5rem !important;
    }
}

/* Exchange comparison table */
.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    min-width: 600px;
}

/* Loan calculator styling */
.loan-calculator {
    background: linear-gradient(135deg, #f7931a 0%, #e6820a 100%);
    border-radius: 1rem;
    padding: 2rem;
    color: white;
}

.loan-calculator input {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 0.5rem;
    padding: 0.75rem;
    width: 100%;
}

.loan-calculator input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Footer styling */
footer a:hover {
    color: #f7931a !important;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Error states */
.error-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* Success states */
.success-message {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* Custom checkbox and radio styling */
.custom-checkbox {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #f7931a;
    border-radius: 0.25rem;
    position: relative;
    cursor: pointer;
}

.custom-checkbox:checked {
    background-color: #f7931a;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
}

/* Tooltip styling */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .bg-gradient-to-br {
        background: #f7931a !important;
        -webkit-print-color-adjust: exact;
    }
}