/* Design system. Palette: navy #071A2B, blue #155EEF, green #12B76A, bg #F6F8FB, text #101828, muted #667085.
   Type: Inter for text, Inter Display for headlines and figures (both bundled as .woff files in this folder, SIL OFL).
   Strict CSP: no inline styles anywhere; motion respects prefers-reduced-motion. */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("inter-600.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 600; font-style: normal; font-display: swap; src: url("inter-display-600.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("inter-display-700.woff") format("woff"); }

:root {
  --navy: #071A2B;
  --navy-2: #0B2540;
  --navy-3: #123456;
  --blue: #155EEF;
  --blue-dark: #0F4AC4;
  --blue-soft: #EAF1FF;
  --green: #12B76A;
  --green-dark: #0A8F52;
  --green-soft: #E7F8EF;
  --bg: #F6F8FB;
  --text: #101828;
  --muted: #667085;
  --card: #FFFFFF;
  --line: #E4E7EC;
  --danger: #D92D20;
  --amber: #B54708;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 14px rgba(16, 24, 40, .05);
  --shadow-2: 0 2px 4px rgba(16, 24, 40, .06), 0 14px 34px rgba(7, 26, 43, .12);
}
* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--display); color: var(--navy); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
h1 { margin: 0 0 6px; font-size: 1.75rem; }
h2 { margin: 0 0 12px; font-size: 1.15rem; }
h3 { margin: 0 0 8px; font-size: 1rem; }
p { margin: 0 0 12px; }
strong { font-weight: 600; }
code { background: #EEF2F6; padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.big { margin: 0; font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pos { color: var(--green-dark); }
.neg { color: var(--danger); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ================= App shell: sidebar on desktop, top bar on mobile ================= */
.app { min-height: 100vh; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; text-decoration: none; }
.brand:hover { color: #fff; }
.brand svg { flex: none; }
.app-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--navy); }
.nav-toggle { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 7px 16px; font: inherit; font-weight: 500; cursor: pointer; }
.side { position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(300px, 86vw); display: flex; flex-direction: column; padding: 20px 14px 16px; background: linear-gradient(180deg, var(--navy) 0%, #061523 100%); transform: translateX(-102%); transition: transform .28s var(--ease); overflow-y: auto; }
.side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(7,26,43,.55); }
.side-brand { padding: 4px 10px 20px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #B8C4D4; text-decoration: none; font-weight: 500; transition: background .15s, color .15s; }
.side-nav a svg { flex: none; opacity: .85; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.active { background: rgba(21,94,239,.22); color: #fff; }
.side-nav a.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--green); }
.side-nav a.active svg { opacity: 1; color: #7FE0B0; }
.side-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; min-width: 0; }
.avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--green)); color: #fff; font-weight: 600; }
.who-text { display: flex; flex-direction: column; min-width: 0; color: #fff; line-height: 1.25; }
.who-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-text small { color: #8FA1B6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-logout { margin: 0; }
.link-btn { display: block; width: 100%; background: rgba(255,255,255,.06); color: #D0D9E4; border: 0; border-radius: 12px; padding: 9px 12px; font: inherit; font-weight: 500; cursor: pointer; text-align: center; transition: background .15s; }
.link-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.app-main { min-width: 0; }
.container { max-width: 1120px; margin: 0 auto; padding: 22px 16px 8px; }
.footer { margin-top: 28px; border-top: 1px solid var(--line); }
.footer .container { padding-top: 16px; padding-bottom: 24px; }

@media (min-width: 900px) {
  .app-top { display: none; }
  .side { transform: none; width: 256px; box-shadow: none; }
  .side.open { box-shadow: none; }
  .app-main { margin-left: 256px; }
  .container { padding: 34px 36px 8px; }
  h1 { font-size: 2rem; }
}

/* ================= Cards and layout ================= */
.card { position: relative; background: var(--card); border: 1px solid rgba(16,24,40,.07); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow-1); }
.card > h2:first-child { margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 18px; }
.grid .card { margin-bottom: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 16px 0 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
/* the first figure on a page is the hero: deep navy with a soft green glow */
.grid:first-of-type > .card:first-child { color: #D0D9E4; border: 0; background: radial-gradient(120% 140% at 100% 0%, rgba(18,183,106,.28), transparent 55%), linear-gradient(145deg, var(--navy) 0%, var(--navy-3) 100%); box-shadow: var(--shadow-2); }
.grid:first-of-type > .card:first-child .stat, .grid:first-of-type > .card:first-child .stat-label + .stat { color: #fff; }
.grid:first-of-type > .card:first-child .stat-label, .grid:first-of-type > .card:first-child .muted { color: #A9B8CC; }
.grid:first-of-type > .card:first-child a:not(.btn) { color: #9CC0FF; }
.stat { display: block; margin: 2px 0 6px; font-family: var(--display); font-size: 1.75rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-label { color: var(--muted); font-size: .85rem; font-weight: 500; }
@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ================= Forms and buttons ================= */
label { display: block; margin: 0 0 14px; font-size: .88rem; font-weight: 500; color: #475467; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=search], input[type=tel], select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 11px 14px; font: inherit; font-weight: 400; color: var(--text);
  border: 1px solid #D0D5DD; border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #98A2B3; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21,94,239,.16); }
input:disabled { background: #F2F4F7; color: var(--muted); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(21,94,239,.5); outline-offset: 2px; border-radius: 10px; }
label.check { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-weight: 400; }
label.check input { margin-top: 4px; accent-color: var(--blue); }
.field-error { display: block; margin-top: 4px; color: var(--danger); font-size: .85rem; }
.btn { display: block; width: 100%; padding: 12px 20px; font: inherit; font-weight: 600; text-align: center; text-decoration: none; color: #fff; background: linear-gradient(180deg, #2A70F5, var(--blue)); border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 1px 2px rgba(7,26,43,.2), 0 6px 16px rgba(21,94,239,.28); transition: transform .15s var(--ease), box-shadow .15s, filter .15s; }
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(7,26,43,.2), 0 10px 22px rgba(21,94,239,.36); filter: brightness(1.04); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-inline { display: inline-block; width: auto; }
.btn-green { background: linear-gradient(180deg, #25C77C, var(--green)); box-shadow: 0 1px 2px rgba(7,26,43,.2), 0 6px 16px rgba(18,183,106,.3); }
.btn-danger { background: linear-gradient(180deg, #E5483B, var(--danger)); box-shadow: 0 1px 2px rgba(7,26,43,.2), 0 6px 16px rgba(217,45,32,.25); }
.btn-light { color: var(--navy); background: #fff; border: 1px solid #D0D5DD; box-shadow: 0 1px 2px rgba(16,24,40,.06); }
.btn-light:hover { color: var(--navy); background: #F9FAFB; box-shadow: 0 4px 12px rgba(16,24,40,.1); }
.filters { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
.filters label { margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
.inline-form { display: inline; margin: 0; }
.wrap-cell { white-space: normal; word-break: break-word; max-width: 320px; }
textarea { font-family: inherit; resize: vertical; }
.is-hidden { display: none !important; }
.preview { background: var(--blue-soft); border: 1px solid #C7DBFF; border-radius: 12px; padding: 10px 14px; margin: 8px 0 14px; }
.preview p { margin: 4px 0; }
@media (min-width: 768px) {
  .filters { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; }
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* ================= Alerts, badges ================= */
.alert { padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; animation: drop .35s var(--ease); }
.alert-error { background: #FEF3F2; color: #912018; border: 1px solid #FECDCA; }
.alert-ok { background: var(--green-soft); color: #05603A; border: 1px solid #ABEFC6; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.badge { display: inline-block; padding: 2px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #EEF2F6; color: var(--navy); white-space: nowrap; }
.badge-ok { background: var(--green-soft); color: #05603A; }
.badge-warn { background: #FFF6E0; color: #93370D; }
.badge-bad { background: #FEF3F2; color: #912018; }

/* ================= Tables ================= */
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid #EEF0F3; white-space: nowrap; vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: .82rem; background: #FAFBFC; }
th:first-child { border-radius: 10px 0 0 10px; }
th:last-child { border-radius: 0 10px 10px 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #F8FAFF; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 120px; }
.bars .bar { flex: 1; background: var(--green); min-height: 2px; border-radius: 3px 3px 0 0; }

/* ================= Sub navigation, pager, details ================= */
.subnav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 20px; padding: 4px; background: #E9EDF3; border-radius: 999px; width: fit-content; max-width: 100%; }
.subnav a { padding: 7px 15px; border-radius: 999px; color: #475467; text-decoration: none; font-size: .9rem; font-weight: 500; transition: background .15s, color .15s; }
.subnav a:hover { color: var(--navy); background: rgba(255,255,255,.6); }
.subnav a.active { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.pager { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
ul.plain { margin: 0; padding-left: 18px; }
details summary { cursor: pointer; color: var(--blue); margin-top: 8px; font-weight: 500; }
.table-wrap form { margin: 0 0 6px; }
.table-wrap input[type=text] { min-width: 160px; }

/* ================= Dashboard chart ================= */
.chart { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--green); rx: 2px; transition: fill .15s; }
.chart .bar:hover { fill: var(--blue); }
.chart .base { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 7px; }

/* ================= Sign-in and sign-up ================= */
.auth-body { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 16px; background: radial-gradient(90% 60% at 80% 0%, rgba(21,94,239,.12), transparent 60%), var(--bg); }
.auth-shell { display: flex; width: 100%; max-width: 960px; min-height: 560px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-2); background: #fff; }
.auth-side { display: none; position: relative; flex: 1 1 46%; flex-direction: column; justify-content: space-between; padding: 36px; color: #C9D5E4; overflow: hidden; background: linear-gradient(150deg, var(--navy) 0%, var(--navy-3) 100%); }
.auth-side::before, .auth-side::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.auth-side::before { width: 280px; height: 280px; right: -80px; top: -60px; background: var(--blue); animation: drift 14s ease-in-out infinite alternate; }
.auth-side::after { width: 240px; height: 240px; left: -70px; bottom: -70px; background: var(--green); animation: drift 18s ease-in-out infinite alternate-reverse; }
.auth-side > * { position: relative; z-index: 1; }
.auth-side h2 { color: #fff; font-size: 1.7rem; line-height: 1.2; margin-bottom: 12px; }
.auth-side ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.auth-side li { display: flex; gap: 10px; align-items: flex-start; }
.auth-side li svg { flex: none; margin-top: 3px; color: #7FE0B0; }
.auth-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid rgba(16,24,40,.07); border-radius: 24px; padding: 28px 24px; box-shadow: var(--shadow-2); }
.auth-shell .auth-card { max-width: none; flex: 1 1 54%; border: 0; border-radius: 0; box-shadow: none; padding: 36px; align-self: center; }
.auth-card h1 { margin: 0 0 18px; }
.brand-lg { display: flex; margin: 0 0 14px; color: var(--navy); }
.brand-lg:hover { color: var(--navy); }
.auth-note { margin: 18px 0 0; }
.auth-card .center { margin-top: 16px; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(30px, 20px) scale(1.12); } }
@media (min-width: 820px) {
  .auth-side { display: flex; }
  .auth-shell .brand-lg { display: none; }
}

/* ================= Public pages (home) ================= */
.lp { background: #fff; }
.lp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.lp h1, .lp h2 { font-family: var(--display); }
.lp h2 { font-size: 1.9rem; letter-spacing: -.02em; margin-bottom: 10px; }
.lp-small { font-size: .85rem; color: var(--muted); }
.lp-sub { color: var(--muted); font-size: 1.05rem; max-width: 620px; margin-bottom: 30px; }

.lp-top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .25s, box-shadow .25s, backdrop-filter .25s; }
.lp-top.scrolled { background: rgba(7,26,43,.88); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.lp-top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.lp-links { display: none; gap: 26px; }
.lp-links a { color: #C9D5E4; text-decoration: none; font-weight: 500; font-size: .95rem; transition: color .15s; }
.lp-links a:hover { color: #fff; }
.lp-actions { display: flex; align-items: center; gap: 12px; }
.lp-login { color: #fff; font-weight: 500; text-decoration: none; padding: 8px 6px; }
.lp-login:hover { color: #9CC0FF; }

/* hero */
.lp-hero { position: relative; overflow: hidden; padding: 112px 0 64px; color: #C9D5E4; background: linear-gradient(160deg, #051322 0%, var(--navy) 45%, #0B2D55 100%); }
.lp-hero::before, .lp-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.lp-hero::before { width: 520px; height: 520px; right: -140px; top: -160px; background: rgba(21,94,239,.5); animation: drift 16s ease-in-out infinite alternate; }
.lp-hero::after { width: 420px; height: 420px; left: -160px; bottom: -200px; background: rgba(18,183,106,.32); animation: drift 20s ease-in-out infinite alternate-reverse; }
.lp-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.lp-hero h1 { color: #fff; font-size: 2.5rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.08; margin: 0 0 18px; }
.lp-line { display: block; overflow: hidden; }
.lp-line > span { display: block; animation: rise .8s var(--ease) both; }
.lp-line:nth-child(2) > span { animation-delay: .12s; }
.lp-line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.lp-lead { font-size: 1.1rem; color: #B8C7DA; max-width: 520px; animation: fade .8s .45s both; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; animation: fade .8s .55s both; }
.lp-fine { font-size: .82rem; color: #8FA3BC; max-width: 520px; animation: fade .8s .65s both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lp-hero .btn-light { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); box-shadow: none; }
.lp-hero .btn-light:hover { background: rgba(255,255,255,.16); color: #fff; }

/* the interactive accrual panel */
.grow { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; padding: 20px; backdrop-filter: blur(14px); box-shadow: 0 24px 60px rgba(0,0,0,.35); animation: fade .9s .5s both; }
.grow h2 { color: #fff; font-size: 1.05rem; margin: 0 0 14px; }
.grow-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grow label { color: #9FB2CC; font-size: .8rem; margin-bottom: 10px; }
.grow input[type=text], .grow select { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; padding: 9px 12px; }
.grow select option { color: #101828; }
.grow input:focus, .grow select:focus { border-color: #7FB0FF; box-shadow: 0 0 0 4px rgba(127,176,255,.22); }
.grow-chart { position: relative; margin: 4px 0 4px; touch-action: none; cursor: crosshair; }
.grow-svg { display: block; width: 100%; height: auto; }
.g-grid { stroke: rgba(255,255,255,.1); stroke-width: 1; }
.g-axis { fill: #7F93AE; font-size: 11px; font-family: var(--font); }
.g-area { fill: url(#gArea); }
.g-line { fill: none; stroke: #3DDC97; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.g-line.draw { animation: draw 1.4s .7s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.g-cursor { stroke: rgba(255,255,255,.35); stroke-width: 1; stroke-dasharray: 3 4; }
.g-dot { fill: #fff; stroke: #12B76A; stroke-width: 3; }
.grow-day { display: block; margin: 2px 0 10px; }
.grow-day input[type=range] { accent-color: var(--green); width: 100%; margin: 4px 0 0; padding: 0; border: 0; background: none; }
.grow-read { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.grow-read div { background: rgba(255,255,255,.06); border-radius: 14px; padding: 10px 12px; }
.grow-read span { display: block; font-size: .74rem; color: #8FA3BC; }
.grow-read strong { display: block; font-family: var(--display); font-size: 1.05rem; color: #fff; font-variant-numeric: tabular-nums; }
.grow-read .is-green strong { color: #5BE5A8; }
.grow-note { margin: 12px 0 0; font-size: .75rem; color: #7F93AE; }

/* sections */
.lp-sec { padding: 72px 0; }
.lp-alt { background: var(--bg); }
.lp-narrow { max-width: 780px; }
.lp-facts { display: grid; grid-template-columns: 1fr; gap: 22px; padding: 34px 20px; }
.lp-facts div { padding-top: 14px; border-top: 3px solid var(--green); }
.lp-facts div:nth-child(2) { border-color: var(--blue); }
.lp-facts div:nth-child(3) { border-color: #F5B544; }
.lp-facts div:nth-child(4) { border-color: var(--navy); }
.lp-facts strong { display: block; font-family: var(--display); color: var(--navy); margin-bottom: 4px; font-size: 1.05rem; }
.lp-facts span { font-size: .92rem; color: #475467; }

.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 18px; counter-reset: step; }
.lp-steps li { position: relative; padding: 0 0 0 58px; counter-increment: step; }
.lp-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--blue), #4B8BFF); box-shadow: 0 6px 16px rgba(21,94,239,.3); }
.lp-steps li::after { content: ""; position: absolute; left: 20px; top: 48px; bottom: -14px; width: 2px; background: linear-gradient(var(--blue-soft), transparent); }
.lp-steps li:last-child::after { display: none; }
.lp-steps p { color: #475467; margin: 0; }

.lp-cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.lp-card { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(16,24,40,.07); border-radius: 22px; padding: 24px; box-shadow: var(--shadow-1); transition: transform .25s var(--ease), box-shadow .25s; }
.lp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.lp-card p { color: #475467; }
.lp-rate { font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; color: var(--green-dark); margin: 0; }
.lp-list { margin: 10px 0 18px; padding-left: 18px; color: #475467; flex: 1; }
.lp-list li { margin-bottom: 5px; }
.lp-empty { background: #fff; border: 1px dashed #B7CCF5; border-radius: 22px; padding: 28px; text-align: center; color: var(--muted); }

.lp-formula-wrap { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.lp-formula { color: #C9D5E4; background: linear-gradient(145deg, var(--navy), var(--navy-3)); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-2); }
.lp-formula .eq { display: block; font-family: var(--display); font-size: 1.25rem; font-weight: 600; color: #fff; line-height: 1.5; margin-bottom: 14px; }
.lp-formula p { color: #A9B8CC; }
.lp-table { width: 100%; border-collapse: collapse; }
.lp-table th, .lp-table td { padding: 10px 6px; border-bottom: 1px solid #E4E7EC; background: none; }
.lp-table th { color: var(--muted); font-weight: 500; font-size: .85rem; }
.lp-table td:last-child, .lp-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.lp-bento { display: grid; grid-template-columns: 1fr; gap: 18px; }
.lp-tile { background: #fff; border: 1px solid rgba(16,24,40,.07); border-radius: 22px; padding: 24px; box-shadow: var(--shadow-1); }
.lp-tile p { color: #475467; margin: 0; }
.lp-tile-dark { color: #B8C7DA; border: 0; background: radial-gradient(100% 100% at 100% 0%, rgba(21,94,239,.35), transparent 60%), linear-gradient(145deg, var(--navy), var(--navy-3)); }
.lp-tile-dark h3 { color: #fff; font-size: 1.25rem; }
.lp-tile-dark p { color: #B8C7DA; }
.lp-ledger { margin: 18px 0 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums; font-size: .9rem; }
.lp-ledger li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.06); margin-bottom: 6px; color: #D0D9E4; }
.lp-ledger b { font-weight: 600; color: #5BE5A8; }
.lp-ledger .out { color: #FDA29B; }
.lp-ledger-note { font-size: .75rem; color: #8FA3BC; margin-top: 8px; }
.lp-ico { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 14px; background: var(--blue-soft); color: var(--blue); margin-bottom: 14px; }
.lp-ico.g { background: var(--green-soft); color: var(--green-dark); }

.lp-refer { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 34px 26px; border-radius: 28px; background: linear-gradient(135deg, var(--green-soft), #D6F5E6); }
.lp-refer h2 { color: #054F31; }
.lp-refer .lp-sub { color: #0B5A39; margin-bottom: 0; }
.lp-refer .lp-list { margin: 0; color: #0B5A39; }

.lp-faq { background: #fff; border: 1px solid rgba(16,24,40,.07); border-radius: 16px; padding: 2px 20px; margin-bottom: 10px; transition: box-shadow .2s; }
.lp-faq[open] { box-shadow: var(--shadow-1); }
.lp-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--navy); font-weight: 600; padding: 16px 0; margin: 0; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--blue); transition: transform .25s var(--ease); }
.lp-faq[open] summary::after { transform: rotate(45deg); }
.lp-faq p { color: #475467; }

.lp-cta-band { position: relative; overflow: hidden; text-align: center; padding: 76px 0; color: #C9D5E4; background: linear-gradient(135deg, var(--navy), #0B3A8C); }
.lp-cta-band::before { content: ""; position: absolute; width: 380px; height: 380px; right: -100px; top: -140px; border-radius: 50%; background: rgba(18,183,106,.35); filter: blur(80px); }
.lp-cta-band > * { position: relative; }
.lp-cta-band h2 { color: #fff; font-size: 2.1rem; }
.lp-cta-band .lp-cta { justify-content: center; animation: none; }
.lp-cta-band .btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); box-shadow: none; }
.lp-foot { padding: 34px 0 44px; background: var(--navy); color: #8FA3BC; }
.lp-foot a { color: #C9D5E4; }
.lp-foot .lp-small { color: #8FA3BC; max-width: 760px; }
.lp-foot .brand { margin-bottom: 10px; }

@media (min-width: 768px) {
  .lp-links { display: flex; }
  .lp-hero { padding: 140px 0 88px; }
  .lp-hero-in { grid-template-columns: 1fr 1.05fr; gap: 56px; }
  .lp-hero h1 { font-size: 3.4rem; }
  .lp-facts { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .lp-steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .lp-steps li { padding: 58px 0 0; }
  .lp-steps li::before { top: 0; }
  .lp-steps li::after { left: 54px; right: -14px; top: 20px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--blue-soft), transparent); }
  .lp-cards { grid-template-columns: repeat(2, 1fr); }
  .lp-formula-wrap { grid-template-columns: 1fr 1fr; gap: 48px; }
  .lp-bento { grid-template-columns: repeat(6, 1fr); }
  .lp-bento > .lp-tile { grid-column: span 2; }
  .lp-bento > .lp-tile-dark { grid-column: span 4; grid-row: span 1; }
  .lp-refer { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 44px; }
}
@media (min-width: 1000px) { .lp-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) {
  .grow-controls { grid-template-columns: 1fr; }
  .grow-read strong { font-size: .95rem; }
}
/* Support chat */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.nav-count { display: inline-block; min-width: 20px; padding: 1px 6px; margin-left: auto; border-radius: 999px; background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.5; }
.subnav .nav-count { margin-left: 4px; }
.chat { padding: 0; overflow: hidden; }
.chat-log { height: min(56vh, 520px); overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.chat-empty { margin: auto; text-align: center; }
.msg { max-width: 78%; display: flex; flex-direction: column; gap: 3px; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.them { align-self: flex-start; }
.msg-body { white-space: pre-wrap; padding: 10px 14px; border-radius: 16px; line-height: 1.45; overflow-wrap: anywhere; background: #fff; border: 1px solid #E4E7EC; }
.msg.me .msg-body { background: var(--blue); border-color: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.msg.them .msg-body { border-bottom-left-radius: 4px; }
.msg-meta { font-size: .74rem; color: var(--muted); }
.chat-form { display: flex; gap: 10px; align-items: flex-end; padding: 12px; border-top: 1px solid #E4E7EC; background: #fff; }
.chat-form textarea { flex: 1; resize: none; min-height: 44px; margin: 0; }
.chat-form .btn { margin: 0; }
.chat-error { margin: 0 12px 12px; }
.help-banner { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; padding: 14px 18px; border-radius: 16px; background: linear-gradient(120deg, #EAF2FF, #E6F8EF); border: 1px solid #CFE0FB; color: var(--navy); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.help-banner:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(21,94,239,.14); }
.help-banner svg { flex: none; width: 28px; height: 28px; color: var(--blue); }
.help-banner span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.help-banner small { color: var(--muted); }
.help-go { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; font-size: .88rem; }
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 8px 24px rgba(21,94,239,.35); transition: transform .15s; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab .nav-count { margin-left: 2px; background: #fff; color: var(--blue); }
.chat-fab.has-new { animation: fabpulse 2s ease-out infinite; }
@keyframes fabpulse { 0% { box-shadow: 0 8px 24px rgba(21,94,239,.35), 0 0 0 0 rgba(21,94,239,.45); } 70% { box-shadow: 0 8px 24px rgba(21,94,239,.35), 0 0 0 14px rgba(21,94,239,0); } 100% { box-shadow: 0 8px 24px rgba(21,94,239,.35), 0 0 0 0 rgba(21,94,239,0); } }
@media (max-width: 600px) { .msg { max-width: 90%; } .help-go { display: none; } .chat-fab span:not(.nav-count) { display: none; } .chat-fab { padding: 14px; } }


/* ================= Signed-in polish ================= */
body.app { background: radial-gradient(900px 420px at 85% -80px, rgba(21,94,239,.09), transparent 70%), radial-gradient(700px 380px at 0% 0%, rgba(18,183,106,.07), transparent 70%), var(--bg); background-attachment: fixed; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin: 0 0 22px; }
.page-head h1 { margin: 0 0 4px; font-size: 2rem; }
.page-head p { margin: 0; max-width: 62ch; }
.page-head .btn { margin: 0; }
.app-main h1 { background: linear-gradient(100deg, var(--navy) 30%, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* entrance: cards rise in one after another (only when JS has marked the page) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.d1 { transition-delay: 60ms; }
.reveal.d2 { transition-delay: 120ms; }
.reveal.d3 { transition-delay: 180ms; }
.reveal.d4 { transition-delay: 240ms; }
.reveal.d5 { transition-delay: 300ms; }
.reveal.d6 { transition-delay: 360ms; }
.reveal.d7 { transition-delay: 420ms; }
.reveal.d8 { transition-delay: 480ms; }
.js .reveal.in { opacity: 1; transform: none; }
.card { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.grid .card:hover, .pgrid .pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }

/* stat cards get an accent bar that grows in */
.grid:not(:first-of-type) > .card::before, .grid:first-of-type > .card:not(:first-child)::before { content: ""; position: absolute; left: 20px; top: 0; width: 44px; height: 4px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, var(--blue), var(--green)); }
.grid > .card:nth-child(2)::before { background: linear-gradient(90deg, #7A5AF8, var(--blue)); }
.grid > .card:nth-child(3)::before { background: linear-gradient(90deg, var(--green), #84E1BC); }
.stat { font-size: 1.9rem; }
.help-banner { box-shadow: var(--shadow-1); }

/* tables */
tbody tr { transition: background .15s; }
tbody tr:hover { background: #F5F8FF; }
th { text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; }
.card h2 { display: flex; align-items: center; gap: 10px; }
.card > h2:first-child::before { content: ""; width: 6px; height: 18px; border-radius: 4px; background: linear-gradient(180deg, var(--blue), var(--green)); }
.pcard h2::before { display: none; }

/* chart bars grow from the baseline */
.js .chart .bar { transform-box: fill-box; transform-origin: bottom; animation: barUp .7s var(--ease) both; }
.js .chart .bar:nth-of-type(1) { animation-delay: 18ms; }
.js .chart .bar:nth-of-type(2) { animation-delay: 36ms; }
.js .chart .bar:nth-of-type(3) { animation-delay: 54ms; }
.js .chart .bar:nth-of-type(4) { animation-delay: 72ms; }
.js .chart .bar:nth-of-type(5) { animation-delay: 90ms; }
.js .chart .bar:nth-of-type(6) { animation-delay: 108ms; }
.js .chart .bar:nth-of-type(7) { animation-delay: 126ms; }
.js .chart .bar:nth-of-type(8) { animation-delay: 144ms; }
.js .chart .bar:nth-of-type(9) { animation-delay: 162ms; }
.js .chart .bar:nth-of-type(10) { animation-delay: 180ms; }
.js .chart .bar:nth-of-type(11) { animation-delay: 198ms; }
.js .chart .bar:nth-of-type(12) { animation-delay: 216ms; }
.js .chart .bar:nth-of-type(13) { animation-delay: 234ms; }
.js .chart .bar:nth-of-type(14) { animation-delay: 252ms; }
.js .chart .bar:nth-of-type(15) { animation-delay: 270ms; }
.js .chart .bar:nth-of-type(16) { animation-delay: 288ms; }
.js .chart .bar:nth-of-type(17) { animation-delay: 306ms; }
.js .chart .bar:nth-of-type(18) { animation-delay: 324ms; }
.js .chart .bar:nth-of-type(19) { animation-delay: 342ms; }
.js .chart .bar:nth-of-type(20) { animation-delay: 360ms; }
.js .chart .bar:nth-of-type(21) { animation-delay: 378ms; }
.js .chart .bar:nth-of-type(22) { animation-delay: 396ms; }
.js .chart .bar:nth-of-type(23) { animation-delay: 414ms; }
.js .chart .bar:nth-of-type(24) { animation-delay: 432ms; }
.js .chart .bar:nth-of-type(25) { animation-delay: 450ms; }
.js .chart .bar:nth-of-type(26) { animation-delay: 468ms; }
.js .chart .bar:nth-of-type(27) { animation-delay: 486ms; }
.js .chart .bar:nth-of-type(28) { animation-delay: 504ms; }
.js .chart .bar:nth-of-type(29) { animation-delay: 522ms; }
.js .chart .bar:nth-of-type(30) { animation-delay: 540ms; }
@keyframes barUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.empty { text-align: center; padding: 36px 20px; }

/* ================= Product showcase ================= */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.chip { padding: 8px 16px; border: 1px solid #D0D5DD; border-radius: 999px; background: #fff; color: #475467; font: inherit; font-weight: 500; font-size: .9rem; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pgrid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: 22px; }
@media (min-width: 720px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
.pcard { --t1: #155EEF; --t2: #0B2A6B; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid rgba(16,24,40,.07); border-radius: 22px; box-shadow: var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pcard.tone-1 { --t1: #12B76A; --t2: #064E3B; }
.pcard.tone-2 { --t1: #7A5AF8; --t2: #2E1C7A; }
.pcard.tone-3 { --t1: #0BA5EC; --t2: #0B3558; }
.pcard.is-hidden { display: none; }
.pcard-top { position: relative; overflow: hidden; padding: 22px 22px 20px; color: #fff; background: linear-gradient(140deg, var(--t1), var(--t2)); }
.pcard-top::before, .pcard-top::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.1); pointer-events: none; }
.pcard-top::before { width: 190px; height: 190px; right: -60px; top: -80px; animation: drift 9s ease-in-out infinite alternate; }
.pcard-top::after { width: 110px; height: 110px; right: 50px; bottom: -60px; background: rgba(255,255,255,.07); animation: drift 12s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-18px, 14px) scale(1.12); } }
.pcard-top > * { position: relative; z-index: 1; }
.pcard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; min-height: 26px; }
.ptag { padding: 3px 11px; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(4px); font-size: .75rem; font-weight: 600; }
.ptag-star { background: #FDB022; color: #3B2A00; }
.ptag-soon { background: #fff; color: var(--navy); }
.pcard-name { margin: 0 0 6px; color: #fff; font-size: 1.2rem; }
.pcard-rate { display: flex; align-items: baseline; gap: 10px; }
.pcard-rate-n { font-family: var(--display); font-size: 3rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.pcard-rate-n small { font-size: 1.5rem; margin-left: 2px; opacity: .85; }
.pcard-rate-l { font-weight: 500; opacity: .9; }
.pcard-sub { margin: 8px 0 0; font-size: .85rem; opacity: .8; }
.pcard-body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 20px 22px 22px; }
.pcard-desc { margin: 0; color: #475467; font-size: .93rem; }
.pfacts { list-style: none; margin: 0; padding: 0; }
.pfacts li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.pfacts li span { color: var(--muted); }
.pfacts li strong { text-align: right; }
.pcalc { padding: 14px; border-radius: 16px; background: linear-gradient(180deg, #F6F9FF, #F3FBF7); border: 1px solid #DCE7FA; }
.pcalc label { margin-bottom: 10px; }
.pcalc input { background: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.pcalc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pcalc-out span { display: block; font-size: .75rem; color: var(--muted); }
.pcalc-out strong { font-family: var(--display); font-size: 1.1rem; color: var(--green-dark); font-variant-numeric: tabular-nums; }
.pcalc-note { margin: 10px 0 0; font-size: .74rem; color: var(--muted); }
.pcard .btn { margin-top: auto; }

/* ================= Wider polish for the other signed-in pages ================= */
.alert { border-radius: 14px; }
.badge { letter-spacing: .01em; }
.subnav { box-shadow: inset 0 0 0 1px rgba(16,24,40,.04); }
details > summary { cursor: pointer; font-weight: 500; color: var(--blue); }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }


/* ================= Premium component library (client pages) ================= */
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes blob { from { transform: translate(0,0) scale(1); } to { transform: translate(-26px,18px) scale(1.15); } }
@keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }
@keyframes popIn { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes ringGrow { from { stroke-dasharray: 0 100; } }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(18,183,106,.5); } 100% { box-shadow: 0 0 0 12px rgba(18,183,106,0); } }
@keyframes rowIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

/* tones used by icon bubbles and chips */
.tone-blue { --tc: #155EEF; --tb: #E8F0FF; }
.tone-green { --tc: #0A9A57; --tb: #E2F7EC; }
.tone-amber { --tc: #B54708; --tb: #FEF0C7; }
.tone-violet { --tc: #6938EF; --tb: #EEE9FE; }
.tone-red { --tc: #D92D20; --tb: #FEE4E2; }

/* hero card: balance with drifting light blobs */
.hero { position: relative; overflow: hidden; margin: 0 0 20px; padding: 26px; border-radius: 24px; color: #CBD6E6; background: radial-gradient(120% 140% at 100% 0%, rgba(18,183,106,.35), transparent 55%), linear-gradient(135deg, #071A2B 0%, #0F3260 100%); box-shadow: var(--shadow-2); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 280px; height: 280px; right: -80px; top: -120px; background: rgba(21,94,239,.35); filter: blur(30px); animation: blob 9s ease-in-out infinite alternate; }
.hero::after { width: 200px; height: 200px; left: 30%; bottom: -120px; background: rgba(18,183,106,.28); filter: blur(34px); animation: blob 12s ease-in-out infinite alternate-reverse; }
.hero > * { position: relative; z-index: 1; }
.hero-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.hero-label { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 500; color: #9FB3CC; }
.hero-label svg { color: #7FE0B0; }
.hero .stat { margin: 8px 0 4px; font-size: clamp(2rem, 6vw, 3rem); color: #fff; }
.hero .muted { color: #9FB3CC; }
.hero a:not(.btn) { color: #9CC0FF; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hero-actions .btn { margin: 0; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); font-size: .85rem; backdrop-filter: blur(6px); }
.hero-chip strong { color: #fff; font-variant-numeric: tabular-nums; }
.btn-glass { color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); box-shadow: none; }
.btn-glass:hover { color: #fff; background: rgba(255,255,255,.2); box-shadow: none; }

/* buttons: light sweep on hover */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-120%) skewX(-20deg); pointer-events: none; }
.btn:hover::after { animation: shine .8s var(--ease); }

/* stat tiles */
.tiles { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0 0 20px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tiles.cols-3 { grid-template-columns: repeat(3, 1fr); } .tiles.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.tile { position: relative; overflow: hidden; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid rgba(16,24,40,.07); box-shadow: var(--shadow-1); transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.tile::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--tb, #E8F0FF); opacity: .55; transition: transform .5s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.tile:hover::after { transform: scale(1.5); }
.tile > * { position: relative; z-index: 1; }
.tile-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--tb, #E8F0FF); color: var(--tc, #155EEF); transition: transform .3s var(--ease); }
.tile:hover .tile-ic { transform: rotate(-8deg) scale(1.08); }
.tile-body { min-width: 0; }
.tile-label { display: block; color: var(--muted); font-size: .84rem; font-weight: 500; }
.tile .stat { margin: 2px 0 4px; font-size: 1.55rem; }
.tile-sub { margin: 0; font-size: .82rem; color: var(--muted); }

/* section headings with an action link */
.sec { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 14px; }
.sec h2 { margin: 0; font-size: 1.2rem; }
.sec h2::before { display: none; }
.sec a { font-size: .9rem; font-weight: 500; text-decoration: none; }

/* white panels with a titled header */
.panel { position: relative; padding: 20px; margin: 0 0 20px; background: #fff; border: 1px solid rgba(16,24,40,.07); border-radius: 22px; box-shadow: var(--shadow-1); }
.panel-head { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.panel-head h2 { margin: 0; font-size: 1.1rem; }
.panel-head h2::before { display: none; }
.panel-head .tile-ic { width: 40px; height: 40px; border-radius: 12px; }
.panel-head p { margin: 0; font-size: .85rem; color: var(--muted); }

/* investment cards */
.icards { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 0 0 20px; }
@media (min-width: 760px) { .icards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1300px) { .icards { grid-template-columns: repeat(3, 1fr); } }
.icard { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 22px; background: #fff; border: 1px solid rgba(16,24,40,.07); box-shadow: var(--shadow-1); transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.icard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--blue), var(--green)); }
.icard.st-completed::before, .icard.st-withdrawn::before { background: linear-gradient(90deg, #98A2B3, #D0D5DD); }
.icard.st-cancelled::before { background: linear-gradient(90deg, #F04438, #FDA29B); }
.icard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.icard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.icard-name { margin: 0 0 4px; font-size: 1.1rem; }
.icard-name::before { display: none; }
.icard-id { font-size: .78rem; color: var(--muted); }
.icard-amount { font-family: var(--display); font-size: 1.7rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; }
.icard-amount small { display: block; margin-bottom: 2px; font-family: var(--font); font-size: .78rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.ring { flex: none; }
.ring-bg { fill: none; stroke: #EEF2F6; stroke-width: 4; }
.ring-fg { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; animation: ringGrow 1.2s var(--ease) both; }
.ring-txt { font-size: 10px; font-weight: 700; fill: var(--navy); font-family: var(--display); }
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.metric { padding: 10px 12px; border-radius: 14px; background: var(--bg); }
.metric span { display: block; font-size: .74rem; color: var(--muted); }
.metric strong { display: block; font-size: .95rem; font-variant-numeric: tabular-nums; }
.pbar { display: block; width: 100%; height: 8px; }
.pbar-bg { fill: #EEF2F6; }
.pbar-fg { fill: var(--green); transform-box: fill-box; transform-origin: left; animation: barGrow 1.1s var(--ease) both; }
.pbar-cap { display: flex; justify-content: space-between; margin-top: 6px; font-size: .76rem; color: var(--muted); }
.icard-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.icard-foot .btn { margin: 0; }
.lock-note { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--amber); font-weight: 500; }

/* transaction / activity rows */
.txlist { display: flex; flex-direction: column; gap: 4px; }
.tx { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 16px; transition: background .18s, transform .18s; animation: rowIn .5s var(--ease) both; }
.tx:hover { background: #F5F8FF; transform: translateX(3px); }
.tx:nth-child(2) { animation-delay: .04s; } .tx:nth-child(3) { animation-delay: .08s; } .tx:nth-child(4) { animation-delay: .12s; } .tx:nth-child(5) { animation-delay: .16s; }
.tx:nth-child(6) { animation-delay: .2s; } .tx:nth-child(7) { animation-delay: .24s; } .tx:nth-child(8) { animation-delay: .28s; } .tx:nth-child(n+9) { animation-delay: .3s; }
.tx-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--tb, #E8F0FF); color: var(--tc, #155EEF); }
.tx-body { flex: 1; min-width: 0; }
.tx-title { display: block; font-weight: 600; }
.tx-note { display: block; font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-time { font-size: .78rem; color: var(--muted); }
.tx-amt { text-align: right; white-space: nowrap; }
.tx-amt strong { display: block; font-family: var(--display); font-variant-numeric: tabular-nums; }
.tx-amt small { color: var(--muted); font-size: .76rem; }
.tx-amt .pos { color: var(--green-dark); } .tx-amt .neg { color: var(--danger); }
.tx-group { margin: 14px 0 4px 10px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* timeline (upcoming maturities) */
.tl { position: relative; margin: 0; padding: 0 0 0 26px; list-style: none; }
.tl::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--blue), var(--green)); border-radius: 2px; }
.tl li { position: relative; padding: 0 0 16px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ""; position: absolute; left: -24px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); animation: ping 2.4s ease-out infinite; }
.tl strong { display: block; }
.tl span { font-size: .85rem; color: var(--muted); }

/* fact cards (replace definition lists) */
.facts { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 0 18px; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .facts.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.fact { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid rgba(16,24,40,.07); box-shadow: var(--shadow-1); transition: transform .25s var(--ease), box-shadow .25s; }
.fact:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.fact .tile-ic { width: 40px; height: 40px; border-radius: 12px; }
.fact span { display: block; font-size: .78rem; color: var(--muted); }
.fact strong { display: block; font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }

/* forms inside panels */
.panel label { margin-bottom: 16px; }
.amount-field { position: relative; }
.amount-field input { padding-left: 54px; font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.amount-field::before { content: "USD"; position: absolute; left: 14px; bottom: 13px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; }
.quick button { padding: 6px 14px; border-radius: 999px; border: 1px solid #D0D5DD; background: #fff; color: #475467; font: inherit; font-size: .85rem; font-weight: 500; cursor: pointer; transition: all .15s; }
.quick button:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); transform: translateY(-1px); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 16px; border-radius: 16px; background: #FFFAEB; border: 1px solid #FEDF89; color: #7A2E0E; font-size: .88rem; }
.notice svg { flex: none; margin-top: 2px; }
.notice.info { background: var(--blue-soft); border-color: #C7D9FB; color: #123B8F; }
.notice p { margin: 0; }
.method { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 16px; }
.method label { position: relative; margin: 0; cursor: pointer; }
.method input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.method .opt { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; border: 2px solid #E4E7EC; transition: border-color .18s, background .18s, transform .18s, box-shadow .18s; }
.method input:checked + .opt { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 4px rgba(21,94,239,.12); transform: translateY(-2px); }
.method input:focus-visible + .opt { outline: 3px solid rgba(21,94,239,.5); outline-offset: 2px; }
.method .opt strong { display: block; font-size: .92rem; color: var(--navy); }
.method .opt span { font-size: .78rem; color: var(--muted); }

/* referral hero + code cards */
.refcode { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: linear-gradient(120deg, #EAF2FF, #E6F8EF); border: 1px dashed #9DB8E8; margin: 0 0 14px; }
.refcode code { font-family: var(--display); font-size: 1.5rem; font-weight: 700; letter-spacing: .08em; background: #fff; padding: 6px 16px; border-radius: 12px; color: var(--navy); }

.tx-link { color: inherit; text-decoration: none; }
/* empty state */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 20px; text-align: center; border-radius: 22px; background: #fff; border: 1px dashed #CBD5E1; }
.empty-state .tile-ic { width: 64px; height: 64px; border-radius: 20px; animation: floatY 3.2s ease-in-out infinite; }
.empty-state h3 { margin: 0; font-size: 1.1rem; }
.empty-state p { margin: 0; color: var(--muted); max-width: 42ch; }

/* dashboard chart */
.chart .bar { fill: url(#barGrad); }

/* profile */
.profile-card { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 22px; margin: 0 0 20px; border-radius: 24px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(18,183,106,.35), transparent 55%), linear-gradient(135deg, #071A2B, #123A7A); box-shadow: var(--shadow-2); }
.profile-card .avatar-lg { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; font-family: var(--display); font-size: 1.9rem; font-weight: 700; background: linear-gradient(135deg, var(--blue), var(--green)); box-shadow: 0 0 0 5px rgba(255,255,255,.15); animation: popIn .7s var(--ease) both; }
.profile-card h2 { margin: 0; color: #fff; }
.profile-card h2::before { display: none; }
.profile-card p { margin: 2px 0 0; color: #B8C7DC; font-size: .9rem; }

/* page-level polish */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 14px 16px; margin: 0 0 18px; border-radius: 18px; background: #fff; border: 1px solid rgba(16,24,40,.07); box-shadow: var(--shadow-1); }
.filters label { margin: 0; }
.filters .btn { margin: 0; }
.panel .table-wrap, .card .table-wrap { border-radius: 14px; }
@media (max-width: 520px) { .tx { gap: 10px; padding: 10px 6px; } .tx-note { white-space: normal; } .hero { padding: 20px; } }


/* ================= Dark trading-desk theme for every signed-in page (body.app) ================= */
body.app {
  --bg: #060F1A; --card: #0B1B2D; --line: rgba(255,255,255,.08); --text: #E6EDF5; --muted: #8A9BB0;
  --raise: #112740; --edge: rgba(255,255,255,.08); --up: #2BD487; --down: #F6465D; --gold: #F0B90B;
  background: radial-gradient(900px 480px at 90% -120px, rgba(21,94,239,.16), transparent 70%), radial-gradient(700px 420px at 0% 0%, rgba(18,183,106,.10), transparent 70%), #060F1A;
  background-attachment: fixed; color: var(--text); font-size: 15px;
  --shadow-1: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.28); --shadow-2: 0 1px 0 rgba(255,255,255,.05) inset, 0 16px 40px rgba(0,0,0,.45);
}
body.app a { color: #6EA8FF; } body.app a:hover { color: #9CC4FF; }
body.app h1, body.app h2, body.app h3 { color: #F2F6FA; }
body.app .app-main h1, body.app .page-head h1 { background: linear-gradient(100deg, #FFFFFF 35%, #2BD487); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.7rem; }
body.app .muted, body.app .stat-label, body.app .tile-label, body.app .tile-sub { color: var(--muted); }
body.app .stat, body.app .big, body.app .icard-amount { color: #fff; }
body.app code { background: rgba(255,255,255,.08); color: #E6EDF5; }
body.app .container { max-width: 1240px; }
@media (min-width: 900px) { body.app .container { padding: 28px 32px 8px; } }

/* surfaces: thin borders, no heavy shadows, brighter edge on hover */
body.app .card, body.app .panel, body.app .tile, body.app .icard, body.app .fact, body.app .pcard, body.app .filters, body.app .empty-state, body.app .help-banner, body.app .chat, body.app .metric {
  background: var(--card); border: 1px solid var(--edge); box-shadow: var(--shadow-1); color: var(--text);
}
body.app .card, body.app .panel, body.app .filters { border-radius: 14px; }
body.app .tile, body.app .fact, body.app .icard { border-radius: 16px; }
body.app .grid .card:hover, body.app .pcard:hover, body.app .tile:hover, body.app .icard:hover, body.app .fact:hover { border-color: rgba(43,212,135,.45); box-shadow: 0 0 0 1px rgba(43,212,135,.25), var(--shadow-2); }
body.app .metric { background: var(--raise); box-shadow: none; }
body.app .empty-state { border-style: dashed; border-color: rgba(255,255,255,.14); }
body.app .help-banner { background: linear-gradient(120deg, rgba(21,94,239,.18), rgba(18,183,106,.14)); border-color: rgba(110,168,255,.3); color: #E6EDF5; }
body.app .help-banner small { color: var(--muted); }
body.app .panel::before, body.app .card::before { display: none; }

/* tones: translucent tinted icon bubbles */
body.app .tone-blue { --tc: #6EA8FF; --tb: rgba(21,94,239,.2); }
body.app .tone-green { --tc: #2BD487; --tb: rgba(18,183,106,.18); }
body.app .tone-amber { --tc: #F0B90B; --tb: rgba(240,185,11,.16); }
body.app .tone-violet { --tc: #A48AFB; --tb: rgba(105,56,239,.22); }
body.app .tone-red { --tc: #FF6B7D; --tb: rgba(246,70,93,.18); }
body.app .tile::after { opacity: .35; }

/* hero: deeper, with a gold hairline */
body.app .hero, body.app .profile-card { border-radius: 18px; border: 1px solid rgba(255,255,255,.1); background: radial-gradient(120% 140% at 100% 0%, rgba(18,183,106,.32), transparent 55%), linear-gradient(135deg, #08233F 0%, #0B1B2D 70%); }
body.app .hero .stat { font-size: clamp(2.1rem, 6vw, 3.1rem); letter-spacing: -.03em; }

/* numbers: up / down colours */
body.app .pos, body.app .tx-amt .pos { color: var(--up); }
body.app .neg, body.app .tx-amt .neg { color: var(--down); }
body.app .pcalc-out strong { color: var(--up); }

/* forms */
body.app label { color: #B6C3D3; }
body.app input[type=text], body.app input[type=email], body.app input[type=password], body.app input[type=number], body.app input[type=date], body.app input[type=datetime-local], body.app input[type=search], body.app input[type=tel], body.app select, body.app textarea {
  background: #07131F; color: #F2F6FA; border: 1px solid rgba(255,255,255,.12);
}
body.app input:hover, body.app select:hover, body.app textarea:hover { border-color: rgba(255,255,255,.28); }
body.app input:focus, body.app select:focus, body.app textarea:focus { border-color: var(--up); box-shadow: 0 0 0 3px rgba(43,212,135,.2); }
body.app input:disabled { background: #0A1828; color: var(--muted); }
body.app input::placeholder, body.app textarea::placeholder { color: #5F7189; }
body.app select option { background: #0B1B2D; color: #F2F6FA; }
body.app .amount-field::before { color: var(--muted); }
body.app .copy-field input { background: #07131F; }

/* buttons */
body.app .btn { box-shadow: none; }
body.app .btn:hover { box-shadow: 0 6px 20px rgba(21,94,239,.35); }
body.app .btn-green { color: #04170E; background: linear-gradient(180deg, #3BE093, #12B76A); }
body.app .btn-green:hover { color: #04170E; box-shadow: 0 6px 20px rgba(18,183,106,.4); }
body.app .btn-light { color: #E6EDF5; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); box-shadow: none; }
body.app .btn-light:hover { color: #fff; background: rgba(255,255,255,.13); box-shadow: none; }
body.app .btn-danger { background: linear-gradient(180deg, #FF6B7D, #F6465D); }
body.app .quick button, body.app .chip { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); color: #C6D2E0; }
body.app .quick button:hover, body.app .chip:hover { background: rgba(43,212,135,.12); border-color: var(--up); color: var(--up); }
body.app .chip.active { background: var(--up); border-color: var(--up); color: #04170E; font-weight: 600; }
body.app .subnav { background: rgba(255,255,255,.05); box-shadow: none; }
body.app .subnav a { color: #A9B8CB; }
body.app .subnav a:hover { background: rgba(255,255,255,.08); color: #fff; }
body.app .subnav a.active { background: var(--raise); color: #fff; box-shadow: inset 0 -2px 0 var(--up); }

/* method cards, notices, alerts, badges */
body.app .method .opt { background: #07131F; border-color: rgba(255,255,255,.12); }
body.app .method .opt strong { color: #F2F6FA; }
body.app .method input:checked + .opt { background: rgba(43,212,135,.1); border-color: var(--up); box-shadow: 0 0 0 3px rgba(43,212,135,.15); }
body.app .notice { background: rgba(240,185,11,.08); border-color: rgba(240,185,11,.3); color: #F5D98A; }
body.app .notice.info { background: rgba(21,94,239,.12); border-color: rgba(110,168,255,.3); color: #B9D3FF; }
body.app .alert-error { background: rgba(246,70,93,.12); border-color: rgba(246,70,93,.4); color: #FFB3BC; }
body.app .alert-ok { background: rgba(18,183,106,.12); border-color: rgba(43,212,135,.4); color: #8CF0BF; }
body.app .badge { background: rgba(255,255,255,.1); color: #C6D2E0; }
body.app .badge-ok { background: rgba(18,183,106,.18); color: #52E3A0; }
body.app .badge-warn { background: rgba(240,185,11,.16); color: #F5C84C; }
body.app .badge-bad { background: rgba(246,70,93,.18); color: #FF8A98; }
body.app .field-error { color: #FF8A98; }

/* tables */
body.app table { color: var(--text); }
body.app th, body.app td { border-bottom: 1px solid rgba(255,255,255,.07); }
body.app th { background: rgba(255,255,255,.04); color: #8A9BB0; }
body.app tbody tr:hover { background: rgba(255,255,255,.04); }
body.app details > summary { color: #6EA8FF; }

/* lists */
body.app .tx:hover { background: rgba(255,255,255,.05); }
body.app .tx-link { color: inherit; }
body.app .tx-title { color: #F2F6FA; }
body.app .tx-group, body.app .tx-note, body.app .tx-time, body.app .tx-amt small { color: var(--muted); }
body.app .pfacts li { border-bottom-color: rgba(255,255,255,.1); }
body.app .pfacts li strong, body.app .fact strong, body.app .metric strong { color: #F2F6FA; }
body.app .fact span, body.app .metric span, body.app .pfacts li span { color: var(--muted); }
body.app .tl strong { color: #F2F6FA; } body.app .tl span { color: var(--muted); }
body.app .tl li::before { background: #0B1B2D; }

/* product cards on dark */
body.app .pcard { border-radius: 18px; }
body.app .pcard-desc { color: #A9B8CB; }
body.app .pcalc { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
body.app .pcalc input { background: #07131F; }
body.app .pcalc-note, body.app .pcalc-out span { color: var(--muted); }

/* progress and charts */
body.app .ring-bg { stroke: rgba(255,255,255,.1); } body.app .ring-txt { fill: #fff; }
body.app .pbar-bg { fill: rgba(255,255,255,.1); } body.app .pbar-cap { color: var(--muted); }
body.app .chart .axis { fill: #8A9BB0; } body.app .chart .base { stroke: rgba(255,255,255,.15); }
body.app .lock-note { color: var(--gold); }

/* chat + referral */
body.app .chat-log { background: #07131F; }
body.app .msg-body { background: var(--raise); border-color: rgba(255,255,255,.1); color: #F2F6FA; }
body.app .msg.me .msg-body { background: var(--blue); border-color: var(--blue); }
body.app .chat-form { background: var(--card); border-top-color: rgba(255,255,255,.08); }
body.app .refcode { background: rgba(255,255,255,.05); border-color: rgba(110,168,255,.4); }
body.app .refcode code { background: #07131F; color: #fff; }

/* shell */
body.app .footer { border-top-color: rgba(255,255,255,.08); }
body.app .footer .muted { color: #6E8099; }
body.app .side { background: linear-gradient(180deg, #08131F 0%, #050C14 100%); border-right: 1px solid rgba(255,255,255,.06); }
body.app .side-nav a.active { background: rgba(43,212,135,.12); }
body.app .side-nav a.active::before { background: var(--up); }
body.app .app-top { border-bottom: 1px solid rgba(255,255,255,.06); background: #08131F; }
body.app .page-head .btn { box-shadow: none; }
body.app .nav-count { background: var(--up); color: #04170E; }
body.app .chat-fab { background: linear-gradient(180deg, #3BE093, #12B76A); color: #04170E; box-shadow: 0 8px 24px rgba(18,183,106,.4); }
body.app .chat-fab .nav-count { background: #04170E; color: var(--up); }

.chart { height: 190px; }
.chart-axis { display: flex; justify-content: space-between; margin: 6px 0 4px; font-size: .78rem; color: var(--muted); }
.chart .base { vector-effect: non-scaling-stroke; }
/* keep component link colours (the generic dark link colour must not win over them) */
body.app a.btn { color: #fff; } body.app a.btn:hover { color: #fff; }
body.app a.btn-green, body.app a.btn-green:hover { color: #04170E; }
body.app a.btn-light, body.app a.btn-light:hover { color: #E6EDF5; }
body.app a.btn-glass, body.app a.btn-glass:hover { color: #fff; }
body.app .side-nav a { color: #B8C4D4; } body.app .side-nav a:hover, body.app .side-nav a.active { color: #fff; }
body.app a.brand, body.app a.brand:hover { color: #fff; }
body.app .subnav a { color: #A9B8CB; } body.app .subnav a.active, body.app .subnav a:hover { color: #fff; }
body.app a.help-banner, body.app a.tx-link { color: #E6EDF5; }
body.app a.chat-fab, body.app a.chat-fab:hover { color: #04170E; }
body.app .help-go { color: #fff; }
body.app .hero a:not(.btn) { color: #9CC0FF; }

/* ================= Same dark look: public home page and sign-in / sign-up / installer ================= */
body.lp, body.auth-body { --bg: #060F1A; --card: #0B1B2D; --raise: #112740; --edge: rgba(255,255,255,.08); --up: #2BD487; --down: #F6465D; --gold: #F0B90B; --muted: #8A9BB0; --text: #E6EDF5; color: var(--text); }
body.lp { background: #060F1A; }
body.lp h1, body.lp h2, body.lp h3, body.auth-body h1, body.auth-body h2, body.auth-body h3 { color: #F2F6FA; }
body.lp a:not(.btn):not(.brand):not(.lp-login) { color: #6EA8FF; }
body.lp .lp-links a:not(.btn), body.lp .lp-foot a:not(.btn) { color: #C9D5E4; }
body.lp .lp-links a:not(.btn):hover, body.lp .lp-foot a:not(.btn):hover { color: #fff; }
body.lp .lp-sub, body.lp .lp-small { color: var(--muted); }
body.lp .lp-alt { background: #08131F; border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); }
body.lp .lp-sec { background: transparent; }
body.lp .lp-facts { border-bottom: 1px solid rgba(255,255,255,.06); }
body.lp .lp-facts strong { color: #fff; } body.lp .lp-facts span { color: #9FB0C5; }
body.lp .lp-facts div:nth-child(4) { border-color: var(--gold); }
body.lp .lp-steps p { color: #9FB0C5; }
body.lp .lp-steps li::after { background: linear-gradient(90deg, rgba(110,168,255,.5), transparent); }
body.lp .lp-card, body.lp .lp-tile, body.lp .lp-faq, body.lp .lp-empty { background: var(--card); border: 1px solid var(--edge); box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.28); color: #C6D2E0; }
body.lp .lp-card:hover, body.lp .lp-tile:hover { border-color: rgba(43,212,135,.45); box-shadow: 0 0 0 1px rgba(43,212,135,.25), 0 16px 40px rgba(0,0,0,.45); }
body.lp .lp-card p, body.lp .lp-tile p, body.lp .lp-list, body.lp .lp-faq p { color: #9FB0C5; }
body.lp .lp-rate { color: var(--up); }
body.lp .lp-ico { background: rgba(21,94,239,.2); color: #6EA8FF; } body.lp .lp-ico.g { background: rgba(18,183,106,.18); color: var(--up); }
body.lp .lp-faq summary { color: #F2F6FA; } body.lp .lp-faq summary::after { color: var(--up); }
body.lp .lp-table th { color: var(--muted); } body.lp .lp-table th, body.lp .lp-table td { border-bottom-color: rgba(255,255,255,.08); color: #E6EDF5; }
body.lp .lp-refer { background: linear-gradient(135deg, rgba(18,183,106,.18), rgba(21,94,239,.14)); border: 1px solid rgba(43,212,135,.3); }
body.lp .lp-refer h2 { color: #fff; } body.lp .lp-refer .lp-sub, body.lp .lp-refer .lp-list { color: #A9D8C0; }
body.lp .lp-top.scrolled { background: rgba(6,15,26,.9); }
body.lp .btn-light { color: #E6EDF5; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); box-shadow: none; }
body.lp .btn-green, body.lp a.btn-green { color: #04170E; background: linear-gradient(180deg, #3BE093, #12B76A); }
body.lp a.btn { color: #fff; } body.lp a.btn-green { color: #04170E; } body.lp a.btn-light { color: #E6EDF5; }

/* auth + installer */
body.auth-body { background: radial-gradient(90% 60% at 85% 0%, rgba(21,94,239,.2), transparent 60%), radial-gradient(70% 50% at 0% 100%, rgba(18,183,106,.14), transparent 60%), #060F1A; }
body.auth-body .auth-shell { background: var(--card); border: 1px solid var(--edge); box-shadow: 0 24px 70px rgba(0,0,0,.55); }
body.auth-body .auth-card { background: var(--card); border: 1px solid var(--edge); box-shadow: 0 24px 70px rgba(0,0,0,.55); color: var(--text); }
body.auth-body .auth-shell .auth-card { border: 0; box-shadow: none; }
body.auth-body .auth-side { background: radial-gradient(120% 120% at 0% 0%, rgba(21,94,239,.35), transparent 60%), linear-gradient(150deg, #08233F, #060F1A); border-right: 1px solid var(--edge); }
body.auth-body .brand-lg, body.auth-body .brand-lg:hover { color: #fff; }
body.auth-body a { color: #6EA8FF; } body.auth-body a:hover { color: #9CC4FF; }
body.auth-body .muted { color: var(--muted); }
body.auth-body label { color: #B6C3D3; }
body.auth-body input[type=text], body.auth-body input[type=email], body.auth-body input[type=password], body.auth-body input[type=number], body.auth-body input[type=tel], body.auth-body select, body.auth-body textarea { background: #07131F; color: #F2F6FA; border: 1px solid rgba(255,255,255,.12); }
body.auth-body input:hover { border-color: rgba(255,255,255,.28); }
body.auth-body input:focus, body.auth-body select:focus { border-color: var(--up); box-shadow: 0 0 0 3px rgba(43,212,135,.2); }
body.auth-body input::placeholder { color: #5F7189; }
body.auth-body .btn { box-shadow: none; }
body.auth-body .btn:hover { box-shadow: 0 6px 20px rgba(21,94,239,.35); }
body.auth-body .alert-error, body.auth-body .alert { background: rgba(246,70,93,.12); border: 1px solid rgba(246,70,93,.4); color: #FFB3BC; }
body.auth-body .alert-ok { background: rgba(18,183,106,.12); border-color: rgba(43,212,135,.4); color: #8CF0BF; }
body.auth-body .field-error { color: #FF8A98; }
body.auth-body code { background: rgba(255,255,255,.08); color: #E6EDF5; }
body.auth-body .footer, body.auth-body .small { color: var(--muted); }


/* ================= Broadcast banner (admin message to everyone, top of dashboard) ================= */
.broadcast { --bc: #3B82F6; position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; margin: 0 0 20px; border-radius: 16px; background: linear-gradient(120deg, rgba(59,130,246,.18), #0B1B2D 60%); border: 1px solid color-mix(in srgb, var(--bc) 55%, transparent); color: #E6EDF5; overflow: hidden; animation: bc-in .7s cubic-bezier(.2,.9,.3,1.2) both, bc-glow 2.6s ease-in-out .7s infinite; }
.broadcast.bc-important { --bc: #F0B90B; background: linear-gradient(120deg, rgba(240,185,11,.2), #0B1B2D 60%); }
.broadcast.bc-urgent { --bc: #F6465D; background: linear-gradient(120deg, rgba(246,70,93,.24), #0B1B2D 60%); }
.broadcast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bc); }
.broadcast::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; left: -120px; background: linear-gradient(100deg, transparent, rgba(255,255,255,.16), transparent); animation: bc-sheen 4.5s ease-in-out 1.2s infinite; pointer-events: none; }
.bc-ico { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--bc); background: color-mix(in srgb, var(--bc) 18%, transparent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--bc) 60%, transparent); animation: bc-ring 2s ease-out infinite; }
.bc-ico svg { animation: bc-ring-shake 3.2s ease-in-out 1s infinite; transform-origin: 30% 60%; }
.bc-body { flex: 1; min-width: 0; }
.bc-tag { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--bc); margin-bottom: 2px; }
.broadcast h2 { margin: 0 0 4px; font-size: 1.15rem; color: #fff; }
.broadcast p { margin: 0; color: #C6D2E0; overflow-wrap: anywhere; }
.bc-close { flex: none; margin: 0; }
@keyframes bc-in { 0% { opacity: 0; transform: translateY(-22px) scale(.96); } 100% { opacity: 1; transform: none; } }
@keyframes bc-glow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bc) 0%, transparent), 0 10px 30px rgba(0,0,0,.35); } 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--bc) 28%, transparent), 0 10px 34px color-mix(in srgb, var(--bc) 25%, transparent); } }
@keyframes bc-sheen { 0% { left: -120px; } 45%, 100% { left: 110%; } }
@keyframes bc-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bc) 55%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }
@keyframes bc-ring-shake { 0%, 8%, 100% { transform: rotate(0); } 2% { transform: rotate(-14deg); } 4% { transform: rotate(12deg); } 6% { transform: rotate(-8deg); } }
@media (max-width: 640px) { .broadcast { flex-wrap: wrap; } .bc-close { width: 100%; } .bc-close .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .broadcast, .broadcast::after, .bc-ico, .bc-ico svg { animation: none; } }


.broadcast.bc-out { animation: bc-out .38s ease forwards; }
.broadcast[hidden] { display: none; }
@keyframes bc-out { to { opacity: 0; transform: translateY(-14px) scale(.97); } }

/* ================= Where the money is invested ================= */
.sects { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 0 0 24px; }
@media (min-width: 900px) { .sects { grid-template-columns: repeat(3, 1fr); } }
.sect { --sc: #6EA8FF; position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 20px; background: linear-gradient(160deg, color-mix(in srgb, var(--sc) 14%, #0B1B2D), #0B1B2D 55%); border: 1px solid rgba(255,255,255,.08); color: #C6D2E0; transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.sect:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--sc) 55%, transparent); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.sect.s-stocks { --sc: #6EA8FF; } .sect.s-oil { --sc: #F0B90B; } .sect.s-loans { --sc: #2BD487; }
.sect-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--sc); background: color-mix(in srgb, var(--sc) 16%, transparent); }
.sect-ico svg { width: 26px; height: 26px; }
.sect h3 { margin: 0; font-size: 1.25rem; color: #fff; }
.sect-tag { font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; color: var(--sc); }
.sect p { margin: 0; color: #9FB0C5; }
.sect dl { margin: 0; display: grid; gap: 10px; }
.sect dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #E6EDF5; margin: 0; }
.sect dd { margin: 2px 0 0; color: #9FB0C5; }
.sect dd.risk { color: #F2B8BF; }
.flow { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; counter-reset: fl; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow li { counter-increment: fl; position: relative; padding: 16px 16px 16px 54px; border-radius: 16px; background: #0B1B2D; border: 1px solid rgba(255,255,255,.08); color: #9FB0C5; }
.flow li::before { content: counter(fl); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: #155EEF; }
.flow strong { display: block; color: #fff; margin-bottom: 2px; }
.callout { padding: 18px 20px; border-radius: 16px; background: rgba(240,185,11,.08); border: 1px solid rgba(240,185,11,.35); color: #E9D9A0; margin: 0 0 24px; }
.callout strong { color: #F0B90B; }


/* ================= Home page extras ================= */
.lp-two { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; align-items: start; }
@media (min-width: 860px) { .lp-two { grid-template-columns: 1fr 1fr; } }
.lp-wrap.lp-two { margin-top: 0; }
.lp-tile h3 { margin-top: 0; }
.lp-foot-grid { display: grid; grid-template-columns: 1fr; gap: 26px; padding-bottom: 24px; }
@media (min-width: 860px) { .lp-foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.lp-foot h4 { margin: 0 0 10px; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: #E6EDF5; }
.lp-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-foot-legal { border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; }

body.lp .lp-foot ul a:not(.btn) { color: #9FB0C5; text-decoration: none; }
body.lp .lp-foot ul a:not(.btn):hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .g-line { stroke-dasharray: none; }
}

/* Copy fields (referrals) */
.copy-row { margin: 0 0 16px; }
.copy-row label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9rem; }
.copy-field { display: flex; gap: 10px; align-items: stretch; }
.copy-field input { flex: 1; min-width: 0; margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92rem; background: var(--bg); }
.copy-field .btn { margin: 0; white-space: nowrap; }
.btn.copied { background: var(--green); }
@media (max-width: 520px) { .copy-field { flex-direction: column; } }
