

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 30px;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.logo-top {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rune-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
}

.rune-symbol {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b35, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.3));
    animation: runeGlow 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.rune-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    border: 1px solid rgba(139, 69, 19, 0.4);
    border-radius: 50%;
    animation: orbitRotate 6s linear infinite;
}

.rune-orbit::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #d4af37, #b8860b);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
    animation: dotPulse 2s ease-in-out infinite;
}

.rune-orbit::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    background: linear-gradient(45deg, #deb887, #cd853f);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(222, 184, 135, 0.5);
    animation: dotPulse 2s ease-in-out infinite 1s;
}

.logo-text {
    font-weight: bold;
    font-size: 1.8rem;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.Queyn-text {
    background: linear-gradient(45deg, #ff6b35, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-tagline {
    display: none;
}

#currentScenario {
    color: #d4af37;
    text-shadow: 
        0 0 10px #ca74d3c4,
        0 0 15px #281b36a9;
    font-weight: bold;
}

#currentScenario.live-generation {
    color: #ff9500;
    text-shadow: 
        0 0 5px #ffaa33,
}

#currentScenario.ny-london-session {
   color: #ffd900d2;
   text-shadow: 0 0 8px #4c1d95;
}

@keyframes orbitRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes dotPulse {
    0%, 100% { 
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }
    50% { 
        opacity: 1;
        transform: translateX(-50%) scale(1.3);
    }
}

@keyframes runeGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.3));
    }
    50% { 
        filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.5));
    }
}

.main-container {
    flex: 1;
    display: grid;
    grid-template-columns: 300px 1fr 200px;
    grid-template-rows: 1fr auto;
    gap: 10px;
    padding: 10px;
    height: calc(100vh - 80px);
}

.left-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.data-window {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.data-window-header {
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.1), rgba(212, 175, 55, 0.1));
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    padding: 10px 15px;
    font-weight: bold;
    color: #ff6b35;
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-row {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    transition: background 0.2s ease;
}

.data-row:hover {
    background: rgba(255, 107, 53, 0.05);
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    padding: 8px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    font-weight: 500;
    color: #a9a9a9 !important;
    width: 50%; 
    font-size: 12px;
}

.data-value {
    padding: 8px 12px;
    width: 50%; 
    text-align: right;
    font-family: 'Consolas', 'Monaco', monospace;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.data-value.positive {
    color: #d4af37;
}

.data-value.negative {
    color: #ff6b35;
}

.data-value.neutral {
    color: #a0622d;
}

.controls {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    
}

.start-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #8b4513, #d4af37);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.start-button:hover {
    opacity: 0.9;
    box-shadow: 0 0 15px rgba(139, 69, 19, 0.4);
}

.stop-button {
    background: linear-gradient(45deg, #ff4444, #cc3333);
    color: #fff;
}

.control-buttons {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    width: 100%; 
}

.control-btn {
    flex: 1;
    padding: 15px 12px;
    min-height: 50px;
    font-size: 12px;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    text-shadow: 0 0 4px rgba(212, 175, 55, 0.2);
    box-shadow: inset 0 1px 3px rgba(212, 175, 55, 0.1);
    letter-spacing: 1px;

    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    color: #d4af37;
}

.control-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(255, 107, 53, 0.1));
    border-color: rgba(212, 175, 55, 0.6);
    color: #ffdd44;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 0 10px rgba(212, 175, 55, 0.3),
        0 0 20px rgba(212, 175, 55, 0.1),
        inset 0 1px 5px rgba(212, 175, 55, 0.2);
    text-shadow: 
        0 0 6px rgba(212, 175, 55, 0.6),
        0 0 12px rgba(255, 215, 68, 0.3);
}

.control-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 
        0 0 15px rgba(212, 175, 55, 0.6),
        inset 0 2px 8px rgba(139, 69, 19, 0.3);
}

.control-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.control-btn:hover::before {
    opacity: 1;
    animation: runicPulse 2s ease-in-out infinite;
}

@keyframes runicPulse {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.control-btn.up {
    border-color: rgba(212, 175, 55, 0.3);
    color: #d4af37;
}

.control-btn.up:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
}

.control-btn.down {
    border-color: rgba(139, 69, 19, 0.3);
    color: #8b4513;
}

.control-btn.down:hover {
    background: rgba(139, 69, 19, 0.1);
    border-color: rgba(139, 69, 19, 0.5);
}

.control-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    border: 1px solid rgba(255, 107, 53, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
    pointer-events: none;
}

.control-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.control-btn:hover .control-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.tooltip-wheel {
    color: #ff6b35;
    font-weight: bold;
}

.tooltip-or {
    color: #888;
    margin: 0 4px;
}

.builder-toggle-section {
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
    padding: 0 10px;
}

.builder-toggle-section {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
    margin-top: 20px;  
    padding: 0 10px;
}

.builder-toggle-btn {
    flex: 1;
    background: linear-gradient(145deg, rgba(30, 35, 50, 0.8), rgba(26, 31, 46, 0.9));
    border: 1px solid rgba(58, 65, 81, 0.6);
    color: #a0a0a0;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 12px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.builder-toggle-btn::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.6s;
}

.builder-toggle-btn:hover::before {
    left: 100%;
}

.builder-toggle-btn[onclick*="scenario"].active {
    background: linear-gradient(145deg, rgba(218, 165, 32, 0.25), rgba(240, 230, 140, 0.15));
    border-color: #daa520;
    color: #f0e68c;
    box-shadow: 0 0 12px rgba(218, 165, 32, 0.4), inset 0 1px 0 rgba(240, 230, 140, 0.3);
}

.builder-toggle-btn[onclick*="strategy"].active {
    background: linear-gradient(145deg, rgba(218, 165, 32, 0.25), rgba(138, 43, 226, 0.15));
    border-color: #daa520;
    color:  #f0e68c;
    box-shadow: 0 0 12px rgba(218, 165, 32, 0.4), inset 0 1px 0 rgba(138, 43, 226, 0.3);
}

.builder-toggle-btn:hover:not(.active) {
    background: linear-gradient(145deg, rgba(42, 47, 62, 0.9), rgba(52, 57, 72, 0.8));
    color: #c5c5c5b0;
    border-color: rgba(100, 100, 100, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.builder-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.chart-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr 80px;
    grid-template-rows: 1fr 50px;
    gap: 1px;
    height: 100%;
}

.chart-area {
    background: rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.price-axis {
    background: rgba(0, 0, 0, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.price-label {
    font-size: 11px;
    color: #777777 !important;  
    text-align: left;
    padding: 0px 8px;
    font-weight: bold;
    white-space: nowrap;
    position: absolute;
    left: 0;
    transform: translateY(-50%);
    background: none !important;
    user-select: none;
    font-family: 'Arial', sans-serif;
    border-left: 2px solid rgba(255, 107, 53, 0.08);  
    transition: all 0.2s ease;
}

.price-label:hover {
    color: #b2c6d1 !important;
    text-shadow: 0 0 8px #c1d3dc(212, 175, 55, 0.8);
    border-left-color: #cc5500;
}

.current-price-indicator {
    position: absolute;
    left: 5px;
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    border-radius: 3px;
    border-right: 3px solid #ff6b35;
    padding: 3px 6px;
    font-size: 11px;
    font-weight: bold;
    transform: translateY(-50%);
    z-index: 15;
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.3);
    animation: pulse 2s ease-in-out infinite;
    user-select: none;
    white-space: nowrap;
    min-width: 60px;
    text-align: center;
}

@keyframes pulse {
    0%, 100% { 
        background: rgba(255, 107, 53, 0.2);
        box-shadow: 0 0 8px rgba(255, 107, 53, 0.3);
    }
    50% { 
        background: rgba(255, 107, 53, 0.3);
        box-shadow: 0 0 12px rgba(255, 107, 53, 0.5);
    }
}

.time-axis {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.time-axis-corner {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    gap: 2px;
}

.timeframe {
    font-size: 9px;
    font-weight: normal;
    color: #999999;
    letter-spacing: 0.5px;
}

.time-label {
    position: absolute;
    font-size: 9px;
    color: #777777 !important;  
    padding: 2px 4px;
    white-space: nowrap;
    text-align: center;
    width: 50px;
    user-select: none;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    transition: all 0.2s ease;
    background: none !important;
}

.current-time {
    color: #d4af37 !important;
    font-weight: bold;
    background: rgba(212, 175, 55, 0.1) !important;
    border-radius: 3px !important;
}

.current-time:hover {
    color: #ffdd44 !important;  
    text-shadow: 0 0 12px rgba(212, 175, 55, 1.0);  
    background: rgba(212, 175, 55, 0.2) !important;  
}

.candlestick {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto; 
}

.candlestick * {
    pointer-events: none; 
}

.candlestick {
    pointer-events: auto !important; 
}

.wick {
    background: #ff6b35;
}

.body {
    border-radius: 1px;
    margin: 0;
    border: 0.5px solid;
    box-sizing: border-box;
}

.bullish {
    background: transparent;
    border-color: #ff6b35;
    border-width: 1px;
}

.bearish {
    background: #ffffff;
    border-color: #ff6b35;
    border-width: 1px;
}

.building-candle {
    animation: building 1s ease-in-out infinite alternate;
}

@keyframes building {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.grid-lines-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.horizontal-grid-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 107, 53, 0.15);
}

.vertical-grid-line {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 107, 53, 0.12);
}

.scroll-indicator {
    position: absolute;
    top: 50px;
    right: 10px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 9px;
    color: #ff6b35;
    font-weight: bold;
    user-select: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    line-height: 1.2;
}

.scroll-indicator:hover {
    opacity: 1;
}

body > div:last-child,
body > *:not(.header):not(.main-container) {
    display: none !important;
}

*[style*="position: absolute"]:not(.header *):not(.main-container *) {
    display: none !important;
}

.arrow-navigation {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 100 !important;
    pointer-events: none;
}

.arrow-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.arrow-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: auto;
    user-select: none;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-btn::before {
    content: '';
    position: absolute;
    transition: all 0.2s ease;
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.4));
}

.arrow-up::before {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 14px solid #ff6b35;
}

.arrow-down::before {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 14px solid #ff6b35;
}

.arrow-left::before {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 14px solid #ff6b35;
}

.arrow-right::before {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 14px solid #ff6b35;
}

.arrow-btn:hover::before {
    filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.7)) brightness(1.2);
}

.arrow-btn:hover {
    transform: scale(1.1);
}

.arrow-btn:active {
    transform: scale(0.9);
}

.arrow-btn:active::before {
    filter: drop-shadow(0 0 20px rgba(255, 170, 119, 0.9)) brightness(1.4);
}

.center-circle-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #d4af37, #ff6b35);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100 !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    pointer-events: auto;
}

.center-circle-btn:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    background: linear-gradient(45deg, #ff6b35, #d4af37);
}

.center-circle-btn:active {
    transform: translate(-50%, -50%) scale(0.9);
}

.center-circle-btn::after {
    content: '●';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6px;
    color: #fff;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
}

.speed-selector {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.speed-selector-header {
    color: #ff6b35;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-align: center;
}

.speed-options {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; 
    gap: 6px; 
}

.speed-option-label {
    padding: 6px 8px; 
    font-size: 10px; 
}

.speed-option input[type="radio"] {
    display: none;
}

.speed-option-label {
    display: block;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    color: #d4af37;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.speed-option-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.3s ease;
}

.speed-option-label:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(255, 107, 53, 0.08));
    border-color: rgba(212, 175, 55, 0.5);
    color: #ffdd44;
    transform: translateY(-1px);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.speed-option-label:hover::before {
    left: 100%;
}

.speed-option input[type="radio"]:checked + .speed-option-label {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(255, 107, 53, 0.15));
    border-color: rgba(212, 175, 55, 0.8);
    color: #ffdd44;
    box-shadow: 
        0 0 12px rgba(212, 175, 55, 0.4),
        inset 0 0 8px rgba(212, 175, 55, 0.1);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.speed-option input[type="radio"]:checked + .speed-option-label::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 10px;
    color: #d4af37;
    text-shadow: 0 0 4px rgba(212, 175, 55, 0.8);
}

.speed-multiplier {
    display: block;
    font-size: 9px;
    opacity: 0.8;
    margin-top: 2px;
    color: #a0622d;
}

.speed-option input[type="radio"]:checked + .speed-option-label .speed-multiplier {
    color: #d4af37;
    opacity: 1;
}

.speed-option input[type="radio"]:checked + .speed-option-label {
    animation: speedSelected 2s ease-in-out infinite;
}

.performance-indicator {
    background: rgba(139, 69, 19, 0.1);
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 10px;
    color: #8b4513;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
}

.performance-indicator.web-worker-active {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    color: #d4af37;
    animation: workerGlow 2s ease-in-out infinite;
}

.performance-indicator.main-thread {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    color: #ff6b35;
}

@keyframes workerGlow {
    0%, 100% { 
        box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
    }
    50% { 
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    }
}

@keyframes speedSelected {
    0%, 100% { 
        box-shadow: 
            0 0 12px rgba(212, 175, 55, 0.4),
            inset 0 0 8px rgba(212, 175, 55, 0.1);
    }
    50% { 
        box-shadow: 
            0 0 18px rgba(212, 175, 55, 0.6),
            inset 0 0 12px rgba(212, 175, 55, 0.15);
    }
}

.speed-option input[value="ultra"]:checked + .speed-option-label {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(212, 175, 55, 0.2));
    border-color: rgba(255, 107, 53, 0.9);
    color: #ff6b35;
    animation: ultraSpeed 1.5s ease-in-out infinite;
}

@keyframes ultraSpeed {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 107, 53, 0.8);
    }
}

.speed-selector-disabled {
    opacity: 0.4;
    pointer-events: none;
    position: relative;
}

.speed-selector-disabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 51, 153, 0.7) 0%, rgba(77, 45, 115, 0.8) 100%);
    border-radius: 8px;
    z-index: 10;
    box-shadow: 
        inset 0 0 20px rgba(102, 51, 153, 0.3),
        0 0 15px rgba(102, 51, 153, 0.4);
    border: 2px solid rgba(102, 51, 153, 0.6);
}

.speed-selector-disabled::after {
    content: '🔒 STATIC VIEW';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #d4af37;
    font-size: 12px;
    font-weight: 900;
    z-index: 11;
    text-align: center;
    pointer-events: none;
    text-shadow: 
        0 0 8px rgba(212, 175, 55, 0.8),
        0 0 15px rgba(212, 175, 55, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.9);
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: staticGlow 2s ease-in-out infinite;
}

@keyframes staticGlow {
    0%, 100% { 
        text-shadow: 
            0 0 8px rgba(212, 175, 55, 0.8),
            0 0 15px rgba(212, 175, 55, 0.5),
            2px 2px 4px rgba(0, 0, 0, 0.9);
    }
    50% { 
        text-shadow: 
            0 0 12px rgba(212, 175, 55, 1),
            0 0 25px rgba(212, 175, 55, 0.8),
            2px 2px 4px rgba(0, 0, 0, 0.9);
    }
}

.speed-option-disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: linear-gradient(135deg, rgba(80, 80, 80, 0.1), rgba(100, 100, 100, 0.05)) !important;
    border-color: rgba(100, 100, 100, 0.2) !important;
    color: #666 !important;
}

.speed-option-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, rgba(80, 80, 80, 0.1), rgba(100, 100, 100, 0.05)) !important;
}

.speed-option-disabled::before {
    display: none !important;
}

input[name="speedMode"]:disabled + .speed-option-label {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile-trigger {
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-info-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(180, 150, 80, 0.08);
    border: 1px solid rgba(180, 150, 80, 0.25);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.user-info-container:hover {
    background: rgba(180, 150, 80, 0.12);
    border-color: rgba(180, 150, 80, 0.4);
    box-shadow: 0 0 8px rgba(180, 150, 80, 0.1);
    transform: translateY(-1px);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

.user-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 500;
    color: #b4a850;
    transition: color 0.2s ease;
}

.user-info-container:hover .user-name {
    color: #c9ab63;
}

.user-status {
    font-size: 9px;
    color: #8a7a50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.user-info-container:hover .user-status {
    color: #9d8a5a;
}

.tier-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.tier-badge.free {
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.3), rgba(80, 80, 80, 0.2));
    border: 1px solid rgba(120, 120, 120, 0.4);
    color: #a0a0a0;
}

.tier-badge.pro {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(255, 215, 0, 0.2));
    border: 1px solid rgba(212, 175, 55, 0.6);
    color: #f4d76b;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
    animation: proBadgeGlow 3s ease-in-out infinite;
}

@keyframes proBadgeGlow {
    0%, 100% { 
        box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
    }
    50% { 
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    }
}

.user-info-container:hover .tier-badge.pro {
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.help-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #d4af37;
    background: rgba(40, 44, 52, 0.8);
    color: #d4af37;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; 
}

.help-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: #f4d76b;
    color: #f4d76b;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    transform: scale(1.1);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%; 
    right: 0;  
    margin-top: 8px;
    background: rgba(26, 31, 46, 0.98);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    min-width: 240px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 8px 0;
    backdrop-filter: blur(10px);
}

.dropdown-section {
    padding: 4px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #d4af37;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 13px;
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #f4d76b;
}

.dropdown-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.dropdown-item.danger {
    color: #ff6b6b;
}

.dropdown-item.danger:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff4444;
}

.dropdown-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 8px;
}

.coming-soon-badge {
    margin-left: auto;
    font-size: 9px;
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
}

.logout-section {
    background: rgba(255, 107, 53, 0.03);
}

.logout-item {
    color: #ff6b35 !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-item:hover {
    background: rgba(255, 107, 53, 0.15) !important;
    color: #ff8c5a !important;
}

.logout-icon {
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.logout-item:hover .logout-icon {
    transform: translateX(3px);
}

.dropdown-item:not(.logout-item) {
    padding-left: 16px;
}

.save-scenario-save-btn,
.save-scenario-skip-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.save-scenario-save-btn {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.2));
    border: 2px solid rgba(212, 175, 55, 0.6);
    color: #d4af37;
}

.save-scenario-skip-btn {
    background: rgba(75, 45, 85, 0.4);
    border: 2px solid rgba(212, 175, 55, 0.25);
    color: #e8d5e8;
}

.connection-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: gray;
    transition: background-color 0.3s ease;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.connection-dot.connected {
    background-color: #4caf50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.connection-dot.connecting {
    background-color: #ff9800;
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.5);
    animation: dotPulse 1.5s infinite;
}

.connection-dot.disconnected {
    background-color: #f44336;
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.5);
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.auth-required-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
    background: linear-gradient(45deg, #a0522d, #f4d76b);
}

.user-dropdown-menu {
    position: absolute;
    top: 60px;
    right: 20px;
    background: rgba(26, 31, 46, 0.98);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    padding: 8px 0;
}

.dropdown-section {
    padding: 4px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #d4af37;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 13px;
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #f4d76b;
}

.dropdown-item.danger {
    color: #ff6b6b;
}

.dropdown-item.danger:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff4444;
}

.dropdown-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}