:root {
    --bg: #0a0b10;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --accent: #00e676;
    --gold: #ffd700;
    --text: #ffffff;
    --text-dim: #888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.glass-container {
    width: 95vw;
    max-width: 450px;
    background: var(--glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border);
    border-radius: 35px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 40px 80px rgba(0,0,0,0.8);
    position: relative;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.logo h1 {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo h1 span {
    color: var(--accent);
}

.pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 15px var(--accent);
    animation: pulse-kf 2s infinite;
}

@keyframes pulse-kf {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.status-badge {
    font-size: 0.6rem;
    font-weight: 800;
    background: rgba(255,255,255,0.05);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: 1.5px;
    border: 1px solid rgba(0,230,118,0.3);
}

.symbol-nav {
    display: flex;
    gap: 8px;
    background: rgba(0,0,0,0.2);
    padding: 4px;
    border-radius: 25px;
    border: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    max-width: 100%;
}

.symbol-nav::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.settings-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: rotate(45deg);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 20px;
    text-align: left;
}

.modal-content h3 {
    margin-top: 0;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--accent);
}

.version-selector {
    margin: 20px 0;
}

.version-selector label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 8px;
}

.version-selector select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    outline: none;
    font-weight: 600;
}

.version-info-box {
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.info-row {
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.logic-bar {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
    color: #888;
}

.logic-bar span {
    color: #fff;
    font-weight: 800;
}

.close-btn {
    width: 100%;
    margin-top: 25px;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
}

.nav-btn.active {
    background: var(--accent);
    color: black;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

.nav-btn:hover:not(.active) {
    color: white;
    background: rgba(255,255,255,0.05);
}

.price-display {
    text-align: center;
    margin-bottom: 20px;
}

.price-display .label {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 3px;
    margin-bottom: 12px;
    font-weight: 700;
}

.price-display .value {
    font-size: 3.8rem;
    font-weight: 900;
    letter-spacing: -2px;
}

.signal-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.signal-card.holy-grail {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.1);
}

.signal-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.accuracy {
    font-size: 0.6rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.signal-card.holy-grail .accuracy {
    color: var(--gold);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item .label {
    font-size: 0.6rem;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.stat-item .val {
    font-size: 1.1rem;
    font-weight: 700;
}

.tg-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    color: white;
    border: none;
    border-radius: 18px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(34, 158, 217, 0.3);
    transition: all 0.3s ease;
}

.tg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(34, 158, 217, 0.4);
}

.plan-header {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--accent);
    margin-top: 15px;
    margin-bottom: 10px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
    letter-spacing: 2px;
}

.plan-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.plan-item {
    display: flex;
    flex-direction: column;
}

.strike-item {
    grid-column: span 1;
}

/* Second Row: Entry, Target, SL */
.plan-item:nth-child(n+3) {
    grid-row: 2;
}

.plan-grid > div:nth-child(3),
.plan-grid > div:nth-child(4),
.plan-grid > div:nth-child(5) {
    grid-column: span 1;
}

/* Force 3 columns on second row */
.plan-grid {
    grid-template-columns: repeat(3, 1fr);
}

.strike-item {
    grid-column: span 2;
}

.p-label {
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 5px;
}

.p-val {
    font-size: 0.85rem;
    font-weight: 800;
}

.buy-badge {
    background: var(--accent);
    color: black;
    font-weight: 900;
    font-size: 0.8rem;
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 0 20px var(--accent);
    animation: pulse-kf 1s infinite;
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 600px) {
    .glass-container {
        padding: 15px;
        margin: 5px 0;
        border-radius: 15px;
    }

    header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 15px;
    }

    .symbol-nav {
        width: 100%;
        justify-content: center;
    }

    .logo h1 {
        font-size: 0.95rem;
    }
    
    .status-badge {
        display: none; /* Hide on mobile to save space */
    }

    .price-display {
        margin-bottom: 8px;
    }

    .price-display .value {
        font-size: 2.2rem;
    }

    .signal-card h2 {
        font-size: 1.5rem;
    }

    .plan-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .p-val {
        font-size: 1rem;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-item .val {
        font-size: 1rem;
    }

    .tg-btn {
        padding: 15px;
        font-size: 0.8rem;
    }
}

/* Safe Area for modern mobile browsers */
body {
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.version-tag {
    font-size: 0.55rem;
    color: var(--text-dim);
    text-align: center;
    margin-top: 20px;
    font-weight: 700;
    letter-spacing: 1.5px;
    opacity: 0.4;
    text-transform: uppercase;
}
