/* ================================================
   SignalX Pricing Page — Premium Dark Theme
   ================================================ */

:root {
    --bg: #080b10;
    --bg2: #0d1117;
    --bg3: #131920;
    --nav-bg: rgba(8,11,16,0.9);
    --card-bg: rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.08);
    --text: #e4eaf0;
    --muted: #8b97a3;
    --accent-blue: #3b82f6;
    --accent-amber: #f59e0b;
    --accent-purple: #8b5cf6;
    --green: #0ecb81;
    --red: #f6465d;
    --radius: 16px;
    --radius-sm: 10px;
}

[data-theme="light"] {
    --bg: #ffffff;
    --bg2: #f8fafc;
    --bg3: #f1f5f9;
    --nav-bg: rgba(255,255,255,0.9);
    --card-bg: rgba(0,0,0,0.04);
    --border: rgba(0,0,0,0.1);
    --text: #0f172a;
    --muted: #64748b;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ─── NAV ─── */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 48px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo-icon { font-size: 1.5rem; }

.nav-links {
    display: flex;
    gap: 28px;
}
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* ─── HERO ─── */
.hero {
    text-align: center;
    padding: 80px 24px 48px;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(139,92,246,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(139,92,246,0.15);
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a78bfa;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6, #0ecb81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    gap: 8px;
}
.stat { text-align: center; padding: 0 32px; }
.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text), #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ─── RATE BANNER ─── */
.rate-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 10px 24px;
    background: rgba(59,130,246,0.08);
    border-top: 1px solid rgba(59,130,246,0.15);
    border-bottom: 1px solid rgba(59,130,246,0.15);
    font-size: 0.9rem;
}
.rate-label { color: var(--muted); }
#rateDisplay { color: #60a5fa; font-weight: 700; }
.rate-source { font-size: 0.75rem; color: var(--muted); }

/* ─── PRICING SECTION ─── */
.pricing-section {
    padding: 64px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

/* ─── PLAN CARD ─── */
.plan-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
    transition: transform .3s, box-shadow .3s;
}
.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

/* Featured Pro Card */
.plan-card-featured {
    border-color: rgba(245,158,11,0.4);
    background: rgba(245,158,11,0.06);
    transform: scale(1.02);
}
.plan-card-featured:hover {
    transform: scale(1.02) translateY(-4px);
}
.featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Premium Card */
.plan-card-premium {
    border-color: rgba(139,92,246,0.5);
    background: rgba(139,92,246,0.07);
    overflow: hidden;
}
.premium-glow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139,92,246,0.25) 0%, transparent 70%);
    pointer-events: none;
}

/* Plan Header */
.plan-badge {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.basic-badge { color: #60a5fa; }
.pro-badge { color: #fbbf24; }
.premium-badge { color: #a78bfa; }

.plan-tagline {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.plan-price-idr {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
}
.plan-price-idr span {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 400;
}

.plan-price-usdt {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 22px;
}
.plan-price-usdt strong { color: #34d399; }
.usdt-idr-equiv { font-size: 0.8rem; color: var(--muted); }

/* Buy Button */
.btn-buy {
    display: block;
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    margin-bottom: 24px;
}
.btn-basic {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
}
.btn-basic:hover { background: linear-gradient(135deg, #2563eb, #60a5fa); transform: translateY(-1px); }
.btn-pro {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #000;
}
.btn-pro:hover { background: linear-gradient(135deg, #f59e0b, #fbbf24); transform: translateY(-1px); }
.btn-premium {
    background: linear-gradient(135deg, #6d28d9, #8b5cf6, #a78bfa);
    color: #fff;
}
.btn-premium:hover { background: linear-gradient(135deg, #7c3aed, #a78bfa); transform: translateY(-1px); }

/* Features List */
.plan-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text);
}
.feature-item.locked { color: var(--muted); }
.feat-check { font-size: 0.9rem; }
.feat-lock { font-size: 0.8rem; }
.feature-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* Signal Example */
.plan-example {
    margin-top: 20px;
    padding: 14px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.example-label { font-size: 0.75rem; color: var(--muted); margin-bottom: 8px; }
.example-signal { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ex-symbol { font-weight: 700; font-size: 0.95rem; }
.ex-signal {
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
}
.ex-signal.buy { background: rgba(14,203,129,0.2); color: #0ecb81; }
.ex-signal.strong-buy { background: rgba(14,203,129,0.25); color: #0ecb81; border: 1px solid rgba(14,203,129,0.4); }
.ex-conf { font-size: 0.8rem; color: var(--muted); }
.example-reasons { font-size: 0.75rem; color: var(--muted); line-height: 1.6; }
.example-tp { font-size: 0.75rem; margin-top: 6px; }
.risk-low { color: #0ecb81; font-weight: 700; }

/* ─── WHY SECTION ─── */
.why-section {
    padding: 80px 24px;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}
.why-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.why-subtitle { color: var(--muted); margin-bottom: 12px; }
.why-quote {
    font-size: clamp(0.9rem, 3vw, 1.5rem);
    font-weight: 800;
    font-style: italic;
    color: #a78bfa;
    margin-bottom: 48px;
    padding: 20px 32px;
    background: rgba(139,92,246,0.08);
    border-left: 4px solid #8b5cf6;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    max-width: max-content;
    white-space: nowrap;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.why-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.why-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: left;
    transition: transform .2s, border-color .2s;
}
.why-card:hover {
    transform: translateY(-3px);
    border-color: rgba(139,92,246,0.3);
}
.why-icon { font-size: 2rem; margin-bottom: 12px; }
.why-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.why-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ─── COMPARISON TABLE ─── */
.comparison-section {
    padding: 64px 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.comparison-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 36px;
}
.table-wrapper { overflow-x: auto; border-radius: var(--radius); }
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.comparison-table th {
    padding: 16px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    text-align: center;
    background: rgba(255,255,255,0.03);
}
.comparison-table th:first-child { text-align: left; }
.comparison-table td {
    padding: 12px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    text-align: center;
    color: var(--muted);
}
.comparison-table td:first-child { text-align: left; color: var(--text); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(255,255,255,0.02); }
.category-row td {
    font-size: 0.8rem;
    font-weight: 700;
    color: #60a5fa !important;
    background: rgba(59,130,246,0.05) !important;
    padding: 10px 20px;
    letter-spacing: 0.5px;
}
.th-basic { color: #60a5fa; }
.th-pro { color: #fbbf24; }
.th-premium { color: #a78bfa; }

/* ─── FAQ ─── */
.faq-section {
    padding: 64px 24px;
    max-width: 720px;
    margin: 0 auto;
}
.faq-section h2 {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 36px;
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.faq-q {
    width: 100%;
    background: none;
    border: none;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-align: left;
}
.faq-q:hover { background: rgba(255,255,255,0.03); }
.faq-a {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s, padding .3s;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
}
.faq-a.open {
    max-height: 200px;
    padding: 0 20px 18px;
}

/* ─── FOOTER ─── */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    text-align: center;
    color: var(--muted);
}
.footer-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}
.footer p { font-size: 0.9rem; margin-bottom: 16px; }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-disclaimer { font-size: 0.78rem; opacity: 0.6; }

/* ─── MODAL ─── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    padding: 16px;
}
.modal-overlay.open { display: flex; }

.modal-box {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    max-width: 540px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp .3s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color .2s;
}
.modal-close:hover { color: var(--text); }

.modal-header { text-align: center; margin-bottom: 28px; }
.modal-plan-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 12px;
    background: rgba(139,92,246,0.15);
    color: #a78bfa;
    border: 1px solid rgba(139,92,246,0.3);
}
.modal-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.modal-subtitle { color: var(--muted); font-size: 0.9rem; }

/* Payment Amount Box */
.payment-amount-box {
    background: rgba(14,203,129,0.08);
    border: 1px solid rgba(14,203,129,0.2);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    margin-bottom: 20px;
}
.pay-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.pay-amount { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.pay-usdt { font-size: 2rem; font-weight: 900; color: #0ecb81; }
.pay-idr { font-size: 1rem; color: var(--muted); }
.pay-network { font-size: 0.85rem; color: var(--muted); }

/* Wallet Box */
.wallet-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    margin-bottom: 22px;
}
.wallet-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.wallet-address-row { display: flex; gap: 16px; align-items: flex-start; }
.wallet-qr {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.wallet-qr canvas, .wallet-qr img { width: 100px !important; height: 100px !important; }
.wallet-info { flex: 1; min-width: 0; }
.wallet-addr {
    font-family: monospace;
    font-size: 0.78rem;
    word-break: break-all;
    color: #60a5fa;
    background: rgba(59,130,246,0.08);
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}
.btn-copy {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s;
    margin-bottom: 6px;
}
.btn-copy:hover { background: var(--border); }
.copy-success { font-size: 0.78rem; color: #0ecb81; display: none; margin-bottom: 6px; }
.wallet-warning {
    font-size: 0.78rem;
    color: #fbbf24;
    line-height: 1.5;
    background: rgba(245,158,11,0.08);
    padding: 8px 10px;
    border-radius: 6px;
    border-left: 3px solid #f59e0b;
}

/* TX Form */
.tx-form { display: flex; flex-direction: column; gap: 10px; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.form-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s;
}
.form-input:focus { border-color: #8b5cf6; }
.tx-hint { font-size: 0.78rem; color: var(--muted); }
.btn-verify {
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    border: none;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
    margin-top: 6px;
}
.btn-verify:hover { background: linear-gradient(135deg, #7c3aed, #a78bfa); transform: translateY(-1px); }
.btn-verify:disabled { opacity: 0.6; cursor: wait; }
.verify-error {
    font-size: 0.85rem;
    color: #f6465d;
    background: rgba(246,70,93,0.08);
    border-radius: 6px;
    padding: 10px 12px;
    display: none;
    border-left: 3px solid #f6465d;
    line-height: 1.6;
}

/* Success Box */
.success-box {
    text-align: center;
    padding: 20px 0;
}
.success-icon { font-size: 4rem; margin-bottom: 16px; animation: bounce .5s ease; }
@keyframes bounce {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.success-box h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.success-msg { color: var(--muted); margin-bottom: 20px; font-size: 0.95rem; }
.success-detail {
    background: rgba(14,203,129,0.08);
    border: 1px solid rgba(14,203,129,0.2);
    border-radius: 10px;
    padding: 16px 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}
.btn-go-dashboard {
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    border: none;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
}
.btn-go-dashboard:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,92,246,0.4); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .plan-card-featured { transform: none; }
    .why-cards { grid-template-columns: repeat(2, 1fr); }
    .nav { padding: 16px 20px; }
    .hero { padding: 60px 20px 40px; }
}
@media (max-width: 600px) {
    .why-cards { grid-template-columns: 1fr; }
    .wallet-address-row { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .stat-divider { width: 60px; height: 1px; }
}
