/* ========================================
   INDEX PAGE STYLES
   TradeSmart.live - Main Trading Chart
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #000000;
    font-family: 'Trebuchet MS', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #d1d4dc;
    overflow: hidden;
    height: 100vh;
}

/* ========================================
   ENTER SCREEN
   Splash screen for audio autoplay
   ======================================== */
.enter-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.enter-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/img/lg.png') calc(50% + 3px) calc(50% - 15px) no-repeat;
    background-size: 70%;
    opacity: 1;
    filter: brightness(0.8);
    pointer-events: none;
}

.enter-oval {
    position: relative;
    width: 70vw;
    height: 70vh;
    border-radius: 50%;
    border: 2px solid #00ff88;
    box-shadow: 0 0 60px rgba(0, 255, 136, 0.2), inset 0 0 60px rgba(0, 255, 136, 0.05);
    animation: ovalGlow 3s ease-in-out infinite;
}

@keyframes ovalGlow {
    0%, 100% {
        box-shadow: 0 0 60px rgba(0, 255, 136, 0.2), inset 0 0 60px rgba(0, 255, 136, 0.05);
    }
    50% {
        box-shadow: 0 0 100px rgba(0, 255, 136, 0.4), inset 0 0 80px rgba(0, 255, 136, 0.1);
    }
}

.enter-hint {
    position: absolute;
    bottom: 10%;
    font-size: 14px;
    color: #787b86;
    letter-spacing: 1px;
    animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 70%;
    min-height: 70%;
    width: 70%;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

/* Oval Mask - video vizibil doar in oval */
.oval-mask {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    height: 70vh;
    border-radius: 50%;
    border: 2px solid #00ff88;
    box-shadow: 0 0 0 9999px #000000;
    pointer-events: none;
    z-index: 0;
}

/* TradingView Header */
.tv-header {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    height: 38px;
    background: rgba(30, 34, 45, 0.95);
    border-bottom: 1px solid #2a2e39;
    display: flex;
    align-items: center;
    padding: 0 8px;
    z-index: 100;
}

.symbol-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px 0 4px;
    border-right: 1px solid #2a2e39;
}

.symbol-name {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    letter-spacing: 0.3px;
}

.symbol-exchange {
    font-size: 10px;
    color: #787b86;
    padding: 2px 4px;
    background: #2a2e39;
    border-radius: 2px;
}

.symbol-exchange.live-indicator {
    color: #ef5350;
    background: rgba(239, 83, 80, 0.15);
    border: 1px solid rgba(239, 83, 80, 0.3);
    font-weight: 700;
    animation: livePulseHeader 1.2s ease-in-out infinite;
}

@keyframes livePulseHeader {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 5px rgba(239, 83, 80, 0.3);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 15px rgba(239, 83, 80, 0.6);
    }
}

.symbol-tf {
    font-size: 11px;
    color: #d1d4dc;
    padding: 2px 6px;
    background: #363a45;
    border-radius: 2px;
    font-weight: 500;
}


.symbol-price {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 15px;
    font-weight: 600;
}

.symbol-price.up { color: #26a69a; }
.symbol-price.down { color: #ef5350; }

.symbol-change {
    font-family: 'Consolas', monospace;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 2px;
}

.symbol-change.up { background: rgba(38,166,154,0.15); color: #26a69a; }
.symbol-change.down { background: rgba(239,83,80,0.15); color: #ef5350; }

/* Toolbar */
.toolbar {
    position: fixed;
    top: 38px;
    left: 0;
    right: 0;
    height: 32px;
    background: rgba(30, 34, 45, 0.95);
    border-bottom: 1px solid #2a2e39;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    gap: 2px;
    z-index: 100;
}

.toolbar-divider {
    width: 1px;
    height: 20px;
    background: #2a2e39;
    margin: 0 6px;
}

.tf-btn {
    background: transparent;
    border: none;
    color: #787b86;
    padding: 4px 8px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.1s;
}

.tf-btn:hover { background: #2a2e39; color: #d1d4dc; }
.tf-btn.active { background: #2962ff; color: #fff; }

.toolbar-icon {
    background: transparent;
    border: none;
    color: #787b86;
    padding: 5px;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toolbar-icon:hover { background: #2a2e39; color: #d1d4dc; }
.toolbar-icon svg { width: 16px; height: 16px; }

.market-data {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.market-data-right {
    padding-right: 8px;
}

.data-item { display: flex; align-items: center; gap: 4px; }
.data-label { color: #787b86; font-size: 10px; }
.bid { color: #ef5350; }
.ask { color: #26a69a; }
.spread { color: #787b86; }
.vol { color: #ab47bc; }
.liq { color: #42a5f5; }

/* Main Layout */
.main-container {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    z-index: 2;
    background: transparent;
}

/* Chart Area */
.chart-wrapper {
    flex: 1;
    position: relative;
    background: transparent;
}

#chart {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 60px);
    height: calc(100% - 26px);
    background: transparent;
    cursor: crosshair;
}

.price-scale {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: calc(100% - 26px);
    background: rgba(19, 23, 34, 0.85);
    border-left: 1px solid #2a2e39;
    cursor: ns-resize;
    transition: background 0.2s;
}

.price-scale:hover {
    background: rgba(30, 35, 50, 0.95);
    border-left: 1px solid #3a4e6a;
}

.time-scale {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 60px;
    height: 26px;
    background: rgba(19, 23, 34, 0.85);
    border-top: 1px solid #2a2e39;
}

.price-tag {
    position: absolute;
    right: 0;
    padding: 2px 5px;
    font-family: 'Consolas', monospace;
    font-size: 11px;
    font-weight: 500;
    transform: translateY(-50%);
    white-space: nowrap;
}

.price-tag.current {
    border-radius: 2px 0 0 2px;
}

.price-tag.bid-tag {
    background: #ef5350;
    color: #fff;
    font-size: 10px;
}

.price-tag.ask-tag {
    background: #26a69a;
    color: #fff;
    font-size: 10px;
}

/* Chart watermark */
.chart-watermark {
    position: absolute;
    bottom: 40px;
    left: 12px;
    font-size: 12px;
    color: rgba(120,123,134,0.4);
    pointer-events: none;
    z-index: 0;
}

/* Crosshair */
.crosshair-h, .crosshair-v {
    position: absolute;
    pointer-events: none;
    display: none;
}

.crosshair-h {
    left: 0;
    right: 60px;
    height: 1px;
    background: rgba(120,123,134,0.4);
    border-top: 1px dashed rgba(120,123,134,0.6);
}

.crosshair-v {
    top: 0;
    bottom: 26px;
    width: 1px;
    background: rgba(120,123,134,0.4);
    border-left: 1px dashed rgba(120,123,134,0.6);
}

.crosshair-price {
    position: absolute;
    right: 0;
    background: #363a45;
    color: #d1d4dc;
    padding: 2px 5px;
    font-family: 'Consolas', monospace;
    font-size: 11px;
    transform: translateY(-50%);
    display: none;
    z-index: 10;
}

.crosshair-time {
    position: absolute;
    bottom: 0;
    background: #363a45;
    color: #d1d4dc;
    padding: 2px 6px;
    font-family: 'Consolas', monospace;
    font-size: 10px;
    transform: translateX(-50%);
    display: none;
    z-index: 10;
}

/* Trading Panel */
.trading-panel {
    width: 260px;
    background: rgba(30, 34, 45, 0.9);
    border-left: 1px solid #2a2e39;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: margin-right 0.3s ease, width 0.3s ease;
}

.trading-panel.collapsed {
    margin-right: -230px;
}

.panel-toggle {
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 60px;
    background: rgba(30, 34, 45, 0.9);
    border: 1px solid #2a2e39;
    border-right: none;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #787b86;
    transition: all 0.2s;
    z-index: 10;
}

.panel-toggle:hover {
    background: rgba(42, 46, 57, 0.9);
    color: #d1d4dc;
}

.panel-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.trading-panel.collapsed .panel-toggle svg {
    transform: rotate(180deg);
}

.panel-header {
    padding: 8px 12px;
    border-bottom: 1px solid #2a2e39;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
}

.panel-header span {
    font-size: 12px;
    color: #787b86;
}

.panel-header .active {
    color: #d1d4dc;
    border-bottom: 2px solid #2962ff;
    padding-bottom: 6px;
    margin-bottom: -9px;
}

.panel-section {
    padding: 10px 12px;
    border-bottom: 1px solid #2a2e39;
    background: transparent;
}

.section-title {
    font-size: 11px;
    font-weight: 500;
    color: #787b86;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.trade-btns {
    display: flex;
    gap: 4px;
}

.trade-btn {
    flex: 1;
    padding: 10px 6px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.1s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.trade-btn .price {
    font-size: 14px;
    font-family: 'Consolas', monospace;
    font-weight: 600;
}

.trade-btn .label {
    font-size: 10px;
    font-weight: 500;
}

.btn-buy {
    background: #26a69a;
    color: #fff;
}
.btn-buy:hover { background: #2bbd8e; }

.btn-sell {
    background: #ef5350;
    color: #fff;
}
.btn-sell:hover { background: #f26d6a; }

.input-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.input-group {
    flex: 1;
}

.input-group label {
    display: block;
    font-size: 10px;
    color: #787b86;
    margin-bottom: 4px;
}

.input-field {
    width: 100%;
    background: rgba(19, 23, 34, 0.7);
    border: 1px solid #2a2e39;
    border-radius: 3px;
    padding: 7px 8px;
    color: #d1d4dc;
    font-family: 'Consolas', monospace;
    font-size: 12px;
}

.input-field:focus {
    outline: none;
    border-color: #2962ff;
}

.input-field.sl { border-left: 2px solid #ef5350; }
.input-field.tp { border-left: 2px solid #26a69a; }

/* Account Summary */
.account-summary {
    padding: 10px 12px;
    background: rgba(19, 23, 34, 0.85);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

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

.summary-item .label {
    font-size: 9px;
    color: #787b86;
    text-transform: uppercase;
}

.summary-item .value {
    font-family: 'Consolas', monospace;
    font-size: 12px;
    color: #d1d4dc;
}

/* Login Overlay - TradingView Style */
.login-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    width: 340px;
}

.login-card {
    position: relative;
    background: rgba(30, 34, 45, 0.05);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(42, 46, 57, 0.3);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.login-card:hover {
    background: rgba(30, 34, 45, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(42, 46, 57, 0.6);
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h1 {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.login-header h1 .t-trade { color: #ffffff; }
.login-header h1 .t-smart { color: #00ff88; text-shadow: 0 0 20px rgba(0,255,136,0.5); }
.login-header h1 .t-dot { color: #000000; text-shadow: none; }
.login-header h1 .t-live {
    color: #ef5350;
    text-shadow: 0 0 15px rgba(239,83,80,0.4);
    animation: livePulse 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 15px rgba(239,83,80,0.4);
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        text-shadow: 0 0 25px rgba(239,83,80,0.8), 0 0 40px rgba(239,83,80,0.4);
        transform: scale(1.05);
    }
}

.login-header p {
    font-size: 12px;
    color: #787b86;
    margin-top: 4px;
}

.login-form .field {
    margin-bottom: 14px;
}

.login-form label {
    display: block;
    font-size: 11px;
    color: #a0a4b0;
    margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.login-form input {
    width: 100%;
    background: rgba(19, 23, 34, 0.7);
    border: 1px solid rgba(42, 46, 57, 0.6);
    border-radius: 4px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.15s;
    backdrop-filter: blur(4px);
}

.login-form input:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.15);
}

.login-form input::placeholder {
    color: #787b86;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border: none;
    border-radius: 4px;
    color: #000000;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4);
}

.login-btn:hover {
    background: linear-gradient(135deg, #00ff99 0%, #00dd77 100%);
    box-shadow: 0 6px 30px rgba(0, 255, 136, 0.6);
    transform: translateY(-2px);
}

.login-btn:disabled {
    background: #363a45;
    color: #787b86;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.login-error {
    background: rgba(239,83,80,0.1);
    border: 1px solid rgba(239,83,80,0.3);
    color: #ef5350;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 14px;
    display: none;
}

.forgot-link {
    text-align: center;
    margin-top: 16px;
    display: none;
}

.forgot-link a {
    color: #2962ff;
    font-size: 12px;
    text-decoration: none;
}

.forgot-link a:hover { text-decoration: underline; }

/* === MARKETING ENHANCEMENTS === */

/* Tagline sotto titolo */
.login-tagline {
    font-size: 13px;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 8px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(41, 98, 255, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(41, 98, 255, 0.25);
    backdrop-filter: blur(4px);
}

.social-proof .stars {
    color: #ffd700;
    font-size: 12px;
    letter-spacing: 1px;
}

.social-proof .text {
    font-size: 11px;
    color: #a0a4b0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.social-proof .highlight {
    color: #ffffff;
    font-weight: 600;
}

/* Trust Badge */
.trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 10px;
    color: #a0a4b0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.trust-badge svg {
    width: 12px;
    height: 12px;
    color: #26a69a;
}

/* Feature Pills */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(42, 46, 57, 0.5);
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: rgba(38, 166, 154, 0.15);
    border: 1px solid rgba(38, 166, 154, 0.3);
    border-radius: 12px;
    font-size: 10px;
    color: #26a69a;
    backdrop-filter: blur(4px);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.feature-pill svg {
    width: 10px;
    height: 10px;
}

/* Exclusive Badge */
.exclusive-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(255,215,0,0.2) 0%, rgba(255,165,0,0.15) 100%);
    border: 1px solid rgba(255,215,0,0.4);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.exclusive-badge svg {
    width: 10px;
    height: 10px;
}

/* Subtle glow animation on card */
.login-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(41,98,255,0.2) 0%, transparent 50%, rgba(38,166,154,0.2) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.login-card:hover::before {
    opacity: 1;
}

/* Fade-in animation for overlay (centered element) */
@keyframes fadeInOverlay {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Fade-in animation for inner elements */
@keyframes fadeInElement {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-overlay {
    animation: fadeInOverlay 0.5s ease-out;
}

/* Stagger animation for elements inside card */
.login-card {
    animation: fadeInElement 0.4s ease-out;
}

/* Order Book Mini */
.orderbook-mini {
    padding: 6px 12px;
    background: rgba(19, 23, 34, 0.85);
}

.ob-header {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #787b86;
    padding-bottom: 4px;
    border-bottom: 1px solid #2a2e39;
    margin-bottom: 4px;
}

.ob-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-family: 'Consolas', monospace;
    padding: 1px 0;
}

.ob-row.ask { color: #ef5350; }
.ob-row.bid { color: #26a69a; }
.ob-size { color: #787b86; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #131722; }
::-webkit-scrollbar-thumb { background: #363a45; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4a4e59; }

/* Volume bars at bottom of chart */
.volume-overlay {
    position: absolute;
    bottom: 26px;
    left: 0;
    right: 60px;
    height: 50px;
    pointer-events: none;
}

/* ========================================
   RESPONSIVE - TABLET (max 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .enter-bg {
        background-size: 85%;
    }

    .enter-oval {
        width: 80vw;
        height: 60vh;
    }

    .oval-mask {
        width: 80vw;
        height: 60vh;
    }

    .video-background video {
        width: 80%;
        min-width: 80%;
        min-height: 80%;
    }

    .tv-header {
        top: 60px;
        height: 34px;
        padding: 0 6px;
    }

    .symbol-info {
        gap: 6px;
    }

    .symbol-name {
        font-size: 13px;
    }

    .market-data {
        gap: 10px;
    }

    .toolbar {
        top: 30px;
        height: 28px;
    }

    .main-container {
        top: 60px;
    }

    .login-overlay {
        width: 320px;
    }

    .login-card {
        padding: 24px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (max 768px)
   ======================================== */
@media (max-width: 768px) {
    .enter-bg {
        background-size: 95%;
    }

    .enter-oval {
        width: 90vw;
        height: 50vh;
    }

    .enter-hint {
        font-size: 12px;
        bottom: 8%;
    }

    .oval-mask {
        width: 90vw;
        height: 50vh;
    }

    .video-background video {
        width: 90%;
        min-width: 90%;
        min-height: 90%;
    }

    .tv-header {
        top: 50px;
        height: 32px;
        padding: 0 4px;
        overflow-x: auto;
    }

    .symbol-info {
        gap: 4px;
        padding: 0 6px 0 2px;
    }

    .symbol-name {
        font-size: 12px;
    }

    .symbol-exchange {
        font-size: 8px;
        padding: 1px 3px;
    }

    .symbol-tf {
        font-size: 9px;
        padding: 1px 4px;
    }

    .symbol-price {
        font-size: 12px;
    }

    .symbol-change {
        font-size: 10px;
        padding: 1px 4px;
    }

    .tv-header .market-data {
        display: none;
    }

    .toolbar {
        top: 20px;
        height: 26px;
        padding: 0 4px;
    }

    .market-data {
        gap: 8px;
        font-size: 10px;
    }

    .data-label {
        font-size: 8px;
    }

    .main-container {
        top: 50px;
    }

    #chart {
        width: calc(100% - 45px);
    }

    .price-scale {
        width: 45px;
    }

    .time-scale {
        right: 45px;
        height: 22px;
    }

    .crosshair-h {
        right: 45px;
    }

    .price-tag {
        font-size: 9px;
        padding: 1px 3px;
    }

    .chart-watermark {
        font-size: 10px;
        bottom: 30px;
    }

    .login-overlay {
        width: 90%;
        max-width: 340px;
    }

    .login-card {
        padding: 20px;
    }

    .login-header h1 {
        font-size: 18px;
    }

    .login-tagline {
        font-size: 11px;
    }

    .login-form input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .login-btn {
        padding: 10px;
        font-size: 13px;
    }

    .feature-pills {
        gap: 4px;
    }

    .feature-pill {
        font-size: 9px;
        padding: 4px 8px;
    }

    .trust-badge {
        font-size: 9px;
    }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE (max 480px)
   ======================================== */
@media (max-width: 480px) {
    .enter-bg {
        background-size: 120%;
    }

    .enter-oval {
        width: 95vw;
        height: 45vh;
        border-width: 1px;
    }

    .enter-hint {
        font-size: 11px;
        bottom: 5%;
    }

    .oval-mask {
        width: 95vw;
        height: 45vh;
        border-width: 1px;
    }

    .video-background video {
        width: 100%;
        min-width: 100%;
    }

    .tv-header {
        top: 45px;
        height: 28px;
    }

    .symbol-info {
        gap: 3px;
    }

    .symbol-name {
        font-size: 11px;
    }

    .symbol-price {
        font-size: 11px;
    }

    .symbol-change {
        font-size: 9px;
    }

    .toolbar {
        top: 15px;
        height: 24px;
    }

    .market-data {
        gap: 6px;
        font-size: 9px;
    }

    .main-container {
        top: 45px;
    }

    #chart {
        width: calc(100% - 40px);
    }

    .price-scale {
        width: 40px;
    }

    .time-scale {
        right: 40px;
        height: 20px;
    }

    .crosshair-h {
        right: 40px;
    }

    .price-tag {
        font-size: 8px;
        padding: 1px 2px;
    }

    .login-overlay {
        width: 95%;
    }

    .login-card {
        padding: 16px;
        border-radius: 8px;
    }

    .login-header {
        margin-bottom: 16px;
    }

    .login-header h1 {
        font-size: 16px;
    }

    .login-tagline {
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    .exclusive-badge {
        font-size: 8px;
        padding: 3px 8px;
    }

    .login-form .field {
        margin-bottom: 10px;
    }

    .login-form label {
        font-size: 10px;
    }

    .login-form input {
        padding: 9px 10px;
        font-size: 12px;
    }

    .login-btn {
        padding: 9px;
        font-size: 12px;
    }

    .feature-pills {
        margin-top: 14px;
        padding-top: 12px;
    }

    .feature-pill {
        font-size: 8px;
        padding: 3px 6px;
    }

    .trust-badge {
        font-size: 8px;
        margin-top: 12px;
    }
}

/* ========================================
   LANDSCAPE MOBILE
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .enter-oval {
        width: 50vw;
        height: 80vh;
    }

    .enter-bg {
        background-size: 60%;
    }

    .enter-hint {
        bottom: 3%;
        font-size: 10px;
    }

    .oval-mask {
        width: 50vw;
        height: 80vh;
    }

    .tv-header {
        top: 40px;
        height: 26px;
    }

    .toolbar {
        top: 10px;
        height: 24px;
    }

    .main-container {
        top: 40px;
    }

    .login-overlay {
        width: 60%;
        max-width: 400px;
    }

    .login-card {
        padding: 16px 24px;
    }

    .login-header {
        margin-bottom: 12px;
    }

    .feature-pills {
        display: none;
    }
}
