/* ==========================================================================
   MEERU AI BOT - INSTITUTIONAL PRO TRADING THEME V2.4
   Matte Obsidian Palette, Candlestick Scanner Animation,
   Clean High-Converting Signal Card, Professional VIP Access Flow.
   ========================================================================== */

:root {
    --bg-base: #080b11;
    --bg-surface: #0e131f;
    --bg-card: #121826;
    --bg-card-hover: #172033;
    --bg-input: #0a0e17;
    
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-card: rgba(255, 255, 255, 0.1);
    --border-active: #2563eb;

    --primary-blue: #2563eb;
    --primary-hover: #1d4ed8;
    --accent-blue: #3b82f6;

    --call-green: #10b981;
    --call-glow: rgba(16, 185, 129, 0.35);
    --call-bg: rgba(16, 185, 129, 0.12);

    --put-red: #ef4444;
    --put-glow: rgba(239, 68, 68, 0.35);
    --put-bg: rgba(239, 68, 68, 0.12);

    --gold: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.3);

    --text-pure: #ffffff;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-dim: #64748b;

    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
}

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

body {
    background-color: var(--bg-base);
    background-image: radial-gradient(circle at 50% -10%, #172138 0%, #080b11 65%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-heading);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   TOP HEADER STRIP (SINGLE LINE BRAND ON MOBILE & DESKTOP)
   ========================================================================== */
.top-header-strip {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(11, 15, 25, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-single-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon-box {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.45);
    flex-shrink: 0;
}

.brand-title-single {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.brand-name {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #ffffff;
}

.brand-version-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    letter-spacing: 0.5px;
}

.header-status-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feed-status-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.feed-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--call-green);
    box-shadow: 0 0 8px var(--call-green);
    animation: beaconPulse 1.8s infinite;
}

@keyframes beaconPulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.live-clock {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dim);
}

@media (max-width: 640px) {
    .header-container {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 10px 14px !important;
    }
    .brand-single-row {
        justify-content: center;
    }
    .header-status-section {
        justify-content: center;
    }
    .brand-name {
        font-size: 1.1rem;
    }
}
}

@keyframes beaconPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.85); }
}

.live-clock {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    font-weight: 600;
}

/* ==========================================================================
   APP CONTENT CONTAINER
   ========================================================================== */
.app-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

/* GLASSMORPHISM CARD STYLING */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* LIVE CANDLESTICK TICKER ROW */
.candle-ticker-card {
    background: rgba(11, 17, 32, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.candle-live-stream {
    display: flex;
    align-items: center;
    gap: 12px;
}

.candle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 14px;
    height: 38px;
    justify-content: center;
}

.candle-wick {
    width: 1.5px;
    background: rgba(255, 255, 255, 0.4);
    position: absolute;
    top: 2px;
    bottom: 2px;
}

.candle-body {
    width: 10px;
    border-radius: 2px;
    z-index: 1;
    position: relative;
}

.candle-item.green .candle-body {
    background: var(--call-green);
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.5);
    animation: candlePulseGreen 2.5s infinite alternate;
}

.candle-item.green .candle-wick {
    background: var(--call-green);
}

.candle-item.red .candle-body {
    background: var(--put-red);
    box-shadow: 0 0 8px rgba(255, 42, 95, 0.5);
    animation: candlePulseRed 2.8s infinite alternate;
}

.candle-item.red .candle-wick {
    background: var(--put-red);
}

@keyframes candlePulseGreen {
    0% { transform: scaleY(0.7); }
    100% { transform: scaleY(1.15); }
}

@keyframes candlePulseRed {
    0% { transform: scaleY(1.15); }
    100% { transform: scaleY(0.75); }
}

/* FORM ELEMENTS */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* BROKER SELECT (QUOTEX FIXED) */
.broker-pill-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 16px;
}

.broker-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.broker-icon {
    width: 26px;
    height: 26px;
    background: #0284c7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
    color: #fff;
}

.broker-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.74rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 700;
}

/* SEGMENTED CONTROL (OTC vs LIVE) */
.segmented-control {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-input);
    padding: 5px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    gap: 6px;
}

.segment-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.22s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.segment-btn.active {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(51, 65, 85, 0.8));
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.segment-btn.closed-weekend {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(239, 68, 68, 0.04);
}

.badge-count {
    font-size: 0.74rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 7px;
    border-radius: 100px;
    color: #94a3b8;
}

.badge-count.badge-closed {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.45);
    font-weight: 800;
    font-size: 0.68rem;
    letter-spacing: 0.5px;
}

.market-weekend-alert {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fecaca;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    line-height: 1.4;
    animation: fadeInDown 0.25s ease;
}

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

/* PAIR SELECT DROPDOWN */
.select-wrapper {
    position: relative;
}

.custom-select {
    width: 100%;
    appearance: none;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: #fff;
    padding: 14px 44px 14px 16px;
    font-size: 0.96rem;
    font-weight: 700;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-select:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.select-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-secondary);
}

/* TIMEFRAME SELECTOR (10s, 15s, 30s, 1m, 2m, 5m, 15m, 30m) */
.timeframe-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.tf-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 4px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.tf-btn.turbo {
    border-color: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
}

.tf-btn:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.tf-btn.active {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #fff;
    border-color: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
}

/* ACTION BUTTONS (MANUAL & AUTO) */
.actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 6px;
}

.btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.96rem;
    padding: 15px 18px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.22s ease;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-manual {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn-manual:hover:not(:disabled) {
    background: #253349;
    border-color: rgba(255, 255, 255, 0.28);
}

.btn-auto {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    border: 1px solid rgba(56, 189, 248, 0.6);
    color: #fff;
    box-shadow: 0 4px 22px rgba(2, 132, 199, 0.5);
    position: relative;
    overflow: hidden;
}

.btn-auto::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        transparent 30%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 70%
    );
    transform: rotate(30deg);
    animation: shimmerEffect 3.5s infinite;
}

@keyframes shimmerEffect {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

.btn-auto:hover:not(:disabled) {
    filter: brightness(1.12);
    box-shadow: 0 6px 28px rgba(56, 189, 248, 0.7);
}

/* ==========================================================================
   POPUP MODAL: FULL SCREEN MOBILE & PRO DESKTOP TRADING TERMINAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.22s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-dialog {
    background: #090e1a;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-xl);
    max-width: 660px;
    width: 100%;
    padding: 24px 22px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9), 0 0 60px rgba(56, 189, 248, 0.15);
    position: relative;
    max-height: 94vh;
    overflow-y: auto;
}

/* 100% Full-Screen on Mobile Devices (Complete Pop-up Experience) */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0 !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: #050811 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .modal-dialog {
        width: 100vw !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        max-width: 100vw !important;
        max-height: none !important;
        border-radius: 0 !important;
        border: none !important;
        margin: 0 !important;
        padding: 16px 14px 30px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        background: radial-gradient(circle at 50% 0%, #0d162d 0%, #050811 75%) !important;
        box-shadow: none !important;
    }
}

/* Modal Top Nav Bar */
.modal-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.live-dot-pulse {
    width: 8px;
    height: 8px;
    background: #00e676;
    border-radius: 50%;
    box-shadow: 0 0 10px #00e676;
    animation: livePulse 1.2s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.2s;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
}

/* --- STATE 1: 30 CANDLESTICK SCANNER VIEW --- */
.popup-scanning-view {
    text-align: center;
    width: 100%;
}

.scanner-top-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.scanner-asset-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    text-align: left;
}

.scanner-asset-name {
    font-weight: 800;
    color: #fff;
    font-size: 1rem;
}

.scanner-timeframe-tag {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
}

.candle-count-pill {
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    white-space: nowrap;
}

/* Interactive 30-Candle Trading Chart Box */
.candle-scanner-box {
    position: relative;
    width: 100%;
    height: 250px;
    background: #050811;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-md);
    margin: 0 auto 14px;
    overflow: hidden;
    padding: 14px 48px 14px 10px;
    box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.8), 0 4px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 480px) {
    .candle-scanner-box {
        height: 230px;
        padding: 10px 42px 10px 6px;
    }
}

/* Price Grid Lines & Labels */
.chart-grid-line {
    position: absolute;
    left: 0;
    right: 48px;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.chart-price-label {
    position: absolute;
    right: 6px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--text-dim);
    pointer-events: none;
}

/* Dynamic Dashed Current Price Line */
.chart-current-price-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    border-top: 1px dashed #38bdf8;
    z-index: 6;
    transition: top 0.15s ease-out;
    pointer-events: none;
}

.chart-current-price-tag {
    position: absolute;
    right: 2px;
    transform: translateY(-50%);
    background: #0284c7;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.7);
}

/* 30 Candlesticks Canvas */
.candlestick-canvas {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 3px;
    position: relative;
    z-index: 4;
}

/* Single Candle in Chart */
.chart-candle {
    flex: 1 1 0;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    min-width: 3px;
    animation: candlePop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes candlePop {
    0% { opacity: 0; transform: scaleY(0.1); }
    100% { opacity: 1; transform: scaleY(1); }
}

.candle-upper-wick,
.candle-lower-wick {
    width: 1.5px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
}

.candle-real-body {
    width: 82%;
    max-width: 11px;
    min-width: 4px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 3;
}

/* Bullish Candle (Green) */
.chart-candle.bullish .candle-upper-wick,
.chart-candle.bullish .candle-lower-wick,
.chart-candle.bullish .candle-real-body {
    background: #00e676;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.5);
}

/* Bearish Candle (Red) */
.chart-candle.bearish .candle-upper-wick,
.chart-candle.bearish .candle-lower-wick,
.chart-candle.bearish .candle-real-body {
    background: #ff2a5f;
    box-shadow: 0 0 8px rgba(255, 42, 95, 0.5);
}

/* Sweeping Cyan Laser Beam */
.scanner-laser-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #00f2fe;
    box-shadow: 0 0 14px #00f2fe, 0 0 28px rgba(56, 189, 248, 0.7);
    z-index: 10;
    transition: left 0.12s ease-out;
    pointer-events: none;
}

.laser-scanner-head {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    width: 10px;
    height: 10px;
    background: #00f2fe;
    border-radius: 50%;
    box-shadow: 0 0 12px #00f2fe;
}

/* Scanner Information Card */
.scanner-info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 12px;
}

.scan-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.scan-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.scan-pct-badge {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 800;
    color: #38bdf8;
}

.scan-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    margin-bottom: 8px;
    overflow: hidden;
}

.scan-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0284c7, #00e676);
    border-radius: 100px;
    transition: width 0.12s linear;
}

.scan-status-text {
    font-size: 0.82rem;
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    margin: 0;
    min-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dynamic Live Indicator Badges Grid */
.scanner-indicators-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

@media (max-width: 480px) {
    .scanner-indicators-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
}

.scan-ind-chip {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.scan-ind-chip.active {
    background: rgba(0, 230, 118, 0.1);
    border-color: rgba(0, 230, 118, 0.4);
    color: #00e676;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.15);
}

.chip-status-icon {
    font-size: 0.82rem;
    font-weight: 900;
}

/* --- STATE 2: SIMPLIFIED SIGNAL RESULT CARD (ZERO JARGON) --- */
.popup-result-view {
    display: none;
    animation: popReveal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popReveal {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.result-pair-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}

.payout-pill {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 5px 12px;
    border-radius: 100px;
}

/* HUGE GLOWING CALL / PUT BANNER */
.signal-banner {
    border-radius: var(--radius-md);
    padding: 22px 16px;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}

.signal-banner.call {
    background: linear-gradient(180deg, rgba(0, 230, 118, 0.22) 0%, rgba(0, 230, 118, 0.08) 100%);
    border: 2px solid var(--call-green);
    box-shadow: 0 0 35px var(--call-glow);
}

.signal-banner.put {
    background: linear-gradient(180deg, rgba(255, 42, 95, 0.22) 0%, rgba(255, 42, 95, 0.08) 100%);
    border: 2px solid var(--put-red);
    box-shadow: 0 0 35px var(--put-glow);
}

.signal-direction-text {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.signal-banner.call .signal-direction-text {
    color: var(--call-green);
    text-shadow: 0 0 25px var(--call-green);
}

.signal-banner.put .signal-direction-text {
    color: var(--put-red);
    text-shadow: 0 0 25px var(--put-red);
}

.signal-sub-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.metric-item .sub-label {
    font-size: 0.74rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
}

.metric-item .sub-value {
    font-size: 1.35rem;
    font-weight: 900;
    font-family: var(--font-mono);
}

/* ENTRY COUNTDOWN BADGE */
.countdown-badge-wrap {
    text-align: center;
    margin-bottom: 20px;
}

.countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.94rem;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 7px 18px;
    border-radius: 100px;
}

/* RESULT ACTION BUTTONS */
.result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-text-action {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-text-action:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.result-pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tf-pill {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 100px;
}

.result-meta-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 700;
    letter-spacing: 0.5px;
    display: block;
}

/* ==========================================================================
   REAL PRICE & TRADE STRATEGY DETAILS ON RESULT CARD
   ========================================================================== */
.real-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    margin-bottom: 14px;
    font-size: 0.84rem;
}

.real-price-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.real-price-value {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.05rem;
    color: #60a5fa;
    letter-spacing: 0.5px;
}

.trade-strategy-card {
    background: rgba(14, 19, 31, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 13px 14px;
    margin-bottom: 14px;
    text-align: left;
}

.strategy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin-bottom: 10px;
}

.strat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.strat-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.strat-val {
    font-size: 0.84rem;
    font-weight: 700;
    color: #f1f5f9;
}

.strat-tip {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 8px;
    font-size: 0.74rem;
    color: #94a3b8;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.strat-tip svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ==========================================================================
   VIP PAID ACTIVATION MODAL (EXECUTIVE HIERARCHY)
   ========================================================================== */
.vip-modal-dialog {
    max-width: 520px !important;
}

.vip-crown-pill {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.6px;
    display: inline-block;
}

.vip-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 8px 0 4px;
}

.vip-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.vip-steps-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    margin-top: 12px;
}

.vip-step-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}

.step-num {
    width: 24px;
    height: 24px;
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.78rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-content {
    flex: 1;
}

.step-heading {
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 3px;
}

.step-desc {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.45;
    margin-bottom: 8px;
}

.social-contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}

.btn-contact-social {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    transition: all 0.22s ease;
}

.btn-whatsapp-direct {
    background: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.45);
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.25);
}

.btn-whatsapp-direct:hover {
    background: #16a34a;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.45);
    transform: translateY(-1px);
}

.btn-telegram-direct {
    background: #0284c7;
    border: 1px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.25);
}

.btn-telegram-direct:hover {
    background: #0369a1;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45);
    transform: translateY(-1px);
}

.btn-affiliate {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    width: 100%;
    justify-content: center;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    padding: 10px 14px;
    font-size: 0.85rem;
}

.vip-vertical-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.vip-vertical-input-group input {
    width: 100%;
    background: rgba(6, 11, 23, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
    transition: all 0.2s;
}

.vip-vertical-input-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.btn-unlock-full {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: 1px solid rgba(59, 130, 246, 0.5);
    padding: 13px 18px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    transition: all 0.2s ease;
}

.btn-unlock-full:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.6);
}

.modal-error-msg {
    display: none;
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 6px;
    text-align: center;
    font-weight: 600;
}

/* ==========================================================================
   MINIMALIST CLEAN FOOTER (NO JARGON / POLICY MODALS)
   ========================================================================== */
.site-footer {
    width: 100%;
    background: rgba(8, 11, 17, 0.96);
    border-top: 1px solid var(--border-subtle);
    padding: 24px 20px 20px 20px;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-contact-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 7px 15px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-link-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

.footer-link-pill.quotex-pill:hover {
    border-color: #38bdf8;
    color: #38bdf8;
}

.footer-link-pill.whatsapp-pill:hover {
    border-color: #22c55e;
    color: #4ade80;
}

.footer-link-pill.telegram-pill:hover {
    border-color: #38bdf8;
    color: #67e8f9;
}

.broker-icon-sm {
    width: 18px;
    height: 18px;
    background: #0284c7;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.68rem;
    color: #fff;
}

.footer-copy {
    font-size: 0.76rem;
    color: var(--text-dim);
    letter-spacing: 0.3px;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (CRISP HIGH-CONTRAST SVG)
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    color: #fff;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.floating-whatsapp:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.65);
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
    display: block;
}

/* ==========================================================================
   RESPONSIVENESS (MOBILE OPTIMIZED)
   ========================================================================== */
@media (max-width: 600px) {
    .app-wrapper {
        padding: 14px 12px 30px;
    }
    .glass-card {
        padding: 16px 14px;
    }
    .timeframe-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .actions-grid {
        grid-template-columns: 1fr;
    }
    .signal-direction-text {
        font-size: 2.3rem;
    }
    .floating-whatsapp {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }
    .floating-whatsapp svg {
        width: 28px;
        height: 28px;
    }
}
