/* ==========================================================================
   Koso UI — design system v2
   One stylesheet for the public site, the customer app and the admin panel.
   Character: confident consumer fintech. Deep Koso green as the ground,
   a bright mint as the signature accent, generous radii, a characterful
   display face for headlines and money, and colour-coded services.
   ========================================================================== */

/* Fonts — self-hosted, SIL Open Font License (see fonts/OFL-*.txt) */
@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/BricolageGrotesque-Variable.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --k-font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --k-display: "Bricolage Grotesque", "Geist", ui-sans-serif, system-ui, sans-serif;
  --k-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --k-numf: "Geist", ui-sans-serif, system-ui, sans-serif;

  --k-bg: #F1F4F0;
  --k-surface: #FFFFFF;
  --k-surface-2: #F7F9F6;
  --k-sunken: #EAEFEA;
  --k-line: #E1E7E1;
  --k-line-strong: #CCD6CE;

  --k-ink: #0A1B16;
  --k-ink-2: #2F413B;
  --k-muted: #5E6F69;
  --k-faint: #93A29C;

  --k-brand: #0A7A5E;
  --k-brand-hover: #086A51;
  --k-brand-press: #065842;
  --k-brand-soft: #DCF3E9;
  --k-brand-line: #B2E0CC;
  --k-on-brand: #FFFFFF;

  --k-deep: #06302A;            /* hero / balance ground */
  --k-deeper: #031D19;
  --k-mint: #3DE8A8;            /* signature accent — on dark grounds */
  --k-mint-hover: #2FD897;
  --k-lime: #D9F77B;            /* rare highlight */
  --k-signal: var(--k-mint);

  --k-ok: #0F7A4C;   --k-ok-bg: #DFF4E8;
  --k-warn: #9A5B00; --k-warn-bg: #FFF1D6;
  --k-bad: #C0291F;  --k-bad-bg: #FDE7E4;
  --k-info: #2257C9; --k-info-bg: #E6EEFE;

  --k-r-sm: 8px;
  --k-r: 12px;
  --k-r-lg: 18px;
  --k-r-xl: 24px;
  --k-r-2xl: 32px;
  --k-pill: 999px;

  --k-shadow-1: 0 1px 2px rgba(6, 40, 33, .05), 0 1px 1px rgba(6, 40, 33, .03);
  --k-shadow-2: 0 12px 32px -14px rgba(6, 40, 33, .22), 0 2px 6px -2px rgba(6, 40, 33, .06);
  --k-shadow-pop: 0 32px 64px -20px rgba(3, 29, 25, .38), 0 6px 16px -6px rgba(3, 29, 25, .12);
  --k-shadow-brand: 0 10px 24px -10px rgba(10, 122, 94, .55);

  --k-ring: 0 0 0 4px rgba(10, 122, 94, .18);

  --k-sidebar-w: 260px;
  --k-topbar-h: 64px;
  --k-tabbar-h: 68px;
  --k-content-max: 1140px;

  --k-ease: cubic-bezier(.2, .7, .2, 1);
  --k-spring: cubic-bezier(.34, 1.4, .64, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--k-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--k-ink);
  background: var(--k-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--k-brand-soft); color: var(--k-brand-press); }
:focus-visible { outline: none; box-shadow: var(--k-ring); border-radius: var(--k-r-sm); }

h1, .k-h1 { font-family: var(--k-display); font-size: clamp(28px, 3.4vw, 36px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
h2, .k-h2 { font-family: var(--k-display); font-size: 21px; line-height: 1.2; letter-spacing: -.025em; font-weight: 680; }
h3, .k-h3 { font-size: 16px; line-height: 1.3; letter-spacing: -.012em; font-weight: 640; }
.k-display { font-family: var(--k-display); letter-spacing: -.035em; }
.k-eyebrow { font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--k-brand); }
.k-muted { color: var(--k-muted); }
.k-faint { color: var(--k-faint); }
.k-small { font-size: 13px; }
.k-tiny { font-size: 12px; }
.k-mono { font-family: var(--k-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.k-num { font-family: var(--k-numf); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.k-strong { font-weight: 640; }
.k-center { text-align: center; }
.k-right { text-align: right; }
.k-nowrap { white-space: nowrap; }
.k-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.k-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Icons ---------- */
.k-i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.k-i-sm { width: 16px; height: 16px; }
.k-i-lg { width: 24px; height: 24px; }

/* Service tints — every service keeps its own colour everywhere */
.k-tint { --t-bg: var(--k-brand-soft); --t-fg: var(--k-brand); }
.k-tint-data     { --t-bg: #DCF3E9; --t-fg: #0A7A5E; }
.k-tint-airtime  { --t-bg: #E3ECFF; --t-fg: #2A5BD7; }
.k-tint-bolt     { --t-bg: #FFF0CC; --t-fg: #B26A00; }
.k-tint-tv       { --t-bg: #EEE6FF; --t-fg: #6B3FD4; }
.k-tint-edu      { --t-bg: #FFE5EE; --t-fg: #C2255C; }
.k-tint-send     { --t-bg: #DDF2FB; --t-fg: #0A6F9A; }
.k-tint-card     { --t-bg: #E1F5F2; --t-fg: #0B6B64; }
.k-tint-family   { --t-bg: #FFEADB; --t-fg: #C24E0A; }
.k-tint-gift     { --t-bg: #FCE6F6; --t-fg: #A62A86; }
.k-tint-store    { --t-bg: #E8F3D9; --t-fg: #4C7A12; }
.k-tint-code     { --t-bg: #E9EDF2; --t-fg: #36475C; }
.k-tint-add      { --t-bg: #DCF3E9; --t-fg: #0A7A5E; }
.k-tile-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--t-bg, var(--k-brand-soft)); color: var(--t-fg, var(--k-brand)); flex: none; }
.k-tile-ico .k-i { width: 22px; height: 22px; stroke-width: 1.9; }

/* ---------- Layout helpers ---------- */
.k-stack { display: flex; flex-direction: column; gap: 16px; }
.k-stack-xs { display: flex; flex-direction: column; gap: 4px; }
.k-stack-sm { display: flex; flex-direction: column; gap: 8px; }
.k-stack-lg { display: flex; flex-direction: column; gap: 24px; }
.k-stack-xl { display: flex; flex-direction: column; gap: 40px; }
.k-row { display: flex; align-items: center; gap: 12px; }
.k-row-sm { display: flex; align-items: center; gap: 8px; }
.k-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.k-wrap { flex-wrap: wrap; }
.k-grow { flex: 1 1 auto; min-width: 0; }
.k-grid { display: grid; gap: 16px; }
.k-grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.k-grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.k-grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.k-grid-main { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 960px) {
  .k-grid-main, .k-grid-3, .k-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .k-grid-4.k-keep-2, .k-grid-3.k-keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .k-grid-2:not(.k-keep-2) { grid-template-columns: minmax(0, 1fr); } }
.k-divider { height: 1px; background: var(--k-line); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.k-btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px;
  border-radius: var(--k-pill); border: 1px solid transparent;
  font-size: 14.5px; font-weight: 620; letter-spacing: -.008em; line-height: 1;
  white-space: nowrap; user-select: none;
  transition: background-color .18s var(--k-ease), border-color .18s var(--k-ease), color .18s var(--k-ease), box-shadow .18s var(--k-ease), transform .12s var(--k-ease);
}
.k-btn:active:not(:disabled) { transform: scale(.97); }
.k-btn:disabled, .k-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.k-btn-primary { background: var(--k-brand); color: var(--k-on-brand); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), var(--k-shadow-brand); }
.k-btn-primary:hover:not(:disabled) { background: var(--k-brand-hover); }
.k-btn-accent { background: var(--k-mint); color: var(--k-deeper); box-shadow: 0 10px 30px -10px rgba(61, 232, 168, .6); }
.k-btn-accent:hover:not(:disabled) { background: var(--k-mint-hover); }
.k-btn-dark { background: var(--k-ink); color: #fff; }
.k-btn-dark:hover:not(:disabled) { background: #1B2D28; }
.k-btn-secondary { background: var(--k-surface); color: var(--k-ink); border-color: var(--k-line-strong); box-shadow: var(--k-shadow-1); }
.k-btn-secondary:hover:not(:disabled) { background: var(--k-surface-2); border-color: var(--k-faint); }
.k-btn-ghost { background: transparent; color: var(--k-ink-2); }
.k-btn-ghost:hover:not(:disabled) { background: var(--k-sunken); color: var(--k-ink); }
.k-btn-soft { background: var(--k-brand-soft); color: var(--k-brand-press); }
.k-btn-soft:hover:not(:disabled) { background: #CBEDDF; }
.k-btn-danger { background: var(--k-bad); color: #fff; }
.k-btn-danger:hover:not(:disabled) { background: #A11F17; }
.k-btn-inverse { background: #fff; color: var(--k-deep); }
.k-btn-inverse:hover:not(:disabled) { background: #EAF6F1; }
.k-btn-outline-inverse, .k-btn-glass { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.k-btn-outline-inverse:hover:not(:disabled), .k-btn-glass:hover:not(:disabled) { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.36); }
.k-btn-sm { --h: 36px; padding: 0 14px; font-size: 13.5px; }
.k-btn-lg { --h: 52px; padding: 0 26px; font-size: 15.5px; }
.k-btn-xl { --h: 58px; padding: 0 30px; font-size: 16.5px; }
.k-btn-block { width: 100%; }
.k-btn-icon { width: var(--h); padding: 0; }
.k-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.k-btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-color: rgba(255,255,255,.95) rgba(255,255,255,.95) rgba(255,255,255,.25) rgba(255,255,255,.25);
  animation: k-spin .7s linear infinite;
}
.k-btn-secondary.is-loading::after, .k-btn-ghost.is-loading::after, .k-btn-soft.is-loading::after, .k-btn-accent.is-loading::after, .k-btn-inverse.is-loading::after { border-color: var(--k-ink) var(--k-ink) var(--k-line) var(--k-line); }
@keyframes k-spin { to { transform: rotate(360deg); } }
.k-link { color: var(--k-brand); font-weight: 620; }
.k-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Forms ---------- */
.k-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.k-label { font-size: 13.5px; font-weight: 620; color: var(--k-ink-2); }
.k-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.k-hint { font-size: 12.5px; color: var(--k-muted); }
.k-field-error { font-size: 12.5px; color: var(--k-bad); }
.k-input, .k-select, .k-textarea {
  width: 100%; height: 52px; padding: 0 16px;
  background: var(--k-surface); color: var(--k-ink);
  border: 1.5px solid var(--k-line); border-radius: 14px;
  font-size: 15.5px; line-height: 1.2;
  transition: border-color .15s var(--k-ease), box-shadow .15s var(--k-ease), background-color .15s;
  -webkit-appearance: none; appearance: none;
}
.k-textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.k-input::placeholder, .k-textarea::placeholder { color: var(--k-faint); }
.k-input:hover, .k-select:hover, .k-textarea:hover { border-color: var(--k-line-strong); }
.k-input:focus, .k-select:focus, .k-textarea:focus { outline: none; border-color: var(--k-brand); box-shadow: var(--k-ring); }
.k-input:disabled, .k-select:disabled, .k-input[readonly] { background: var(--k-surface-2); color: var(--k-muted); }
.k-input.is-invalid { border-color: var(--k-bad); }
.k-select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235E6F69' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.k-input-group { position: relative; display: flex; align-items: stretch; }
.k-input-group .k-input { flex: 1; }
.k-input-prefix, .k-input-suffix {
  position: absolute; top: 0; bottom: 0; display: flex; align-items: center;
  color: var(--k-muted); font-size: 15.5px; pointer-events: none;
}
.k-input-prefix { left: 16px; font-weight: 600; }
.k-input-prefix + .k-input { padding-left: 38px; }
.k-input-suffix { right: 6px; pointer-events: auto; }
.k-input-group.has-suffix .k-input { padding-right: 52px; }
.k-input-amount { font-family: var(--k-display); font-size: 22px; font-weight: 650; letter-spacing: -.02em; height: 60px; }
.k-check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--k-ink-2); cursor: pointer; }
.k-check input { width: 18px; height: 18px; accent-color: var(--k-brand); margin: 0; }
.k-form-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* Selectable tiles (networks, billers, plans) */
.k-choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.k-choice {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 14px 16px; min-height: 68px; text-align: left;
  background: var(--k-surface); border: 1.5px solid var(--k-line); border-radius: 16px;
  transition: border-color .15s var(--k-ease), background-color .15s var(--k-ease), transform .12s var(--k-ease), box-shadow .15s;
}
.k-choice:hover { border-color: var(--k-line-strong); box-shadow: var(--k-shadow-1); }
.k-choice:active { transform: scale(.98); }
.k-choice.is-selected, .k-choice[aria-pressed="true"], .k-choice:has(input:checked) {
  border-color: var(--k-brand); background: #F2FBF7; box-shadow: 0 0 0 3px rgba(10,122,94,.12);
}
.k-choice.is-selected::after, .k-choice[aria-pressed="true"]::after, .k-choice:has(input:checked)::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--k-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.k-choice input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.k-choice-title { font-weight: 680; font-size: 15px; font-family: var(--k-display); letter-spacing: -.01em; }
.k-choice-meta { font-size: 12.5px; color: var(--k-muted); }
.k-choice-price { font-family: var(--k-numf); font-size: 15px; font-weight: 650; letter-spacing: -.01em; color: var(--k-brand-press); }

/* Network mark: letter badge in the network's own colour */
.k-net { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .01em; color: #fff; flex: none; font-family: var(--k-display); }
.k-net-mtn { background: #FFCB05; color: #1A1A1A; }
.k-net-airtel { background: #E40000; }
.k-net-glo { background: #1C8A2E; }
.k-net-9mobile, .k-net-etisalat, .k-net-t2 { background: #006E53; }

/* Segmented control */
.k-seg { display: inline-flex; padding: 4px; background: var(--k-sunken); border-radius: var(--k-pill); gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.k-seg::-webkit-scrollbar { display: none; }
.k-seg > * {
  flex: none; height: 36px; padding: 0 16px; border: 0; border-radius: var(--k-pill); background: transparent;
  font-size: 13.5px; font-weight: 620; color: var(--k-muted); display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s, color .15s;
}
.k-seg > *:hover { color: var(--k-ink); }
.k-seg > .is-active, .k-seg > [aria-selected="true"] { background: var(--k-surface); color: var(--k-ink); box-shadow: 0 2px 6px -1px rgba(6,40,33,.12); }

/* Tabs (underline) */
.k-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--k-line); overflow-x: auto; scrollbar-width: none; }
.k-tabs::-webkit-scrollbar { display: none; }
.k-tabs > a, .k-tabs > button {
  flex: none; padding: 12px 0; border: 0; background: none; border-bottom: 2.5px solid transparent; margin-bottom: -1px;
  font-size: 14.5px; font-weight: 620; color: var(--k-muted);
}
.k-tabs > .is-active { color: var(--k-ink); border-bottom-color: var(--k-brand); }

/* Chips */
.k-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--k-pill); background: var(--k-surface); border: 1px solid var(--k-line); font-size: 13.5px; font-weight: 600; color: var(--k-ink-2); }
.k-chip.is-active { background: var(--k-ink); color: #fff; border-color: var(--k-ink); }

/* ---------- Cards & surfaces ---------- */
.k-card { background: var(--k-surface); border: 1px solid var(--k-line); border-radius: var(--k-r-lg); box-shadow: var(--k-shadow-1); }
.k-card-pad, .k-card > .k-card-body { padding: 22px; }
.k-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--k-line); }
.k-card-head h2, .k-card-head h3, .k-card-title { font-family: var(--k-display); font-size: 17px; font-weight: 680; letter-spacing: -.02em; }
.k-card-flush .k-card-title { padding: 18px 22px 0; }
.k-card-foot { padding: 14px 22px; border-top: 1px solid var(--k-line); background: var(--k-surface-2); border-radius: 0 0 var(--k-r-lg) var(--k-r-lg); }
.k-card-sunken { background: var(--k-surface-2); }
@media (max-width: 560px) {
  .k-card-pad, .k-card > .k-card-body { padding: 18px; }
  .k-card-head { padding: 16px 18px; }
}

.k-kv { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; font-size: 14px; }
.k-kv dt { color: var(--k-muted); }
.k-kv dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }

/* Summary / receipt block */
.k-summary { border-radius: 16px; padding: 16px 18px; background: var(--k-surface-2); border: 1px solid var(--k-line); position: relative; }
.k-summary .k-kv { font-size: 14px; }
.k-summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 14px; border-top: 1.5px dashed var(--k-line-strong); font-weight: 680; font-size: 15.5px; }
.k-summary-total .k-num { font-family: var(--k-display); font-size: 20px; letter-spacing: -.02em; }

/* ---------- Lists (activity, settings) ---------- */
.k-list > li + li, .k-list > a + a, .k-list > div + div, .k-list > a + div, .k-list > div + a { border-top: 1px solid var(--k-line); }
.k-item { display: flex; align-items: center; gap: 14px; padding: 14px 22px; min-height: 68px; transition: background .12s; }
a.k-item:hover, button.k-item:hover { background: var(--k-surface-2); }
button.k-item { width: 100%; border: 0; background: none; text-align: left; }
.k-item-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--t-bg, var(--k-sunken)); color: var(--t-fg, var(--k-ink-2)); flex: none; }
.k-item-icon.is-in { background: var(--k-ok-bg); color: var(--k-ok); }
.k-item-icon.is-out { background: var(--t-bg, var(--k-sunken)); color: var(--t-fg, var(--k-ink-2)); }
.k-item-icon.is-bad { background: var(--k-bad-bg); color: var(--k-bad); }
.k-item-main { flex: 1 1 auto; min-width: 0; }
.k-item-title { font-size: 14.5px; font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-item-meta { font-size: 12.5px; color: var(--k-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-item-end { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.k-amount { font-family: var(--k-numf); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 680; letter-spacing: -.015em; white-space: nowrap; }
.k-amount.is-in { color: var(--k-ok); }
@media (max-width: 560px) { .k-item { padding: 13px 16px; gap: 12px; } }

/* ---------- Badges ---------- */
.k-badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px;
  border-radius: var(--k-pill); font-size: 12px; font-weight: 650; letter-spacing: .005em; white-space: nowrap;
  background: var(--k-sunken); color: var(--k-ink-2);
}
.k-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.k-badge.no-dot::before { display: none; }
.k-badge-ok { background: var(--k-ok-bg); color: var(--k-ok); }
.k-badge-warn { background: var(--k-warn-bg); color: var(--k-warn); }
.k-badge-bad { background: var(--k-bad-bg); color: var(--k-bad); }
.k-badge-info { background: var(--k-info-bg); color: var(--k-info); }
.k-badge-brand { background: var(--k-brand-soft); color: var(--k-brand-press); }
.k-badge-mint { background: rgba(61,232,168,.16); color: var(--k-mint); }

/* ---------- Alerts ---------- */
.k-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; border: 1px solid transparent; }
.k-alert .k-i { margin-top: 1px; }
.k-alert strong { font-weight: 680; }
.k-alert-info { background: var(--k-info-bg); color: #163F99; border-color: #CCDBFB; }
.k-alert-success { background: var(--k-ok-bg); color: #0B5A39; border-color: #BFE6D0; }
.k-alert-warning { background: var(--k-warn-bg); color: #6E4200; border-color: #F6DFAF; }
.k-alert-danger { background: var(--k-bad-bg); color: #8E1A13; border-color: #F6C9C3; }
.k-alert-neutral { background: var(--k-surface-2); color: var(--k-ink-2); border-color: var(--k-line); }

/* ---------- Stats ---------- */
.k-stat { padding: 18px 22px; background: var(--k-surface); border: 1px solid var(--k-line); border-radius: var(--k-r-lg); display: flex; flex-direction: column; gap: 6px; min-width: 0; box-shadow: var(--k-shadow-1); }
.k-stat-label { font-size: 13px; color: var(--k-muted); font-weight: 560; }
.k-stat-value { font-family: var(--k-display); font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; overflow-wrap: anywhere; }
.k-stat-sub { font-size: 12.5px; color: var(--k-muted); }
.k-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.k-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); background: var(--k-surface); border: 1px solid var(--k-line); border-radius: var(--k-r-lg); box-shadow: var(--k-shadow-1); }
.k-stats-row > .k-stat { border: 0; border-radius: 0; background: none; box-shadow: none; }
.k-stats-row > .k-stat + .k-stat { border-left: 1px solid var(--k-line); }
@media (max-width: 700px) {
  .k-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-stats-row > .k-stat + .k-stat { border-left: 0; }
  .k-stats-row > .k-stat:nth-child(even) { border-left: 1px solid var(--k-line); }
  .k-stats-row > .k-stat:nth-child(n+3) { border-top: 1px solid var(--k-line); }
}

/* Progress */
.k-progress { height: 8px; background: var(--k-sunken); border-radius: 99px; overflow: hidden; }
.k-progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--k-brand), #19B383); border-radius: inherit; transition: width .5s var(--k-ease); }

/* ---------- Tables ---------- */
.k-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.k-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.k-table th { text-align: left; font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--k-muted); padding: 11px 18px; background: var(--k-surface-2); border-bottom: 1px solid var(--k-line); white-space: nowrap; }
.k-table td { padding: 13px 18px; border-bottom: 1px solid var(--k-line); vertical-align: middle; }
.k-table tr:last-child td { border-bottom: 0; }
.k-table tbody tr:hover td { background: var(--k-surface-2); }
.k-table .is-num { text-align: right; font-family: var(--k-numf); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }

/* ---------- Empty state ---------- */
.k-empty { padding: 44px 24px; text-align: center; color: var(--k-muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.k-empty > .k-i { width: 56px; height: 56px; padding: 15px; border-radius: 20px; background: var(--k-brand-soft); color: var(--k-brand); margin-bottom: 6px; stroke-width: 1.7; }
.k-empty-title { color: var(--k-ink); font-weight: 680; font-size: 16px; font-family: var(--k-display); letter-spacing: -.01em; }
.k-empty p { max-width: 340px; font-size: 14px; }

/* ---------- Skeleton ---------- */
.k-skel { background: linear-gradient(90deg, var(--k-sunken) 0%, #F5F8F4 50%, var(--k-sunken) 100%); background-size: 200% 100%; animation: k-shimmer 1.2s linear infinite; border-radius: 12px; }
@keyframes k-shimmer { to { background-position: -200% 0; } }

/* ---------- Modal / sheet ---------- */
.k-modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(3, 20, 17, .52); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.k-modal.is-open, .k-modal[open] { display: flex; }
.k-modal-box { width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow: auto; background: var(--k-surface); border-radius: var(--k-r-xl); box-shadow: var(--k-shadow-pop); animation: k-pop .22s var(--k-ease); }
.k-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 0; }
.k-modal-body { padding: 18px 22px 22px; }
.k-modal-foot { display: flex; gap: 10px; padding: 0 22px 22px; }
.k-modal-foot > * { flex: 1; }
@keyframes k-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@media (max-width: 560px) {
  .k-modal { align-items: flex-end; padding: 0; }
  .k-modal-box { max-width: none; border-radius: 28px 28px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: k-sheet .3s var(--k-ease); }
  .k-modal-box::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 9px; background: var(--k-line-strong); margin: 10px auto 0; }
  @keyframes k-sheet { from { transform: translateY(40px); opacity: .4; } }
}
.k-result-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto 16px; position: relative; }
.k-result-icon::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid currentColor; opacity: .14; }
.k-result-icon.is-ok { background: var(--k-ok-bg); color: var(--k-ok); }
.k-result-icon.is-bad { background: var(--k-bad-bg); color: var(--k-bad); }
.k-result-icon.is-wait { background: var(--k-warn-bg); color: var(--k-warn); }
.k-result-icon .k-i { width: 32px; height: 32px; stroke-width: 2.4; }
.k-result-icon.is-ok .k-i { animation: k-tick .5s var(--k-spring) both .1s; }
@keyframes k-tick { from { transform: scale(.3); opacity: 0; } }

/* ---------- Toast ---------- */
.k-toasts { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.k-toast { pointer-events: auto; display: flex; gap: 10px; align-items: center; padding: 13px 18px; border-radius: 16px; background: var(--k-deeper); color: #fff; font-size: 14px; font-weight: 560; box-shadow: var(--k-shadow-pop); animation: k-pop .2s var(--k-ease); }
.k-toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--k-mint); flex: none; }
.k-toast.is-bad { background: #6F150F; }
.k-toast.is-bad::before { background: #FF8A7F; }
@media (max-width: 960px) { .k-app .k-toasts { bottom: calc(var(--k-tabbar-h) + 28px + env(safe-area-inset-bottom)); } }

/* ==========================================================================
   App shell (customer + admin)
   ========================================================================== */
.k-app { min-height: 100vh; min-height: 100dvh; }
.k-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--k-sidebar-w); z-index: 40;
  display: flex; flex-direction: column;
  background: var(--k-surface); border-right: 1px solid var(--k-line);
}
.k-brand { display: flex; align-items: center; gap: 10px; height: 72px; padding: 0 22px; font-family: var(--k-display); font-weight: 750; font-size: 21px; letter-spacing: -.035em; }
.k-brand img { width: 32px; height: 32px; border-radius: 10px; }
.k-brand small { font-family: var(--k-font); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--k-brand-press); margin-left: 2px; padding: 3px 7px; background: var(--k-brand-soft); border-radius: 6px; }
.k-nav { flex: 1; overflow-y: auto; padding: 4px 14px 16px; scrollbar-width: thin; }
.k-nav-group + .k-nav-group { margin-top: 20px; }
.k-nav-label { padding: 0 12px 6px; font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--k-faint); }
.k-nav a {
  display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 12px;
  font-size: 14.5px; font-weight: 560; color: var(--k-ink-2); transition: background .12s, color .12s;
}
.k-nav a .k-i { width: 19px; height: 19px; color: var(--k-muted); }
.k-nav a:hover { background: var(--k-surface-2); color: var(--k-ink); }
.k-nav a.is-active { background: var(--k-deep); color: #fff; font-weight: 620; }
.k-nav a.is-active .k-i { color: var(--k-mint); }
.k-nav-count { margin-left: auto; font-size: 11.5px; font-weight: 650; font-family: var(--k-mono); color: var(--k-muted); }
.k-sidebar-foot { padding: 12px 14px 16px; border-top: 1px solid var(--k-line); }
.k-user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; }
.k-user-chip:hover { background: var(--k-surface-2); }
.k-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #0E9A75, var(--k-deep)); color: #fff; font-size: 13px; font-weight: 700; flex: none; letter-spacing: .02em; }
.k-avatar-lg { width: 64px; height: 64px; font-size: 22px; }

.k-main { margin-left: var(--k-sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.k-topbar {
  position: sticky; top: 0; z-index: 30; height: var(--k-topbar-h);
  display: flex; align-items: center; gap: 12px; padding: 0 32px;
  background: rgba(241, 244, 240, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.k-topbar.is-scrolled { border-bottom-color: var(--k-line); }
.k-topbar-title { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.k-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.k-topbar .k-mobile-brand, .k-topbar .k-mtitle, .k-topbar .k-mback { display: none; }
.k-content { width: 100%; max-width: var(--k-content-max); margin: 0 auto; padding: 8px 32px 64px; flex: 1; }
.k-content-narrow { max-width: 660px; }
.k-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 12px 0 26px; }
.k-page-head h1 { font-size: clamp(28px, 3.2vw, 34px); }
.k-page-head p { color: var(--k-muted); margin-top: 8px; font-size: 15px; max-width: 620px; }
.k-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--k-muted); margin-bottom: 10px; font-weight: 580; }
.k-back:hover { color: var(--k-ink); }
.k-icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--k-surface); border: 1px solid var(--k-line); color: var(--k-ink-2); position: relative; }
.k-icon-btn:hover { color: var(--k-ink); border-color: var(--k-line-strong); }

/* Mobile tab bar — floating, native-feeling */
.k-tabbar { display: none; }
@media (max-width: 960px) {
  .k-sidebar { transform: translateX(-102%); transition: transform .28s var(--k-ease); box-shadow: none; width: min(86vw, 320px); border-radius: 0 24px 24px 0; }
  .k-app.nav-open .k-sidebar { transform: none; box-shadow: var(--k-shadow-pop); }
  .k-scrim { position: fixed; inset: 0; z-index: 35; background: rgba(3,20,17,.45); opacity: 0; pointer-events: none; transition: opacity .25s; backdrop-filter: blur(2px); }
  .k-app.nav-open .k-scrim { opacity: 1; pointer-events: auto; }
  .k-main { margin-left: 0; padding-bottom: calc(var(--k-tabbar-h) + 28px + env(safe-area-inset-bottom)); }
  .k-topbar { padding: 0 14px; padding-top: env(safe-area-inset-top); height: calc(58px + env(safe-area-inset-top)); gap: 10px; }
  .k-topbar .k-mobile-brand { display: flex; align-items: center; gap: 9px; font-family: var(--k-display); font-weight: 750; font-size: 19px; letter-spacing: -.035em; }
  .k-topbar .k-mobile-brand img { width: 30px; height: 30px; border-radius: 9px; }
  .k-topbar-title { display: none; }
  .k-app:not([data-page="dashboard"]) .k-topbar .k-mobile-brand { display: none; }
  .k-app:not([data-page="dashboard"]) .k-topbar .k-mback { display: inline-grid; }
  .k-app:not([data-page="dashboard"]) .k-topbar .k-mtitle { display: block; font-family: var(--k-display); font-size: 18px; font-weight: 700; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .k-content { padding: 6px 16px 24px; }
  .k-page-head { margin: 6px 0 18px; }
  .k-page-head h1 { font-size: 26px; }
  .k-page-head p { font-size: 14.5px; margin-top: 6px; }
  .k-tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
    height: var(--k-tabbar-h); padding: 0 6px;
    background: rgba(255,255,255,.9); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px);
    border: 1px solid rgba(225,231,225,.9); border-radius: 24px;
    box-shadow: 0 16px 40px -16px rgba(3,29,25,.35), 0 2px 8px -2px rgba(3,29,25,.08);
  }
  .k-tabbar a, .k-tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; border: 0; background: none; font-size: 11px; font-weight: 620; color: var(--k-faint); transition: color .15s; }
  .k-tabbar .k-i { width: 23px; height: 23px; stroke-width: 1.9; }
  .k-tabbar .is-active { color: var(--k-deep); }
  .k-tabbar .is-active::before { content: ""; position: absolute; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--k-brand); display: none; }
  .k-tabbar .k-tab-main { color: var(--k-ink-2); }
  .k-tabbar .k-tab-main .k-tab-fab {
    display: grid; place-items: center; width: 54px; height: 54px; margin-top: -30px; border-radius: 20px;
    background: linear-gradient(145deg, #0E9A75, var(--k-deep)); color: #fff;
    box-shadow: 0 12px 24px -8px rgba(10,122,94,.7), inset 0 1px 0 rgba(255,255,255,.2); border: 4px solid var(--k-bg);
    transition: transform .2s var(--k-spring);
  }
  .k-tabbar .k-tab-main:active .k-tab-fab { transform: scale(.92); }
  .k-tabbar .k-tab-main .k-i { width: 24px; height: 24px; stroke-width: 2.3; }
}
@media (min-width: 961px) { .k-only-mobile { display: none !important; } .k-scrim { display: none; } }
@media (max-width: 960px) { .k-only-desktop { display: none !important; } }

/* ---------- Balance panel ---------- */
.k-balance {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 24px 26px 22px; border-radius: 28px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(61,232,168,.34) 0%, rgba(61,232,168,0) 55%),
    radial-gradient(80% 80% at 0% 100%, rgba(14,154,117,.45) 0%, rgba(14,154,117,0) 60%),
    linear-gradient(160deg, #0A4A3F 0%, var(--k-deep) 55%, var(--k-deeper) 100%);
  color: #fff; box-shadow: 0 24px 48px -24px rgba(3,29,25,.6);
}
.k-balance::before { /* concentric rings — the Koso "signal" motif */
  content: ""; position: absolute; z-index: -1; right: -120px; top: -140px; width: 380px; height: 380px; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255,255,255,.07) 0 1px, transparent 1px 34px);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%); -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}
.k-balance > * { position: relative; z-index: 1; }
.k-balance-label { font-size: 13.5px; color: rgba(255,255,255,.72); display: flex; align-items: center; gap: 8px; font-weight: 560; }
.k-balance-amount { font-family: var(--k-display); font-variant-numeric: tabular-nums; font-size: clamp(38px, 6vw, 50px); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; margin-top: 8px; }
.k-balance-amount .k-cur { font-size: .52em; vertical-align: .62em; margin-right: 3px; opacity: .75; letter-spacing: 0; font-weight: 600; }
.k-balance-amount .k-dec { opacity: .55; font-size: .62em; letter-spacing: -.02em; }
.k-balance-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.82); }
.k-balance-meta > span { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 6px 0 12px; border-radius: var(--k-pill); background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.1); }
.k-balance-meta > span:not(:has(button)) { padding-right: 12px; }
.k-balance-meta .k-mono { color: #fff; font-weight: 560; }
.k-balance-meta .k-i { color: var(--k-mint); }
.k-balance-actions { display: flex; gap: 10px; margin-top: 22px; }
.k-balance-actions .k-btn { flex: 1; max-width: 220px; }
.k-balance-actions .k-btn-inverse { background: var(--k-mint); color: var(--k-deeper); }
.k-balance-actions .k-btn-inverse:hover { background: var(--k-mint-hover); }
.k-icon-btn-inverse { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; }
.k-icon-btn-inverse:hover { background: rgba(255,255,255,.2); }
.k-balance-mini { position: relative; overflow: hidden; padding: 18px 20px; border-radius: 22px; background: radial-gradient(120% 120% at 100% 0%, rgba(61,232,168,.28), transparent 55%), linear-gradient(160deg, #0A4A3F, var(--k-deep)); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.k-balance-mini .k-balance-amount { font-size: 28px; margin-top: 2px; }
@media (max-width: 560px) {
  .k-balance { padding: 22px 20px 20px; border-radius: 26px; }
  .k-balance-actions .k-btn { max-width: none; }
}

/* ---------- Quick actions (service grid) ---------- */
.k-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.k-quick a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px;
  border-radius: 20px; background: var(--k-surface); border: 1px solid var(--k-line);
  font-size: 14px; font-weight: 640; color: var(--k-ink); box-shadow: var(--k-shadow-1);
  transition: transform .18s var(--k-ease), box-shadow .18s var(--k-ease), border-color .18s;
}
.k-quick a:hover { transform: translateY(-2px); box-shadow: var(--k-shadow-2); border-color: transparent; }
.k-quick-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: var(--t-bg, var(--k-brand-soft)); color: var(--t-fg, var(--k-brand)); }
.k-quick-ico .k-i { width: 22px; height: 22px; stroke-width: 1.9; }
.k-quick small { display: block; font-size: 12px; font-weight: 500; color: var(--k-muted); margin-top: 2px; }
@media (max-width: 560px) {
  .k-quick { grid-template-columns: repeat(4, 1fr); gap: 14px 4px; padding: 18px 8px; background: var(--k-surface); border: 1px solid var(--k-line); border-radius: 24px; box-shadow: var(--k-shadow-1); }
  .k-quick a { align-items: center; text-align: center; padding: 0; gap: 8px; font-size: 12px; font-weight: 600; border: 0; background: none; box-shadow: none; border-radius: 0; }
  .k-quick a:hover { transform: none; box-shadow: none; }
  .k-quick-ico { width: 54px; height: 54px; border-radius: 18px; }
  .k-quick-ico .k-i { width: 24px; height: 24px; }
  .k-quick small { display: none; }
}

/* Promo rail (horizontal cards on the dashboard) */
.k-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.k-rail::-webkit-scrollbar { display: none; }
.k-promo { scroll-snap-align: start; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 148px; padding: 18px 20px; border-radius: 22px; color: #fff; isolation: isolate; }
.k-promo::after { content: ""; position: absolute; z-index: -1; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.1); }
.k-promo h3 { font-family: var(--k-display); font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.k-promo p { font-size: 13px; opacity: .82; margin-top: 4px; max-width: 220px; }
.k-promo .k-promo-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 680; }
.k-promo-green { background: linear-gradient(140deg, #0E9A75, #06302A); }
.k-promo-violet { background: linear-gradient(140deg, #7B4FE0, #3A1E8C); }
.k-promo-amber { background: linear-gradient(140deg, #F2A516, #B45309); }
.k-promo-ink { background: linear-gradient(140deg, #22343A, #0B1418); }
@media (max-width: 560px) { .k-rail { grid-auto-columns: 82%; margin: 0 -16px; padding: 0 16px 2px; scroll-padding: 0 16px; } }

/* Section title row inside app */
.k-sec-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.k-sec-title h2 { font-size: 18px; }

/* ==========================================================================
   Public site
   ========================================================================== */
.k-site { background: var(--k-bg); overflow-x: hidden; }
.k-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 560px) { .k-container { padding: 0 18px; } }
.k-site-header { position: sticky; top: 0; z-index: 50; background: rgba(241,244,240,.8); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.k-site-header.is-scrolled { border-bottom-color: var(--k-line); background: rgba(241,244,240,.92); }
.k-site-header .k-container { display: flex; align-items: center; gap: 32px; height: 72px; }
.k-site-logo { display: flex; align-items: center; gap: 10px; font-family: var(--k-display); font-weight: 750; font-size: 22px; letter-spacing: -.04em; }
.k-site-logo img { width: 34px; height: 34px; border-radius: 10px; }
.k-site-nav { display: flex; gap: 2px; }
.k-site-nav a { padding: 9px 14px; border-radius: var(--k-pill); font-size: 14.5px; font-weight: 560; color: var(--k-ink-2); transition: background .15s, color .15s; }
.k-site-nav a:hover { color: var(--k-ink); background: rgba(10,27,22,.06); }
.k-site-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.k-site-menu-btn { display: none; }
@media (max-width: 900px) {
  .k-site-nav { display: none; }
  .k-site-menu-btn { display: inline-flex; }
  .k-site-cta .k-hide-sm { display: none; }
  .k-site-header .k-container { height: 64px; }
  .k-site-header.menu-open { background: var(--k-bg); }
  .k-site-header.menu-open .k-site-nav {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 64px;
    padding: 8px 14px 20px; background: var(--k-bg); border-bottom: 1px solid var(--k-line); box-shadow: var(--k-shadow-2);
  }
  .k-site-header.menu-open .k-site-nav a { padding: 14px 12px; font-size: 17px; font-weight: 620; border-radius: 14px; }
}

/* Sections */
.k-section { padding: 104px 0; }
.k-section-tight { padding: 64px 0; }
.k-section-alt { background: var(--k-surface); }
.k-section-dark { background: var(--k-deep); color: #fff; }
.k-section-dark .k-muted, .k-section-dark .k-section-lede { color: rgba(255,255,255,.72); }
.k-section-head { max-width: 680px; margin-bottom: 48px; }
.k-section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.k-section-head h2, .k-title-xl { font-family: var(--k-display); font-size: clamp(32px, 4.6vw, 54px); line-height: 1.02; letter-spacing: -.045em; font-weight: 720; }
.k-section-lede { margin-top: 18px; font-size: clamp(16px, 1.5vw, 18px); color: var(--k-ink-2); line-height: 1.6; }
@media (max-width: 560px) { .k-section { padding: 72px 0; } .k-section-head { margin-bottom: 32px; } }

.k-pill-tag { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 6px; border-radius: var(--k-pill); background: var(--k-surface); border: 1px solid var(--k-line); font-size: 13px; font-weight: 620; color: var(--k-ink-2); box-shadow: var(--k-shadow-1); }
.k-pill-tag b { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--k-pill); background: var(--k-brand); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.k-on-dark .k-pill-tag { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.88); box-shadow: none; }
.k-on-dark .k-pill-tag b { background: var(--k-mint); color: var(--k-deeper); }

/* ---- Hero ---- */
.k-hero-stage { padding: 12px 12px 0; }
.k-hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 36px; color: #fff; padding: 88px 0 0;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(61,232,168,.28) 0%, rgba(61,232,168,0) 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(14,154,117,.35) 0%, rgba(14,154,117,0) 60%),
    linear-gradient(170deg, #0A4A3F 0%, var(--k-deep) 45%, var(--k-deeper) 100%);
}
.k-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .5;
  background: repeating-radial-gradient(circle at 78% 42%, rgba(255,255,255,.055) 0 1px, transparent 1px 56px);
  mask-image: radial-gradient(60% 70% at 78% 42%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(60% 70% at 78% 42%, #000 20%, transparent 75%); }
.k-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; align-items: end; }
.k-hero-copy { padding-bottom: 96px; }
.k-hero h1 { font-family: var(--k-display); font-size: clamp(44px, 7vw, 88px); line-height: .95; letter-spacing: -.055em; font-weight: 740; margin-top: 24px; }
.k-hero h1 em { font-style: normal; color: var(--k-mint); }
.k-hero-lede { margin-top: 26px; font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.6; color: rgba(255,255,255,.76); max-width: 520px; }
.k-hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.k-hero-note { margin-top: 28px; display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.72); }
.k-hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.k-hero-note .k-i { width: 17px; height: 17px; color: var(--k-mint); stroke-width: 2.2; }
.k-hero-visual { position: relative; display: flex; justify-content: center; align-self: end; min-height: 560px; }
@media (max-width: 960px) {
  .k-hero { padding-top: 56px; border-radius: 28px; }
  .k-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .k-hero-copy { padding-bottom: 32px; }
  .k-hero-visual { min-height: 0; }
}
@media (max-width: 560px) {
  .k-hero-stage { padding: 8px 8px 0; }
  .k-hero { padding-top: 44px; border-radius: 26px; }
  .k-hero-actions .k-btn { flex: 1 1 100%; }
}

/* Phone mockup — built from real app components */
.k-phone {
  position: relative; width: 318px; height: 600px; flex: none;
  border-radius: 48px 48px 0 0; padding: 12px 12px 0; background: #0B1512;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.14) inset, 0 -2px 0 0 rgba(255,255,255,.06), 0 50px 100px -30px rgba(0,0,0,.6);
}
.k-phone::before { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 3; }
.k-phone-screen { position: relative; height: 100%; border-radius: 38px 38px 0 0; overflow: hidden; background: var(--k-bg); color: var(--k-ink); font-size: 12px; }
.k-phone-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px 0; height: 44px; font-size: 12px; font-weight: 700; }
.k-phone-body { padding: 14px 14px 0; display: flex; flex-direction: column; gap: 12px; }
.k-phone .k-balance { padding: 16px 16px 14px; border-radius: 20px; }
.k-phone .k-balance-amount { font-size: 30px; margin-top: 4px; }
.k-phone .k-balance-label { font-size: 11px; }
.k-phone .k-balance-actions { margin-top: 14px; gap: 8px; }
.k-phone .k-balance-actions .k-btn { --h: 34px; font-size: 12px; padding: 0 10px; }
.k-phone .k-quick { grid-template-columns: repeat(4, 1fr); gap: 10px 2px; padding: 12px 4px; border-radius: 18px; background: #fff; border: 1px solid var(--k-line); }
.k-phone .k-quick a { align-items: center; text-align: center; padding: 0; gap: 6px; font-size: 10.5px; font-weight: 600; border: 0; background: none; box-shadow: none; }
.k-phone .k-quick-ico { width: 40px; height: 40px; border-radius: 13px; }
.k-phone .k-quick-ico .k-i { width: 19px; height: 19px; }
.k-phone .k-quick small { display: none; }
.k-phone-list { background: #fff; border: 1px solid var(--k-line); border-radius: 18px; }
.k-phone-list .k-item { padding: 10px 12px; min-height: 0; gap: 10px; }
.k-phone-list .k-item-icon { width: 34px; height: 34px; border-radius: 11px; }
.k-phone-list .k-item-icon .k-i { width: 17px; height: 17px; }
.k-phone-list .k-item-title { font-size: 12.5px; }
.k-phone-list .k-item-meta { font-size: 11px; }
.k-phone-list .k-amount { font-size: 12.5px; }
.k-float {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 20px; background: rgba(255,255,255,.96); color: var(--k-ink);
  box-shadow: 0 24px 48px -16px rgba(0,0,0,.45); font-size: 13px; line-height: 1.35;
  animation: k-float 6s ease-in-out infinite;
}
.k-float strong { display: block; font-size: 13.5px; font-weight: 700; }
.k-float span { color: var(--k-muted); font-size: 12px; }
.k-float .k-tile-ico { width: 38px; height: 38px; border-radius: 12px; }
.k-float .k-tile-ico .k-i { width: 19px; height: 19px; }
.k-float-a { left: -18px; top: 120px; }
.k-float-b { right: -34px; top: 300px; animation-delay: -2s; }
.k-float-c { left: 6px; bottom: 60px; animation-delay: -4s; }
@keyframes k-float { 50% { transform: translateY(-10px); } }
@media (max-width: 1100px) { .k-float-a { left: -4px; } .k-float-b { right: -8px; } }
@media (max-width: 560px) {
  .k-phone { width: 280px; height: 470px; border-radius: 42px 42px 0 0; }
  .k-phone-screen { border-radius: 32px 32px 0 0; }
  .k-float { padding: 10px 12px 10px 10px; font-size: 12px; }
  .k-float-a { left: -6px; top: 70px; }
  .k-float-b { right: -6px; top: 250px; }
  .k-float-c { display: none; }
}

/* Network strip */
.k-netstrip { display: flex; align-items: center; justify-content: center; gap: 14px 28px; flex-wrap: wrap; padding: 36px 0 8px; color: var(--k-muted); font-size: 14px; font-weight: 560; }
.k-netmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--k-display); font-weight: 720; font-size: 20px; letter-spacing: -.03em; color: var(--k-ink); }
.k-netmark i { width: 14px; height: 14px; border-radius: 50%; display: block; }

/* Price tickets */
.k-prices-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.k-tickets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.k-ticket {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 18px; border-radius: 22px;
  background: var(--k-surface); border: 1px solid var(--k-line); box-shadow: var(--k-shadow-1);
  transition: transform .2s var(--k-ease), box-shadow .2s var(--k-ease);
}
.k-ticket:hover { transform: translateY(-3px); box-shadow: var(--k-shadow-2); }
.k-ticket-size { font-family: var(--k-display); font-size: 34px; font-weight: 740; letter-spacing: -.045em; line-height: 1; }
.k-ticket-dur { font-size: 13px; color: var(--k-muted); font-weight: 560; }
.k-ticket-price { margin-top: 20px; padding-top: 14px; border-top: 1.5px dashed var(--k-line-strong); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.k-ticket-price b { font-family: var(--k-display); font-size: 22px; font-weight: 720; letter-spacing: -.03em; color: var(--k-brand-press); }
.k-ticket-price span { font-size: 12.5px; font-weight: 650; color: var(--k-brand); display: inline-flex; align-items: center; gap: 3px; }
.k-ticket .k-net { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 10px; font-size: 10px; }
.k-ticket.is-best { background: var(--k-deep); color: #fff; border-color: var(--k-deep); }
.k-ticket.is-best .k-ticket-dur { color: rgba(255,255,255,.66); }
.k-ticket.is-best .k-ticket-price { border-color: rgba(255,255,255,.2); }
.k-ticket.is-best .k-ticket-price b { color: var(--k-mint); }
.k-ticket.is-best .k-ticket-price span { color: #fff; }
.k-ticket-flag { position: absolute; top: -10px; left: 18px; height: 22px; padding: 0 10px; border-radius: var(--k-pill); background: var(--k-lime); color: var(--k-deeper); font-size: 11px; font-weight: 750; display: inline-flex; align-items: center; letter-spacing: .02em; }
@media (max-width: 1000px) { .k-tickets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .k-tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .k-ticket { padding: 16px; border-radius: 18px; } .k-ticket-size { font-size: 28px; } .k-ticket-price b { font-size: 18px; } .k-ticket:nth-child(5) { display: none; } }
.k-live { width: 8px; height: 8px; border-radius: 50%; background: #19C27F; box-shadow: 0 0 0 4px rgba(25,194,127,.18); flex: none; animation: k-pulse 2s ease-in-out infinite; }
@keyframes k-pulse { 50% { box-shadow: 0 0 0 7px rgba(25,194,127,.06); } }
.k-live-note { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--k-muted); font-weight: 560; }

/* Bento */
.k-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.k-bento-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border-radius: 28px; background: var(--k-surface); border: 1px solid var(--k-line); min-height: 300px;
}
.k-bento-card h3 { font-family: var(--k-display); font-size: 24px; font-weight: 720; letter-spacing: -.035em; line-height: 1.1; }
.k-bento-card p { color: var(--k-muted); font-size: 15px; max-width: 360px; }
.k-bento-card .k-feature-link { margin-top: 4px; }
.k-bento-art { margin-top: auto; padding-top: 18px; }
.k-span-2 { grid-column: span 2; } .k-span-3 { grid-column: span 3; } .k-span-4 { grid-column: span 4; }
.k-bento-card.is-tinted { background: var(--t-bg); border-color: transparent; }
.k-bento-card.is-dark { background: var(--k-deep); color: #fff; border-color: var(--k-deep); }
.k-bento-card.is-dark p { color: rgba(255,255,255,.7); }
@media (max-width: 960px) { .k-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .k-span-2, .k-span-3, .k-span-4 { grid-column: span 1; } .k-bento .k-span-wide { grid-column: 1 / -1; } }
@media (max-width: 640px) { .k-bento { grid-template-columns: minmax(0, 1fr); } .k-bento .k-span-wide { grid-column: auto; } .k-bento-card { padding: 22px; border-radius: 24px; min-height: 0; } .k-bento-card h3 { font-size: 22px; } }

/* Mini UI pieces used as illustrations */
.k-mini { background: #fff; border: 1px solid var(--k-line); border-radius: 18px; box-shadow: var(--k-shadow-2); padding: 14px; font-size: 13px; }
.k-mini-row { display: flex; align-items: center; gap: 10px; }
.k-mini-row + .k-mini-row { margin-top: 10px; }
.k-mini-token { font-family: var(--k-mono); font-size: 17px; font-weight: 600; letter-spacing: .04em; color: var(--k-ink); padding: 12px 14px; background: var(--k-surface-2); border: 1.5px dashed var(--k-line-strong); border-radius: 12px; text-align: center; }
.k-netpills { display: flex; gap: 8px; flex-wrap: wrap; }
.k-netpills span { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border-radius: var(--k-pill); background: #fff; border: 1px solid var(--k-line); font-weight: 650; font-size: 13.5px; box-shadow: var(--k-shadow-1); }
.k-netpills .k-net { width: 26px; height: 26px; border-radius: 50%; font-size: 9px; }
.k-feature-link { font-size: 14.5px; font-weight: 680; color: var(--k-brand); display: inline-flex; align-items: center; gap: 6px; }
.k-feature-link:hover { gap: 9px; }
.k-feature-link { transition: gap .15s var(--k-ease); }

/* Steps */
.k-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.k-step { position: relative; padding: 28px; border-radius: 26px; background: var(--k-surface); border: 1px solid var(--k-line); }
.k-step-n { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--k-deep); color: var(--k-mint); font-family: var(--k-display); font-weight: 750; font-size: 20px; }
.k-step h3 { margin-top: 22px; font-family: var(--k-display); font-size: 22px; font-weight: 720; letter-spacing: -.03em; }
.k-step p { margin-top: 8px; color: var(--k-muted); font-size: 15px; }
@media (max-width: 800px) { .k-steps { grid-template-columns: 1fr; } }

/* Overdraft gauge */
.k-gauge-card { position: relative; padding: 28px; border-radius: 30px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); }
.k-gauge { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.k-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.k-gauge-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.k-gauge-mid b { font-family: var(--k-display); font-size: 38px; font-weight: 740; letter-spacing: -.045em; line-height: 1; }
.k-gauge-mid span { font-size: 13px; color: rgba(255,255,255,.66); margin-top: 6px; }
.k-gauge-rows { margin-top: 22px; display: grid; gap: 10px; }
.k-gauge-rows div { display: flex; justify-content: space-between; font-size: 14px; color: rgba(255,255,255,.72); padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); }
.k-gauge-rows b { color: #fff; font-weight: 650; }
.k-ticks { display: grid; gap: 18px; margin-top: 32px; }
.k-ticks li { display: flex; gap: 14px; align-items: flex-start; }
.k-ticks .k-tick { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(61,232,168,.16); color: var(--k-mint); flex: none; }
.k-ticks .k-tick .k-i { width: 15px; height: 15px; stroke-width: 2.6; }
.k-ticks h3 { color: #fff; font-size: 16.5px; }
.k-ticks p { color: rgba(255,255,255,.68); font-size: 14.5px; margin-top: 3px; }

/* Browser mock */
.k-browser { border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--k-line); box-shadow: var(--k-shadow-pop); }
.k-browser-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--k-surface-2); border-bottom: 1px solid var(--k-line); }
.k-browser-dots { display: flex; gap: 6px; } .k-browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--k-line-strong); display: block; }
.k-browser-url { flex: 1; height: 30px; border-radius: var(--k-pill); background: #fff; border: 1px solid var(--k-line); display: flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 12.5px; color: var(--k-muted); }
.k-browser-url b { color: var(--k-ink); font-weight: 650; }

/* Feature (legacy + mini) */
.k-feature { padding: 26px; border: 1px solid var(--k-line); border-radius: 24px; background: var(--k-surface); display: flex; flex-direction: column; gap: 10px; transition: transform .2s var(--k-ease), box-shadow .2s; }
.k-feature:hover { transform: translateY(-3px); box-shadow: var(--k-shadow-2); }
.k-feature > .k-i { width: 22px; height: 22px; color: var(--k-brand); margin-bottom: 6px; }
.k-feature h3 { font-size: 17px; font-family: var(--k-display); font-weight: 700; letter-spacing: -.02em; }
.k-feature p { color: var(--k-muted); font-size: 14.5px; }

.k-plan-table { width: 100%; border-collapse: collapse; }
.k-plan-table th, .k-plan-table td { padding: 14px 16px; border-bottom: 1px solid var(--k-line); text-align: left; font-size: 14.5px; }
.k-plan-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--k-muted); font-weight: 650; }
.k-plan-table td.is-num { font-family: var(--k-numf); text-align: right; font-weight: 650; }

/* FAQ */
.k-faq details { background: var(--k-surface); border: 1px solid var(--k-line); border-radius: 20px; transition: box-shadow .2s; }
.k-faq details + details { margin-top: 10px; }
.k-faq details[open] { box-shadow: var(--k-shadow-2); border-color: transparent; }
.k-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; }
.k-faq summary::-webkit-details-marker { display: none; }
.k-faq summary .k-i { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--k-sunken); transition: transform .25s var(--k-ease), background .2s, color .2s; color: var(--k-ink-2); }
.k-faq details[open] summary .k-i { transform: rotate(45deg); background: var(--k-deep); color: var(--k-mint); }
.k-faq details p { padding: 0 22px 22px; color: var(--k-ink-2); max-width: 720px; font-size: 15px; }

/* CTA band */
.k-cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 36px; color: #fff; padding: 72px 64px;
  background: radial-gradient(60% 90% at 100% 0%, rgba(61,232,168,.35), transparent 60%), linear-gradient(160deg, #0A4A3F, var(--k-deep) 60%, var(--k-deeper));
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.k-cta-band::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -60%; width: 620px; height: 620px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(255,255,255,.06) 0 1px, transparent 1px 44px); }
.k-cta-band h2 { font-family: var(--k-display); font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -.05em; line-height: 1; font-weight: 740; max-width: 640px; }
.k-cta-band p { color: rgba(255,255,255,.75); margin-top: 16px; font-size: 17px; max-width: 520px; }
@media (max-width: 560px) { .k-cta-band { padding: 40px 24px; border-radius: 28px; } .k-cta-band .k-btn { width: 100%; } }

/* Footer */
.k-footer { padding: 72px 0 40px; font-size: 14.5px; color: var(--k-muted); }
.k-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.k-footer h4 { font-size: 13px; color: var(--k-ink); font-weight: 700; margin-bottom: 14px; letter-spacing: .02em; }
.k-footer a:hover { color: var(--k-ink); }
.k-footer li + li { margin-top: 10px; }
.k-footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--k-line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.k-footer-word { font-family: var(--k-display); font-weight: 780; font-size: clamp(90px, 20vw, 260px); letter-spacing: -.07em; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--k-line-strong); margin-top: 56px; user-select: none; text-align: center; }
@media (max-width: 800px) { .k-footer-grid { grid-template-columns: 1fr 1fr; } .k-footer-grid > :first-child { grid-column: 1 / -1; } }

/* Scroll reveal */
.k-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--k-ease), transform .7s var(--k-ease); }
.k-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Auth ---------- */
.k-auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--k-surface); }
.k-auth-panel { display: flex; flex-direction: column; padding: 28px clamp(20px, 5vw, 72px); background: var(--k-surface); }
.k-auth-form { width: 100%; max-width: 420px; margin: auto; padding: 32px 0; }
.k-auth-form h1 { font-size: clamp(32px, 3.4vw, 40px); letter-spacing: -.045em; }
.k-auth-form > p { color: var(--k-muted); margin-top: 10px; font-size: 15.5px; }
.k-auth-aside {
  position: relative; overflow: hidden; isolation: isolate; margin: 12px; border-radius: 32px;
  background: radial-gradient(70% 60% at 90% 0%, rgba(61,232,168,.3), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(14,154,117,.4), transparent 60%), linear-gradient(165deg, #0A4A3F, var(--k-deep) 55%, var(--k-deeper));
  color: #fff; padding: 48px clamp(28px, 4vw, 56px) 0; display: flex; flex-direction: column; gap: 32px;
}
.k-auth-aside::before { content: ""; position: absolute; z-index: -1; inset: 0; background: repeating-radial-gradient(circle at 80% 70%, rgba(255,255,255,.05) 0 1px, transparent 1px 52px); }
.k-auth-aside > * { position: relative; }
.k-auth-quote { font-family: var(--k-display); font-size: clamp(30px, 3.2vw, 44px); line-height: 1.02; letter-spacing: -.05em; font-weight: 720; max-width: 480px; }
.k-auth-quote em { font-style: normal; color: var(--k-mint); }
.k-auth-points { display: grid; gap: 14px; margin-top: 24px; }
.k-auth-points li { display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.85); font-size: 15px; }
.k-auth-points .k-i { color: var(--k-mint); width: 18px; height: 18px; stroke-width: 2.4; }
.k-auth-aside .k-phone { margin: auto auto 0; width: 300px; height: 380px; }
.k-divider-text { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--k-faint); margin: 22px 0; font-weight: 560; }
.k-divider-text::before, .k-divider-text::after { content: ""; flex: 1; height: 1px; background: var(--k-line); }
.k-google-btn { background: var(--k-surface); border: 1.5px solid var(--k-line); color: var(--k-ink); }
.k-google-btn:hover { background: var(--k-surface-2); border-color: var(--k-line-strong); }
@media (max-width: 900px) { .k-auth { grid-template-columns: 1fr; } .k-auth-aside { display: none; } .k-auth-panel { padding: 18px 20px; } .k-auth-form { margin: 0 auto; padding: 28px 0 28px; } }

/* Admin-plain pages (system check etc.) */
.k-admin-plain { background: var(--k-bg); }
.k-shell-narrow { max-width: 880px; margin: 0 auto; padding: 32px 20px 64px; display: flex; flex-direction: column; gap: 16px; }
.k-checklist li { display: grid; grid-template-columns: 10px minmax(120px, 220px) 1fr; gap: 14px; align-items: center; padding: 12px 20px; font-size: 14px; }
.k-checklist li + li { border-top: 1px solid var(--k-line); }
.k-check-label { font-weight: 600; font-family: var(--k-mono); font-size: 13px; }
.k-check-detail { color: var(--k-muted); font-size: 13.5px; overflow-wrap: anywhere; }
.k-dot { width: 8px; height: 8px; border-radius: 50%; }
.k-dot.is-ok { background: #19C27F; }
.k-dot.is-bad { background: var(--k-bad); }
.k-card-flush > .k-card-title { padding-bottom: 12px; border-bottom: 1px solid var(--k-line); }
@media (max-width: 560px) { .k-checklist li { grid-template-columns: 10px 1fr; } .k-check-detail { grid-column: 2; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .k-reveal { opacity: 1; transform: none; } }

/* Dashboard greeting */
.k-dash-hello { font-size: 15px; color: var(--k-muted); font-weight: 560; margin: 0 !important; }
.k-dash-head h1 { margin-top: 2px; }
@media (max-width: 960px) {
  .k-dash-head { margin: 2px 0 16px; }
  .k-dash-head h1 { font-size: 30px; }
  .k-content .k-back { display: none; }
  .k-app:not([data-page="dashboard"]) .k-topbar .k-mtitle { opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
  .k-app:not([data-page="dashboard"]) .k-topbar.is-scrolled .k-mtitle { opacity: 1; transform: none; }
  .k-topbar { gap: 12px; }
  .k-topbar .k-mtitle { flex: 1; min-width: 0; }
}
@media (min-width: 961px) { .k-rail { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } .k-promo { min-height: 168px; } }
@media (min-width: 961px) { .k-app #kosoInstallSheet { left: auto; right: 16px; } .k-app #kosoInstallSheet .koso-install-card { max-width: 440px; } }
.k-footer { overflow: hidden; padding-bottom: 0; }
.k-footer .k-site-logo { color: var(--k-ink); }
.k-footer-word { margin-bottom: -.2em; }
.k-float-a { top: 36px; left: -52px; }
.k-float-c { left: -44px; bottom: 96px; }
@media (max-width: 1100px) { .k-float-a { left: -10px; } .k-float-c { left: -10px; } }
@media (max-width: 560px) { .k-float-a { left: -8px; top: 24px; } }
@media (max-width: 560px) {
  .k-netstrip { gap: 10px 22px; padding-top: 28px; }
  .k-netstrip > span:first-child { flex-basis: 100%; text-align: center; font-size: 13px; }
  .k-netmark { font-size: 17px; gap: 7px; } .k-netmark i { width: 10px; height: 10px; }
  .k-hero-lede { font-size: 16px; }
  .k-gauge { width: 190px; height: 190px; }
}
.k-stepnum { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 9px; background: var(--k-deep); color: var(--k-mint); font-family: var(--k-display); font-size: 13.5px; font-weight: 750; vertical-align: 2px; }
@media (max-width: 960px) { .k-page-head > .k-balance-mini { width: 100%; min-width: 0 !important; } }
.k-auth-panel { background: radial-gradient(90% 40% at 100% 0%, rgba(61,232,168,.14), transparent 70%), var(--k-surface); }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
/* Hero floats: sit around the phone, never over its key content */
.k-float-a { top: -64px; left: -20px; right: auto; }
.k-float-b { top: 214px; right: -96px; left: auto; }
.k-float-c { bottom: 170px; left: -104px; top: auto; }
@media (max-width: 1100px) { .k-float-b { right: -30px; } .k-float-c { left: -30px; } }
@media (max-width: 960px) { .k-hero-visual { padding-top: 70px; } .k-float-a { top: 0; left: 0; } }
@media (max-width: 560px) { .k-float-a { top: 6px; left: -4px; } .k-float-b { top: 330px; right: -6px; } }
.k-float-b { right: -64px; }
@media (max-width: 560px) { .k-float-b { display: none; } }
