/* Forex Chart Styles */
.hero-chart-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: contentFadeIn 2.5s ease-out 1s both;
    position: absolute;
    right: 100px;
    top: 90px;
    width: 500px;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 280px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.bid-ask-container {
    position: relative;
    width: 100%;
    height: 220px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(53, 255, 107, 0.2);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.bid-ask-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(53, 255, 107, 0.1);
}

.chart-title {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.simulation-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-candles {
    color: #ff6b35;
}

.status-spread {
    color: #35ff6b;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.candles {
    background: #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.6);
}

.status-dot.spread {
    background: #35ff6b;
    box-shadow: 0 0 10px rgba(53, 255, 107, 0.6);
}

.chart-area {
    position: relative;
    height: 220px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.25) 100%);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 53, 0.15);
    transform: translateY(-30px);  /* Move chart content up by 30px */
}

.spread-area {
    position: relative;
    height: 160px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.25) 100%);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(53, 255, 107, 0.15);
    transform: translateY(-20px);  /* Move spread content up by 20px */
}

.price-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.grid-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255, 107, 53, 0.2) 0%, 
        rgba(255, 107, 53, 0.1) 50%, 
        rgba(255, 107, 53, 0.2) 100%);
}

.spread-grid-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(53, 255, 107, 0.2) 0%, 
        rgba(53, 255, 107, 0.1) 50%, 
        rgba(53, 255, 107, 0.2) 100%);
}

.price-label {
    position: absolute;
    right: 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    transform: translateY(-50%);
    font-weight: 600;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.spread-label {
    position: absolute;
    right: 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    transform: translateY(-50%);
    font-weight: 600;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(53, 255, 107, 0.2);
}

.candlestick {
    position: absolute;
    width: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    transform: scaleY(0);
}

.candlestick.visible {
    opacity: 1;
    transform: scaleY(1);
}

.candlestick:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

.candle-wick {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(180deg, #ff6b35 0%, #d4af37 50%, #ff6b35 100%);
    border-radius: 1px;
    box-shadow: 0 0 4px rgba(255, 107, 53, 0.4);
}

.candle-body {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    border-radius: 2px;
    border: 2px solid;
    transition: all 0.3s ease;
}

.candle-body.bullish {
    background: rgba(255, 255, 255, 0.9);
    border-color: #ff6b35;
    border-width: 1px;
}

.candle-body.bearish {
    background: rgba(255, 107, 53, 0.9);
    border-color: #ff6b35;
    border-width: 1px;
}

.current-price-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #ff6b35 10%, 
        #ff6b35 90%, 
        transparent 100%);
    box-shadow: 
        0 0 15px rgba(255, 107, 53, 0.8),
        0 0 30px rgba(255, 107, 53, 0.4);
    animation: pricePulse 2s ease-in-out infinite;
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
}

.price-indicator {
    position: absolute;
    right: 8px;
    background: linear-gradient(135deg, rgba(206, 151, 131, 0.711) 0%, rgba(200, 177, 169, 0.25) 100%);
    color: #490c0b;
    border: 2px solid #40190a;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    z-index: 21;
}

/* Bid/Ask Specific Styles */
.bid-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #ff4444 10%, 
        #ff4444 90%, 
        transparent 100%);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.6);
    transition: top 0.3s ease;
    z-index: 15;
}

.ask-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #44ff44 10%, 
        #44ff44 90%, 
        transparent 100%);
    box-shadow: 0 0 10px rgba(68, 255, 68, 0.6);
    transition: top 0.3s ease;
    z-index: 15;
}

.spread-fill {
    position: absolute;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 68, 0.1) 0%, 
        rgba(255, 255, 68, 0.2) 50%,
        rgba(255, 255, 68, 0.1) 100%);
    border: 1px solid rgba(255, 255, 68, 0.3);
    border-radius: 2px;
    transition: all 0.3s ease;
    z-index: 10;
}

.bid-indicator, .ask-indicator {
    position: absolute;
    right: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 16;
}

.bid-indicator {
    background: linear-gradient(135deg, rgba(216, 139, 139, 0.733) 0%, rgba(174, 106, 106, 0.634) 100%);
    color: #831212;
    border: 2px solid #961f1f;
    box-shadow: 0 4px 15px rgba(248, 244, 244, 0.3);
}

.ask-indicator {
    background: linear-gradient(135deg, rgba(153, 215, 146, 0.733) 0%, rgba(134, 174, 106, 0.634) 100%);
    color: #0f5424;
    border: 2px solid #0e431e;
    box-shadow: 0 4px 15px rgba(68, 255, 68, 0.3);
}

.spread-info {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 20px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    z-index: 20;
}

.spread-value {
    background: rgba(255, 255, 68, 0.1);
    color: #ffff44;
    border: 1px solid rgba(255, 255, 68, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

.profit-indicator {
    background: rgba(68, 255, 68, 0.1);
    color: #44ff44;
    border: 1px solid rgba(68, 255, 68, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

/* Forex Chart Animations */
@keyframes pricePulse {
    0%, 100% { 
        opacity: 0.9;
    }
    50% { 
        opacity: 1;
    }
}

@keyframes candleForm {
    0% {
        opacity: 0;
        transform: scaleY(0) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scaleY(1) translateY(0);
    }
}

.candlestick.forming {
    animation: candleForm 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}