/* ===== GSTSim - marketing site & panels ===== */
:root {
    --navy: #0B1E59;
    --navy2: #14315D;
    --blue: #2563EB;
    --amber: #F59E0B;
    --green: #059669;
    --ink: #0F172A;
    --muted: #64748B;
    --line: #E2E8F0;
    --bg: #F6F8FC;
}

body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
a { color: var(--blue); }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.brand b { color: var(--amber); }
.brand small { font-size: .72rem; font-weight: 500; color: var(--muted); }
.brand-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }

/* site nav */
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 12px 0; }
.site-links { display: flex; align-items: center; gap: 22px; }
.site-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-links a:hover { color: var(--blue); }
.btn-site { background: var(--navy); color: #fff !important; padding: 9px 18px; border-radius: 8px; }
.btn-site:hover { background: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; font-size: 22px; color: var(--navy); }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #DBEAFE 0%, transparent 60%), linear-gradient(180deg, #F8FAFF 0%, #fff 100%); padding: 72px 0 56px; }
.hero h1 { font-size: 2.9rem; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: var(--navy); }
.hero h1 span { color: var(--blue); }
.hero p.lead { font-size: 1.15rem; color: #334155; margin: 18px 0 26px; }
.pill { display: inline-block; background: #FEF3C7; color: #92400E; font-weight: 600; font-size: .8rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.btn-hero { background: var(--navy); color: #fff; padding: 13px 26px; border-radius: 10px; font-weight: 600; text-decoration: none; display: inline-block; }
.btn-hero:hover { background: var(--blue); color: #fff; }
.btn-ghost { border: 2px solid var(--navy); color: var(--navy); padding: 11px 24px; border-radius: 10px; font-weight: 600; text-decoration: none; display: inline-block; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .25); overflow: hidden; }
.hero-card .bar { background: var(--navy); color: #fff; padding: 10px 14px; font-size: .85rem; display: flex; gap: 6px; align-items: center; }
.hero-card .bar i { width: 10px; height: 10px; border-radius: 50%; background: #F87171; display: inline-block; }
.hero-card .bar i:nth-child(2) { background: #FBBF24; }
.hero-card .bar i:nth-child(3) { background: #34D399; margin-right: 8px; }
.mock-row { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: .88rem; }
.mock-row b { color: var(--navy); }
.trust { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: .9rem; }
.trust b { color: var(--navy); font-size: 1.4rem; display: block; }

/* sections */
.sec { padding: 72px 0; }
.sec-alt { background: var(--bg); }
.sec h2 { font-size: 2.1rem; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.sec .sub { color: var(--muted); font-size: 1.05rem; max-width: 720px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; height: 100%; transition: transform .15s, box-shadow .15s; }
.feat:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(15, 23, 42, .3); }
.feat .ico { width: 46px; height: 46px; border-radius: 12px; background: #EFF6FF; color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.feat h3 { font-size: 1.08rem; font-weight: 700; }
.feat p { color: var(--muted); font-size: .93rem; margin: 0; }
.step-n { width: 38px; height: 38px; border-radius: 50%; background: var(--amber); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.cmp { border-collapse: separate; border-spacing: 0; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: .92rem; }
.cmp th, .cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp th:first-child, .cmp td:first-child { text-align: left; }
.cmp thead th { background: var(--navy); color: #fff; font-weight: 600; }
.cmp thead th.us { background: var(--blue); }
.cmp td.us { background: #EFF6FF; font-weight: 600; }
.cmp .y { color: var(--green); }
.cmp .n { color: #DC2626; }
.cmp .p { color: #D97706; }

/* pricing */
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; height: 100%; display: flex; flex-direction: column; position: relative; }
.price-card.featured { border: 2px solid var(--blue); box-shadow: 0 20px 40px -20px rgba(37, 99, 235, .45); }
.price-card .tag { position: absolute; top: -12px; left: 24px; background: var(--blue); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.price-card h3 { font-size: 1.15rem; font-weight: 700; }
.price-card .amt { font-size: 2.2rem; font-weight: 800; color: var(--navy); }
.price-card .amt small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 16px 0 22px; flex: 1; }
.price-card li { padding: 6px 0; font-size: .92rem; color: #334155; }
.price-card li i { color: var(--green); margin-right: 8px; }
.seg { display: inline-flex; background: #E2E8F0; border-radius: 10px; padding: 4px; }
.seg a { padding: 8px 18px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
.seg a.on { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); color: var(--navy); }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 10px 0 0; color: #475569; }
.cta { background: linear-gradient(120deg, var(--navy), var(--blue)); color: #fff; border-radius: 20px; padding: 44px; }
.cta h2 { color: #fff; }

.site-footer { background: #0B1229; color: #CBD5E1; padding: 52px 0 26px; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 12px; }
.site-footer a { display: block; color: #CBD5E1; text-decoration: none; font-size: .9rem; padding: 3px 0; }
.site-footer .brand { color: #fff; }

/* auth */
.auth-wrap { min-height: calc(100vh - 70px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: var(--bg); }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; width: 100%; max-width: 520px; box-shadow: 0 20px 50px -30px rgba(15, 23, 42, .35); }
.auth-card.wide { max-width: 820px; }
.auth-card h1 { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.form-label { font-weight: 600; font-size: .88rem; }
.btn-main { background: var(--navy); color: #fff; font-weight: 600; border: 0; padding: 11px 18px; border-radius: 10px; }
.btn-main:hover { background: var(--blue); color: #fff; }

/* panels */
.panel { background: var(--bg); }
.sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 250px; background: #0B1229; color: #CBD5E1; padding: 18px 14px; overflow-y: auto; z-index: 60; }
.sidebar .brand { color: #fff; margin: 0 6px 6px; }
.side-area { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #64748B; margin: 6px 8px 14px; }
.sidebar nav a { display: block; color: #CBD5E1; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: .92rem; margin-bottom: 2px; }
.sidebar nav a i { width: 22px; }
.sidebar nav a:hover { background: #1E293B; color: #fff; }
.sidebar nav a.active { background: var(--blue); color: #fff; }
.panel-main { margin-left: 250px; min-height: 100vh; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 24px; display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 40; }
.topbar h1 { font-size: 1.2rem; font-weight: 700; margin: 0; flex: 1; color: var(--navy); }
.topbar .who { text-align: right; line-height: 1.2; }
.topbar .who small { display: block; color: var(--muted); font-size: .78rem; }
.side-toggle { display: none; background: none; border: 0; font-size: 20px; }
.panel-body { padding: 24px; }
.card-p { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.card-p h2 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; gap: 14px; align-items: center; }
.stat > i { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: #EFF6FF; color: var(--blue); }
.stat span { display: block; color: var(--muted); font-size: .82rem; }
.stat b { font-size: 1.45rem; color: var(--ink); }
.stat small { display: block; color: var(--muted); font-size: .76rem; }
.stat-green > i { background: #ECFDF5; color: var(--green); }
.stat-amber > i { background: #FFFBEB; color: #D97706; }
.stat-red > i { background: #FEF2F2; color: #DC2626; }
.stat-purple > i { background: #F5F3FF; color: #7C3AED; }
.tbl { width: 100%; font-size: .88rem; }
.tbl th { background: #F1F5F9; color: #334155; font-weight: 600; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: #FAFCFF; }
.progress-thin { height: 8px; border-radius: 99px; background: #E2E8F0; overflow: hidden; }
.progress-thin div { height: 100%; background: var(--blue); }
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 10px; }
.bar-chart .col-b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: .72rem; color: var(--muted); }
.bar-chart .pair { display: flex; gap: 3px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.bar-chart .b1 { width: 40%; background: var(--blue); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-chart .b2 { width: 40%; background: #F87171; border-radius: 4px 4px 0 0; min-height: 2px; }
.msg { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.msg.admin { background: #EFF6FF; border-color: #BFDBFE; }
.msg small { color: var(--muted); }
.help-note { background: #EFF6FF; border-left: 4px solid var(--blue); padding: 10px 14px; border-radius: 8px; font-size: .88rem; color: #1E3A8A; }

@media (max-width: 900px) {
    .hero h1 { font-size: 2.1rem; }
    .nav-toggle { display: block; }
    .site-links { display: none; position: absolute; top: 62px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 20px; gap: 14px; border-bottom: 1px solid var(--line); align-items: flex-start; }
    .site-links.open { display: flex; }
    .sidebar { transform: translateX(-100%); transition: transform .2s; }
    .sidebar.open { transform: none; }
    .panel-main { margin-left: 0; }
    .side-toggle { display: block; }
    .panel-body { padding: 16px; }
    .topbar .who { display: none; }
    .cta { padding: 28px; }
}
