:root {
    --bg-main: #0A0505;
    --panel-bg: #140808;
    --panel-border: #2B1515;
    --text-primary: #FFFFFF;
    --text-secondary: #A58B8B;
    --accent-red: #DC2626;
    --accent-maroon: #7F1D1D;
    --accent-dark-maroon: #450A0A;
    --accent-glow: rgba(220, 38, 38, 0.4);
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-x: hidden;
    position: relative;
}

.background-orbs { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: -1; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: float 10s infinite ease-in-out alternate; }
.orb-1 { width: 400px; height: 400px; background: var(--accent-red); top: -100px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: var(--accent-maroon); bottom: 10%; right: -50px; animation-delay: -5s; }
.orb-3 { width: 250px; height: 250px; background: #991B1B; top: 40%; left: 40%; opacity: 0.2; animation-duration: 15s; }
@keyframes float { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(50px,50px) scale(1.1); } }

.dashboard { width: 100%; max-width: 500px; }

.monster-logo {
    width: 80px; height: 80px; margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-dark-maroon));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 40px var(--accent-glow);
    animation: monster-pulse 2s infinite ease-in-out;
}
.monster-logo i { font-size: 2.5rem; color: white; filter: drop-shadow(0 0 10px rgba(255,255,255,0.5)); }
@keyframes monster-pulse {
    0%, 100% { box-shadow: 0 0 40px var(--accent-glow); transform: scale(1); }
    50% { box-shadow: 0 0 60px var(--accent-glow); transform: scale(1.05); }
}

header { text-align: center; margin-bottom: 2.5rem; }
h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.5rem; letter-spacing: 1px; }
.gradient-text {
    background: linear-gradient(to right, #DC2626, #991B1B);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(220,38,38,0.3);
}
.subtitle { color: var(--text-secondary); font-size: 1rem; }

.main-panel {
    background-color: rgba(20,8,8,0.6);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5), 0 0 30px rgba(220,38,38,0.1);
}

.market-toggles {
    display: flex; gap: 12px; margin-bottom: 24px; justify-content: center;
    background: rgba(20,8,8,0.4); padding: 6px; border-radius: 12px;
    border: 1px solid var(--panel-border);
}
.market-toggle-btn {
    flex: 1; padding: 12px 16px; background: transparent;
    border: 1px solid transparent; border-radius: 8px;
    color: var(--text-secondary); cursor: pointer;
    font-weight: 700; font-size: 0.85rem; letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    position: relative; overflow: hidden; z-index: 1;
}
.market-toggle-btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(220,38,38,0.2), rgba(127,29,29,0.2));
    z-index: -1; opacity: 0; transition: opacity 0.4s;
}
.market-toggle-btn:hover { color: var(--text-primary); border-color: rgba(220,38,38,0.3); }
.market-toggle-btn:hover::before { opacity: 1; }
.market-toggle-btn.active {
    background: linear-gradient(135deg, rgba(220,38,38,0.8), rgba(127,29,29,0.8));
    color: #fff;
    border: 1px solid rgba(220,38,38,0.5);
    box-shadow: 0 0 20px rgba(220,38,38,0.3), inset 0 0 10px rgba(255,255,255,0.1);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    transform: translateY(-1px);
}

.timeframe-section { margin-bottom: 1.5rem; text-align: center; }

.timeframe-toggles {
    display: flex; gap: 0.5rem; justify-content: center;
    background: rgba(20,8,8,0.4); padding: 6px; border-radius: 12px;
    border: 1px solid var(--panel-border);
    margin-top: 0.6rem;
}
.tf-btn {
    flex: 1; padding: 10px 8px; background: transparent;
    border: 1px solid transparent; border-radius: 8px;
    color: var(--text-secondary); cursor: pointer;
    font-weight: 700; font-size: 0.85rem;
    transition: all 0.3s;
}
.tf-btn:hover { color: var(--text-primary); background: rgba(220,38,38,0.1); }
.tf-btn.active {
    background: linear-gradient(135deg, rgba(220,38,38,0.9), rgba(127,29,29,0.9));
    color: #fff;
    border: 1px solid rgba(220,38,38,0.6);
    box-shadow: 0 0 15px rgba(220,38,38,0.4);
}

.controls-row { display: flex; gap: 1rem; margin-bottom: 2rem; }
.control-group { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.control-group label {
    font-size: 0.75rem; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500;
}

.select-wrapper {
    position: relative;
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
}
.custom-select {
    width: 100%; appearance: none; background: transparent;
    border: none; color: var(--text-primary); font-size: 1rem;
    padding: 0.8rem 1rem; outline: none; cursor: pointer; font-weight: 500;
}
.custom-select option { background-color: var(--panel-bg); }
.select-wrapper i {
    position: absolute; right: 1rem; top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary); pointer-events: none;
}

.strategy-section { margin-bottom: 2rem; text-align: center; }
.strategy-label {
    font-size: 0.75rem; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.5px;
    font-weight: 500; margin-bottom: 0.8rem;
}
.strategy-toggles {
    display: flex; justify-content: center;
    gap: 0.6rem; flex-wrap: wrap;
}
.strategy-toggle {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--panel-border);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.strategy-toggle:hover { background: rgba(220,38,38,0.1); border-color: rgba(220,38,38,0.3); }
.strategy-toggle.active {
    background: rgba(220,38,38,0.2);
    border-color: var(--accent-red);
    color: #fff;
    box-shadow: 0 0 10px rgba(220,38,38,0.3);
}

.generate-section { display: flex; flex-direction: column; align-items: center; padding-bottom: 1rem; }
.limit-indicator {
    text-align: center; color: var(--text-secondary);
    font-size: 0.9rem; margin-bottom: 1rem;
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1rem; border-radius: 20px;
    display: inline-block;
}

.generate-btn {
    width: 280px; height: 280px; border-radius: 50%;
    background: radial-gradient(circle at center, rgba(40,10,10,0.8) 0%, rgba(15,5,5,0.9) 100%);
    border: 2px solid rgba(220,38,38,0.8);
    box-shadow: 0 0 50px var(--accent-glow), inset 0 0 30px rgba(220,38,38,0.2);
    cursor: pointer; position: relative;
    display: flex; justify-content: center; align-items: center;
    color: var(--text-primary);
    transition: transform 0.2s, box-shadow 0.2s;
    outline: none; margin-bottom: 2rem;
}
.generate-btn:hover { transform: scale(1.02); box-shadow: 0 0 70px var(--accent-glow), inset 0 0 40px rgba(220,38,38,0.3); }
.generate-btn:active { transform: scale(0.98); }
.generate-btn::before {
    content: ''; position: absolute;
    width: 90%; height: 90%; border-radius: 50%;
    border: 1px dashed rgba(220,38,38,0.2);
}
.btn-content { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; z-index: 2; }
.btn-content i {
    font-size: 2rem; color: var(--accent-red);
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}
.btn-content span { font-size: 1.5rem; font-weight: 800; line-height: 1.2; text-align: center; }

.generate-hint { display: flex; align-items: center; gap: 0.8rem; color: var(--text-secondary); font-size: 0.9rem; }
.hint-icon {
    width: 24px; height: 24px; border-radius: 50%;
    background-color: rgba(220,38,38,0.1);
    border: 1px solid rgba(220,38,38,0.3);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-red); font-size: 0.8rem;
}

.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    z-index: 100;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-content {
    background: linear-gradient(180deg, #140808 0%, #0A0505 100%);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    width: 90%; max-width: 400px;
    padding: 2rem 1.5rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8), 0 0 50px rgba(220,38,38,0.1);
    max-height: 92vh;
    overflow-y: auto;
}
.modal-overlay.active .modal-content { transform: translateY(0); }

.close-modal {
    position: absolute; top: 1rem; right: 1rem;
    background: transparent; border: none;
    color: var(--text-secondary); font-size: 1.5rem;
    cursor: pointer; transition: color 0.2s; z-index: 10;
}
.close-modal:hover { color: var(--text-primary); }

.modal-header { text-align: center; margin-bottom: 1.5rem; }
.success-check {
    width: 60px; height: 60px; border-radius: 50%;
    border: 2px solid var(--accent-red);
    display: flex; justify-content: center; align-items: center;
    margin: 0 auto 1rem;
    font-size: 2rem; color: var(--accent-red);
    box-shadow: 0 0 20px var(--accent-glow);
}
.modal-header h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.2rem; }
.modal-header p { color: var(--text-secondary); font-size: 0.9rem; letter-spacing: 1px; }

.countdown-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    display: flex; align-items: center; gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap; justify-content: center;
}
.countdown-box i { color: var(--text-secondary); font-size: 1.2rem; }
.countdown-box span { color: var(--text-secondary); font-size: 0.85rem; }
.countdown-box strong { color: var(--accent-red); font-size: 1.2rem; font-variant-numeric: tabular-nums; }

.direction-card {
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 15px; padding: 1.5rem;
    text-align: center; position: relative;
    overflow: hidden; margin-bottom: 1.5rem;
    box-shadow: inset 0 0 30px rgba(16,185,129,0.05);
}
.direction-card.put {
    border-color: rgba(239,68,68,0.3);
    box-shadow: inset 0 0 30px rgba(239,68,68,0.05);
}
.direction-card.wait {
    border-color: rgba(245,158,11,0.3);
    box-shadow: inset 0 0 30px rgba(245,158,11,0.05);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-height: 230px;
}
.direction-card.wait .dir-label { order: 1; }
.direction-card.wait #wait-animation-wrapper {
    order: 2; position: relative !important;
    width: 150px !important; height: 150px !important;
    margin: 0 auto 0.5rem !important;
}
.direction-card.wait h3 { order: 3; margin: 0.5rem 0 0 !important; }

.dir-label { color: var(--success); font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; }
.direction-card.put .dir-label { color: var(--danger); }
.direction-card.wait .dir-label { color: var(--warning); }
.direction-card h3 {
    font-size: 2.5rem; color: var(--success);
    font-weight: 800; margin: 0.5rem 0 1rem;
    text-shadow: 0 0 20px rgba(16,185,129,0.4);
}
.direction-card.put h3 { color: var(--danger); text-shadow: 0 0 20px rgba(239,68,68,0.4); }
.direction-card.wait h3 { color: var(--warning); text-shadow: 0 0 20px rgba(245,158,11,0.4); }

.direction-card > *:not(.chart-bg):not(.particles) { position: relative; z-index: 1; }

.chart-bg {
    position: absolute !important; top: 0; left: 0;
    width: 200%; height: 100%;
    z-index: 0 !important; opacity: 0.15;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px, 20px 20px;
    pointer-events: none;
}
.particles {
    position: absolute; inset: -100%;
    pointer-events: none;
    background-image:
        radial-gradient(1.5px 1.5px at 20px 30px, #10B981, transparent),
        radial-gradient(2px 2px at 40px 70px, #10B981, transparent),
        radial-gradient(1px 1px at 50px 160px, #10B981, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: drift 30s linear infinite;
    opacity: 0.6;
}
.direction-card.put .particles { background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #EF4444, transparent),
    radial-gradient(2px 2px at 40px 70px, #EF4444, transparent),
    radial-gradient(1px 1px at 50px 160px, #EF4444, transparent); }
@keyframes drift {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(5deg); }
}

.dir-arrow-wrapper {
    width: 120px; height: 150px; margin: 0 auto;
    filter: drop-shadow(0 0 20px rgba(16,185,129,0.6));
    animation: float-arrow 2s infinite ease-in-out;
}
.direction-card.put .dir-arrow-wrapper { filter: drop-shadow(0 0 20px rgba(239,68,68,0.6)); }
@keyframes float-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stats-row {
    display: flex; justify-content: space-between;
    margin-bottom: 1rem;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
}
.stat-item {
    display: flex; flex-direction: column;
    align-items: center; gap: 0.3rem; flex: 1;
}
.stat-item:not(:last-child) { border-right: 1px solid var(--panel-border); }
.stat-item i { color: var(--text-secondary); font-size: 1.2rem; }
.stat-item span { color: var(--text-secondary); font-size: 0.65rem; letter-spacing: 0.5px; }
.stat-item strong { font-size: 0.9rem; font-weight: 600; }

.mtf-row {
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 0.8rem;
    background: rgba(0,0,0,0.2);
    margin-bottom: 1rem;
}
.mtf-label {
    font-size: 0.7rem; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 0.6rem; text-align: center;
}
.mtf-alignment {
    display: flex; justify-content: space-around;
    gap: 0.5rem;
}
.mtf-item {
    display: flex; flex-direction: column;
    align-items: center; gap: 0.2rem; flex: 1;
}
.mtf-item .tf-name { font-size: 0.65rem; color: var(--text-secondary); }
.mtf-item .tf-sig {
    font-size: 0.75rem; font-weight: 700;
    padding: 0.2rem 0.5rem; border-radius: 6px;
}
.mtf-item .tf-sig.call { color: #10B981; background: rgba(16,185,129,0.15); }
.mtf-item .tf-sig.put { color: #EF4444; background: rgba(239,68,68,0.15); }

.got-it-btn {
    width: 100%; padding: 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-maroon));
    border: none; color: white;
    font-size: 1rem; font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(220,38,38,0.3);
}
.got-it-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(220,38,38,0.4); }

.modal-loading-view {
    position: relative;
    padding: 3rem 1rem;
    text-align: center;
    border-radius: 20px;
}

.radar-wrapper {
    position: relative;
    width: 150px; height: 150px;
    margin: 0 auto 2rem;
    z-index: 2;
}
.radar-circle {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    border-radius: 50%;
    border: 1px solid rgba(220,38,38,0.4);
    animation: radar-pulse 3s infinite cubic-bezier(0.25,1,0.5,1);
    box-sizing: border-box;
}
.radar-outer { width: 150px; height: 150px; animation-delay: 1.5s; }
.radar-inner { width: 105px; height: 105px; }
.radar-core {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 75px; height: 75px;
    border-radius: 50%;
    border: 2px solid var(--accent-red);
    display: flex; justify-content: center; align-items: center;
    z-index: 3;
    box-shadow: 0 0 20px var(--accent-glow), inset 0 0 20px var(--accent-glow);
    box-sizing: border-box;
}
.radar-core i { font-size: 2rem; color: var(--accent-red); }
.orbit-path {
    position: absolute; width: 100%; height: 100%;
    border-radius: 50%;
    animation: orbit 3s linear infinite;
}
.orbit-dot {
    position: absolute; top: -4px; left: 50%;
    transform: translateX(-50%);
    width: 8px; height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-red), 0 0 20px var(--accent-glow);
}
@keyframes orbit { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes radar-pulse {
    0% { transform: translate(-50%,-50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%,-50%) scale(1.5); opacity: 0; }
}

.loading-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; position: relative; z-index: 2; }
.loading-subtitle { color: var(--text-secondary); font-size: 0.9rem; position: relative; z-index: 2; }

.hero-section { text-align: center; margin-bottom: 3rem; }
.badges-row {
    display: flex; justify-content: center;
    gap: 1rem; flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.badge {
    background: rgba(220,38,38,0.15);
    border: 1px solid rgba(220,38,38,0.3);
    padding: 0.5rem 1rem; border-radius: 20px;
    font-size: 0.85rem; color: #FCA5A5;
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 600;
}
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.cta-button.primary {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-maroon));
    border: none; padding: 1.2rem 2.5rem;
    border-radius: 30px; color: white;
    font-size: 1.2rem; font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(220,38,38,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.cta-button.primary:hover { transform: translateY(-2px); box-shadow: 0 15px 35px rgba(220,38,38,0.6); }

.telegram-links { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.tg-btn {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.8rem 1.2rem; border-radius: 12px;
    text-decoration: none; font-weight: 600; font-size: 0.9rem;
    transition: all 0.2s;
}
.buy-btn { background: rgba(16,185,129,0.1); color: #10B981; border: 1px solid rgba(16,185,129,0.3); }
.support-btn { background: rgba(255,255,255,0.05); color: var(--text-secondary); border: 1px solid rgba(255,255,255,0.1); }
.tg-btn:hover { filter: brightness(1.2); transform: translateY(-2px); }

.pulsing-dot { animation: pulse-opacity 1.5s infinite; }
@keyframes pulse-opacity { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.vip-badge {
    background: linear-gradient(135deg, #DC2626, #7F1D1D);
    color: white; padding: 0.2rem 0.6rem;
    border-radius: 12px; font-size: 0.7rem;
    font-weight: 800; text-transform: uppercase;
    box-shadow: 0 0 10px rgba(220,38,38,0.4);
    display: inline-flex; align-items: center; gap: 4px;
}

.upgrade-content { text-align: center; }
.unlock-icon {
    font-size: 3rem; color: var(--accent-red);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--accent-glow);
}
.pricing-tiers { margin-top: 1.5rem; }
.tier {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(220,38,38,0.3);
    border-radius: 15px; padding: 1.5rem;
}
.tier h3 { color: #FCA5A5; margin-bottom: 0.5rem; }
.tier ul { list-style: none; text-align: left; margin-bottom: 1.5rem; }
.tier ul li {
    margin-bottom: 0.5rem;
    display: flex; align-items: center; gap: 0.5rem;
    color: var(--text-secondary);
}
.full-width { width: 100%; display: inline-flex; justify-content: center; }

@media (max-width: 480px) {
    .dashboard { padding: 0.5rem; }
    h1 { font-size: 1.8rem; }
    .generate-btn { width: 240px; height: 240px; }
    .btn-content span { font-size: 1.2rem; }
    .controls-row { flex-direction: column; margin-bottom: 2rem; gap: 1.2rem; }
    .modal-content { padding: 1.2rem 1rem; width: 95%; }
    .strategy-toggles { gap: 0.4rem; }
    .strategy-toggle { font-size: 0.65rem; padding: 0.3rem 0.6rem; }
    .tf-btn { font-size: 0.75rem; padding: 8px 6px; }
}

@media (min-width: 768px) {
    .dashboard { max-width: 650px; padding-top: 4rem; }
    h1 { font-size: 3rem; }
    .generate-btn { width: 320px; height: 320px; }
    .btn-content span { font-size: 1.8rem; }
}