/*
 * TERA OPTIONS — the light look of the homepage (white, hairline borders, IBM Plex) for the pages built on
 * tokens.css + components.css: sign-in, the documents, verified prices, trade receipts and the account pages.
 * Loaded last. Everything here applies under html.lt, which those pages set in their markup; the wallet drops the
 * class inside the platform's pop-up, so there it keeps the platform's dark look.
 *
 * The tokens do most of the work. The rest are colours the page styles set directly for a dark background
 * (light text, dark glass panels, white washes), given their light equivalents here, file by file.
 */
html.lt {
  --c-bg: #f5f7fa;
  --c-bg-2: #ffffff;
  --c-logo: #2453d9;
  --c-surface: #ffffff;
  --c-surface-2: #f5f7fa;
  --c-surface-3: #eef2f7;
  --c-text: #0b1b33;
  --c-text-2: #4a5a70;
  --c-text-3: #6b7a90;
  --c-accent: #2453d9;
  --c-accent-hover: #1c44b8;
  --c-accent-soft: rgba(36, 83, 217, 0.08);
  --c-cyan: #0b6c99;
  --c-cyan-soft: rgba(11, 108, 153, 0.07);
  --c-border: #e2e7ee;
  --c-border-strong: #cfd7e2;
  --c-up: #0b8f6c;
  --c-down: #cf3341;
  --c-warn: #9a6400;
  --c-focus: #2453d9;
  --font-sans: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sh-1: 0 1px 2px rgba(11, 27, 51, 0.05);
  --sh-2: 0 12px 32px -16px rgba(11, 27, 51, 0.22);
  --sh-3: 0 24px 60px -30px rgba(11, 27, 51, 0.25), 0 0 0 1px var(--c-border);
  --sh-glow: 0 0 0 1px rgba(36, 83, 217, 0.2), 0 10px 28px -14px rgba(36, 83, 217, 0.45);
  --lt-gold: #8a5a00;
  --lt-red: #b42330;
  --lt-blue: #1c44b8;
  --lt-teal: #0b7a5c;
  --lt-well: #f7f9fc;
  --lt-wash: rgba(11, 27, 51, 0.04);
  --lt-wash-2: rgba(11, 27, 51, 0.07);
  color-scheme: light;
  background: var(--c-bg);
  -webkit-tap-highlight-color: rgba(36, 83, 217, 0.1);
}
html.lt[lang="ar"] {
  --font-sans: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
}
html.lt body { background: var(--c-bg); color: var(--c-text); -webkit-font-smoothing: antialiased; }
html.lt.is-leaving { background: var(--c-bg); }
html.lt h1, html.lt h2, html.lt h3 { letter-spacing: -0.01em; }

/* ---------- components.css ---------- */
html.lt .btn-primary { box-shadow: 0 6px 16px -8px rgba(36, 83, 217, 0.55); }
html.lt .btn-secondary { --btn-bg: #fff; }
@media (hover: hover) {
  html.lt .btn:hover { background: var(--c-surface-2); }
  html.lt .btn-primary:hover { background: var(--c-accent-hover); }
  html.lt .btn-ghost:hover { background: var(--lt-wash); }
  html.lt .input:hover { border-color: #b3bfcf; }
  html.lt .input-action:hover { background: var(--lt-wash); }
}
html.lt .btn:active { background-image: linear-gradient(var(--lt-wash-2), var(--lt-wash-2)); }
html.lt .btn-primary:active { background-image: linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)); }
html.lt .input-action:active { background: var(--lt-wash-2); }
html.lt .input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(207, 51, 65, 0.12); }
html.lt .field-error { color: var(--lt-red); }
html.lt .card { background: #fff; }
html.lt .badge-accent { color: var(--lt-blue); }
html.lt [data-tip]::after { background: #0b1b33; color: #fff; }
html.lt .alert-error { border-color: #f1c4c8; background: #fdf1f2; color: #8f1d27; }
html.lt .alert-success { border-color: #b9e5d6; background: #ecf8f3; color: #0b5e47; }
html.lt .alert-info { border-color: #c4e1ef; background: #eef7fc; color: #0b5277; }
html.lt .spinner { border-color: rgba(11, 27, 51, 0.14); border-top-color: currentColor; }

/* ---------- auth.css: sign-in and the account pages' frame ---------- */
html.lt .au-bg { background: var(--c-bg); }
html.lt .orb { display: none; }
html.lt .au-grid { background-image: linear-gradient(rgba(11, 27, 51, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 27, 51, 0.045) 1px, transparent 1px); }
@media (hover: hover) { html.lt .au-back:hover { background: #fff; } }
html.lt .au-back:active { background: #fff; }
html.lt .au-card { background: #fff; border-color: var(--c-border); box-shadow: 0 1px 2px rgba(11, 27, 51, 0.04), 0 24px 60px -32px rgba(11, 27, 51, 0.28); backdrop-filter: none; -webkit-backdrop-filter: none; }
html.lt .au-card::before { display: none; }
html.lt .au-tabs { background: var(--c-surface-2); }
html.lt .au-tab-ind { background: #fff; box-shadow: 0 1px 2px rgba(11, 27, 51, 0.08), 0 0 0 1px var(--c-border); }
html.lt .au-form .input { background: #fff; }
html.lt .au-success { background: rgba(255, 255, 255, 0.98); }
html.lt .nf-code { background: linear-gradient(180deg, #0b1b33 10%, rgba(36, 83, 217, 0.6)); -webkit-background-clip: text; background-clip: text; }

/* ---------- legal.css: the documents ---------- */
html.lt body.lg-page { background: #fff; color: var(--c-text-2); }
html.lt .lg-top { background: rgba(255, 255, 255, 0.92); border-bottom-color: var(--c-border); }
html.lt .lg-nav a[aria-current="page"] { color: var(--c-accent); background: var(--c-accent-soft); }
@media (hover: hover) { html.lt .lg-nav a:hover { background: var(--lt-wash); } }
html.lt .lg-nav a:active { background: var(--lt-wash-2); }
html.lt .lg-toc a:active, html.lt .lg-otp a:active { background: var(--lt-wash); }
html.lt .lg-otp summary:active { background: var(--lt-wash); }
html.lt .lg-meta, html.lt .lg-pending { background: var(--c-surface-2); }

/* ---------- fair.css: verified prices ---------- */
html.lt .vp-steps li, html.lt .vp-code, html.lt .vp-verdict { background: var(--lt-well); }
html.lt .vp-tag.ok, html.lt .vp-verdict.ok b, html.lt .vp-table td.up { color: var(--lt-teal); }
html.lt .vp-verdict.bad b, html.lt .vp-table td.down { color: var(--lt-red); }
html.lt .vp-table th[scope="row"] { background: #fff; }

/* ---------- receipt.css: trade receipts (the price chart keeps its dark panel, like the platform) ---------- */
html.lt .rc-card { background: #fff; box-shadow: 0 1px 2px rgba(11, 27, 51, 0.04), 0 24px 60px -32px rgba(11, 27, 51, 0.28); backdrop-filter: none; -webkit-backdrop-filter: none; }
html.lt .rc-card::before { display: none; }
html.lt .rc-result.win b, html.lt .rc-dl dd.up { color: var(--lt-teal); }
html.lt .rc-result.loss b, html.lt .rc-dl dd.down { color: var(--lt-red); }
html.lt .rc-checks li { background: var(--lt-well); }
html.lt .rc-checks li.ok { background: #effaf6; }
html.lt .rc-checks li.ok .rc-ck { border-color: var(--c-up); background: var(--c-up); }
html.lt .rc-checks li.ok .rc-ck::after { border-color: #fff; }
html.lt .rc-checks li.bad { background: #fdf1f2; }
html.lt .rc-checks li.bad .rc-ck { border-color: var(--c-down); background: var(--c-down); }
html.lt .rc-checks li.bad .rc-ck::after { color: #fff; }
html.lt .rc-practice { color: #5b4a2a; background: #fff7e0; border-color: #f1d58f; }
html.lt .rc-dl div { background: #fff; }
html.lt .rc-how { background: var(--lt-well); }
html.lt .rc-how summary:active { background: var(--lt-wash); }
html.lt .rc-how code { background: var(--lt-wash-2); }

/* ---------- verify.css ---------- */
html.lt .vf-icon { color: var(--lt-blue); }
html.lt .vf-need li, html.lt .vf-doctype, html.lt .up-box { background: var(--lt-well); }
html.lt .vf-need li::after { border-color: var(--lt-blue); }
@media (hover: hover) { html.lt .vf-doctype:hover { border-color: #a9b6c8; } }
html.lt .vf-doctype:active { border-color: #93a2b8; }
html.lt .up-box .up-done, html.lt .up-box .up-change { background: rgba(255, 255, 255, 0.94); box-shadow: 0 1px 3px rgba(11, 27, 51, 0.18); }
html.lt .up-box .up-busy { background: rgba(255, 255, 255, 0.8); }
html.lt .vf-review div { background: #fff; }

/* ---------- invite.css ---------- */
html.lt .iv-amt { background: linear-gradient(90deg, #0b6c99, #2453d9); -webkit-background-clip: text; background-clip: text; }
html.lt .iv-steps li, html.lt .iv-link, html.lt .iv-stats > div, html.lt .iv-friends li, html.lt .iv-kyc, html.lt .iv-check li { background: var(--lt-well); }
html.lt .iv-steps li > span { color: var(--lt-blue); }
html.lt .iv-invited a, html.lt .iv-wait a { color: var(--c-accent); }
html.lt .iv-code-box { background: linear-gradient(180deg, #f4f7ff, #eaf0ff); border-color: #a9bdf0; }
html.lt .iv-code { background: linear-gradient(90deg, #0b1b33, #2453d9 60%, #0b6c99); -webkit-background-clip: text; background-clip: text; }
html.lt .iv-stats .ok b { color: var(--c-cyan); }
html.lt .iv-st.no { color: var(--lt-red); }
html.lt .iv-kyc.ok { background: #effaf6; }
html.lt .iv-kyc.ok .iv-kyc-ic, html.lt .iv-check li.ok > span { color: #fff; }
html.lt .iv-kyc.wait { background: #fff9eb; }
html.lt .iv-kyc.wait .iv-kyc-ic, html.lt .iv-check li.wait > span { color: #fff; background: #c28a13; }
html.lt .iv-kyc.bad { background: #fdf1f2; }

/* ---------- partner.css ---------- */
html.lt .pt-share b, html.lt .pt-note a, html.lt .pt-rules a, html.lt .pt-forgot summary, html.lt .pt-forgot a, html.lt .pt-foot a, html.lt .pt-auth .check a { color: var(--c-accent); }
html.lt .pt-kpi { background: #fff; }
html.lt .pt-kpi.warn b, html.lt .pt-st.due { color: var(--lt-gold); }
html.lt .pt-kpi.ok b, html.lt .pt-st.paid { color: var(--lt-teal); }
html.lt .lg-signups, html.lt .pt-bar em { background: #0ea5e9; }
html.lt .pt-who div { background: #fff; }

/* ---------- real.css: open a real account, and the wallet ---------- */
html.lt .rl-risk, html.lt .wl-paused { color: #5b4a2a; background: #fff7e0; border-color: #f1d58f; }
html.lt .rl-risk b { color: #6b4500; }
html.lt .rl-risk a { color: var(--c-accent); }
html.lt .wl-balance { border-color: #b9e5d6; background: radial-gradient(120% 140% at 0% 0%, rgba(11, 143, 108, 0.1), transparent 55%), #fff; box-shadow: 0 1px 2px rgba(11, 27, 51, 0.04); }
html[dir="rtl"].lt .wl-balance { background: radial-gradient(120% 140% at 100% 0%, rgba(11, 143, 108, 0.1), transparent 55%), #fff; }
html.lt .wl-label { color: var(--lt-teal); }
html.lt .wl-tabs { background: #fff; }
html.lt .wl-coin, html.lt .wl-method, html.lt .wl-item { background: #fff; }
html.lt .coin-ic-net { box-shadow: 0 0 0 2px #fff; }
html.lt .wl-method i svg { stroke: var(--c-accent); }
html.lt .wl-panel.wl-checkout #depForm { background: #fff; }
html.lt .wl-item i.in, html.lt .wl-st.ok { color: var(--lt-teal); }
html.lt .wl-item i.out { color: var(--lt-blue); }
html.lt .wl-item .reason, html.lt .wl-st.bad { color: var(--lt-red); }
html.lt .wl-st.wait { color: var(--lt-gold); }
html.lt .wl-main .btn-primary:hover { background: var(--c-accent-hover); box-shadow: 0 6px 16px -8px rgba(36, 83, 217, 0.55); }
html.lt .wl-toast { background: #0b1b33; border-color: #0b1b33; color: #fff; }
html.lt .tp { box-shadow: 0 0 0 1px var(--c-border), 0 1px 2px rgba(11, 27, 51, 0.05), 0 24px 48px -28px rgba(11, 27, 51, 0.3); }
/* the welcome bonus */
html.lt .wl-bonus-bal, html.lt .wl-bonus-amt, html.lt .wl-bonus-warn { color: var(--lt-gold); }
html.lt .wl-bonus { border-color: #ecc66a; background: radial-gradient(120% 140% at 0% 0%, rgba(246, 185, 59, 0.22), transparent 60%), linear-gradient(135deg, #fffaf0, #fff); box-shadow: 0 1px 2px rgba(11, 27, 51, 0.04), 0 18px 40px -26px rgba(168, 106, 6, 0.45); }
html[dir="rtl"].lt .wl-bonus { background: radial-gradient(120% 140% at 100% 0%, rgba(246, 185, 59, 0.22), transparent 60%), linear-gradient(225deg, #fffaf0, #fff); }
html.lt .wl-bonus a:not(.btn), html.lt .wl-bonus-opt a { color: var(--lt-gold); }
html.lt .wl-bonus-bar { background: #f1e6cc; }
html.lt .wl-bonus-bar i { background: linear-gradient(90deg, #e09a10, #f6b93b); }
html.lt .wl-bonus.is-done { border-color: #b9e5d6; background: #f0faf6; }
html.lt .wl-bonus-opt { background: #fffaf0; border-color: #ecc66a; }
html.lt .wl-bonus-opt b { color: #6b4500; }
