/*
 * Public surfaces: the fxgroup.vip marketing site, auth pages and each
 * trader's {username}.fxgroup.vip mini-site. Builds on fx.css tokens.
 */

.site { background: #fff; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 575.98px) { .container { padding: 0 16px; } }

/* ── Header / footer ──────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--fx-line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.site-nav { display: flex; align-items: center; gap: 0.35rem; }
.site-nav a.link { color: var(--fx-muted); font-weight: 500; font-size: 0.92rem; padding: 0.5rem 0.75rem; border-radius: 9px; }
.site-nav a.link:hover { color: var(--fx-text); background: var(--fx-slate-100); text-decoration: none; }
@media (max-width: 767.98px) { .site-nav .hide-sm { display: none; } }

.site-footer { border-top: 1px solid var(--fx-line); background: var(--fx-canvas); padding: 2.5rem 0; margin-top: 4rem; font-size: 0.85rem; color: var(--fx-muted); }
.site-footer .container { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }
.site-footer .links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer .links a { color: var(--fx-muted); }
.risk-note { max-width: 560px; font-size: 0.75rem; color: var(--fx-faint); margin-top: 0.75rem; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 5rem 0 4.5rem; background:
    radial-gradient(900px 400px at 85% -10%, rgba(15, 159, 110, 0.12), transparent 60%),
    radial-gradient(700px 380px at -5% 110%, rgba(37, 99, 235, 0.08), transparent 60%), #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.45rem; background: var(--fx-green-lt); color: var(--fx-green-ink); font-weight: 700; font-size: 0.78rem; padding: 0.35rem 0.8rem; border-radius: 999px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; margin: 1rem 0 1rem; line-height: 1.08; }
.hero h1 em { font-style: normal; color: var(--fx-green); }
.hero p.lead { font-size: 1.12rem; color: var(--fx-muted); max-width: 540px; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero-points { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.75rem; font-size: 0.85rem; color: var(--fx-muted); }
.hero-points span { display: inline-flex; align-items: center; gap: 0.35rem; }
.hero-points i { color: var(--fx-green); }
.hero-visual { position: relative; }
.hero-visual .card { box-shadow: var(--fx-shadow-lg); }
.hero-visual .float { position: absolute; right: -10px; bottom: -22px; width: 220px; }
@media (max-width: 991.98px) { .hero { padding: 3rem 0; } .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; } .hero-visual .float { display: none; } }

/* ── Sections ─────────────────────────────────────────────────── */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--fx-canvas); }
.section-head { max-width: 640px; margin: 0 0 2.25rem; }
.section-head.center { margin: 0 auto 2.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; margin: 0.6rem 0 0.6rem; }
.section-head p { color: var(--fx-muted); font-size: 1.02rem; }
@media (max-width: 767.98px) { .section { padding: 3rem 0; } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.step { padding: 1.5rem; }
.step-n { width: 40px; height: 40px; border-radius: 12px; background: var(--fx-navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.step h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.step p { color: var(--fx-muted); font-size: 0.92rem; margin: 0; }
@media (max-width: 767.98px) { .steps { grid-template-columns: 1fr; } }

/* ── Trader cards ─────────────────────────────────────────────── */
.trader-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 991.98px) { .trader-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .trader-grid { grid-template-columns: 1fr; } }
.trader-card { display: flex; flex-direction: column; padding: 1.25rem; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.trader-card:hover { box-shadow: var(--fx-shadow-lg); transform: translateY(-2px); }
.trader-card-top { display: flex; gap: 0.85rem; align-items: center; }
.trader-card-top .fx-avatar { width: 56px; height: 56px; font-size: 1.1rem; }
.trader-card h3 { font-size: 1.02rem; display: flex; align-items: center; gap: 0.3rem; }
.trader-card h3 .ti-rosette-discount-check { color: var(--fx-blue); font-size: 1.05rem; }
.trader-card .handle { font-size: 0.78rem; color: var(--fx-muted); }
.trader-card p.desc { color: var(--fx-muted); font-size: 0.88rem; margin: 0.9rem 0 1rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.trader-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-top: 0.9rem; border-top: 1px solid var(--fx-line); }
.price-from { font-size: 0.75rem; color: var(--fx-muted); }
.price-from strong { display: block; font-size: 1.15rem; color: var(--fx-text); font-weight: 800; }

.provider-cta { background: var(--fx-navy); color: #fff; border-radius: 24px; padding: 3rem; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 2rem; align-items: center; }
.provider-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.8rem; }
.provider-cta p { color: #c3cce0; }
.provider-cta ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.55rem; }
.provider-cta li { display: flex; gap: 0.5rem; align-items: flex-start; color: #dfe5f1; }
.provider-cta li i { color: #34d399; margin-top: 0.15rem; }
.calc { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; padding: 1.4rem; }
.calc-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; font-size: 0.92rem; color: #c3cce0; }
.calc-row strong { color: #fff; font-variant-numeric: tabular-nums; }
.calc-row.total { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 0.4rem; padding-top: 0.8rem; }
.calc-row.total strong { color: #34d399; font-size: 1.3rem; }
@media (max-width: 767.98px) { .provider-cta { grid-template-columns: 1fr; padding: 1.75rem; border-radius: 18px; } }

/* ── Auth ─────────────────────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; background:
    radial-gradient(700px 360px at 100% 0%, rgba(15, 159, 110, 0.1), transparent 60%), var(--fx-canvas); }
.auth-top { padding: 1.25rem 20px; display: flex; justify-content: space-between; align-items: center; max-width: 1160px; width: 100%; margin: 0 auto; }
.auth-wrap { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 1.5rem 16px 3rem; }
.auth-card { width: 100%; max-width: 440px; padding: 2rem; }
.auth-card.wide { max-width: 620px; }
.auth-card h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.35rem; }
.auth-card .intro { color: var(--fx-muted); margin-bottom: 1.5rem; }
.auth-card .stack-form > * + * { margin-top: 1rem; }
.auth-alt { text-align: center; font-size: 0.88rem; color: var(--fx-muted); margin-top: 1.25rem; }
.plan-chip { display: flex; gap: 0.75rem; align-items: center; padding: 0.8rem; border-radius: 12px; background: var(--fx-canvas); border: 1px solid var(--fx-line); margin-bottom: 1.25rem; }
@media (max-width: 575.98px) { .auth-card { padding: 1.35rem; } }

/* ── Trader mini-site ─────────────────────────────────────────── */
.ts-cover { height: 180px; background:
    linear-gradient(135deg, rgba(12, 26, 51, 0.96), rgba(24, 52, 99, 0.94)),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255, 255, 255, 0.04) 38px 39px); position: relative; overflow: hidden; }
.ts-cover svg { position: absolute; inset: auto 0 0 0; width: 100%; height: 120px; opacity: 0.5; }
.ts-head { display: flex; gap: 1.5rem; align-items: flex-start; margin-top: -56px; position: relative; flex-wrap: wrap; }
/* Only the avatar overlaps the cover; the text starts below it. */
.ts-head-info, .ts-head-cta { padding-top: 66px; }
@media (max-width: 575.98px) { .ts-head { gap: 0.75rem; } .ts-head-info { padding-top: 0; flex-basis: 100%; } .ts-head-cta { padding-top: 0; width: 100%; } .ts-head-cta .btn { width: 100%; } }
.ts-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.ts-head .handle { color: var(--fx-muted); font-size: 0.92rem; }
.ts-head .tagline { font-size: 1.02rem; color: var(--fx-text); margin-top: 0.3rem; }
.ts-head-info { flex: 1; min-width: 240px; }
.ts-facts { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.25rem; font-size: 0.88rem; color: var(--fx-muted); }
.ts-facts span { display: inline-flex; align-items: center; gap: 0.35rem; }
.ts-facts strong { color: var(--fx-text); }
.ts-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; margin-top: 2rem; align-items: start; }
.ts-aside { position: sticky; top: 84px; }
@media (max-width: 991.98px) { .ts-layout { grid-template-columns: minmax(0, 1fr); } .ts-aside { position: static; } }
.about-text { white-space: pre-line; color: var(--fx-text); }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.fact { background: var(--fx-canvas); border-radius: 12px; padding: 0.75rem 0.9rem; }
.fact-k { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fx-muted); }
.fact-v { font-weight: 600; margin-top: 0.15rem; font-size: 0.92rem; }
@media (max-width: 575.98px) { .fact-grid { grid-template-columns: 1fr; } }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.stat { background: var(--fx-canvas); border-radius: 12px; padding: 0.85rem; }
.stat-v { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat-k { font-size: 0.72rem; color: var(--fx-muted); font-weight: 600; }
@media (max-width: 767.98px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.disclaimer { font-size: 0.76rem; color: var(--fx-muted); background: var(--fx-canvas); border-radius: 10px; padding: 0.65rem 0.8rem; margin-top: 1rem; display: flex; gap: 0.5rem; }
.plan { border: 1.5px solid var(--fx-line); border-radius: 14px; padding: 1rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.plan + .plan { margin-top: 0.7rem; }
.plan.best { border-color: var(--fx-green); background: color-mix(in srgb, var(--fx-green) 4%, #fff); }
.plan-name { font-weight: 700; }
.plan-price { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 0.8rem; font-weight: 500; color: var(--fx-muted); letter-spacing: 0; }
.plan-note { font-size: 0.76rem; color: var(--fx-muted); margin-top: 0.15rem; }
.preview-bar { background: var(--fx-amber); color: #fff; text-align: center; padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 600; }
.preview-bar a { color: #fff; text-decoration: underline; }

/* Checkout */
.gateway-option { display: flex; gap: 0.85rem; align-items: flex-start; border: 1.5px solid var(--fx-line); border-radius: 12px; padding: 0.9rem 1rem; cursor: pointer; }
.gateway-option + .gateway-option { margin-top: 0.6rem; }
.gateway-option:has(input:checked) { border-color: var(--fx-green); background: color-mix(in srgb, var(--fx-green) 4%, #fff); }
.gateway-option input { margin-top: 0.3rem; accent-color: var(--fx-green); }
.gateway-option .gw-icon { font-size: 1.5rem; color: var(--fx-navy); }
.gateway-extra { display: none; margin-top: 0.75rem; }
.gateway-option:has(input:checked) .gateway-extra { display: block; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; font-size: 0.92rem; }
.summary-row.total { border-top: 1px solid var(--fx-line); margin-top: 0.4rem; padding-top: 0.8rem; font-weight: 800; font-size: 1.1rem; }
.status-hero { text-align: center; padding: 2.5rem 1.5rem; }
.status-hero .icon { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 1rem; }
.status-hero h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.4rem; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--fx-line); border-top-color: var(--fx-green); border-radius: 50%; animation: spin 0.9s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } .trader-card:hover { transform: none; } }
