/* =============================================================================
   NowPay UI — light theme design system
   Brand: orange #ff7900 + navy #07152f. No inline styles anywhere (strict CSP),
   so every visual variant lives here as a class.
   ============================================================================= */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #ff7900;
  --brand-600: #ea6a00;
  --brand-700: #c25500;
  --brand-50: #fff6ee;
  --brand-100: #ffead6;
  --brand-200: #ffd3ad;
  --navy: #07152f;
  --navy-800: #0d2347;
  --navy-700: #1d2c48;

  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --border: #e6eaf1;
  --border-strong: #d5dce7;
  --text: #0f1b33;
  --text-2: #334155;
  --muted: #68758a;

  --success: #12a05c;
  --success-bg: #e8f8ef;
  --warning: #c27803;
  --warning-bg: #fff6e0;
  --danger: #dc3545;
  --danger-bg: #fdecee;
  --info: #2563eb;
  --info-bg: #eaf1ff;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-xs: 0 1px 2px rgba(7, 21, 47, 0.05);
  --shadow-sm: 0 1px 3px rgba(7, 21, 47, 0.06), 0 1px 2px rgba(7, 21, 47, 0.04);
  --shadow: 0 10px 30px -12px rgba(7, 21, 47, 0.14), 0 2px 6px rgba(7, 21, 47, 0.04);
  --shadow-lg: 0 24px 60px -20px rgba(7, 21, 47, 0.25);
  --shadow-brand: 0 12px 28px -10px rgba(255, 121, 0, 0.55);
  --ring: 0 0 0 4px rgba(255, 121, 0, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --header-h: 68px;
  --bottom-nav-h: 72px;
  --sidebar-w: 260px;

  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Sinhala', 'Noto Sans Tamil', sans-serif;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  interpolate-size: allow-keywords;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55; min-height: 100vh;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-wrap: break-word; overflow-wrap: anywhere;
}
::selection { background: var(--brand-200); color: var(--navy); }
a { color: var(--brand-600); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--brand-700); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 12px; color: var(--navy); letter-spacing: -0.02em; font-weight: 750; }
h1 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 12px; }
small, .muted { color: var(--muted); }
strong { font-weight: 700; }
code, .mono { font-family: ui-monospace, SFMono-Regular, 'Cascadia Code', Consolas, monospace; font-size: 0.88em; }
code { background: var(--surface-3); padding: 2px 6px; border-radius: 6px; color: var(--navy-700); }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
ul { padding-left: 20px; }
.ic { width: 20px; height: 20px; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(255, 121, 0, 0.55); outline-offset: 2px; border-radius: 6px; }

/* ---------- brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.22rem; color: var(--navy); letter-spacing: -0.03em; }
.brand:hover { color: var(--navy); }

/* =============================================================================
   Layout shells
   ============================================================================= */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.page { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 24px 16px 64px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); flex: 1; min-width: 0; }
.container.narrow { max-width: 480px; }
.container.wide { max-width: 1280px; }
.container.bare { max-width: none; padding: 0; }

/* ---------- top header (public + app) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(230, 234, 241, 0.8);
  transition: box-shadow 0.25s, background 0.25s;
}
.topbar.scrolled { box-shadow: 0 6px 24px -12px rgba(7, 21, 47, 0.18); background: rgba(255, 255, 255, 0.94); }
.topbar-inner { height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); display: flex; align-items: center; gap: 16px; }
.topbar-inner > .brand, .topbar-inner > .menu { flex: none; }
.topbar .spacer { flex: 1; }

.nav { display: flex; gap: 2px; align-items: center; }
.nav a {
  display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); padding: 8px 12px; border-radius: 10px;
  font-size: 0.92rem; font-weight: 600; transition: background 0.15s, color 0.15s;
}
.nav a .ic { width: 18px; height: 18px; }
.nav a:hover { color: var(--navy); background: var(--surface-3); }
.nav a.active { color: var(--brand-700); background: var(--brand-50); }

.balance-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--navy); font-weight: 700; font-size: 0.88rem; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.balance-chip:hover { color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.balance-chip .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; }
.balance-chip .dot .ic { width: 15px; height: 15px; }

/* dropdown built on <details> so it works without JS */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.95rem;
  background: linear-gradient(135deg, var(--navy-800), var(--navy)); color: #fff; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border);
  transition: box-shadow 0.2s;
}
.menu[open] .avatar, .avatar:hover { box-shadow: 0 0 0 3px var(--brand-200); }
.menu > summary { padding: 4px; border-radius: 50%; }
.menu > summary .avatar { width: 42px; height: 42px; font-size: 1.12rem; flex: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); min-width: 0; z-index: 50;
  max-height: calc(100vh - var(--header-h) - 24px); max-height: calc(100dvh - var(--header-h) - 24px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px;
  animation: pop 0.18s var(--ease);
  transform-origin: top right;
}
.menu:not([open]) .menu-panel, .mnav:not([open]) .mnav-panel { display: none; }
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-head strong, .menu-head small { display: block; }
.menu-head strong { color: var(--navy); }
.menu-panel a, .menu-panel button {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 0; background: none;
  color: var(--text-2); font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer; text-align: left;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-3); color: var(--navy); }
.menu-panel .danger-link { color: var(--danger); }
.menu-panel .danger-link:hover { background: var(--danger-bg); color: var(--danger); }
.menu-panel .ic { width: 18px; height: 18px; }

/* public mobile nav */
.mnav { display: none; }
.mnav > summary { list-style: none; cursor: pointer; }
.mnav > summary::-webkit-details-marker { display: none; }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--navy); cursor: pointer; transition: background 0.15s, transform 0.15s;
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn:active { transform: scale(0.95); }
.mnav-panel {
  position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 8px); z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 12px;
  display: grid; gap: 4px; animation: pop 0.2s var(--ease); transform-origin: top center;
  max-height: calc(100vh - var(--header-h) - 24px); max-height: calc(100dvh - var(--header-h) - 24px - env(safe-area-inset-bottom)); overflow-y: auto;
}
.mnav-panel a { padding: 12px 14px; border-radius: 12px; color: var(--navy); font-weight: 650; }
.mnav-panel a:hover { background: var(--surface-3); }
.mnav-panel .row { margin-top: 8px; }
.mnav-panel .row .btn { flex: 1; }

/* ---------- bottom tab bar (retailer, mobile) ---------- */
.bottom-nav { display: none; }
@media (max-width: 860px) {
  .l-app .nav.desktop, .l-app .hide-md { display: none; }
  .l-app .container { padding-bottom: calc(var(--bottom-nav-h) + 40px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45;
    height: var(--bottom-nav-h); padding: 8px 6px; border-radius: 22px;
    background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border); box-shadow: 0 16px 40px -16px rgba(7, 21, 47, 0.35);
  }
  .bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%;
    color: var(--muted); font-size: 0.7rem; font-weight: 700; border-radius: 14px; transition: color 0.15s;
    min-width: 0; text-align: center;
  }
  .bottom-nav a .ic { width: 22px; height: 22px; transition: transform 0.25s var(--ease); }
  .bottom-nav a.active { color: var(--brand-600); }
  .bottom-nav a.active .ic { transform: translateY(-2px); }
  .bottom-nav a.fab { justify-content: flex-start; color: var(--navy); }
  .bottom-nav a.fab .fab-btn {
    width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; margin-top: -26px;
    background: linear-gradient(135deg, #ff9a3c, var(--brand) 60%, #f25f00); color: #fff; box-shadow: var(--shadow-brand);
    border: 4px solid var(--bg); transition: transform 0.2s var(--ease);
  }
  .bottom-nav a.fab:active .fab-btn { transform: scale(0.92); }
  .bottom-nav a.fab .ic { width: 24px; height: 24px; }
}

/* ---------- admin sidebar ---------- */
.l-admin .shell { flex-direction: row; }
.sidebar {
  width: var(--sidebar-w); flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--navy); color: #c9d4e5; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px;
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px 18px; }
.sidebar .sidebar-head .brand { padding: 0; }
.drawer-close { display: none; flex: none; background: transparent; color: #fff; border-color: #52617a; }
.drawer-close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.sidebar .brand { color: #fff; padding: 4px 8px 18px; }
.sidebar .brand:hover { color: #fff; }
.side-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #6d7d99; padding: 14px 12px 6px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a, .side-nav button {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: #b6c2d6; font-weight: 600; font-size: 0.92rem;
  border: 0; background: none; font: inherit; cursor: pointer; width: 100%; text-align: left; transition: background 0.15s, color 0.15s;
}
.side-nav a .ic, .side-nav button .ic { width: 19px; height: 19px; opacity: 0.85; }
.side-nav a:hover, .side-nav button:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.side-nav a.active { background: linear-gradient(90deg, rgba(255, 121, 0, 0.22), rgba(255, 121, 0, 0.06)); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.side-nav a.active .ic { color: var(--brand); opacity: 1; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; color: #fff; }
.side-user .avatar { width: 36px; height: 36px; border-color: rgba(255, 255, 255, 0.2); box-shadow: none; background: var(--brand); }
.side-user small { color: #8a9ab5; display: block; }
.admin-topbar { display: none; }
.scrim { display: none; }
@media (min-width: 1024px) {
  .sidebar, .sidebar * { visibility: visible; }
}

@media (max-width: 1023px) {
  .l-admin .shell { flex-direction: column; }
  .admin-topbar {
    display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 40; height: var(--header-h); padding: 0 16px;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
  }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 70; height: 100%; transform: translateX(-105%);
    transition: transform 0.3s var(--ease); box-shadow: var(--shadow-lg);
    height: 100dvh; max-width: calc(100vw - 24px); visibility: hidden; overscroll-behavior: contain;
    padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
  .drawer-open .sidebar { transform: none; visibility: visible; }
  .drawer-open .sidebar * { visibility: visible; }
  .drawer-open { overflow: hidden; }
  .drawer-close { display: inline-grid; }
  html:not(.js) .l-admin .sidebar { position: static; width: 100%; max-width: none; height: auto; transform: none; visibility: visible; }
  html:not(.js) [data-drawer-open], html:not(.js) .drawer-close { display: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(7, 21, 47, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
  .drawer-open .scrim { opacity: 1; pointer-events: auto; }
}

/* ---------- auth split layout ---------- */
.l-auth .shell { flex-direction: row; }
.auth-aside {
  position: relative; overflow: hidden; width: 44%; max-width: 620px; flex: none; color: #fff; padding: 40px 48px;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255, 121, 0, 0.55) 0%, rgba(255, 121, 0, 0) 55%),
              radial-gradient(90% 70% at 0% 100%, rgba(46, 124, 246, 0.35) 0%, rgba(46, 124, 246, 0) 60%),
              linear-gradient(160deg, var(--navy-800) 0%, var(--navy) 70%);
  display: flex; flex-direction: column;
}
.auth-aside .brand { color: #fff; }
.auth-aside .grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.25;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(80% 60% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 40%, #000 30%, transparent 100%);
}
.auth-copy { position: relative; margin-top: auto; margin-bottom: auto; padding: 40px 0; }
.auth-copy h2 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.12; margin-bottom: 14px; }
.auth-copy h2 em { font-style: normal; color: #ffb27a; }
.auth-copy p { color: #b9c5d9; max-width: 420px; }
.auth-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 12px; align-items: center; color: #dbe3f0; font-weight: 600; }
.auth-points .ic-wrap { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); color: #ffb27a; }
.auth-points .ic { width: 18px; height: 18px; }
.auth-aside .fine { position: relative; color: #7e8ca6; font-size: 0.8rem; }
.l-auth .page { justify-content: center; background: radial-gradient(60% 50% at 80% 0%, var(--brand-50), transparent 70%), var(--bg); }
.l-auth .container { display: flex; flex-direction: column; justify-content: center; padding-top: 40px; }
.auth-mobile-brand { display: none; margin: 0 auto 22px; }
@media (max-width: 900px) {
  .auth-aside { display: none; }
  .auth-mobile-brand { display: inline-flex; }
}

/* ---------- footer ---------- */
.footer { color: var(--muted); font-size: 0.85rem; padding: 22px 16px 28px; text-align: center; }
.footer a { color: var(--text-2); font-weight: 600; }
.footer a:hover { color: var(--brand-600); }
.l-app .footer { display: none; }
@media (min-width: 861px) { .l-app .footer { display: block; } }

/* =============================================================================
   Core components
   ============================================================================= */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 6px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.back-link:hover { color: var(--navy); }
.back-link .ic { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.back-link:hover .ic { transform: translateX(-3px); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.card.tight { padding: 14px 16px; box-shadow: none; background: var(--surface-2); }
.card.flat { box-shadow: none; }
.card.pad-lg { padding: 28px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.card-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); flex: none; }
.card-icon.navy { background: #eef2fb; color: var(--navy-800); }
.card-icon.green { background: var(--success-bg); color: var(--success); }
.card-icon.blue { background: var(--info-bg); color: var(--info); }
a.card { display: block; color: inherit; transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.2s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-200); color: inherit; }

.grid { display: grid; gap: 16px; }
.grid > *, .dash-grid > *, .fields-2 > *, .approval > *, .ap-actions > *, .row > * { min-width: 0; }
.row > * { max-width: 100%; }
.card, .field, form, fieldset { min-width: 0; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.order-review-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; margin: 20px 0; }
.order-review-facts dt { color: var(--muted); font-size: 0.8rem; }
.order-review-facts dd { margin: 5px 0 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 640px) { .order-review-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.grid.services { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.grid > .card { margin-bottom: 0; }
.grid + .card, .grid + .grid { margin-top: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.stack > * + * { margin-top: 10px; }
.right { text-align: right; }
.center { text-align: center; }

/* ---------- forms ---------- */
label { display: block; font-size: 0.85rem; font-weight: 650; color: var(--text-2); margin: 16px 0 7px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit; font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  min-width: 0; max-width: 100%;
}
input::placeholder, textarea::placeholder { color: #9aa5b8; }
input:hover, select:hover, textarea:hover { border-color: #c2cbd9; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
input[readonly] { background: var(--surface-2); }
input:user-invalid, textarea:user-invalid { border-color: #f0a3aa; }
select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2368758a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
input[type='checkbox'], input[type='radio'] { width: 18px; height: 18px; margin: 0 8px 0 0; accent-color: var(--brand); box-shadow: none; flex: none; cursor: pointer; }
input[type='date'] { min-height: 46px; }
input[type='file'] { padding: 8px; cursor: pointer; background: var(--surface-2); border-style: dashed; }
input[type='file']::file-selector-button {
  font: inherit; font-weight: 700; font-size: 0.85rem; border: 0; border-radius: 9px; padding: 8px 14px; margin-right: 12px;
  background: var(--navy); color: #fff; cursor: pointer; transition: background 0.15s;
}
input[type='file']::file-selector-button:hover { background: var(--navy-700); }
.file-preview { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.file-preview img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.document-file-preview { display: flex; flex-direction: column; align-items: stretch; }
.document-file-preview img { width: 100%; height: auto; max-height: 360px; object-fit: contain; background: #fff; }
textarea { resize: vertical; min-height: 96px; }
.check { display: flex; align-items: center; gap: 2px; color: var(--text); font-weight: 600; margin: 14px 0; cursor: pointer; }
.hint { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.field { position: relative; }
.field .ic.lead { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a0b4; width: 18px; height: 18px; pointer-events: none; }
.field .ic.lead + input, .field input.has-lead { padding-left: 42px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; background: none; color: var(--muted); border-radius: 9px; cursor: pointer;
}
.pw-toggle:hover { background: var(--surface-3); color: var(--navy); }
.pw-toggle .ic { width: 18px; height: 18px; }
.field input.has-toggle { padding-right: 46px; }

/* OTP / PIN: real input stays focusable; JS draws the cells */
.otp-input { text-align: center; font-size: 1.5rem; letter-spacing: 0.5em; font-family: ui-monospace, monospace; font-weight: 700; }
.otp { position: relative; margin-top: 4px; }
.js .otp .otp-input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; z-index: 2; cursor: text;
  font-size: 16px; letter-spacing: normal; caret-color: transparent;
}
.otp-cells { display: none; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.js .otp-cells { display: grid; }
.otp-cells span {
  height: 56px; border-radius: 14px; border: 1.5px solid var(--border-strong); background: var(--surface);
  display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; color: var(--navy); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.otp-cells span.filled { border-color: var(--navy-700); animation: tick 0.18s var(--ease); }
.otp.focus .otp-cells span.cur { border-color: var(--brand); box-shadow: var(--ring); }
.otp.focus .otp-cells span.cur:empty::after { content: ''; width: 2px; height: 22px; background: var(--brand); animation: blink 1s steps(1) infinite; }
.otp.shake { animation: shake 0.4s; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; min-height: 46px; border-radius: 12px; border: 1.5px solid transparent;
  background: linear-gradient(180deg, #ff8a1f 0%, var(--brand) 100%); color: #fff; font: inherit; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; text-decoration: none; white-space: normal; text-align: center; user-select: none; min-width: 0; max-width: 100%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 16px -8px rgba(255, 121, 0, 0.8);
  transition: transform 0.18s var(--ease), box-shadow 0.2s, background 0.2s, filter 0.2s;
}
.btn .ic { width: 18px; height: 18px; }
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 12px 24px -10px rgba(255, 121, 0, 0.85); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.block { width: 100%; margin-top: 20px; }
.btn.secondary { background: var(--surface); color: var(--navy); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.btn.secondary:hover { color: var(--navy); border-color: #b8c3d4; background: var(--surface-2); box-shadow: var(--shadow-sm); }
.btn.navy { background: var(--navy); color: #fff; box-shadow: 0 8px 20px -10px rgba(7, 21, 47, 0.7); }
.btn.navy:hover { background: var(--navy-800); }
.btn.ghost { background: transparent; color: var(--navy); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-3); color: var(--navy); }
.btn.light { background: #fff; color: var(--navy); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.4); }
.btn.light:hover { color: var(--brand-700); }
.btn.success { background: linear-gradient(180deg, #19b468, var(--success)); color: #fff; box-shadow: 0 8px 18px -10px rgba(18, 160, 92, 0.9); }
.btn.danger { background: var(--surface); color: var(--danger); border-color: #f3c2c7; box-shadow: none; }
.btn.danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.small { padding: 7px 12px; min-height: 36px; font-size: 0.84rem; border-radius: 10px; }
.btn.lg { padding: 15px 26px; min-height: 54px; font-size: 1rem; border-radius: 14px; }
.btn[disabled], .btn.busy { opacity: 0.75; transform: none; }
.btn[disabled] { cursor: not-allowed; }
.btn.busy { cursor: progress; }
[data-bank-destination][hidden] { display: none; }
.btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
.btn .ripple { position: absolute; z-index: -1; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, 0.45); animation: ripple 0.6s ease-out; pointer-events: none; }
.btn.secondary .ripple, .btn.ghost .ripple, .btn.light .ripple, .btn.danger .ripple { background: rgba(7, 21, 47, 0.1); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-600); cursor: pointer; font-weight: 600; }
form.inline { display: inline; }

/* ---------- feedback ---------- */
.alert {
  display: block; padding: 14px 16px; border-radius: 14px; margin-bottom: 16px;
  border: 1px solid; font-size: 0.92rem; line-height: 1.5;
}
.alert:has(> .ic) { display: flex; gap: 12px; align-items: flex-start; }
.alert > .ic { margin-top: 1px; }
.alert a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.alert.error { background: var(--danger-bg); border-color: #f6c9ce; color: #8f1d29; }
.alert.error a { color: #8f1d29; }
.alert.success { background: var(--success-bg); border-color: #bfe9d2; color: #0b6b3d; }
.alert.warning { background: var(--warning-bg); border-color: #f6dfa4; color: #7a4a00; }
.alert.info { background: var(--info-bg); border-color: #cddcfb; color: #1e3f8a; }
.alert.info a { color: #1e3f8a; }

.toast-region {
  position: fixed; top: calc(var(--header-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 90;
  width: min(460px, calc(100% - 24px)); display: grid; gap: 10px; pointer-events: none;
}
.l-auth .toast-region { top: 16px; }
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); color: var(--text); font-weight: 600; font-size: 0.92rem;
  animation: toast-in 0.45s var(--ease) both; position: relative; overflow: hidden;
}
.toast .t-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.toast .t-ic .ic { width: 18px; height: 18px; }
.toast.success .t-ic { background: var(--success-bg); color: var(--success); }
.toast.error .t-ic { background: var(--danger-bg); color: var(--danger); }
.toast.info .t-ic { background: var(--info-bg); color: var(--info); }
.toast .t-msg { flex: 1; min-width: 0; padding-top: 4px; }
.toast .t-close { border: 0; background: none; color: var(--muted); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; flex: none; }
.toast .t-close:hover { background: var(--surface-3); color: var(--navy); }
.toast .t-close .ic { width: 16px; height: 16px; }
.toast .t-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--success); animation: drain 5s linear forwards; }
.toast.leaving { animation: toast-out 0.3s ease forwards; }
.undo-toast { align-items: center; }
.undo-toast .t-msg { padding-top: 0; }
.undo-toast .t-bar { background: var(--info); }
.undo-toast .btn { flex: none; min-height: 44px; }
html.np-navigating::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000;
  background: linear-gradient(90deg, var(--brand), #ffbe76, var(--brand));
  background-size: 200% 100%; animation: page-loading 1s linear infinite;
}
form.is-searching .field { border-color: var(--brand); }
@keyframes page-loading { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { html.np-navigating::before { animation: none; } }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 750;
  letter-spacing: 0.02em; white-space: nowrap; background: var(--surface-3); color: var(--text-2); border: 0; text-transform: capitalize;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.SUCCESS, .badge.APPROVED, .badge.VALID { background: var(--success-bg); color: #0b7a45; }
.badge.PENDING, .badge.PROCESSING, .badge.INITIATED, .badge.UNSURE { background: var(--warning-bg); color: #9a5b00; }
.badge.PROCESSING::before, .badge.INITIATED::before { animation: pulse-dot 1.4s infinite; }
.badge.FAILED, .badge.REJECTED, .badge.SUSPENDED, .badge.CANCELED, .badge.CHARGEDBACK, .badge.INVALID, .badge.ERROR { background: var(--danger-bg); color: #b4232f; }
.badge.REFUNDED, .badge.ADMIN, .badge.USER { background: var(--info-bg); color: #1d4ed8; }

/* ---------- balance / wallet hero ---------- */
.balance-card {
  position: relative; overflow: hidden; border: 0; color: #fff; padding: 26px; border-radius: var(--radius-lg);
  background: radial-gradient(90% 120% at 100% 0%, rgba(255, 154, 60, 0.95) 0%, rgba(255, 121, 0, 0) 60%),
              radial-gradient(70% 90% at 0% 100%, rgba(46, 124, 246, 0.35) 0%, rgba(46, 124, 246, 0) 60%),
              linear-gradient(135deg, var(--navy-800) 0%, var(--navy) 100%);
  box-shadow: 0 24px 50px -24px rgba(7, 21, 47, 0.7);
}
.balance-card::after {
  content: ''; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%;
  border: 36px solid rgba(255, 255, 255, 0.05); pointer-events: none;
}
.balance-card .label { color: rgba(255, 255, 255, 0.72); font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.balance-card .amount { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.balance-card .amount .cur { font-size: 0.5em; font-weight: 700; opacity: 0.75; margin-right: 6px; letter-spacing: 0; }
.balance-card .shop { color: rgba(255, 255, 255, 0.65); font-size: 0.88rem; }
.balance-card .peek { border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; cursor: pointer; transition: background 0.15s; }
.balance-card .peek:hover { background: rgba(255, 255, 255, 0.22); }
.balance-card .peek .ic { width: 16px; height: 16px; }
.balance-card .peek .ic-show { display: none; }
.bal-hidden .balance-card .peek .ic-show { display: block; }
.bal-hidden .balance-card .peek .ic-hide { display: none; }
.bal-hidden [data-balance] { filter: blur(9px); user-select: none; }
[data-balance] { transition: filter 0.3s; }
.quick-actions { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.quick-actions a {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border-radius: 16px; color: #fff; font-size: 0.8rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); transition: background 0.2s, transform 0.2s var(--ease);
}
.quick-actions a:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); color: #fff; }
.quick-actions .qa-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--brand-600); }
.quick-actions a.primary .qa-ic { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.quick-actions .ic { width: 19px; height: 19px; }

.greet { margin-bottom: 18px; }
.greet h1 { margin: 0; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.65rem); }
.greet p { margin: 2px 0 0; color: var(--muted); }

.dash-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.dash-grid > .dashboard-side { display: grid; gap: 20px; }
.dashboard-notices { order: 2; }
.dashboard-notices:not(:has(.notice)) { display: none; }
.favourites-home .card-head h2 { display: flex; align-items: center; gap: 8px; }
.favourites-home .card-head h2 .ic { width: 18px; height: 18px; color: var(--brand); }
.favourite-shortcuts, .favourite-grid { list-style: none; padding: 0; margin: 0; }
.favourite-shortcuts { display: grid; gap: 4px; }
.favourite-shortcut { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-radius: 12px; color: var(--navy); }
.favourite-shortcut:hover { background: var(--surface-2); color: var(--navy); }
.favourite-avatar { width: 42px; height: 42px; flex: none; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 1.1rem; font-weight: 800; }
.favourite-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.favourite-info strong, .favourite-info span, .favourite-info small { display: block; }
.favourite-info span { font-size: 0.88rem; }
.favourite-info small { color: var(--muted); font-size: 0.75rem; }
.favourite-info h2 { margin: 0 0 3px; font-size: 1.05rem; }
.favourite-shortcut > .ic { width: 18px; height: 18px; flex: none; color: var(--muted); }
.favourite-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.favourite-card { display: flex; flex-direction: column; margin: 0; }
.favourite-details { color: var(--muted); font-size: 0.88rem; overflow-wrap: anywhere; }
.favourite-actions { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.favourite-actions form { margin-left: auto; }
.favourite-service-picker { margin-bottom: 16px; }
.favourite-service-picker label { margin-top: 0; }
.favourite-service-picker select { flex: 1; width: 100%; }
@media (max-width: 979px) {
  .dash-main { display: contents; }
  .balance-card { order: 0; }
  .dashboard-side { order: 1; }
  .dashboard-services { order: 2; }
  .dashboard-banners { order: 3; }
}
@media (min-width: 980px) { .dash-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; } }

.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.section-title h2 { margin: 0; font-size: 1.08rem; }
.section-title a { font-size: 0.88rem; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.section-title a .ic { width: 16px; height: 16px; }

/* ---------- service tiles ---------- */
.tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); color: var(--navy); font-weight: 700; font-size: 0.92rem; min-height: 120px;
  box-shadow: var(--shadow-xs); transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.2s;
}
.tile:hover { color: var(--navy); transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.tile .go { position: absolute; right: 14px; top: 16px; color: #b3bccb; width: 18px; height: 18px; transition: transform 0.25s var(--ease), color 0.2s; }
.tile:hover .go { transform: translate(2px, -2px); color: var(--brand); }
.tile.disabled { opacity: 0.5; pointer-events: none; filter: grayscale(1); }
.tile small { font-weight: 600; font-size: 0.75rem; margin-top: -10px; }
.tile .icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; transition: transform 0.3s var(--ease); }
.tile:hover .icon { transform: scale(1.08) rotate(-4deg); }
.tile .icon .ic { width: 23px; height: 23px; }
.tone-orange { background: #fff1e4; color: #ea6a00; }
.tone-blue { background: #e8f0ff; color: #2563eb; }
.tone-violet { background: #f1ebff; color: #7c3aed; }
.tone-teal { background: #e3f8f4; color: #0f9488; }
.tone-pink { background: #ffe9f1; color: #db2777; }
.tone-amber { background: #fff6dc; color: #c27803; }
.tone-sky { background: #e3f4fd; color: #0284c7; }
.tone-navy { background: #e9eef8; color: var(--navy-800); }
.tone-green { background: var(--success-bg); color: var(--success); }

/* ---------- activity list ---------- */
.activity { list-style: none; margin: 0; padding: 0; }
.activity li + li { border-top: 1px solid var(--border); }
.activity a { display: flex; align-items: center; gap: 12px; padding: 12px 4px; color: inherit; border-radius: 12px; transition: background 0.15s; }
.activity a:hover { background: var(--surface-2); color: inherit; }
.activity .a-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.activity .a-ic .ic { width: 20px; height: 20px; }
.activity .a-main { flex: 1; min-width: 0; }
.activity .a-title, .activity .a-sub { display: block; }
.activity .a-title { font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity .a-sub { font-size: 0.8rem; color: var(--muted); }
.activity .a-end { text-align: right; display: grid; justify-items: end; gap: 4px; }
.activity .a-amt { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .dashboard-recent .activity a { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 10px; row-gap: 8px; align-items: start; }
  .dashboard-recent .activity .a-ic { width: 38px; height: 38px; }
  .dashboard-recent .activity .a-title { white-space: normal; }
  .dashboard-recent .activity .a-end { grid-column: 2; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .dashboard-recent .activity li:nth-child(n+4) { display: none; }
}

.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.receipt-check-panel { margin-top: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.receipt-check-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.receipt-check-list { padding: 0; margin: 12px 0; list-style: none; }
.receipt-check-list li { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); }
.receipt-check-list li > div { min-width: 0; }
.receipt-check-list strong { font-size: 0.83rem; }
.receipt-check-list small { display: block; font-size: 0.76rem; color: var(--muted); overflow-wrap: anywhere; }
.receipt-check-tag { flex: none; padding: 3px 7px; border-radius: 7px; font-size: 0.7rem; font-weight: 700; background: var(--surface-3); color: var(--muted); }
.receipt-check-tag.check-match { background: var(--success-bg); color: var(--success); }
.receipt-check-tag.check-issue { background: var(--warning-bg); color: #8a5400; }
.receipt-observations { margin: 14px 0 0; font-size: 0.83rem; }
.receipt-check-details { margin-top: 12px; font-size: 0.83rem; }
.receipt-check-issues { color: #8a5400; font-size: 0.82rem; margin: 10px 0; }
.thumb.receipt-slip-image { width: 100%; max-width: 360px; max-height: 520px; background: #fff; }
.empty .e-ic { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--surface-3); color: #94a0b4; }
.empty .e-ic .ic { width: 26px; height: 26px; }
.empty strong { display: block; color: var(--navy); margin-bottom: 4px; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: linear-gradient(90deg, var(--brand-50), #fff); border: 1px solid var(--brand-100); margin-bottom: 12px; }
.notice .n-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: #fff; flex: none; }
.notice .n-ic .ic { width: 18px; height: 18px; }
.notice p { margin: 0; color: var(--text); font-weight: 600; font-size: 0.92rem; }
.notice small { display: block; margin-top: 2px; }

/* ---------- pay flow ---------- */
.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.steps .s { display: flex; align-items: center; gap: 8px; }
.steps .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); font-size: 0.75rem; }
.steps .s.on { color: var(--navy); }
.steps .s.on .n { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-100); }
.steps .s.done .n { background: var(--navy); color: #fff; }
.steps .line { flex: 1; height: 2px; background: var(--border); border-radius: 2px; max-width: 60px; }

.pay-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.pay-head .icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.pay-head .icon .ic { width: 26px; height: 26px; }
.pay-head h1 { margin: 0; }
.pay-head p { margin: 2px 0 0; color: var(--muted); font-size: 0.88rem; }

.op-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.op-option { position: relative; margin: 0; font-weight: 600; color: var(--text); }
.op-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.op-option > span {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: 14px;
  border: 1.5px solid var(--border); background: var(--surface); font-size: 0.86rem; text-align: center; color: var(--navy); font-weight: 700;
  transition: border-color 0.15s, background 0.15s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.op-option:hover > span { border-color: var(--border-strong); transform: translateY(-2px); }
.op-option small { font-weight: 600; font-size: 0.72rem; color: var(--muted); }
.op-option img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.op-brand { height: 40px; display: grid; place-items: center; }
.op-option .op-brand img { width: auto; height: 24px; max-width: 92px; border-radius: 0; object-fit: contain; }
.op-option .op-brand.b-hutch img { height: 19px; }
.op-option .op-brand.b-airtel img, .op-option .op-brand.b-mobitel img { height: 30px; max-width: 104px; }
.op-logo { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 0.9rem; background: var(--navy-700); }
.op-DIALOG, .op-DHBB, .op-DTV { background: linear-gradient(135deg, #f43f5e, #c8102e); }
.op-MOBITEL { background: linear-gradient(135deg, #22c55e, #0a7c3e); }
.op-HUTCH { background: linear-gradient(135deg, #ff9a3c, #ff6a00); }
.op-AIRTEL { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.op-option input:checked + span { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px var(--brand-100); }
.op-option input:checked + span::after {
  content: ''; position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
  animation: tick 0.2s var(--ease);
}
.op-option input:focus-visible + span { outline: 3px solid rgba(255, 121, 0, 0.5); outline-offset: 2px; }

.amount-field { position: relative; }
.amount-field .cur { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--muted); font-size: 0.95rem; pointer-events: none; }
.amount-field input { padding-left: 58px; font-size: 1.35rem; font-weight: 800; color: var(--navy); height: 60px; letter-spacing: -0.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  border: 1.5px solid var(--border); background: var(--surface); color: var(--navy); font: inherit; font-weight: 700; font-size: 0.85rem;
  padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: all 0.15s;
}
.chip:hover { border-color: var(--brand-200); background: var(--brand-50); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.estimate {
  display: none; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  background: var(--success-bg); color: #0b6b3d; font-size: 0.88rem; font-weight: 650;
}
.estimate.show { display: flex; animation: fade-up 0.25s var(--ease); }
.estimate strong { font-size: 1rem; }

.pack {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin: 0 0 10px;
  border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer; color: var(--text); font-weight: 500;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.pack:hover { border-color: var(--border-strong); }
.pack:has(input:checked) { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px var(--brand-100); }
.pack > span:first-child { display: flex; gap: 10px; align-items: flex-start; }
.pack input[type='radio'] { margin-top: 3px; }
.pack strong { color: var(--navy); }
.pack .price { font-weight: 800; color: var(--navy); white-space: nowrap; font-size: 1.02rem; }
.pack[hidden] { display: none; }

.kv { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 12px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: 0.9rem; }
.kv dd { margin: 0; text-align: right; font-weight: 650; word-break: break-word; color: var(--navy); }
.kv dd.pos { color: var(--success); }
.kv .total { font-size: 1.2rem; color: var(--brand-600); font-weight: 800; }
.kv .sep { grid-column: 1 / -1; border-top: 1px dashed var(--border-strong); margin: 4px 0; }

.summary-hero { text-align: center; padding: 6px 0 18px; }
.summary-hero .lbl { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.summary-hero .big { font-size: 2.3rem; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.summary-hero .big small { font-size: 0.45em; color: var(--muted); font-weight: 700; margin-right: 4px; }

.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 0.8rem; margin-top: 14px; }
.secure-note .ic { width: 15px; height: 15px; color: var(--success); }

/* ---------- banners carousel ---------- */
.banners-wrap { position: relative; margin-bottom: 20px; }
.banners {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
  border-radius: var(--radius-lg); scrollbar-width: none; scroll-behavior: smooth;
}
.banners::-webkit-scrollbar { display: none; }
.banners > * { scroll-snap-align: start; }
.banners img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius-lg); }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots button { width: 7px; height: 7px; border-radius: 99px; border: 0; padding: 0; background: var(--border-strong); cursor: pointer; transition: width 0.3s var(--ease), background 0.3s; }
.dots button.on { width: 22px; background: var(--brand); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; max-width: 100%; min-width: 0; margin: 0 -6px; padding: 0 6px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.table-hint { margin: 0 0 8px; }
table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; overflow-wrap: normal; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
thead th { color: var(--muted); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
thead th:first-child { border-top-left-radius: 10px; }
thead th:last-child { border-top-right-radius: 10px; }
tbody tr { transition: background 0.12s; }
tbody tr:hover td { background: #fbfcfe; }
tbody tr:last-child td { border-bottom: 0; }
tbody th { color: var(--navy); font-size: 0.88rem; }
td a { font-weight: 650; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td input { padding: 8px 10px; min-width: 90px; }
.pos { color: var(--success); font-weight: 700; }
.neg { color: var(--danger); font-weight: 700; }

/* ---------- stats ---------- */
.stat { padding: 20px; position: relative; overflow: hidden; }
.stat .s-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px; }
.stat .s-ic .ic { width: 21px; height: 21px; }
.stat .v { font-size: 1.55rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.stat .go { position: absolute; top: 20px; right: 18px; width: 18px; height: 18px; color: #b3bccb; transition: transform 0.25s var(--ease), color 0.2s; }
a.stat:hover .go { color: var(--brand); transform: translate(2px, -2px); }
.stat.attention .v { color: var(--brand-600); }

/* ---------- tabs (segmented) ---------- */
.tabs { display: inline-flex; gap: 4px; margin-bottom: 16px; padding: 4px; background: var(--surface-3); border-radius: 14px; flex-wrap: wrap; max-width: 100%; }
.tabs a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: 0.86rem; font-weight: 700; text-transform: capitalize; transition: all 0.15s; }
.tabs a:hover { color: var(--navy); }
.tabs a.active { color: var(--navy); background: var(--surface); box-shadow: var(--shadow-sm); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .field { flex: 1 1 200px; min-width: 0; max-width: 360px; }
.toolbar select { width: auto; }

/* Orders keep every amount and action readable without a wide table on phones. */
.orders-tabs a { display: flex; align-items: center; justify-content: center; min-height: 44px; }
.orders-table { table-layout: fixed; min-width: 1000px; }
.orders-table th, .orders-table td { min-width: 0; overflow-wrap: anywhere; }
.orders-table td { vertical-align: top; }
.orders-table th:last-child { width: 240px; }
.orders-table td.num { white-space: normal; }
.orders-table .badge { max-width: 100%; white-space: normal; }
.order-actions form, .order-actions details { min-width: 0; max-width: 100%; }
.order-actions input:not([type='checkbox']) { width: 100%; min-width: 0; }
.order-actions .btn { width: 100%; min-height: 44px; white-space: normal; text-align: center; }
.order-actions summary { list-style: none; }
.order-actions summary::-webkit-details-marker { display: none; }
.order-actions .check { align-items: flex-start; gap: 8px; font-size: 0.8rem; font-weight: 500; line-height: 1.5; }
.order-actions input[type='checkbox'] { min-width: 18px; width: 18px; height: 18px; margin: 3px 0 0; padding: 0; flex: 0 0 18px; }
.order-actions .check span { min-width: 0; }
.order-actions label:not(.check) { font-size: 0.8rem; }
@media (max-width: 1399px) {
  .l-admin .orders-wrap { border: 0; border-radius: 0; overflow: visible; }
  .orders-table { display: block; width: 100%; min-width: 0; }
  .orders-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .orders-table tbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: start; }
  .orders-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); min-width: 0; }
  .orders-table tbody td { display: block; padding: 0; border: 0; text-align: left; min-width: 0; font-size: 0.88rem; }
  .orders-table tbody td::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--muted); font: 600 0.7rem 'Plus Jakarta Sans', sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }
  .orders-table tbody tr:hover td { background: transparent; }
  .orders-table .order-customer, .orders-table .order-status, .orders-table .order-actions { grid-column: 1 / -1; }
  .orders-table .order-actions { padding-top: 12px; border-top: 1px solid var(--border); }
  .orders-table .order-actions .btn { font-size: 0.88rem; }
  .orders-table .order-actions input:not([type='checkbox']) { font-size: 16px; }
  .orders-table .order-actions .check { font-size: 0.85rem; }
}
@media (max-width: 640px) {
  .orders-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .orders-tabs a { padding: 10px 6px; min-height: 44px; text-align: center; font-size: 0.73rem; }
  .orders-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .orders-toolbar select { grid-column: 1 / -1; width: 100%; }
  .orders-toolbar .field { min-width: 0; max-width: none; }
  .orders-toolbar .btn { min-width: 68px; }
  .orders-card { padding: 14px; }
  .orders-table tbody { grid-template-columns: minmax(0, 1fr); }
  .orders-table tbody tr { padding: 14px; gap: 12px; }
}
.pager { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 18px; font-size: 0.88rem; }

/* ---------- receipt ---------- */
.receipt { max-width: 440px; margin: 0 auto; padding: 0; overflow: hidden; }
.receipt .head { text-align: center; padding: 28px 22px 22px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-bottom: 2px dashed var(--border); position: relative; }
.receipt .head::before, .receipt .head::after { content: ''; position: absolute; bottom: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); }
.receipt .head::before { left: -12px; }
.receipt .head::after { right: -12px; }
.receipt .r-status { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; animation: pop 0.45s var(--ease); }
.receipt .r-status .ic { width: 32px; height: 32px; stroke-width: 2.5; }
.receipt .r-status.ok { background: var(--success-bg); color: var(--success); box-shadow: 0 0 0 8px rgba(18, 160, 92, 0.08); }
.receipt .r-status.wait { background: var(--warning-bg); color: var(--warning); box-shadow: 0 0 0 8px rgba(194, 120, 3, 0.08); }
.receipt .r-status.bad { background: var(--danger-bg); color: var(--danger); box-shadow: 0 0 0 8px rgba(220, 53, 69, 0.08); }
.receipt .big { font-size: 2.1rem; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; margin: 8px 0 2px; }
.receipt .body { padding: 22px; }
.receipt .brand { font-size: 1rem; margin-bottom: 10px; }

.thumb { width: 180px; max-height: 240px; object-fit: contain; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
a:hover > .thumb { transform: scale(1.02); box-shadow: var(--shadow); }
.secret-box { padding: 14px; border-radius: 12px; background: var(--navy); color: #e2e8f0; border: 0; word-break: break-all; font-family: ui-monospace, monospace; font-size: 0.85rem; line-height: 1.6; }
pre.secret-box { white-space: pre-wrap; overflow-x: auto; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; }
.copy-row .btn { flex: none; }

.bank-acct { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); margin-bottom: 10px; }
.bank-acct .b-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--navy-800); flex: none; }
.bank-acct .b-main { flex: 1; min-width: 0; font-size: 0.88rem; overflow-wrap: anywhere; }
.bank-acct .btn { flex: none; }
.bank-acct .b-main strong { color: var(--navy); }
.bank-acct .mono { font-size: 1rem; font-weight: 700; color: var(--navy); letter-spacing: 0.02em; }
@media (max-width: 600px) {
  .bank-acct { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; }
  .bank-acct .btn { grid-column: 2; justify-self: start; }
}

.result { text-align: center; padding: 34px 24px; }
.result .r-ic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; animation: pop 0.5s var(--ease); }
.result .r-ic .ic { width: 36px; height: 36px; stroke-width: 2.4; }
.result .r-ic.ok { background: var(--success-bg); color: var(--success); box-shadow: 0 0 0 10px rgba(18, 160, 92, 0.07); }
.result .r-ic.wait { background: var(--warning-bg); color: var(--warning); box-shadow: 0 0 0 10px rgba(194, 120, 3, 0.07); }
.result .r-ic.bad { background: var(--danger-bg); color: var(--danger); box-shadow: 0 0 0 10px rgba(220, 53, 69, 0.07); }
.result .r-ic.brand { background: var(--brand-50); color: var(--brand-600); box-shadow: 0 0 0 10px rgba(255, 121, 0, 0.07); }
.result h1 { margin-bottom: 8px; }
.result p { color: var(--muted); max-width: 380px; margin-left: auto; margin-right: auto; }
.result .row { justify-content: center; margin-top: 20px; }
.err-code { font-size: 4.5rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; background: linear-gradient(135deg, var(--brand), var(--navy-800)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }

.auth-card { padding: 30px 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.auth-card h1 { margin-bottom: 6px; }
.auth-card .lede { color: var(--muted); margin-bottom: 8px; }
.auth-card .auth-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; background: var(--brand-50); color: var(--brand-600); }
.auth-card .auth-ic .ic { width: 26px; height: 26px; }
.auth-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 0.9rem; font-weight: 600; }
.auth-foot.centered { justify-content: center; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.8rem; margin: 18px 0; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.form-section { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--border); }
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 480px) { .fields-2 { grid-template-columns: 1fr; } }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.8); transition: transform 0.25s var(--ease);
}
.wa-float:hover { color: #fff; transform: scale(1.08); }
.wa-float .ic { width: 26px; height: 26px; }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2s infinite; }

/* =============================================================================
   Landing page
   ============================================================================= */
.l-public .topbar { background: rgba(255, 255, 255, 0.7); }
.lp-section { padding: clamp(64px, 8vw, 110px) 16px; }
.lp-inner { max-width: 1200px; margin: 0 auto; }
.lp-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.lp-head h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.12; margin-bottom: 14px; }
.lp-head p { color: var(--muted); font-size: 1.05rem; }
.pill-label {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 0.82rem; font-weight: 700;
  background: var(--surface); border: 1px solid var(--border); color: var(--navy); box-shadow: var(--shadow-xs); margin-bottom: 18px;
}
.pill-label .tag { background: var(--brand); color: #fff; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; }
.grad-text { background: linear-gradient(100deg, var(--brand) 10%, #ff9a3c 50%, var(--brand-600) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero2 { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 16px clamp(56px, 7vw, 100px); }
.hero2::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 60% at 85% 10%, rgba(255, 121, 0, 0.16) 0%, transparent 70%),
              radial-gradient(40% 50% at 5% 80%, rgba(46, 124, 246, 0.1) 0%, transparent 70%),
              linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero2::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.6;
  background-image: radial-gradient(rgba(7, 21, 47, 0.09) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000 20%, transparent 80%); -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 20%, transparent 80%);
}
.hero2-grid { max-width: 1200px; margin: 0 auto; display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero2-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero2 h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.2rem); line-height: 1.04; letter-spacing: -0.04em; margin-bottom: 20px; font-weight: 800; }
.hero2 .lede { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); color: var(--text-2); max-width: 560px; margin-bottom: 28px; }
.hero2 .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--text-2); font-size: 0.88rem; font-weight: 650; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row .ic { width: 18px; height: 18px; color: var(--success); }

/* phone mockup */
.mock-wrap { position: relative; display: grid; place-items: center; min-height: 520px; }
.mock-wrap::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 121, 0, 0.28), transparent 65%); filter: blur(10px); }
.phone {
  position: relative; width: 290px; height: 590px; border-radius: 46px; padding: 12px; background: #0b1324;
  box-shadow: 0 50px 100px -30px rgba(7, 21, 47, 0.55), inset 0 0 0 2px #26324a, inset 0 0 0 6px #0b1324;
  animation: float 7s ease-in-out infinite;
}
.phone-screen { height: 100%; border-radius: 36px; overflow: hidden; background: var(--bg); position: relative; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 20px; background: #0b1324; z-index: 3; }
.ps-top { padding: 48px 16px 16px; background: linear-gradient(160deg, var(--navy-800), var(--navy)); color: #fff; border-radius: 0 0 26px 26px; position: relative; overflow: hidden; }
.ps-top::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 121, 0, 0.6), transparent 70%); }
.ps-hello { font-size: 0.72rem; color: #9fb0cc; }
.ps-name { font-weight: 800; font-size: 0.95rem; margin-bottom: 14px; }
.ps-lbl { font-size: 0.68rem; color: #9fb0cc; }
.ps-bal { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; position: relative; z-index: 1; }
.ps-bal small { font-size: 0.6em; opacity: 0.7; margin-right: 3px; }
.ps-qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; position: relative; z-index: 1; }
.ps-qa div { display: grid; justify-items: center; gap: 5px; font-size: 0.6rem; font-weight: 700; color: #dbe3f0; }
.ps-qa i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); color: #fff; }
.ps-qa div:first-child i { background: var(--brand); }
.ps-qa .ic { width: 16px; height: 16px; }
.ps-body { padding: 14px; }
.ps-title { font-size: 0.72rem; font-weight: 800; color: var(--navy); margin: 4px 2px 8px; }
.ps-item { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 9px 10px; margin-bottom: 7px; border: 1px solid var(--border); }
.ps-item i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.ps-item .ic { width: 15px; height: 15px; }
.ps-item b { display: block; font-size: 0.7rem; color: var(--navy); }
.ps-item span { font-size: 0.6rem; color: var(--muted); }
.ps-item em { margin-left: auto; font-style: normal; font-size: 0.72rem; font-weight: 800; color: var(--navy); }
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: 0.8rem;
}
.float-card i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.float-card .ic { width: 18px; height: 18px; }
.float-card b { display: block; color: var(--navy); font-size: 0.85rem; }
.float-card span { color: var(--muted); font-size: 0.72rem; }
.fc-1 { left: -10px; top: 44%; animation: float 6s ease-in-out infinite 0.5s; }
.fc-2 { right: -14px; bottom: 14%; animation: float 6.5s ease-in-out infinite 1.2s; }
.fc-3 { right: 4%; top: 6%; animation: float 7s ease-in-out infinite 2s; }
@media (max-width: 520px) {
  .mock-wrap { min-height: 480px; }
  .phone { transform: scale(0.88); }
  .fc-1 { left: -6px; } .fc-2 { right: -6px; } .fc-3 { display: none; }
}

/* operators marquee */
.marquee-sec { padding: 30px 0 34px; border-block: 1px solid var(--border); background: var(--surface); }
.marquee-sec p { text-align: center; color: var(--muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; padding: 6px 0; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.brand-chip {
  display: inline-flex; align-items: center; gap: 12px; height: 68px; padding: 0 22px; border-radius: 18px; flex: none;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-xs); white-space: nowrap; margin-right: 16px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.2s;
}
.brand-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.brand-chip img { height: 30px; width: auto; max-width: 140px; object-fit: contain; }
.brand-chip.logo-only { padding: 0 28px; }
.brand-chip.emblem img { height: 42px; }
.brand-chip .bc-text { display: grid; line-height: 1.15; }
/* optical sizing: bold wordmarks read larger than compact marks at the same height */
.brand-chip.b-hutch img { height: 24px; }
.brand-chip.b-airtel img, .brand-chip.b-mobitel img { height: 38px; }
.brand-chip .bc-text b { color: var(--navy); font-size: 0.92rem; }
.brand-chip .bc-text small { font-size: 0.72rem; font-weight: 600; }
.op-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 800; color: var(--navy); white-space: nowrap; }
.op-pill .op-logo { width: 32px; height: 32px; font-size: 0.75rem; }

/* features bento */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(1, 1fr); }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(3, 1fr); } .bento .wide { grid-column: span 2; } }
.feature {
  position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.3s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.feature::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 121, 0, 0.09), transparent 40%);
}
.feature:hover::before { opacity: 1; }
.feature .f-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; }
.feature .f-ic .ic { width: 25px; height: 25px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }
.feature.dark { background: linear-gradient(150deg, var(--navy-800), var(--navy)); border: 0; color: #c9d4e5; }
.feature.dark h3 { color: #fff; }
.feature.dark p { color: #a7b5cc; }
.feature .svc-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.feature .svc-list span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: rgba(255, 255, 255, 0.08); color: #e2e8f0; border: 1px solid rgba(255, 255, 255, 0.1); }
.feature .svc-list .ic { width: 15px; height: 15px; color: #ffb27a; }

/* steps */
.how { display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 860px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how-step { position: relative; padding: 30px 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.how-step .num { position: absolute; top: 18px; right: 22px; font-size: 3.4rem; font-weight: 800; line-height: 1; color: var(--surface-3); letter-spacing: -0.05em; }
.how-step .f-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; background: var(--navy); color: #fff; }
.how-step .f-ic .ic { width: 24px; height: 24px; }
.how-step h3 { margin-bottom: 8px; }
.how-step p { color: var(--muted); margin: 0; }

/* split sections */
.split { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); line-height: 1.12; margin-bottom: 16px; }
.split .lede { color: var(--muted); font-size: 1.05rem; margin-bottom: 22px; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-weight: 600; }
.ticks .t { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--success-bg); color: var(--success); flex: none; margin-top: 1px; }
.ticks .t .ic { width: 14px; height: 14px; stroke-width: 3; }

.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pm { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.pm:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pm .f-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; }
.pm .f-ic .ic { width: 22px; height: 22px; }
.pm b { display: block; color: var(--navy); margin-bottom: 2px; }
.pm span { color: var(--muted); font-size: 0.85rem; }

.code-card { border-radius: var(--radius-lg); background: #0b1324; color: #cbd5e1; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid #1d2a44; }
.code-card .bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid #1d2a44; }
.code-card .bar i { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.code-card .bar i:nth-child(1) { background: #ff5f57; } .code-card .bar i:nth-child(2) { background: #febc2e; } .code-card .bar i:nth-child(3) { background: #28c840; }
.code-card .bar span { margin-left: 10px; font-size: 0.78rem; color: #64748b; font-family: ui-monospace, monospace; }
.code-card pre { margin: 0; padding: 20px; font-size: 0.82rem; line-height: 1.7; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.code-card .k { color: #ff9f5a; } .code-card .s { color: #86efac; } .code-card .c { color: #64748b; } .code-card .p { color: #93c5fd; }

.partner-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(32px, 5vw, 64px); color: #fff;
  background: radial-gradient(70% 120% at 100% 0%, rgba(255, 154, 60, 0.9) 0%, rgba(255, 121, 0, 0) 55%),
              radial-gradient(60% 100% at 0% 100%, rgba(46, 124, 246, 0.35) 0%, transparent 60%),
              linear-gradient(135deg, var(--navy-800), var(--navy));
}
.partner-band h2 { color: #fff; }
.partner-band .lede { color: #c2cee2; }
.partner-band .ticks li { color: #e2e8f0; }
.partner-band .ticks .t { background: rgba(255, 255, 255, 0.12); color: #ffb27a; }
.partner-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.p-stat { padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(6px); }
.p-stat .ic { width: 26px; height: 26px; color: #ffb27a; margin-bottom: 12px; }
.p-stat b { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.p-stat span { color: #a7b5cc; font-size: 0.85rem; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: box-shadow 0.25s, border-color 0.25s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 750; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 20px; height: 20px; color: var(--muted); transition: transform 0.3s var(--ease); flex: none; }
.faq details[open] summary .ic { transform: rotate(180deg); color: var(--brand); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq .a { padding: 0 22px 20px; color: var(--muted); }

/* contact */
.contact-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.contact-item { display: flex; gap: 14px; align-items: center; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: inherit; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
a.contact-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.contact-item .f-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.contact-item .f-ic .ic { width: 22px; height: 22px; }
.contact-item small { display: block; font-weight: 600; }
.contact-item b { color: var(--navy); word-break: break-word; }

/* Keep the familiar landing layout; tighten only Contact and its following CTA. */
.lp-section#faq { padding-bottom: 24px; }
.landing-contact.lp-section { padding-top: 32px; padding-bottom: 24px; }
.landing-contact .lp-head { margin: 0 auto 22px; }
.landing-contact .lp-head h2 { font-size: clamp(1.7rem, 2.7vw, 2.25rem); margin-bottom: 10px; }
.landing-contact .lp-head p { margin-bottom: 0; font-size: 0.95rem; }
.landing-contact .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.landing-contact .contact-item { min-width: 0; min-height: 84px; padding: 16px; gap: 12px; }
.landing-contact .contact-item > div { min-width: 0; }
.landing-contact .contact-item .f-ic { width: 40px; height: 40px; border-radius: 12px; }
.landing-contact .contact-item .f-ic .ic { width: 20px; height: 20px; }
.landing-contact .contact-item small { font-size: 0.72rem; margin-bottom: 3px; }
.landing-contact .contact-item b { display: block; font-size: 0.87rem; line-height: 1.55; overflow-wrap: anywhere; }
.landing-final-cta.lp-section { padding-top: 20px; padding-bottom: 40px; }
.landing-final-cta .cta-band { padding-block: 32px; }
@media (max-width: 899px) {
  .landing-contact .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .landing-contact .contact-item { min-height: 76px; }
}
@media (max-width: 520px) {
  .lp-section#faq { padding-bottom: 18px; }
  .landing-contact.lp-section { padding-top: 24px; padding-bottom: 16px; }
  .landing-contact .lp-head { margin-bottom: 18px; }
  .landing-final-cta.lp-section { padding-top: 16px; padding-bottom: 28px; }
}

/* Legacy-inspired payment arrow with typography from the site's design system. */
.brand { flex-shrink: 0; gap: 9px; }
.brand-emblem { display: block; flex: none; width: 44px; height: 44px; object-fit: contain; }
.brand-wordmark { display: grid; gap: 4px; line-height: 1; }
.brand-name { color: inherit; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.055em; white-space: nowrap; }
.brand-name b { color: var(--brand); font-weight: inherit; }
.brand-country { color: var(--muted); font-size: 0.51rem; font-weight: 750; letter-spacing: 0.23em; text-transform: uppercase; }
.auth-aside .brand, .sidebar .brand, .site-footer .brand { color: #fff; }
.auth-aside .brand-country, .sidebar .brand-country, .site-footer .brand-country { color: #a7b5cc; }
.auth-aside .brand-emblem { width: 52px; height: 52px; }
.auth-aside .brand-name { font-size: 1.8rem; }
.auth-aside .brand-country { font-size: 0.6rem; }
.auth-mobile-brand .brand-emblem, .sidebar .brand-emblem { width: 40px; height: 40px; }
.auth-mobile-brand .brand-name, .sidebar .brand-name { font-size: 1.35rem; }
.pill-label .tag, .pill-label > .ic { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 860px) {
  .topbar .brand-emblem, .admin-topbar .brand-emblem { width: 38px; height: 38px; }
  .topbar .brand-name, .admin-topbar .brand-name { font-size: 1.3rem; }
  .topbar .brand-country, .admin-topbar .brand-country { font-size: 0.46rem; }
}
@media (max-width: 480px) {
  .l-app .topbar .brand { gap: 6px; }
  .l-app .topbar .brand-emblem { width: 32px; height: 32px; }
  .l-app .topbar .brand-name { font-size: 1.05rem; }
  .l-app .topbar .brand-country { display: none; }
}

.cta-band { text-align: center; padding: clamp(40px, 6vw, 72px) 20px; border-radius: 32px; background: linear-gradient(135deg, #ff8a1f, var(--brand) 50%, #f25f00); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px); background-size: 20px 20px; mask-image: radial-gradient(60% 80% at 50% 50%, #000, transparent); -webkit-mask-image: radial-gradient(60% 80% at 50% 50%, #000, transparent); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.88); max-width: 560px; margin: 0 auto 26px; font-size: 1.05rem; }
.cta-band .row { justify-content: center; }
.cta-band .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cta-band .btn.ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.site-footer { background: var(--navy); color: #a7b5cc; padding: 64px 16px 28px; margin-top: 0; }
.site-footer .lp-inner { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .site-footer .lp-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer p { font-size: 0.9rem; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.9rem; }
.site-footer a { color: #a7b5cc; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { max-width: 1200px; margin: 40px auto 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.82rem; color: #6d7d99; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h3 { margin-top: 26px; }
.prose p { color: var(--text-2); }
.policy-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 20px; }
.policy-nav a { padding: 8px 0; }
.policy-nav a[aria-current='page'] { color: var(--navy); font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }
.policy-copy { overflow-wrap: anywhere; }
.policy-copy h2 { font-size: 1.2rem; margin: 30px 0 12px; }
.policy-copy h2:first-child { margin-top: 0; }
.policy-copy ul { padding-left: 22px; color: var(--text-2); }
.policy-copy li + li { margin-top: 10px; }
.business-contact { display: grid; gap: 8px; font-style: normal; overflow-wrap: anywhere; }
.policy-accept { align-items: flex-start; font-size: 0.85rem; }
.policy-accept input { margin-top: 3px; }

/* reveal on scroll (only when JS is present) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.d1 { --d: 0.08s; } .d2 { --d: 0.16s; } .d3 { --d: 0.24s; } .d4 { --d: 0.32s; } .d5 { --d: 0.4s; }

/* page entrance */
.container > * { animation: fade-up 0.45s var(--ease) both; }
.container > *:nth-child(2) { animation-delay: 0.04s; }
.container > *:nth-child(3) { animation-delay: 0.08s; }
.container > *:nth-child(4) { animation-delay: 0.12s; }
.container > *:nth-child(n + 5) { animation-delay: 0.16s; }
.container.bare > * { animation: none; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .l-public .nav.desktop, .l-public .auth-btns { display: none; }
  .mnav { display: block; }
}
@media (max-width: 480px) {
  .l-app .topbar-inner { gap: 10px; }
  .l-app .topbar .spacer, .l-app .balance-chip .dot { display: none; }
  .l-app .balance-chip { margin-left: auto; min-width: 0; padding: 8px; font-size: 0.8rem; white-space: normal; }
  .l-app .balance-card { padding: 20px; }
  .balance-card .amount { font-size: clamp(1.55rem, 7vw, 2rem); }
}
@media (max-width: 860px), (pointer: coarse) {
  input, select, textarea { font-size: 16px; }
  .icon-btn, .pw-toggle, .toast .t-close, .btn.small { min-width: 44px; min-height: 44px; }
  .field input.has-toggle { padding-right: 54px; }
}
@media (max-width: 640px) {
  .card { padding: 18px; }
  .hide-sm { display: none !important; }
  .quick-actions { gap: 6px; }
  .quick-actions a { padding: 10px 2px; font-size: 0.72rem; }
  .auth-card { padding: 24px 20px; }
  .pay-methods, .partner-stats { grid-template-columns: 1fr; }
  .otp-cells { gap: 6px; }
  .otp-cells span { height: 52px; }
}

/* ---------- keyframes ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes tick { from { transform: scale(0.85); } to { transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-16px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-12px) scale(0.96); } }
@keyframes drain { from { width: 100%; } to { width: 0; } }
@keyframes pulse-dot { 50% { opacity: 0.3; } }
@keyframes ping { 75%, 100% { transform: scale(1.5); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden='true'] { display: none; }
  .marquee-track .brand-chip { margin-bottom: 12px; }
}

@media print {
  .topbar, .footer, .site-footer, .bottom-nav, .sidebar, .admin-topbar, .toast-region, .wa-float, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #ccc; background: #fff; }
  .container > * { animation: none; }
}

/* ---------- misc page bits ---------- */
.steps .n .ic { width: 13px; height: 13px; stroke-width: 3; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.15rem; flex: none; background: linear-gradient(135deg, #ff9a3c, var(--brand)); }
.profile-row { gap: 16px; flex-wrap: nowrap; }
.profile-row .grow { flex: 1; min-width: 0; }
.hint .ic { width: 14px; height: 14px; vertical-align: -2px; }
.stat .v.sm { font-size: 1.05rem; }
.danger-zone { border-color: #f6d3d7; }
.mb-img { margin-bottom: 14px; border-radius: 12px; }
.mt-0 { margin-top: 0; }
.dash-grid > div > .section-title:first-child { margin-top: 0; }
.report-range { align-items: flex-end; }
.report-range label { margin: 0; display: grid; gap: 6px; }
.toolbar .btn { min-height: 46px; }
.spinner-lg { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--brand-200); border-top-color: var(--brand); animation: spin 0.8s linear infinite; }
.row.between > label + .hint { margin-top: 10px; }
.card > form.card.tight, .card > .card.tight { margin-bottom: 12px; }
@media (max-width: 640px) { .profile-row { flex-wrap: wrap; } }

.authenticator-qr { display: block; width: 240px; max-width: 100%; height: auto; margin: 16px auto; }

/* ---------- inline validation ---------- */
input.invalid, select.invalid, textarea.invalid { border-color: var(--danger); background: #fffafa; }
input.invalid:focus, select.invalid:focus, textarea.invalid:focus { box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15); }
input[type='file'].invalid { border-style: solid; }
.field-error {
  display: flex; align-items: flex-start; gap: 6px; margin-top: 7px; color: #b4232f; font-size: 0.82rem; font-weight: 600; line-height: 1.4;
  animation: fade-up 0.2s var(--ease);
}
.field-error .ic { width: 15px; height: 15px; margin-top: 1px; }
.otp:has(.otp-input.invalid) .otp-cells span { border-color: var(--danger); background: #fffafa; }
.kept-file { display: flex; align-items: center; gap: 8px; padding: 9px 12px; margin-bottom: 8px; border-radius: 10px; background: var(--success-bg); color: #0b6b3d; font-size: 0.82rem; font-weight: 650; }
.kept-file .ic { width: 16px; height: 16px; }

/* ---------- registration number card ---------- */
.number-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; margin: 4px 0 22px; border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-50), #fff); border: 1.5px solid var(--brand-200);
}
.number-card.is-verified { background: linear-gradient(135deg, var(--success-bg), #fff); border-color: #bfe9d2; }
.number-card .nc-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.number-card.is-verified .nc-ic { background: var(--success); box-shadow: 0 10px 22px -10px rgba(18, 160, 92, 0.8); }
.number-card .nc-ic .ic { width: 22px; height: 22px; }
.number-card .nc-main { flex: 1; min-width: 0; }
.number-card small { display: block; font-weight: 650; font-size: 0.75rem; }
.number-card .nc-num { display: block; font-size: 1.35rem; font-weight: 800; color: var(--navy); letter-spacing: 0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.number-card .badge { flex: none; }
@media (max-width: 420px) { .number-card .badge { display: none; } .number-card .nc-num { font-size: 1.15rem; } }

/* ---------- offers on operator cards ---------- */
.offer { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--success-bg); color: #0b7a45; font-size: 0.72rem; font-weight: 800; }
.offer .ic { width: 12px; height: 12px; }
.op-option input:checked + span .offer { background: var(--success); color: #fff; }

/* ---------- resend countdown ---------- */
.btn.counting { opacity: 1; color: var(--muted); cursor: default; font-variant-numeric: tabular-nums; }
.btn.counting:hover { background: transparent; transform: none; }

/* ---------- saved cards ---------- */
.saved-cards { display: grid; gap: 10px; }
.saved-card { position: relative; margin: 0; font-weight: 500; color: var(--text); cursor: pointer; }
.saved-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.saved-card .sc-body {
  display: flex; align-items: center; gap: 14px; padding: 14px 12px 14px 16px; border-radius: 14px; border: 1.5px solid var(--border);
  background: var(--surface); transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.saved-card:hover .sc-body { border-color: var(--border-strong); }
.saved-card input:checked + .sc-body { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px var(--brand-100); }
.saved-card input:focus-visible + .sc-body { outline: 3px solid rgba(255, 121, 0, 0.5); outline-offset: 2px; }
.sc-brand {
  flex: none; width: 54px; height: 36px; border-radius: 8px; display: grid; place-items: center; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em;
  color: #fff; background: linear-gradient(135deg, var(--navy-700), var(--navy));
}
.sc-brand.b-VISA { background: linear-gradient(135deg, #1a3fa8, #0b2a7a); }
.sc-brand.b-MASTER { background: linear-gradient(135deg, #f79e1b, #eb001b); }
.sc-brand.b-AMEX { background: linear-gradient(135deg, #2e77bc, #1b5a96); }
.sc-main { flex: 1; min-width: 0; display: grid; }
.sc-num { color: var(--navy); font-size: 1rem; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.sc-main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-remove { position: relative; z-index: 2; flex: none; width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.sc-remove:hover { background: var(--danger-bg); color: var(--danger); }
.sc-remove .ic { width: 16px; height: 16px; }
.check.save-card { align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.check.save-card input { margin-top: 2px; }
.check.save-card small { display: block; font-weight: 500; margin-top: 2px; }

/* ---------- account type (registration) ---------- */
.type-picker { display: grid; gap: 10px; margin: 6px 0 4px; }
.type-option { position: relative; margin: 0; font-weight: 500; color: var(--text); cursor: pointer; }
.type-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.type-option .to-body {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.type-option:hover .to-body { border-color: var(--border-strong); }
.type-option input:checked + .to-body { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px var(--brand-100); }
.type-option input:focus-visible + .to-body { outline: 3px solid rgba(255, 121, 0, 0.5); outline-offset: 2px; }
.type-option .to-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.type-option .to-ic .ic { width: 21px; height: 21px; }
.type-option .to-main { display: grid; gap: 2px; }
.type-option strong { color: var(--navy); }
.type-option small { line-height: 1.45; }
.type-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-3); color: var(--navy-700); font-size: 0.75rem; font-weight: 750; margin-bottom: 10px; }
.type-pill .ic { width: 14px; height: 14px; }
.badge.CUSTOMER { background: #f1ebff; color: #6d28d9; }

/* ---------- landing: account types ---------- */
.audience { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .audience { grid-template-columns: 1fr 1fr; } }
.aud-card { position: relative; overflow: hidden; padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; }
.aud-card.biz { background: linear-gradient(150deg, var(--navy-800), var(--navy)); border: 0; color: #c9d4e5; }
.aud-card.biz h3 { color: #fff; }
.aud-card .f-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; }
.aud-card .f-ic .ic { width: 25px; height: 25px; }
.aud-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.aud-card > p { color: var(--muted); }
.aud-card.biz > p { color: #a7b5cc; }
.aud-card .ticks { margin: 6px 0 24px; flex: 1; }
.aud-card.biz .ticks li { color: #e2e8f0; }
.aud-card.biz .ticks .t { background: rgba(255, 255, 255, 0.12); color: #ffb27a; }
.aud-card .btn { align-self: flex-start; }

/* ---------- admin console ---------- */
.l-admin .card { border-color: #e0e6ef; border-radius: 20px; box-shadow: 0 3px 14px -8px rgba(7, 21, 47, 0.2); }
.l-admin .card > .card-head { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.l-admin .card-head h2, .l-admin .card-head h3 { font-size: 1rem; line-height: 1.4; }
.l-admin .card-icon { width: 36px; height: 36px; border-radius: 11px; }
.l-admin .card > h2:first-child, .l-admin .card > h3:first-child { padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.l-admin .btn { padding: 10px 16px; font-size: 0.9rem; line-height: 1.4; overflow-wrap: normal; }
.l-admin .btn.small { padding: 8px 12px; font-size: 0.825rem; }
.l-admin .btn.block { min-height: 46px; }
.l-admin .tabs { padding: 5px; background: #fff; border: 1px solid var(--border); }
.l-admin .tabs a.active { background: var(--navy); color: #fff; box-shadow: none; }
.l-admin .table-wrap { margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 12px; }
.l-admin .table-wrap thead th { padding-top: 14px; padding-bottom: 14px; background: #f7f9fc; }
.l-admin .empty { border-radius: 14px; background: #f8fafc; }
.action-description { margin: 8px 0 0; font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.section-caption { font-size: 0.8rem; color: var(--muted); }
.section-title { flex-wrap: wrap; }

/* Growth charts use native SVG geometry and HTML labels that stay legible on phones. */
.growth-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 6px 0 18px; }
.growth-heading h2 { margin: 0 0 5px; font-size: 1.1rem; }
.growth-heading p { margin: 0; font-size: 0.8rem; color: var(--muted); }
.range-switch { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.range-switch a { padding: 8px 13px; border-radius: 8px; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.range-switch a[aria-current] { background: var(--navy); color: #fff; }
.growth-kpis, .health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; margin-bottom: 18px; }
.growth-kpis > *, .health-grid > *, .growth-charts > * { min-width: 0; }
.l-admin .growth-kpi { margin: 0; padding: 20px; background: linear-gradient(145deg, #fff, #fcfdff); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 0.85rem; font-weight: 650; }
.kpi-icon, .health-icon, .review-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; flex: none; }
.kpi-icon .ic { width: 19px; height: 19px; }
.kpi-value { margin: 10px 0 14px; font-size: clamp(1.45rem, 1.2rem + 0.8vw, 2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.2; color: var(--navy); font-variant-numeric: tabular-nums; }
.kpi-value small { margin-right: 7px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0; }
.kpi-comparison { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 0.7rem; color: var(--muted); }
.trend { display: inline-flex; align-items: center; gap: 3px; padding: 4px 6px; border-radius: 6px; font-weight: 750; }
.trend .ic { width: 13px; height: 13px; }
.trend-up { color: #087645; background: #eaf7ef; }
.trend-down { color: #b42c39; background: #fff0f0; }
.trend-flat { color: #65758c; background: #edf1f6; }
.profit-summary .profit-totals { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 16px 0; color: var(--muted); font-size: .85rem; }
.profit-summary .profit-totals strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.profit-bar { fill: #149267; }
.profit-bar.loss { fill: #d34654; }
.profit-summary .growth-point.is-active .profit-bar { stroke: var(--navy); stroke-width: 1; }
.provider-balances{margin-bottom:28px}.provider-balance-card .kpi-value{margin:16px 0 8px}.provider-balance-card h3{margin-top:6px}.growth-kpis-four{grid-template-columns:repeat(4,minmax(0,1fr))}.growth-kpis-four .kpi-value{font-size:clamp(18px,2.2vw,29px)}
@media(max-width:900px){.growth-kpis-four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.growth-kpis-four{grid-template-columns:1fr}.provider-balances .section-title{align-items:flex-start;gap:12px;flex-wrap:wrap}}
.profit-summary .chart-data { margin-top: 14px; }
.growth-charts { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1250px) { .growth-charts { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.l-admin .growth-chart { padding: 20px; margin-bottom: 18px; }
.growth-chart .card-head { gap: 8px; margin-bottom: 12px; }
.chart-overline { font-size: 0.66rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 5px; }
.chart-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--muted); }
.chart-legend::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #3d9d90; }
.chart-legend.orange::before { background: var(--brand); }
.chart-description { color: var(--muted); font-size: 0.8rem; min-height: 38px; margin: 0 0 16px; }
.chart-plot { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; }
.chart-y-axis { display: flex; flex-direction: column; justify-content: space-between; height: 200px; padding: 12px 0; text-align: right; font-size: 0.75rem; color: #748195; }
.chart-canvas { min-width: 0; position: relative; }
.growth-svg { display: block; width: 100%; height: 200px; overflow: visible; }
.chart-gridline { stroke: #e9edf4; stroke-width: 1; stroke-dasharray: 4 5; }
.chart-area { fill: url(#growth-sales-fill); }
.chart-area-hourly { fill: url(#growth-sales-hourly-fill); }
.chart-gradient-top { stop-color: #ff7900; stop-opacity: 0.2; }
.chart-gradient-bottom { stop-color: #ff7900; stop-opacity: 0.01; }
.chart-line { fill: none; stroke: #f47b20; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-hit { fill: transparent; }
.growth-point { cursor: pointer; }
.growth-point:focus { outline: none; }
.chart-dot { fill: #fff; stroke: #f47b20; stroke-width: 2; opacity: 0; }
.growth-point:is(:hover, :focus, .is-active) .chart-dot { opacity: 1; }
.chart-bar { fill: #73bcae; transition: fill 0.15s; }
.growth-point:is(:hover, :focus, .is-active) .chart-bar { fill: #167c70; }
.chart-empty { position: absolute; inset: 18px 5px; display: grid; place-content: center; gap: 6px; text-align: center; font-size: 0.76rem; color: var(--muted); background: rgba(255, 255, 255, 0.86); pointer-events: none; }
.chart-empty strong { color: var(--text-2); }
.chart-x-axis { display: flex; justify-content: space-between; gap: 6px; margin: 5px 0 16px 46px; font-size: 0.75rem; color: #748195; }
.chart-readout { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 10px; min-height: 46px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #f8fafc; color: var(--text-2); font-size: 0.75rem; }
.chart-readout strong { color: var(--navy); }
.chart-instruction { margin: 9px 0 0; font-size: 0.75rem; color: var(--muted); }
.l-admin .chart-data { padding: 0; margin-bottom: 10px; }
.chart-data summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; cursor: pointer; list-style: none; padding: 15px 18px; font-size: 0.83rem; font-weight: 650; }
.chart-data summary::-webkit-details-marker { display: none; }
.chart-data summary span { display: inline-flex; align-items: center; gap: 8px; }
.chart-data summary .ic { width: 16px; height: 16px; }
.chart-data[open] .table-wrap { margin: 0 14px 14px; max-width: calc(100% - 28px); }
.growth-footnote { margin: 0 0 20px; color: var(--muted); font-size: 0.7rem; }
.health-grid { margin-top: 18px; }
.l-admin .health-card { display: flex; align-items: center; gap: 12px; padding: 16px; margin: 0; }
.health-card > div { min-width: 0; }
.health-card div > span { display: block; color: var(--muted); font-size: 0.72rem; margin-bottom: 5px; }
.health-card strong { display: block; color: var(--navy); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.health-card small { font-size: 0.68rem; font-weight: 500; }
.l-admin a.review-card { display: flex; align-items: center; gap: 12px; padding: 18px; }
.review-card > div { flex: 1; min-width: 0; }
.review-card strong, .review-card small { display: block; }
.review-card strong { font-size: 0.8rem; color: var(--text-2); }
.review-card small { margin-top: 3px; font-size: 0.69rem; }
.review-count { font-size: 1.55rem; font-weight: 800; color: var(--navy); line-height: 1.15; }
.review-card > .ic { width: 17px; color: #a2adbc; }

.perm-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.perm-fieldset:disabled { opacity: 0.6; }
.perm-fieldset:disabled .btn { display: none; }
.approval { display: grid; gap: 16px; grid-template-columns: 1fr; padding: 18px 0; border-top: 1px solid var(--border); }
.approval:first-of-type { border-top: 0; padding-top: 4px; }
@media (min-width: 900px) { .approval { grid-template-columns: 1fr 340px; align-items: center; } }
.ap-main { display: grid; gap: 4px; }
.ap-amount { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ap-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-actions input { margin-bottom: 8px; padding: 9px 12px; }
.ap-actions .btn.block { margin-top: 0; }
.activity-log { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; font-size: 0.85rem; }
.activity-log li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.notes { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.notes li { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border-left: 3px solid var(--navy-700); }
.notes p { margin: 0 0 4px; white-space: pre-wrap; }
.note-form { display: grid; gap: 10px; }
.note-form .btn { justify-self: start; }
.role-matrix { display: grid; gap: 8px; }
.role-matrix details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.role-matrix summary { list-style: none; cursor: pointer; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.role-matrix summary::-webkit-details-marker { display: none; }
.role-matrix summary small { grid-column: 1; }
.role-matrix summary .badge { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.role-matrix summary .badge::before { display: none; }
.role-matrix ul { list-style: none; margin: 0; padding: 0 14px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 12px; font-size: 0.84rem; }
.role-matrix li { display: flex; gap: 6px; align-items: center; }
.role-matrix li .ic { width: 14px; height: 14px; color: var(--success); }
.switch-row { align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.switch-row input { margin-top: 2px; }
.switch-row small { display: block; font-weight: 500; margin-top: 2px; }
.chip-radio { position: relative; margin: 0; }
.chip-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.chip-radio span { display: inline-block; border: 1.5px solid var(--border); background: var(--surface); color: var(--navy); font-weight: 700; font-size: 0.85rem; padding: 7px 14px; border-radius: 999px; transition: all 0.15s; }
.chip-radio input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-radio input:focus-visible + span { outline: 3px solid rgba(255, 121, 0, 0.5); outline-offset: 2px; }
.export-form { gap: 8px; align-items: flex-end; }
.export-form label { margin: 0; display: grid; gap: 4px; font-size: 0.75rem; }
.export-form input { padding: 7px 10px; min-height: 36px; }
.approvals-notice { color: inherit; text-decoration: none; }
.approvals-notice:hover { color: inherit; box-shadow: var(--shadow-sm); }

/* ---------- confirmation modal ---------- */
.modal {
  width: min(420px, calc(100% - 32px)); padding: 28px 26px 22px; border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--text);
  box-shadow: 0 40px 80px -24px rgba(7, 21, 47, 0.45); text-align: center;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
}
.modal[open] { animation: pop 0.22s var(--ease); }
.modal::backdrop { background: rgba(7, 21, 47, 0.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal .m-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--info-bg); color: var(--info); }
.modal .m-ic .ic { width: 28px; height: 28px; }
.modal[data-tone='danger'] .m-ic { background: var(--danger-bg); color: var(--danger); }
.modal[data-tone='success'] .m-ic { background: var(--success-bg); color: var(--success); }
.modal .m-title { font-size: 1.2rem; margin: 0 0 8px; }
.modal .m-msg { color: var(--muted); margin: 0 0 22px; }
.modal .m-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) {
  .ap-actions, .modal .m-actions { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 480px) {
  .modal { padding: 16px; }
  .modal .m-ic { width: 40px; height: 40px; margin-bottom: 10px; }
  .modal .m-ic .ic { width: 22px; height: 22px; }
  .modal .m-msg { margin-bottom: 14px; }
  .modal .m-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.btn.danger-solid { background: linear-gradient(180deg, #e8505e, var(--danger)); color: #fff; box-shadow: 0 8px 18px -10px rgba(220, 53, 69, 0.9); }
.btn.danger-solid:hover { color: #fff; }

/* utilities (CSP forbids inline style attributes) */
.mt { margin-top: 14px; }
.mt-lg { margin-top: 24px; }
.mb0 { margin-bottom: 0; }
.center-row { justify-content: center; }
.w-auto { width: auto; }
.hidden { display: none; }
.nowrap { white-space: nowrap; }

/* Shared trilingual retailer integration documentation. */
.api-guide { min-width: 0; font-family: 'Plus Jakarta Sans', 'Nirmala UI', 'Noto Sans Sinhala', 'Noto Sans Tamil', system-ui, sans-serif; }
.api-guide-intro { margin-top: 20px; }
.api-guide-intro code { overflow-wrap: anywhere; }
.api-guide-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.api-guide-toc { position: sticky; top: 100px; max-height: calc(100vh - 130px); overflow-y: auto; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.api-guide-toc summary { font-weight: 800; cursor: pointer; }
.api-guide-toc nav { display: grid; gap: 12px; margin-top: 16px; }
.api-guide-toc a { font-size: .83rem; line-height: 1.65; color: var(--muted); }
.api-guide-toc a:hover { color: var(--navy); }
.api-wallet-amount { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.api-wallet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.api-wallet-actions .btn { white-space: normal; }
.api-guide-body, .api-guide-section { min-width: 0; }
.api-guide-section { scroll-margin-top: 100px; }
.api-guide-section h2 { font-size: 1.15rem; line-height: 1.7; margin-bottom: 14px; }
.api-guide-section p, .api-guide-section li { line-height: 1.95; overflow-wrap: anywhere; }
.api-guide-section ul { padding-left: 22px; }
.api-guide-section li + li { margin-top: 10px; }
.api-guide-section .table-wrap { margin-top: 18px; }
.api-guide-section table { min-width: 480px; }
.api-guide-section td { white-space: normal; overflow-wrap: anywhere; line-height: 1.8; vertical-align: top; }
.api-guide-section .api-term { font-family: ui-monospace, monospace; width: 36%; font-size: .8rem; }
.api-code { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 15px; }
.api-code summary { font-weight: 700; cursor: pointer; line-height: 1.8; }
.api-code .btn { margin: 12px 0; max-width: 100%; }
.api-code pre.secret-box { white-space: pre; word-break: normal; max-width: 100%; overflow: auto; margin: 0; }
.api-code pre code { font: inherit; background: none; color: inherit; padding: 0; }
.api-guide-toc a[aria-current="page"] { color: var(--navy); font-weight: 800; }
.system-handbook h3 { margin-top: 20px; line-height: 1.65; }
.handbook-steps { padding-left: 24px; }
.handbook-result { margin-top: 20px; padding: 16px; border-left: 3px solid var(--success); border-radius: 10px; background: var(--surface-3); }
.handbook-result p { margin: 8px 0 0; }
.handbook-flow { display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; padding: 0; margin: 20px 0; }
.handbook-flow li { position: relative; flex: 1 1 130px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-3); font-size: .82rem; font-weight: 700; }
.handbook-flow li:not(:last-child)::after { content: '→'; position: absolute; right: -19px; top: 12px; color: var(--muted); }
.handbook-related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media print {
  .system-handbook .api-guide-toc, .system-handbook .handbook-actions { display: none; }
  .system-handbook .api-guide-grid { display: block; }
  .system-handbook .api-guide-section { break-inside: auto; }
  .system-handbook .table-wrap { overflow: visible; }
}
@media (max-width: 850px) {
  .api-guide-grid { grid-template-columns: minmax(0, 1fr); }
  .api-guide-toc { position: static; max-height: none; }
}
@media (max-width: 600px) {
  .handbook-flow { display: block; }
  .handbook-flow li + li { margin-top: 22px; }
  .handbook-flow li:not(:last-child)::after { content: '↓'; right: auto; left: 50%; top: auto; bottom: -23px; }
}
.text-navy { color: var(--navy); }

/* Keep landscape content clear of display cutouts. */
.hero2, .lp-section, .site-footer {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* Admin-managed promotions and member inbox. */
.promotions{margin:24px 0;min-width:0}.promotion-heading{margin-bottom:14px}.promotion-heading h2{font-size:20px;margin:4px 0}.promotion-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:18px}.promotion-card{min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:22px;background:var(--surface)}.promotion-media{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#171717;border-radius:16px}.promotion-copy{padding:16px}.promotion-copy p{margin:0 0 12px;white-space:pre-wrap;overflow-wrap:anywhere}.landing-promotions{max-width:1160px;padding:0 24px;margin:auto}.notification-item{padding:18px 0;border-bottom:1px solid var(--border);overflow-wrap:anywhere}.notification-item p{white-space:pre-wrap}.notification-item.unread{border-left:3px solid var(--brand);padding-left:14px}.l-auth .promotions{width:100%}.l-auth .promotion-list{grid-template-columns:1fr}

.notification-link{position:relative;flex:none}.notification-count{position:absolute;top:-5px;right:-7px;min-width:18px;padding:1px 4px;border-radius:10px;background:var(--brand);color:var(--navy);font-size:10px;font-weight:800;text-align:center}

/* Responsive editorial offer grid; images retain a stable, admin-selected frame. */
.promotion-list{grid-template-columns:repeat(12,minmax(0,1fr));align-items:start}
.promotion-card{grid-column:span 12}.promotion-card[data-tile="half"]{grid-column:span 6}.promotion-card[data-tile="third"]{grid-column:span 4}
.promotion-card[data-shape="square"] .promotion-media{aspect-ratio:1}.promotion-card[data-shape="portrait"] .promotion-media{aspect-ratio:3/4}.promotion-card[data-shape="wide"] .promotion-media{aspect-ratio:5/2}
.promotion-card .promotion-media{border-radius:0;background:var(--surface-soft,#f5f6f8)}.promotion-card[data-fit="cover"] .promotion-media{object-fit:cover}
.promotion-gallery-stage{overflow:hidden}.promotion-slide[hidden]{display:none}.promotion-controls{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px;flex-wrap:wrap;border-top:1px solid var(--border)}.promotion-controls[hidden]{display:none}.promotion-position{font-size:12px;color:var(--muted)}
.promotion-card[data-transition="fade"] .is-current{animation:promotion-fade .35s ease-out}.promotion-card[data-transition="slide"] .is-current{animation:promotion-slide .35s ease-out}
@keyframes promotion-fade{from{opacity:.25}to{opacity:1}}@keyframes promotion-slide{from{opacity:.25;transform:translateX(18px)}to{opacity:1;transform:none}}
.promotion-gallery{margin:16px 0;padding:14px;border:1px solid var(--border);border-radius:14px;min-width:0}.promotion-editor-slide{min-width:0}.promotion-editor-slide img,.promotion-editor-slide video{width:100%;height:120px;object-fit:contain;background:var(--surface-soft,#f5f6f8);border-radius:12px}
.notification-item h3{font-size:15px;margin:8px 0}.notification-kind{text-transform:capitalize}.workspace-notifications{margin-bottom:24px}.workspace-notifications .notification-item:last-of-type{border-bottom:0}
@media(max-width:850px){.promotion-card[data-tile="third"]{grid-column:span 6}}
@media(max-width:600px){.promotion-card[data-tile]{grid-column:span 12}}
.l-auth .promotion-list{grid-template-columns:minmax(0,1fr)}.l-auth .promotion-card[data-tile]{grid-column:1/-1}
@media(prefers-reduced-motion:reduce){.promotion-card .is-current{animation:none!important}}
