/* Nexwik brand: neon blue → violet → magenta → orange on near-black (from the logo).
   Dark theme everywhere; the sign-up card on the landing page keeps a light palette. */
:root {
  --night: #05060d;
  --night-2: #0b0e1d;
  --night-3: #131735;
  --blue: #1f6bff;
  --cyan: #19b8ff;
  --violet: #7b3cff;
  --magenta: #e535c8;
  --orange: #ff8a1e;
  --gold: #ffc23d;
  --brand: linear-gradient(90deg, #19b8ff 0%, #1f6bff 28%, #7b3cff 55%, #e535c8 78%, #ff8a1e 100%);
  --brand-btn: linear-gradient(90deg, #1f6bff 0%, #7b3cff 60%, #c53bd8 100%);

  /* Dark UI palette */
  --bg: #070913;
  --surface: #0e1122;
  --surface-2: #151a33;
  --surface-3: #1b2142;
  --line: #242a4a;
  --line-strong: #323a64;
  --ink: #e8ecff;
  --muted: #98a3c4;
  --input-bg: #0a0d1c;
  --input-line: #2c3358;
  --accent: #6f9bff;
  --accent-soft: #1f6bff26;
  --ok: #43d79a;
  --ok-soft: #43d79a1c;
  --warn: #ffbb55;
  --warn-soft: #ffbb551c;
  --err: #ff6f7d;
  --err-soft: #ff6f7d1c;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.55 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.grad-text { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------------ top bar */
.topbar { background: var(--night); color: #fff; padding: 8px 24px; display: flex; align-items: center; gap: 16px; position: relative; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; }
.brand img { height: 48px; width: auto; display: block; mix-blend-mode: screen; } /* drops the logo's black background */
.brand .sub { font-size: 13px; color: #9aa6c8; font-weight: 500; padding-left: 12px; border-left: 1px solid #ffffff26; }
.topbar .spacer { flex: 1; }
.topbar .meta { font-size: 13px; color: #b9c3e0; }
.topbar button { background: transparent; color: #fff; border: 1px solid #ffffff40; }
.topbar button:hover { border-color: #ffffff90; }

/* ------------------------------------------------------------------ buttons & inputs */
button, .btn { font: inherit; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); padding: 9px 16px; border-radius: 10px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
button:hover, .btn:hover { border-color: #4a5590; background: var(--surface-3); }
.primary { background: var(--brand-btn); border: 0; color: #fff; box-shadow: 0 6px 20px #5b3cff40; }
.primary:hover { filter: brightness(1.1); background: var(--brand-btn); }
.danger { color: var(--err); }
button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=url], input[type=date], select, textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--input-line); border-radius: 10px; background: var(--input-bg); color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #6b7699; }
input:focus, select:focus, textarea:focus { outline: 3px solid #6f9bff33; border-color: var(--accent); }
input:disabled, textarea:disabled, select:disabled { background: var(--surface-2); color: var(--muted); }
textarea { min-height: 72px; resize: vertical; }
.field { margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--ink); margin: 8px 0; }
.check input { margin-top: 3px; accent-color: var(--violet); }

/* ------------------------------------------------------------------ landing */
body.landing .topbar { display: none; }
body.modal-open { overflow: hidden; }
.lp { background: var(--night); color: #e7ecff; }
.lp h1, .lp h2, .lp h3, .lp h4 { font-family: "Space Grotesk", "Inter", sans-serif; color: #fff; }
.lp .auth-card h2, .lp .auth-card h3 { color: var(--ink); font-family: "Inter", sans-serif; }
.lp a { color: #9cc4ff; }
.lp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; }
.spacer { flex: 1; }

.lp-nav { position: sticky; top: 0; z-index: 20; background: #05060dd9; backdrop-filter: blur(12px); border-bottom: 1px solid #ffffff12; }
.lp-nav .lp-wrap { display: flex; align-items: center; gap: 28px; height: 80px; }
.lp-logo img { height: 60px; display: block; mix-blend-mode: screen; }
.lp-nav nav { display: flex; gap: 26px; margin-left: 24px; }
.lp-nav nav a { color: #c9d2ee; text-decoration: none; font-size: 15px; font-weight: 500; }
.lp-nav nav a:hover { color: #fff; }
.btn-outline { font: inherit; font-weight: 600; background: transparent; color: #fff !important; border: 1px solid transparent; border-radius: 10px; padding: 9px 18px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  background: linear-gradient(var(--night), var(--night)) padding-box, var(--brand) border-box; }
.btn-outline:hover { background: linear-gradient(#11152b, #11152b) padding-box, var(--brand) border-box; }

.lp-hero { position: relative; overflow: hidden; }
.lp-hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 140%;
  background: radial-gradient(40% 50% at 18% 30%, #1f6bff40 0%, transparent 70%), radial-gradient(35% 45% at 75% 30%, #e535c833 0%, transparent 70%), radial-gradient(30% 40% at 0% 100%, #19b8ff2a 0%, transparent 70%), radial-gradient(30% 40% at 60% 90%, #ff8a1e1f 0%, transparent 70%);
  pointer-events: none; }
.lp-hero .lp-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 104px; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; color: #cfe0ff; padding: 7px 14px; border-radius: 999px;
  background: linear-gradient(#0b0e1d, #0b0e1d) padding-box, var(--brand) border-box; border: 1px solid transparent; }
.lp h1 { font-size: 56px; line-height: 1.12; margin: 22px 0 18px; font-weight: 700; letter-spacing: -0.02em; }
.lp .lead { font-size: 18px; color: #b8c2dc; max-width: 560px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.cta.center { justify-content: center; }
.big { padding: 14px 26px; font-size: 16px; font-weight: 600; border-radius: 12px; }
.ghost { background: transparent; color: #fff !important; border: 1px solid #ffffff3a; }
.ghost:hover { border-color: #ffffff90; background: #ffffff0d; }
.stats { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.stats b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 30px; line-height: 1.1; }
.stats span { color: #98a3c4; font-size: 14px; }
.promise-card { background: #0e1122cc; border: 1px solid #ffffff17; border-radius: 22px; padding: 26px; display: grid; gap: 12px; box-shadow: 0 30px 90px #1f6bff2e, 0 0 0 1px #ffffff08 inset; }
.promise { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #ffffff06; border: 1px solid #ffffff0d; }
.promise b { display: block; color: #fff; font-size: 15px; }
.promise span { color: #98a3c4; font-size: 13px; }

.tile { flex: none; display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 10px 26px color-mix(in srgb, var(--a) 40%, transparent), inset 0 1px 0 #ffffff40; }
.promise .tile { width: 40px; height: 40px; border-radius: 12px; }
.dot-ic { flex: none; display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--a) 24%, transparent), color-mix(in srgb, var(--b) 18%, transparent)); border: 1px solid color-mix(in srgb, var(--a) 40%, transparent); }

.lp-section { padding: 88px 0; border-top: 1px solid #ffffff10; }
.lp-section.alt { background: #0a0c18; }
.lp-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.lp-section h2 { font-size: 38px; margin-bottom: 12px; }
.lp-section .sub { color: #a5b0cf; font-size: 16.5px; margin: 0; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker.pill { -webkit-background-clip: padding-box, border-box; background-clip: padding-box, border-box; color: #cfe0ff; }
.bar { width: 64px; height: 4px; border-radius: 4px; background: var(--brand); margin: 0 auto 14px; }

.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.svc { text-align: center; padding: 34px 26px 28px; border-radius: 18px; background: var(--night-2); border: 1px solid #ffffff14; transition: transform .2s, border-color .2s, box-shadow .2s; }
.svc:hover { transform: translateY(-4px); border-color: #ffffff2a; box-shadow: 0 18px 40px #0007; }
.svc .tile { width: 76px; height: 76px; border-radius: 22px; margin-bottom: 18px; }
.svc h3 { font-size: 20px; margin-bottom: 8px; }
.svc p { color: #a5b0cf; margin: 0 0 14px; }
.svc a, .lp-card a { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }

.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.why .dot-ic { border-radius: 50%; width: 60px; height: 60px; margin-bottom: 14px; }
.why h3 { font-size: 18px; margin-bottom: 6px; }
.why p { color: #a5b0cf; font-size: 14.5px; margin: 0; }

.sol-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.val-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.lp-card { padding: 26px; border-radius: 18px; background: var(--night-2); border: 1px solid #ffffff14; }
.lp-card .dot-ic { margin-bottom: 18px; }
.lp-card h3 { font-size: 20px; margin-bottom: 8px; }
.lp-card p { color: #a5b0cf; margin: 0; font-size: 14.5px; }

.journey { max-width: 1132px; margin: 0 auto; }
.milestone { text-align: center; padding: 40px 24px; border-radius: 20px; background: var(--night-2); border: 1px solid #ffffff14; animation: fadeIn .35s ease; }
.milestone b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 44px; line-height: 1.1; margin-bottom: 8px; }
.milestone h3 { font-size: 24px; margin-bottom: 8px; }
.milestone p { color: #a5b0cf; margin: 0 auto; max-width: 520px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.journey-nav { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.round { width: 48px; height: 48px; border-radius: 50%; justify-content: center; padding: 0; background: var(--night-2); border: 1px solid #ffffff22; }
.journey-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.journey-dots button { width: 9px; height: 9px; padding: 0; border-radius: 9px; border: 0; background: #ffffff33; }
.journey-dots button.on { width: 30px; background: var(--brand); }

.lead-form { max-width: 900px; margin: 0 auto; padding: 30px; border-radius: 20px; background: var(--night-2); border: 1px solid #ffffff14; }
.lead-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.lead-form label { color: #dfe6ff; }

.partners { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.partners a { display: grid; place-items: center; height: 120px; border-radius: 18px; padding: 20px; background: linear-gradient(135deg, #ffffff, #e9edfb); border: 1px solid transparent; box-shadow: 0 -3px 0 0 #7b3cff inset; transition: transform .2s; }
.partners a:hover { transform: translateY(-3px); }
.partners img { max-width: 100%; max-height: 64px; object-fit: contain; }

.ready { max-width: 900px; margin: 0 auto; text-align: center; padding: 48px 28px; border-radius: 22px; background: radial-gradient(60% 120% at 20% 0%, #1f6bff33, transparent 70%), radial-gradient(60% 120% at 90% 100%, #e535c82e, transparent 70%), var(--night-2); border: 1px solid #ffffff1c; }
.ready h2 { font-size: 32px; }
.ready p { color: #b8c2dc; }

.lp-foot { padding: 56px 0 28px; border-top: 1px solid #ffffff12; color: #98a3c4; font-size: 14px; background: #0a0c18; position: relative; }
.lp-foot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand); }
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; padding: 30px; border-radius: 20px; margin-bottom: 48px; background: linear-gradient(120deg, #1f6bff26, #7b3cff1f 50%, #e535c81a); border: 1px solid #ffffff1c; }
.newsletter h3 { font-size: 24px; margin-bottom: 4px; }
.newsletter p { margin: 0; }
.news-in { display: flex; gap: 10px; }
.news-in input { flex: 1; }
.news-in button { padding: 10px 16px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-size: 16px; margin: 0 0 14px; }
.foot-grid > div > a { display: block; color: #98a3c4; text-decoration: none; margin: 0 0 10px; }
.foot-grid > div > a:hover { color: #fff; }
.foot-logo { height: 64px; mix-blend-mode: screen; display: block; margin-bottom: 12px; }
.socials { display: flex; gap: 10px; margin: 16px 0 26px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #dfe6ff; background: #ffffff0d; border: 1px solid #ffffff1c; }
.socials a:hover { background: var(--brand-btn); color: #fff; }
.contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact li { display: flex; gap: 12px; align-items: flex-start; }
.contact b { display: block; color: #fff; font-size: 14px; }
.contact a, .contact span { color: #98a3c4; font-size: 13px; text-decoration: none; }
.foot-bottom { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid #ffffff12; font-size: 13px; }
.foot-bottom a { color: #98a3c4; text-decoration: none; }

.modal { position: fixed; inset: 0; z-index: 50; background: #02030acc; backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.modal-box { position: relative; width: 100%; max-width: 440px; }
.modal-x { position: absolute; top: -14px; right: -14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; padding: 0; justify-content: center; font-size: 22px; line-height: 1; background: var(--night-2); color: #fff; border: 1px solid #ffffff33; }

.needs-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.etypes { display: grid; gap: 8px; }
.etypes button { justify-content: flex-start; background: var(--night-2); color: #dfe6ff; border: 1px solid #ffffff1c; padding: 12px 14px; }
.etypes button.on { background: linear-gradient(var(--night-2), var(--night-2)) padding-box, var(--brand) border-box; border: 1px solid transparent; color: #fff; }
.needs-card { background: var(--night-2); border: 1px solid #ffffff14; border-radius: 16px; padding: 22px 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; }
.needs-card .grp { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #8fb2ff; margin: 10px 0 4px; }
.needs-card ul { margin: 0; padding-left: 18px; color: #d4dbf2; font-size: 14px; }
.needs-card li { margin: 3px 0; }

@media (max-width: 1000px) {
  .lp-hero .lp-wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; }
  .lp h1 { font-size: 42px; }
  .svc-grid, .val-grid, .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .lp-nav nav { display: none; }
}
@media (max-width: 640px) {
  .lp-nav .lp-wrap { gap: 10px; height: 64px; padding: 0 16px; }
  .lp-logo img { height: 44px; }
  .lp-nav .btn-outline, .lp-nav .primary { padding: 8px 12px; font-size: 14px; }
  .lp-wrap { padding: 0 16px; }
  .lp h1 { font-size: 34px; }
  .lp-section { padding: 60px 0; }
  .lp-section h2 { font-size: 28px; }
  .svc-grid, .val-grid, .sol-grid, .why-grid, .partners, .lead-form .row2, .newsletter, .foot-grid, .needs-grid, .needs-card { grid-template-columns: 1fr; }
  .stats { gap: 22px; }
  .modal-x { right: 4px; top: -16px; }
}

/* ------------------------------------------------------------------ cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }

/* Sign-up card: light palette, as approved. */
.auth-card {
  --surface: #ffffff; --surface-2: #f0f2f8; --surface-3: #e6e9f3; --line: #e2e6f0; --line-strong: #d3d9e8;
  --ink: #141a2e; --muted: #5a6378; --input-bg: #ffffff; --input-line: #cfd6e4; --accent: #1f6bff;
  color-scheme: light;
  background: #fff; color: var(--ink); border: 0; border-radius: 20px; padding: 26px; box-shadow: 0 30px 80px #0008, 0 0 0 1px #ffffff14; position: relative;
}
.auth-card::before { content: ""; position: absolute; inset: -1px; border-radius: 21px; padding: 1px; background: var(--brand); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .9; }
.auth-card label { color: #333d58; }
.auth-card a { color: var(--accent); }
.auth-card input::placeholder { color: #8a93a8; }
.tabs { display: flex; gap: 4px; margin-bottom: 18px; background: var(--surface-2); padding: 4px; border-radius: 12px; }
.tabs button { flex: 1; border: 0; background: transparent; justify-content: center; }
.tabs button.on { background: var(--surface); box-shadow: 0 1px 4px #0000001f; font-weight: 600; }
.notice { font-size: 12.5px; color: var(--muted); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.otp { letter-spacing: 12px; font-size: 24px; text-align: center; }
.pw-under-slot { max-width: 420px; margin: -6px 0 18px 16px; padding-left: 12px; border-left: 3px solid var(--line-strong); }
.pw-ask { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: var(--warn-soft); border: 1px solid #ffbb5566; }
.field .issue { font-size: 12.5px; line-height: 1.45; color: var(--err); margin-top: 5px; }
.board-fields { margin: 6px 0 4px; }
.spam-hint { font-size: 12.5px; line-height: 1.5; color: #6a4a12; background: #fff6e5; border: 1px solid #ffd99a; border-radius: 10px; padding: 8px 12px; margin: -2px 0 12px; }
.secure { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 12px; justify-content: center; }

/* ------------------------------------------------------------------ app layout */
.shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: calc(100vh - 66px); background:
  radial-gradient(60% 40% at 100% 0%, #7b3cff12 0%, transparent 60%), radial-gradient(50% 35% at 0% 100%, #1f6bff10 0%, transparent 60%), var(--bg); }
.side { background: var(--night-2); border-right: 1px solid var(--line); padding: 20px 14px; }
.side .who { padding: 4px 10px 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.side .who b { display: block; font-size: 15px; }
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); margin-top: 10px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.nav { list-style: none; padding: 0; margin: 0; }
.nav li button { width: 100%; justify-content: flex-start; border: 0; background: transparent; padding: 10px 10px; border-radius: 10px; text-align: left; font-weight: 500; color: #c9d1ec; }
.nav li button:hover { background: var(--surface-2); }
.nav li button.on { background: linear-gradient(90deg, #1f6bff2e, #7b3cff1a); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--violet); }
.nav .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #3a4270; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; }
.nav .done .dot { background: var(--brand-btn); border-color: transparent; }
.nav .locked { opacity: .4; }
.main { padding: 28px 34px 64px; max-width: 1000px; }
.main > header { margin-bottom: 18px; }
.section { margin-bottom: 18px; }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ status & badges */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err { background: var(--err-soft); color: var(--err); }
.badge.info { background: var(--accent-soft); color: var(--accent); }
.src { font-size: 11.5px; color: #b892ff; margin-top: 4px; font-weight: 500; }
.banner { border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; border: 1px solid; color: var(--ink); }
.banner.info { background: var(--accent-soft); border-color: #3b5bb0; }
.banner.warn { background: var(--warn-soft); border-color: #7a5a22; }
.banner.err { background: var(--err-soft); border-color: #8a3540; }
.banner.ok { background: var(--ok-soft); border-color: #2f7a5a; }
/* Highlighted instruction (letterhead, sign and stamp). */
.callout { display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; color: #ffe2b8;
  background: linear-gradient(#24170a, #24170a) padding-box, linear-gradient(90deg, var(--orange), var(--magenta)) border-box; border: 2px solid transparent; }
.callout b { color: #fff; }
.callout .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), var(--orange)); color: #1a1000; font-weight: 800; }
.callout .small { color: #e9c38e; }
.mark { background: #ffbb5530; color: #ffd28a; padding: 1px 5px; border-radius: 5px; font-weight: 600; }

/* ------------------------------------------------------------------ upload slots */
.slot { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: var(--surface); }
.slot-head { display: flex; gap: 10px; align-items: flex-start; }
.slot-head .t { flex: 1; }
.slot-head .t b { display: block; }
.drop { border: 1.5px dashed #39416e; border-radius: 10px; padding: 11px; text-align: center; color: var(--muted); font-size: 13px; cursor: pointer; margin-top: 10px; transition: background .15s; }
.drop:hover { background: var(--surface-2); border-color: #5562a0; }
.drop.over { border-color: var(--violet); background: #7b3cff1f; }
.files { list-style: none; padding: 0; margin: 10px 0 0; }
.files li { display: flex; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; flex-wrap: wrap; }
.files li .n { flex: 1; min-width: 160px; overflow-wrap: anywhere; }
.files .kv { width: 100%; font-size: 12.5px; color: var(--muted); padding-left: 2px; }
.files .kv b { color: var(--ink); font-weight: 600; }
.files button { padding: 3px 9px; font-size: 12.5px; }
.dl { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.dl .mark { background: #ffbb551f; border: 1px solid #ffbb5566; color: #ffcf86; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }

/* ------------------------------------------------------------------ checks */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.checks li:first-child { border-top: 0; }
.checks .ic { width: 20px; flex: none; text-align: center; font-weight: 700; }
.checks .ok .ic { color: var(--ok); }
.checks .bad .ic { color: var(--err); }
.checks .unk .ic { color: var(--warn); }

/* ------------------------------------------------------------------ persons */
.person { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 16px; background: var(--surface); }
.person-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.person-head h3 { margin: 0; flex: 1; }
.person .docs2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.person .docs2 .slot { margin-bottom: 10px; background: var(--night-2); }
.person .step-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #b892ff; margin: 4px 0 8px; }
.flags { display: flex; gap: 18px; flex-wrap: wrap; margin: 4px 0 4px; align-items: center; }
.flags .check { margin: 0; }

/* ------------------------------------------------------------------ review page fixes */
.fixgroup { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 14px; overflow: hidden; }
.fixgroup > h3 { margin: 0; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.fixgroup > h3 .spacer { flex: 1; }
.fixgroup .body { padding: 14px 16px 6px; }
.fixgroup .slot { background: var(--night-2); }
.fixrow { margin-bottom: 12px; }
.fixrow .why { font-size: 12.5px; color: var(--err); margin-top: 3px; }
.fixgroup.confirm { border-color: #6f9bff55; }
.fixgroup.confirm .grp, .confirm-person .grp { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #8fb2ff; margin: 12px 0 6px; }
.fixgroup.confirm label .badge { margin-left: 6px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.accuracy-ack { border: 1px solid #ffbb5566; background: var(--warn-soft); border-radius: 12px; padding: 14px 16px; margin: 16px 0 4px; font-size: 13.5px; }
.accuracy-ack b { color: #fff; }
.accuracy-ack.attention { border-color: var(--err); box-shadow: 0 0 0 3px #ff6f7d33; }
.submit-row { align-items: center; gap: 14px; flex-wrap: wrap; }
.aadhaar-check { border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.aadhaar-check .kvgrid { margin: 8px 0 0; }

/* ------------------------------------------------------------------ tables (admin) */
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
.kvgrid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 6px 14px; font-size: 14px; }
.kvgrid dt { color: var(--muted); }
.kvgrid dd { margin: 0; overflow-wrap: anywhere; }
iframe.preview { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--surface-3); border: 1px solid var(--line-strong); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; z-index: 50; box-shadow: 0 10px 30px #0008; max-width: calc(100vw - 32px); }
.toast.err { background: #5a1620; border-color: #a33a48; }
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: s .8s linear infinite; vertical-align: -1px; }
@keyframes s { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); min-width: 0; padding: 12px 10px; }
  .nav { display: flex; overflow-x: auto; gap: 4px; max-width: 100%; }
  .nav li button { white-space: nowrap; }
  .main { padding: 20px 16px 48px; }
  .grid, .grid3, .person .docs2 { grid-template-columns: 1fr; }
  .kvgrid { grid-template-columns: 1fr; }
  .topbar { padding: 8px 16px; gap: 10px; }
  .topbar .meta, .brand .sub { display: none; }
  .brand img { height: 36px; }
  .person-head { flex-wrap: wrap; }
  .files li .n { min-width: 0; }
}
