:root {
    --primary-color: #0D47A1;
    --primary-light: #1565C0;
    --accent-color: #00C853;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --danger: #EF4444;
    --danger-bg: #FEF2F2;
    --premium-bg-1: #0F172A;
    --premium-bg-2: #1E3A8A;
    --cyan-glow: #38BDF8;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

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

/* AURORA DYNAMIC BACKGROUND */
.aurora-bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden; background: var(--premium-bg-1); }
.aurora-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: floatBlob 20s infinite alternate ease-in-out; }
.blob-1 { width: 400px; height: 400px; background: #4338CA; top: -10%; left: -10%; }
.blob-2 { width: 350px; height: 350px; background: #0284C7; bottom: -10%; right: -10%; animation-delay: -5s; }
.blob-3 { width: 300px; height: 300px; background: #0F766E; top: 40%; left: 40%; animation-delay: -10s; }
@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(100px, 50px) scale(1.2); }
    100% { transform: translate(-50px, 100px) scale(0.9); }
}

/* MAIN WRAPPER */
.main-wrapper { width: 100%; max-width: 500px; position: relative; display: flex; flex-direction: column; padding-top: 10px; padding-bottom: 80px; }
.funnel-screen { width: 100%; border-radius: 24px; padding: 30px 20px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); }
.quiz-bg { background: var(--white); }

/* PREIMUM WELCOME SCREEN */
.welcome-premium { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--white); padding: 35px 25px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3); }
.modern-ticker { background: rgba(239, 68, 68, 0.15); color: #FCA5A5; padding: 10px 15px; border-radius: 12px; font-weight: 500; font-size: 13px; margin-bottom: 25px; width: 100%; text-align: center; border: 1px solid rgba(239, 68, 68, 0.2); display: flex; align-items: center; justify-content: center; gap: 8px; }
.pulse-dot { width: 8px; height: 8px; background-color: #EF4444; border-radius: 50%; box-shadow: 0 0 10px #EF4444; animation: flashInfo 1.5s infinite; }
@keyframes flashInfo { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }
.top-label { display: inline-block; background: rgba(56, 189, 248, 0.15); color: var(--cyan-glow); padding: 6px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 15px; }
.welcome-header { text-align: center; margin-bottom: 30px; }
.premium-title { font-size: 28px; font-weight: 800; margin-bottom: 15px; line-height: 1.25; letter-spacing: -0.5px; }
.text-highlight { color: var(--cyan-glow); text-shadow: 0 0 20px rgba(56, 189, 248, 0.3); }
.premium-desc { font-size: 15px; color: #94A3B8; line-height: 1.6; }

/* VIDEO BUBBLE */
.premium-doctor-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; padding: 20px; display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.doc-video-wrap { position: relative; width: 75px; height: 75px; cursor: pointer; border-radius: 50%; }
.story-ring { position: absolute; top: -4px; left: -4px; right: -4px; bottom: -4px; border-radius: 50%; background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); z-index: 1; animation: spinRing 4s linear infinite; }
@keyframes spinRing { 100% { transform: rotate(360deg); } }
.doc-video-wrap img { position: relative; z-index: 2; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--premium-bg-1); }
.play-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3; background: rgba(0,0,0,0.5); color: white; width: 25px; height: 25px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 11px; backdrop-filter: blur(2px); box-shadow: 0 0 10px rgba(0,0,0,0.3); padding-left: 2px; }
.doc-details h3 { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.doc-spec { font-size: 13px; color: #94A3B8; margin-bottom: 10px; }
.doc-achievements { display: flex; gap: 8px; flex-wrap: wrap; }
.doc-tag { background: rgba(255, 255, 255, 0.1); color: #E2E8F0; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }

/* FIRST-CLICK GESTALT */
.first-click-prompt { text-align: center; font-size: 16px; font-weight: 600; color: #F8FAFC; margin-bottom: 15px; }
.first-click-grid { display: flex; gap: 15px; margin-bottom: 25px; }
.first-action-btn { flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 16px; padding: 20px 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); color: white; }
.first-action-btn:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); border-color: rgba(56, 189, 248, 0.5); }
.first-action-btn:active { transform: translateY(0); }
.btn-icon { font-size: 32px; } .btn-text { font-size: 16px; font-weight: 700; }
.modern-trust { display: flex; justify-content: space-around; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 25px; }
.m-badge { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #94A3B8; font-size: 11px; font-weight: 600; }
.m-icon { font-size: 20px; background: rgba(255,255,255,0.05); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; margin-bottom: 2px; }

/* QUIZ SCREEN STYLES */
.quiz-header { margin-bottom: 30px; }
.progress-info { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--primary-color); margin-bottom: 12px; }
.progress-bar { width: 100%; height: 8px; background: #E2E8F0; border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--primary-color)); width: 0%; transition: width 0.5s ease; border-radius: 10px; }
.question-title { font-size: 22px; font-weight: 800; color: var(--text-main); margin-bottom: 24px; line-height: 1.35; }
.options-grid { display: flex; flex-direction: column; gap: 12px; }
.option-btn { background: var(--white); border: 2px solid #E2E8F0; padding: 16px 20px; border-radius: 14px; font-size: 16px; font-weight: 600; color: var(--text-main); cursor: pointer; display: flex; align-items: center; text-align: left; transition: all 0.2s ease; }
.option-btn:active { background: #F1F5F9; transform: scale(0.98); }
.option-btn.selected { border-color: var(--primary-color); background: #EFF6FF; color: var(--primary-color); }
.opt-icon { font-size: 22px; margin-right: 14px; }
.checkbox-box { width: 24px; height: 24px; border: 2px solid #CBD5E1; border-radius: 6px; margin-left: auto; display: inline-flex; align-items: center; justify-content: center; }
.option-btn.selected .checkbox-box { background: var(--primary-color); border-color: var(--primary-color); }
.option-btn.selected .checkbox-box::after { content: '✓'; color: white; font-weight: bold; }
.submit-action-btn { width: 100%; background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%); color: var(--white); border: none; padding: 20px; border-radius: 16px; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); margin-top: 25px; }
.submit-action-btn:active { transform: scale(0.97); }

/* PROGRESSIVE SKELETON ANALYZING */
.analyzing-content { text-align: center; padding: 30px 10px; }
.loader-spinner { width: 60px; height: 60px; border: 6px solid #E2E8F0; border-top-color: var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 30px; }
@keyframes spin { to { transform: rotate(360deg); } }
.analyzing-title { font-size: 22px; font-weight: 800; color: var(--primary-color); margin-bottom: 20px; }
.skeleton-box { text-align: left; background: #F8FAFC; padding: 20px; border-radius: 16px; border: 1px solid #E2E8F0; min-height: 150px; }
.sk-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #64748B; margin-bottom: 12px; opacity: 0; transform: translateY(10px); animation: popUp 0.3s forwards; }
.sk-icon { font-size: 18px; display: inline-block; animation: pulseOp 1s infinite alternate; }
.sk-item.done .sk-icon { animation: none; color: #10B981; }
.sk-item.done span.sk-text { color: #1E293B; }
@keyframes pulseOp { from { opacity: 0.5; } to { opacity: 1; } }
@keyframes popUp { to { opacity: 1; transform: translateY(0); } }

/* LOCKED VIDEO RESULT SCREEN */
.result-content { text-align: center; padding: 10px; }
.result-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(16, 185, 129, 0.1); color: #059669; padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; margin-bottom: 20px; }
.green-dot { background-color: #10B981; box-shadow: 0 0 8px #10B981; }
.result-title { font-size: 24px; font-weight: 800; color: var(--primary-color); margin-bottom: 15px; line-height: 1.25; }
.result-desc { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 25px; }

/* Locked Video CSS */
.locked-video-wrap { position: relative; width: 100%; height: 260px; border-radius: 20px; overflow: hidden; margin-bottom: 10px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); border: 2px solid #E2E8F0; }
.locked-thumb { width: 100%; height: 100%; object-fit: cover; filter: blur(10px) brightness(0.6); transform: scale(1.1); }
.lock-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; color: white; background: rgba(15, 23, 42, 0.45); }
.lock-title { font-size: 18px; font-weight: 800; margin-bottom: 6px; text-shadow: 0 2px 4px rgba(0,0,0,0.6); line-height: 1.3; }
.lock-sub { font-size: 12px; opacity: 0.95; margin-bottom: 15px; text-shadow: 0 1px 2px rgba(0,0,0,0.5); padding: 0 10px; }
.inline-timer { background: rgba(239, 68, 68, 0.9); color: white; padding: 6px 15px; border-radius: 8px; font-size: 13px; font-weight: 700; border: none; box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4); }

/* TELEGRAM FAST LANE */
.telegram-fast-lane { margin-top: 25px; text-align: center; }
.tg-btn {
    background: #2AABEE; color: white; border: none; width: 100%; border-radius: 16px;
    padding: 20px 10px; font-size: 16px; font-weight: 800; cursor: pointer;
    box-shadow: 0 10px 25px rgba(42, 171, 238, 0.4); display: flex; align-items: center; justify-content: center; gap: 10px;
}
.tg-btn:active { transform: scale(0.97); }
.tg-icon { font-size: 22px; }
.tg-note { font-size: 12px; color: #64748B; margin-top: 10px; }

.manual-form-toggle {
    margin: 20px auto 10px auto; text-align: center; color: var(--primary-light); font-size: 14px;
    font-weight: 700; text-decoration: underline; cursor: pointer; transition: 0.2s ease;
}
.manual-form-toggle:active { opacity: 0.7; }

/* FORM FALLBACK */
.lead-form { text-align: left; background: #F8FAFC; padding: 20px; border-radius: 20px; border: 1px solid #E2E8F0; margin-top: 10px; animation: popUp 0.3s forwards;}
.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 14px; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }
.input-group input { width: 100%; padding: 18px; border: 2px solid #CBD5E1; border-radius: 14px; font-size: 16px; outline: none; transition: all 0.2s ease; background: var(--white); font-weight: 500; }
.input-group input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.1); }
.error-msg { color: var(--danger); font-size: 13px; margin-top: 8px; display: none; font-weight: 600; }
.unlock-btn { background: linear-gradient(135deg, #10B981 0%, #059669 100%); box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3); margin-top: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.unlock-btn:active { box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3); transform: scale(0.98); }
.unlock-btn:disabled { background: #CBD5E1; box-shadow: none; cursor: not-allowed; color: #94A3B8; transform: none; }

/* MODALS */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { background: var(--white); padding: 40px 25px; border-radius: 24px; text-align: center; max-width: 420px; width: 100%; box-shadow: 0 25px 50px rgba(0,0,0,0.25); }
.modal-title { color: var(--danger); font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.modal-subtitle { color: var(--primary-color); font-size: 20px; font-weight: 800; margin-bottom: 20px; line-height: 1.3; }
.modal-desc { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-bottom: 30px; }
#close-modal-btn { margin-top: 0; }
.video-modal-card { position: relative; background: transparent; width: 100%; max-width: 350px; }
.close-btn { position: absolute; top: -40px; right: 0; background: none; border: none; color: white; font-size: 30px; cursor: pointer; }
.video-placeholder { background: linear-gradient(145deg, #1E293B, #0F172A); border-radius: 20px; height: 500px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.video-fake-ui { text-align: center; color: var(--white); padding: 30px; }
.video-fake-ui h3 { color: var(--cyan-glow); margin-bottom: 15px; }

/* LIVE TIKCER */
.live-ticker { position: fixed; bottom: 20px; left: 20px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border: 1px solid rgba(0,0,0,0.05); color: #1E293B; padding: 12px 18px; border-radius: 16px; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); z-index: 100; transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease; max-width: 300px; }
.ticker-icon { font-size: 18px; }
@media (max-width: 480px) { .live-ticker { bottom: 15px; left: 15px; right: 15px; max-width: 100%; } }
