/* Unified Orange-Dark Theme - Consistent Throughout */

:root {
    /* Single Color System - Orange */
    --primary: #c2410c;
    --primary-light: #ea580c;
    --primary-dark: #9a3412;
    --primary-darker: #7c2d12;
    
    /* Background System */
    --bg-base: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.85);
    --bg-hover: rgba(15, 23, 42, 0.95);
    
    /* Text System */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #cbd5e1;
    
    /* Border System - White Glow */
    --border: rgba(255, 255, 255, 0.15);
    --border-hover: rgba(255, 255, 255, 0.3);
    --border-glow: rgba(255, 255, 255, 0.4);
    
    /* Shadow System - White Glow */
    --shadow: 0 4px 20px rgba(255, 255, 255, 0.05), 0 0 20px rgba(255, 255, 255, 0.03);
    --shadow-hover: 0 8px 30px rgba(255, 255, 255, 0.1), 0 0 30px rgba(255, 255, 255, 0.05);
    --shadow-glow: 0 0 20px rgba(255, 255, 255, 0.2), 0 0 40px rgba(255, 255, 255, 0.1);
}

/* Base styling - more specific, less aggressive */
body {
    background-color: var(--bg-base);
    color: var(--text-primary);
}

/* Text elements - remove global !important */
.text-white, .text-light {
    color: var(--text-primary);
}

.text-muted {
    color: var(--text-muted);
}

.text-secondary {
    color: var(--text-secondary);
}

/* Main content text styling */
main p, main span, main div, main h1, main h2, main h3, main h4, main h5, main h6, main li, main td, main th {
    color: var(--text-primary);
}

/* Exception for specific styled elements */
.text-success {
    color: #10b981 !important;
}

.text-danger {
    color: #ef4444 !important;
}

.text-warning {
    color: #f59e0b !important;
}

.text-info {
    color: #06b6d4 !important;
}

.text-primary {
    color: var(--primary) !important;
}

/* Small text elements */
small, .small {
    color: var(--text-muted);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .nimbus-progress-wrapper {
        height: 80px;
        margin: 1rem 0;
    }
    
    .prediction-buttons .row {
        gap: 0.5rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .chart-wrapper {
        height: 300px !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .prediction-buttons .col-4 {
        flex: 1 1 30%;
    }
    
    .nimbus-progress-wrapper {
        height: 60px;
    }
}

/* Utility classes to replace inline styles */
.telegram-connect-border {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.telegram-oauth-btn {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    color: white;
    border: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-block;
    cursor: pointer;
}

.telegram-oauth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    color: white;
}

.user-photo {
    width: 32px;
    height: 32px;
}

.welcome-text {
    color: rgba(255, 255, 255, 0.9);
}

.prediction-btn-small {
    font-size: 12px;
    padding: 6px;
}

.nimbus-btn {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    border: none;
}

.round-timer-text {
    color: rgba(255, 255, 255, 0.7);
}

.no-round-text {
    color: rgba(255, 255, 255, 0.6);
}

.logout-btn-small {
    font-size: 12px;
    padding: 4px 12px;
}

.price-info-icon {
    font-size: 0.8em;
    cursor: pointer;
    opacity: 0.7;
}

.chart-icon {
    color: #c2410c;
}

/* Nimbus Progress Bar Styles */
.nimbus-progress-card {
    background: linear-gradient(135deg, rgba(194, 65, 12, 0.1) 0%, rgba(139, 69, 19, 0.1) 100%);
    border: 1px solid rgba(194, 65, 12, 0.2);
    border-radius: 12px;
}

.nimbus-progress-card .card-header {
    background: rgba(194, 65, 12, 0.1);
    border-bottom: 1px solid rgba(194, 65, 12, 0.2);
}

.price-movement-container {
    padding: 1rem;
}

.price-labels {
    font-size: 0.9rem;
    color: #cbd5e1 !important;
}

.price-labels span {
    font-weight: 500;
}

.start-price { color: #8b6914 !important; }
.current-price { color: #c2410c !important; font-weight: bold; }
.target-price { color: #cbd5e1 !important; }

.nimbus-progress-wrapper {
    position: relative;
    height: 100px;
    margin: 2rem 0;
}

.nimbus-progress-bar {
    position: relative; /* Enable positioning for child indicators */
    height: 20px; /* Slightly taller to accommodate text */
    background: linear-gradient(90deg, 
        rgba(239, 68, 68, 0.3) 0%,
        rgba(194, 65, 12, 0.2) 50%,
        rgba(34, 197, 94, 0.3) 100%);
    border-radius: 6px;
    top: 40px;
}

.nimbus-progress-bar .progress-bar {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.6), rgba(34, 197, 94, 0.6));
    transition: width 0.8s ease;
    border-radius: 6px;
    transform-origin: 50% 100%; /* Progress bar starts from bottom center (below nimbus) */
    z-index: 1; /* Layer under nimbus zone */
    position: absolute;
    bottom: 0; /* Align to bottom of progress bar container */
    height: 100%; /* Fill entire height with opacity */
}

.nimbus-container {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    transition: all 0.5s ease;
}

/* Dragon faces right when moving right (position > 50%) */
.nimbus-container.facing-right .nimbus-flying {
    transform: scaleX(-1);
    animation: floating-right 3s ease-in-out infinite;
}

.nimbus-container.facing-left .nimbus-flying {
    transform: scaleX(1);
    animation: floating-left 3s ease-in-out infinite;
}

.nimbus-glow {
    /* Remove circular background glow - keep only drop-shadow outline on dragon image */
    display: none;
}

.nimbus-flying {
    width: 120px;  /* Slightly smaller for cleaner look */
    height: 72px;   
    filter: 
        drop-shadow(0 0 8px rgba(255, 215, 0, 0.6))
        drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: floating 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.nimbus-flying.flip-horizontal {
    transform: scaleX(-1);
}

.nimbus-flying.face-left {
    transform: scaleX(-1);
}

.nimbus-flying.face-right {
    transform: scaleX(1);
}

@keyframes floating {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-8px);
    }
}

@keyframes floating-left {
    0%, 100% { 
        transform: translateY(0px) scaleX(-1);
    }
    50% { 
        transform: translateY(-8px) scaleX(-1);
    }
}

@keyframes floating-right {
    0%, 100% { 
        transform: translateY(0px) scaleX(1);
    }
    50% { 
        transform: translateY(-8px) scaleX(1);
    }
}

@keyframes glow-pulse {
    0%, 100% { 
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Label positioning */
.start-label {
    top: -25px;  /* Move higher up */
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: #8b6914 !important;
    font-weight: 500;
    white-space: nowrap;
    z-index: 5;
}

.current-label {
    top: 80px;  /* Move lower down */
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: #c2410c !important;
    font-weight: bold;
    white-space: nowrap;
    z-index: 5;
    transition: left 0.5s ease;
}

/* Large Interactive Higher Zone - Clean design */
.price-change-up {
    position: absolute;
    top: 0;
    right: 0;
    width: 48%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #16a34a;
    font-size: 0.8rem;
    font-weight: 700;
    pointer-events: auto;
    cursor: pointer;
    z-index: 5;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    transition: background-color 0.15s ease, transform 0.15s ease;
    user-select: none;
    background: rgba(34, 197, 94, 0.08);
    border-radius: 0 6px 6px 0;
}

.nimbus-zone-overlay:hover {
    transform: scale(1.01);
    filter: brightness(1.1);
}

.nimbus-zone-overlay {
    transition: transform 0.15s ease, filter 0.15s ease !important;
}

.price-change-down {
    position: absolute;
    top: 0;
    left: 0;
    width: 48%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 700;
    pointer-events: auto;
    cursor: pointer;
    z-index: 5;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    transition: background-color 0.15s ease, transform 0.15s ease;
    user-select: none;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 6px 0 0 6px;
}

.round-timer {
    margin-top: 1rem;
}

.timer-display {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: #c2410c !important;
}

.timer-display i {
    animation: pulse 2s infinite;
}

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

/* Alerts - Force readable text */
.alert {
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    backdrop-filter: blur(15px);
}

.alert * {
    color: var(--text-primary) !important;
}

.alert-info {
    background: rgba(6, 182, 212, 0.15) !important;
    border-color: rgba(6, 182, 212, 0.3) !important;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

/* Badges - Ensure visibility */
.badge {
    color: white !important;
}

.badge.bg-success {
    background-color: #10b981 !important;
    color: white !important;
}

.badge.bg-warning {
    background-color: #f59e0b !important;
    color: white !important;
}

.badge.bg-secondary {
    background-color: #6b7280 !important;
    color: white !important;
    border: none !important;
}

/* Specific styling for points display badge only */
#pointsDisplay.badge {
    font-size: 1.1rem !important;
    padding: 0.5rem 0.8rem !important;
    border-radius: 8px !important;
}

.badge.bg-danger {
    background-color: #ef4444 !important;
    color: white !important;
}

.badge.bg-primary {
    background-color: var(--primary) !important;
    color: white !important;
}

/* List items */
ul li, ol li {
    color: var(--text-primary);
}

/* Links */
a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-light);
}

/* Body - duplicate styling removed, keeping the original */
/* This rule conflicts with the earlier body styling */

/* All Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.card-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    backdrop-filter: blur(15px);
}

.card-body {
    color: var(--text-primary);
}

.card-body .text-muted {
    color: var(--text-muted);
}

.card-body .text-primary {
    color: var(--primary);
}

.card-body .text-success {
    color: #10b981;
}

/* Token Selector Toggle */
.token-selector-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.token-toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 40px;
    border: 1px solid var(--border);
    position: relative;
}

.token-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    font-weight: 600;
    font-size: 0.9rem;
    /* Debug border to ensure clicks are registering */
    border: 2px solid transparent;
}

.token-option:hover {
    border: 2px solid #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

.token-option.active {
    color: var(--text-primary);
    background: var(--primary);
    box-shadow: 0 4px 15px rgba(194, 65, 12, 0.4);
}

.token-option:not(.active) {
    color: var(--text-muted);
}

.token-option:hover:not(.active) {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

.token-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.token-option.active .token-logo {
    box-shadow: 0 4px 12px rgba(194, 65, 12, 0.4);
    transform: scale(1.1);
}

.token-option:hover:not(.active) .token-logo {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.1);
}

.token-name {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.toggle-switch {
    position: absolute;
    left: 4px;
    top: 4px;
    bottom: 4px;
    width: calc(50% - 4px);
    background: var(--primary);
    border-radius: 32px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 10px rgba(194, 65, 12, 0.3);
}

.toggle-switch.sonic {
    transform: translateX(calc(100% + 8px));
}

.token-info h6 {
    color: var(--text-primary);
    font-weight: 700;
}

.token-info small {
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

/* Animation for token switching */
.token-switching {
    opacity: 0.7;
    pointer-events: none;
}

.token-switching .token-toggle-container {
    position: relative;
    overflow: hidden;
}

.token-switching .token-toggle-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: tokenSwitchShimmer 0.6s ease;
}

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

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(25px);
    position: relative;
    z-index: 1;
}

/* Force navbar brand to be white with maximum specificity */
.navbar .navbar-brand,
.navbar-brand,
a.navbar-brand,
.navbar a.navbar-brand {
    color: white !important;
    transition: color 0.3s ease;
}

.navbar .navbar-brand:hover,
.navbar-brand:hover,
a.navbar-brand:hover,
.navbar a.navbar-brand:hover {
    color: white !important;
}

.navbar-nav .nav-link {
    color: white !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: white !important;
}

/* Buttons - All Orange */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
    backdrop-filter: blur(10px);
}

.btn-primary:hover,
.btn-outline-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

/* White Refresh Button */
.btn-outline-light.refresh-btn {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.btn-outline-light.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
    color: white;
}

/* Form Controls */
.form-control {
    background: rgba(15, 23, 42, 0.90);
    border: 1px solid var(--border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.form-control:focus {
    border-color: var(--border-glow);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1), var(--shadow-glow);
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-primary);
}

/* Price Displays - No Border */
.drum-price-container {
    background: rgba(15, 23, 42, 0.90);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow);
}


.dollar-sign {
    color: var(--text-muted) !important;
    font-size: 1rem;
    font-weight: 600;
}

.rolling-drums {
    color: #ffffff !important;
    font-family: 'SF Mono', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.rolling-drums.price-updating {
    color: #e2e8f0 !important;
    transform: scale(1.02);
}

/* Text Colors - Override All */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-success,
.text-warning,
.text-danger {
    color: var(--primary) !important;
}

/* Tables */
.table {
    color: var(--text-primary) !important;
}

.table thead th {
    background: var(--bg-card) !important;
    border-color: var(--border) !important;
    color: var(--text-secondary) !important;
}

.table tbody tr {
    border-color: var(--border) !important;
}

.table tbody tr:hover {
    background: var(--bg-hover) !important;
}

/* Badges */
.badge {
    background: var(--primary) !important;
    color: white !important;
}

.badge.bg-success,
.badge.bg-warning,
.badge.bg-danger {
    background: var(--primary) !important;
}

/* Icons */
.fas,
.fa {
    color: var(--primary) !important;
}

/* Navigation icons should be orange, text should be white */
.navbar .fas,
.navbar .fa {
    color: var(--primary) !important;
}

.navbar-nav .nav-link {
    color: white !important;
}

/* Explorer Icon Buttons - Borderless White Glow */
.explorer-icon-btn {
    background: transparent !important;
    border: none !important;
    padding: 4px 6px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.explorer-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px);
}

.explorer-icon-btn img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.1));
}

.explorer-icon-btn:hover img {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* Links */
a {
    color: var(--primary) !important;
    text-decoration: none;
}

a:hover {
    color: var(--primary-light) !important;
}

/* Footer */
footer {
    background: rgba(15, 23, 42, 0.95) !important;
    border-top: 1px solid var(--border) !important;
    color: var(--text-muted) !important;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
}

footer a {
    color: var(--primary) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-light) !important;
}

/* Connected Status Indicator - Light Green */
.oracle-status-active,
.text-success,
.fa-check,
.fa-check-circle {
    color: #10b981 !important; /* Light green for connected status */
}

/* Specific styling for the connected status text */
.text-success i.fa-check-circle {
    color: #10b981 !important;
}

/* Tick Interval Buttons - Darker Yellow Gold Theme */
.tick-interval-btn,
.btn-outline-secondary {
    border-color: #8b6914 !important;
    color: #b8860b !important;
    background: transparent !important;
    transition: all 0.3s ease;
}

.tick-interval-btn:hover,
.btn-outline-secondary:hover,
.tick-interval-btn.active,
.btn-outline-secondary.active {
    background: #8b6914 !important;
    border-color: #8b6914 !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(139, 105, 20, 0.4);
}

/* Price Cards - Remove Borders */
.price-card {
    border: none !important;
    background: rgba(15, 23, 42, 0.90) !important;
    backdrop-filter: blur(15px);
}

.price-card:hover {
    border: none !important;
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* Oracle Price Components - Remove Outlines */
.oracle-price,
.oracle-container,
.price-display {
    border: none !important;
    outline: none !important;
}

/* Chart Color Scheme - Dark Golden Yellow Ticks, Orange Y-Axis */
.chart-container canvas {
    --chart-tick-color: #8b6914;
    --chart-y-axis-color: var(--primary);
}

/* Chart.js Custom Colors */
.chartjs-render-monitor {
    --tick-color: #8b6914 !important;
    --y-axis-color: var(--primary) !important;
}

/* Chart Container */
.chart-container {
    background: rgba(15, 23, 42, 0.90) !important;
    border: 1px solid var(--border) !important;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(15px);
    border-radius: 12px;
}

/* Status Indicators */
.bg-success,
.bg-warning,
.bg-danger {
    background: var(--primary) !important;
}

/* Improved Text Visibility */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

p, span, div, li, td, th {
    color: var(--text-primary) !important;
}

/* Price text specific styling */
.price-text, .drum-price {
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Aggregated price styling */
.animated-aggregated-price {
    color: #22c55e !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* Explorer icon buttons - remove outlines */
.explorer-icon-btn {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.explorer-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    box-shadow: none !important;
}

/* Loading Animation */
@keyframes priceUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); filter: brightness(1.2); }
    100% { transform: scale(1); }
}

.price-updating {
    animation: priceUpdate 0.6s ease;
}

/* Enhanced Prediction Game Styling */

/* Game Card */
.game-card {
    background: var(--bg-card) !important;
    border: 1px solid rgba(255, 165, 0, 0.3) !important;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(255, 165, 0, 0.1), var(--shadow);
    overflow: hidden;
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #22c55e, #f59e0b, #ef4444, #22c55e);
    background-size: 300% 100%;
    animation: gameCardGlow 3s ease-in-out infinite;
}

@keyframes gameCardGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Round Status Badge */
.round-status-badge .badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-animation {
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Round Progress Container */
.round-progress-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.round-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.round-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(194, 65, 12, 0.5);
}

.round-participants {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Countdown Timer */
.countdown-container {
    text-align: center;
}

.countdown-timer {
    font-family: 'SF Mono', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    color: #22c55e;
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
    transition: all 0.3s ease;
}

.countdown-timer.warning {
    color: #f59e0b;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
    animation: timerWarning 1s ease-in-out infinite;
}

.countdown-timer.danger {
    color: #ef4444;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
    animation: timerDanger 0.5s ease-in-out infinite;
}

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

@keyframes timerDanger {
    0%, 100% { transform: scale(1) rotate(-1deg); }
    50% { transform: scale(1.15) rotate(1deg); }
}

/* Price Display Section */
.price-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-comparison-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
}

.current-price-box, .start-price-box {
    text-align: center;
    flex: 1;
}

.price-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.price-value {
    color: #ffffff;
    font-family: 'SF Mono', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.start-price {
    color: #b8860b;
    text-shadow: 0 0 10px rgba(184, 134, 11, 0.5);
}

.vs-divider {
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 1rem;
}

.price-change-indicator {
    text-align: center;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.change-arrow {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.change-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Enhanced Prediction Interface */
.prediction-question {
    text-align: center;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 2rem;
}

.prediction-buttons-enhanced {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.prediction-option {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    overflow: hidden;
}

.prediction-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.up-option {
    border-color: rgba(34, 197, 94, 0.3);
}

.up-option:hover {
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 12px 48px rgba(34, 197, 94, 0.2);
}

.down-option {
    border-color: rgba(239, 68, 68, 0.3);
}

.down-option:hover {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 12px 48px rgba(239, 68, 68, 0.2);
}

.option-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #b8860b;
}

.option-label {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.option-multiplier {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.option-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.up-option:hover .up-glow {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), transparent);
    opacity: 1;
}

.down-option:hover .down-glow {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), transparent);
    opacity: 1;
}

/* Telegram Integration */
.telegram-integration {
    margin: 2rem 0;
}

.telegram-card {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(0, 122, 255, 0.05));
    border: 1px solid rgba(0, 122, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

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

.telegram-icon {
    color: #007AFF;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.telegram-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
}

.telegram-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.telegram-btn {
    background: linear-gradient(135deg, #007AFF, #0056CC);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
    color: white;
}

/* Game Statistics */
.game-stats {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    color: #b8860b;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
}

.game-tip {
    text-align: center;
    padding: 1rem;
    background: rgba(184, 134, 11, 0.1);
    border-radius: 8px;
    border-left: 4px solid #b8860b;
}

.tip-icon {
    color: #b8860b;
    margin-right: 0.5rem;
}

.tip-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .prediction-buttons-enhanced {
        flex-direction: column;
        gap: 1rem;
    }
    
    .prediction-option {
        min-width: auto;
        padding: 1.5rem 1rem;
    }
    
    .price-comparison-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .vs-divider {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    
    .stats-grid {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Progress Bar */
.game-progress {
    height: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.game-progress .progress-bar {
    background: linear-gradient(90deg, #22c55e 0%, #f59e0b 80%, #ef4444 100%);
    border-radius: 20px;
    transition: width 0.8s ease;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
}

.progress-label {
    color: var(--text-muted);
    font-weight: 500;
}

.warning-label {
    color: #f59e0b;
    font-weight: 600;
}

/* Price Comparison Section */
.price-comparison-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.price-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.price-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s;
}

.price-box:hover::before {
    left: 100%;
}

.price-box.start-price {
    border-color: rgba(59, 130, 246, 0.3);
}

.price-box.current-price {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.price-box.prediction-multiplier {
    border-color: rgba(245, 158, 11, 0.4);
}

.price-value {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'SF Mono', monospace;
    color: #ffffff;
    margin-top: 4px;
}

.price-change {
    margin-top: 8px;
    font-size: 0.9rem;
}

.change-amount {
    margin-left: 4px;
    font-weight: 600;
}

/* Prediction Interface */
.prediction-interface {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.prediction-btn {
    height: 120px;
    width: 100%;
    border: 2px solid transparent;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.prediction-btn i {
    font-size: 1.8rem;
    color: inherit;
}

.prediction-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.prediction-multiplier {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 500;
}

.up-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #22c55e;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.up-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
    border-color: #16a34a;
}

.down-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.down-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
    border-color: #dc2626;
}

.prediction-btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* Prediction Status */
.prediction-status .alert {
    background: rgba(6, 182, 212, 0.15) !important;
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* Mini Leaderboard */
.mini-leaderboard {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    height: fit-content;
}

.leaderboard-list {
    max-height: 200px;
    overflow-y: auto;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.rank {
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.rank:first-child {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
}

.player-points {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'SF Mono', monospace;
}

/* Simplified Dragon Prediction Arena */
.current-price-large {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin: 0 auto;
    max-width: 400px;
}

.current-price-large .price-display {
    color: #22c55e !important;
    font-family: 'SF Mono', monospace;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
    letter-spacing: -1px;
}

.prediction-btn-simple {
    height: 140px;
    border-radius: 20px;
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    font-weight: 600;
}

.prediction-btn-simple:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.prediction-btn-simple:active {
    transform: translateY(-4px) scale(1.02);
}

.prediction-btn-simple.up-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #22c55e;
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3);
}

.prediction-btn-simple.up-btn:hover {
    border-color: #16a34a;
    box-shadow: 0 12px 48px rgba(34, 197, 94, 0.5);
}

.prediction-btn-simple.down-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
}

.prediction-btn-simple.down-btn:hover {
    border-color: #dc2626;
    box-shadow: 0 12px 48px rgba(239, 68, 68, 0.5);
}

.prediction-buttons h5 {
    color: var(--text-primary) !important;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.telegram-prompt {
    max-width: 500px;
    margin: 0 auto;
}

.telegram-prompt .alert {
    background: rgba(6, 182, 212, 0.15) !important;
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
    border-radius: 16px;
    backdrop-filter: blur(15px);
    padding: 24px;
}

.telegram-prompt h6 {
    color: #06b6d4 !important;
    font-weight: 700;
    margin-bottom: 8px;
}

.telegram-prompt p {
    color: var(--text-secondary) !important;
    font-size: 1rem;
}

.telegram-prompt .btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(194, 65, 12, 0.3);
    transition: all 0.3s ease;
}

.telegram-prompt .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(194, 65, 12, 0.4);
}

.game-info-simple {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-top: 24px;
}

.game-info-simple p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Countdown timer in header */
/* Enhanced Dragon Prediction Arena Styles */
.prediction-arena-card {
    background: linear-gradient(135deg, rgba(139, 105, 20, 0.1), rgba(184, 134, 11, 0.05));
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(184, 134, 11, 0.2);
    overflow: hidden;
}

.prediction-header {
    background: linear-gradient(135deg, rgba(139, 105, 20, 0.2), rgba(184, 134, 11, 0.1));
    border-bottom: 1px solid rgba(184, 134, 11, 0.3);
    padding: 1.5rem;
}

.arena-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.5rem;
}

.dragon-icon {
    color: #b8860b;
    margin-right: 0.5rem;
}

.round-badge {
    background: rgba(184, 134, 11, 0.2);
    color: #b8860b;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.countdown-container {
    text-align: right;
}

.countdown-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.countdown-timer {
    color: #22c55e !important;
    font-family: 'SF Mono', monospace;
    font-weight: 700;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    min-width: 80px;
    display: inline-block;
}

.countdown-timer.warning {
    color: #f59e0b !important;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.countdown-timer.danger {
    color: #ef4444 !important;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Round Results */
.round-results-section {
    margin-top: 20px;
}

.results-card {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    animation: resultsAppear 0.8s ease-out;
}

@keyframes resultsAppear {
    0% { opacity: 0; transform: translateY(20px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.final-prices {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.final-prices span {
    font-family: 'SF Mono', monospace;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.result-direction {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.winners-display {
    font-size: 1.1rem;
    font-weight: 600;
    color: #22c55e;
}

/* Game Rules Compact */
.game-rules-compact {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rule-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.rule-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.rule-item i {
    font-size: 1.2rem;
}

.rule-item small {
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

/* Animation Classes */
.price-increase {
    animation: priceIncrease 0.6s ease;
}

.price-decrease {
    animation: priceDecrease 0.6s ease;
}

@keyframes priceIncrease {
    0% { color: #ffffff; }
    50% { color: #22c55e; transform: scale(1.05); }
    100% { color: #ffffff; }
}

@keyframes priceDecrease {
    0% { color: #ffffff; }
    50% { color: #ef4444; transform: scale(1.05); }
    100% { color: #ffffff; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .drum-price-container {
        padding: 12px 16px;
    }
    
    .rolling-drums {
        font-size: 1.2rem;
    }
    
    .prediction-btn {
        height: 100px;
        font-size: 0.9rem;
    }
    
    .prediction-btn i {
        font-size: 1.5rem;
    }
    
    .countdown-timer {
        font-size: 1.5rem;
    }
    
    .price-value {
        font-size: 1rem;
    }
    
    .final-prices {
        flex-direction: column;
        gap: 8px;
    }
    
    .round-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}