/* ═══════════════════════════════════════════════════════════════════════════
   Digi Kolkata Portal — design system
   1. Tokens   2. Base   3. Layout shell   4. Components   5. Pages   6. Utilities
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Inter', ui-sans-serif, system-ui, sans-serif;

  --bg: #f4f5fb;
  --surface: #ffffff;
  --surface-2: #f7f8fc;
  --surface-3: #eef0f8;
  --border: #e6e8f1;
  --border-strong: #d3d8e8;
  --text: #0e1330;
  --text-2: #46506f;
  --text-3: #8a93ad;

  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef0ff;
  --primary-soft-2: #e0e4ff;
  --violet: #7c3aed;
  --accent: #ff7a1a;
  --accent-soft: #fff1e6;

  --success: #0f9f6e;  --success-soft: #e5f7ef;
  --warning: #d48806;  --warning-soft: #fff5dd;
  --danger:  #e5484d;  --danger-soft:  #ffecec;
  --info:    #0b8fd1;  --info-soft:    #e3f4fd;

  --grad-brand: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --grad-brand-soft: linear-gradient(135deg, #eef0ff 0%, #f5ecff 100%);

  --shadow-xs: 0 1px 2px rgba(16, 24, 64, .05);
  --shadow-sm: 0 1px 2px rgba(16, 24, 64, .05), 0 2px 6px rgba(16, 24, 64, .04);
  --shadow-md: 0 6px 16px -4px rgba(16, 24, 64, .09), 0 2px 6px -2px rgba(16, 24, 64, .05);
  --shadow-lg: 0 22px 48px -14px rgba(16, 24, 64, .2);
  --shadow-glow: 0 12px 30px -10px rgba(79, 70, 229, .55);

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --sidebar-w: 276px;
  --topbar-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

[data-theme="dark"] {
  --bg: #0a0d1c;
  --surface: #12162f;
  --surface-2: #181d3b;
  --surface-3: #1f2547;
  --border: #252b52;
  --border-strong: #343b6b;
  --text: #eef0ff;
  --text-2: #b7bddc;
  --text-3: #7e87b0;

  --primary: #7479ff;
  --primary-hover: #8b8fff;
  --primary-soft: rgba(116, 121, 255, .15);
  --primary-soft-2: rgba(116, 121, 255, .25);
  --accent-soft: rgba(255, 122, 26, .14);

  --success-soft: rgba(15, 159, 110, .16);
  --warning-soft: rgba(212, 136, 6, .18);
  --danger-soft: rgba(229, 72, 77, .17);
  --info-soft: rgba(11, 143, 209, .17);

  --grad-brand-soft: linear-gradient(135deg, rgba(116,121,255,.16), rgba(168,85,247,.12));
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 6px rgba(0, 0, 0, .2);
  --shadow-md: 0 8px 20px -6px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 54px -14px rgba(0, 0, 0, .65);
  color-scheme: dark;
}

/* ── 2. Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans); font-size: 14.5px; line-height: 1.55;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -.01em; line-height: 1.2; color: var(--text); }
h1 { font-size: 1.75rem; font-weight: 700; } h2 { font-size: 1.3rem; font-weight: 650; } h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--primary-soft-2); }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .86em; background: var(--surface-3); padding: 2px 6px; border-radius: 6px; }
[hidden] { display: none !important; }
.lucide, [data-lucide] { width: 1.15em; height: 1.15em; stroke-width: 2; flex: none; }

/* thin scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }

/* ── 3. Layout shell ───────────────────────────────────────────────────────── */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 60;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 18px 14px 14px;
}
.sidebar-brand { display: flex; align-items: center; padding: 6px 10px 18px; }
.sidebar-brand .logo-wrap { background: #fff; border-radius: 12px; padding: 6px 12px; border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.sidebar-brand img { height: 30px; width: auto; }

.nav-section { margin-top: 14px; }
.nav-title { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); padding: 0 12px 6px; }
.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: var(--text-2); font-weight: 550; font-size: 14px; transition: background .18s, color .18s, transform .18s;
  position: relative; border: 0; background: none; width: 100%; text-align: left;
}
.nav-link:hover { background: var(--surface-3); color: var(--text); }
.nav-link .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); transition: all .18s; flex: none; }
.nav-link .ic [data-lucide] { width: 17px; height: 17px; }
.nav-link:hover .ic { background: var(--primary-soft); color: var(--primary); }
.nav-link.active { background: var(--primary-soft); color: var(--primary); font-weight: 650; }
.nav-link.active .ic { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-glow); }
.nav-link .chev { margin-left: auto; width: 16px; height: 16px; opacity: .55; transition: transform .2s; }
.nav-group.open > .nav-link .chev { transform: rotate(90deg); }
.nav-sub { display: none; margin: 2px 0 6px 28px; padding-left: 14px; border-left: 2px solid var(--border); }
.nav-group.open .nav-sub { display: block; }
.nav-sub a { display: block; padding: 7px 10px; border-radius: 9px; color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.nav-sub a:hover { background: var(--surface-3); color: var(--text); }
.nav-sub a.active { color: var(--primary); font-weight: 650; background: var(--primary-soft); }

.sidebar-foot { margin-top: auto; padding-top: 16px; }
.help-card { background: var(--grad-brand); border-radius: var(--r-lg); padding: 16px; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-glow); }
.help-card::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.help-card h4 { color: #fff; font-size: 15px; margin-bottom: 4px; }
.help-card p { font-size: 12.5px; opacity: .88; margin-bottom: 12px; }
.help-card .btn { background: #fff; color: var(--primary); border: 0; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--topbar-h); display: flex; align-items: center; gap: 14px;
  padding: 0 clamp(16px, 3vw, 36px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.topbar .menu-btn { display: none; }
.topbar-title { font-family: var(--font-display); font-weight: 650; font-size: 1.1rem; white-space: nowrap; }
.search {
  position: relative; flex: 1 1 360px; max-width: 460px; margin-left: 12px;
}
.search input {
  width: 100%; height: 42px; padding: 0 70px 0 42px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 14px;
  box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s;
}
.search input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.search > [data-lucide] { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 18px; height: 18px; pointer-events: none; }
.search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 600 11px var(--font-sans); color: var(--text-3); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; background: var(--surface-2); }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 6px; display: none; max-height: 380px; overflow-y: auto; z-index: 70;
}
.search-results.open { display: block; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--text); }
.search-results a:hover, .search-results a.sel { background: var(--primary-soft); }
.search-results small { color: var(--text-3); display: block; font-size: 12px; }
.search-empty { padding: 16px; text-align: center; color: var(--text-3); }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; color: var(--text-2); position: relative; box-shadow: var(--shadow-xs);
  transition: all .16s;
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); border: 2px solid var(--surface); }
.wallet-pill {
  display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 6px 0 14px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs); font-weight: 650; color: var(--text);
}
.wallet-pill .amt { font-variant-numeric: tabular-nums; }
.wallet-pill .plus { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-glow); }
.wallet-pill .plus [data-lucide] { width: 16px; height: 16px; }
.wallet-pill:hover { border-color: var(--primary); color: var(--text); }

.avatar { width: 40px; height: 40px; border-radius: 13px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font: 700 14px var(--font-display); letter-spacing: .02em; flex: none; }
.avatar.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 22px; }
.avatar.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 260px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 80; animation: pop .16s var(--ease);
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-head { display: flex; gap: 12px; align-items: center; padding: 10px; }
.dropdown-head strong { display: block; font-size: 14.5px; }
.dropdown-head span { font-size: 12.5px; color: var(--text-3); }
.dropdown-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-weight: 550; width: 100%; background: none; border: 0; text-align: left; }
.dropdown-item:hover { background: var(--surface-3); color: var(--text); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: var(--danger-soft); }
.dropdown-sep { height: 1px; background: var(--border); margin: 6px 0; }

.content { width: 100%; max-width: 1320px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 36px) 90px; flex: 1; }
.footer { padding: 22px clamp(16px, 3vw, 36px); border-top: 1px solid var(--border); color: var(--text-3); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.footer a { color: var(--text-3); } .footer a:hover { color: var(--primary); }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 24px; }
.page-head .crumbs { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.page-head .crumbs a { color: var(--text-3); } .page-head .crumbs a:hover { color: var(--primary); }
.page-head p.sub { color: var(--text-2); margin-top: 4px; max-width: 70ch; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* bottom nav (mobile) */
.bottom-nav { display: none; }

@media (max-width: 1024px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(86vw, 308px); transform: translateX(-102%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(8, 10, 28, .5); backdrop-filter: blur(3px); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .topbar .menu-btn { display: grid; }
  .search { display: none; }
  .topbar-title { font-size: 1rem; }
  .content { padding-bottom: 110px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45;
    background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-radius: 22px; padding: 6px; box-shadow: var(--shadow-lg);
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0; border-radius: 16px; color: var(--text-3); font-size: 10.5px; font-weight: 650; }
  .bottom-nav a [data-lucide] { width: 20px; height: 20px; }
  .bottom-nav a.active { color: #fff; background: var(--grad-brand); box-shadow: var(--shadow-glow); }
  .footer { padding-bottom: 110px; }
}
@media (max-width: 640px) {
  .wallet-pill .lbl { display: none; }
  .wallet-pill { padding-left: 12px; }
  h1 { font-size: 1.45rem; }
  .topbar { gap: 8px; }
  .topbar-actions { gap: 6px; }
  .icon-btn, .wallet-pill { height: 40px; } .icon-btn { width: 40px; }
}

/* ── 4. Components ─────────────────────────────────────────────────────────── */

/* Buttons */
.btn {
  --b-bg: var(--surface); --b-fg: var(--text); --b-bd: var(--border);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 13px; border: 1px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg);
  font-weight: 650; font-size: 14px; white-space: nowrap; transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s, opacity .2s;
  box-shadow: var(--shadow-xs); position: relative; user-select: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--b-fg); border-color: var(--border-strong); }
.btn:active { transform: translateY(0) scale(.985); }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.btn-primary { --b-bg: var(--primary); --b-fg: #fff; --b-bd: transparent; background: var(--grad-brand); box-shadow: var(--shadow-glow); }
.btn-primary:hover { --b-fg: #fff; filter: brightness(1.07); border-color: transparent; box-shadow: 0 14px 34px -10px rgba(79, 70, 229, .65); }
.btn-success { --b-bg: var(--success); --b-fg: #fff; --b-bd: transparent; box-shadow: 0 10px 24px -10px rgba(15, 159, 110, .6); }
.btn-success:hover { --b-fg: #fff; filter: brightness(1.06); }
.btn-danger { --b-bg: var(--danger); --b-fg: #fff; --b-bd: transparent; }
.btn-danger:hover { --b-fg: #fff; filter: brightness(1.06); }
.btn-soft { --b-bg: var(--primary-soft); --b-fg: var(--primary); --b-bd: transparent; box-shadow: none; }
.btn-soft:hover { --b-fg: var(--primary); background: var(--primary-soft-2); box-shadow: none; }
.btn-ghost { --b-bg: transparent; --b-bd: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); box-shadow: none; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 11px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15.5px; border-radius: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; } .btn-sm.btn-icon { width: 36px; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn:not(.btn-primary):not(.btn-success):not(.btn-danger).loading::after { border-color: var(--border-strong); border-top-color: var(--primary); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.card-head h3 { display: flex; align-items: center; gap: 10px; }
.card-head h3 .hi { width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.card-body { padding: 22px; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.card.hover { transition: transform .22s var(--ease), box-shadow .22s, border-color .22s; }
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

/* Forms */
.field { display: block; margin-bottom: 18px; min-width: 0; }
.label { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 650; color: var(--text-2); margin-bottom: 7px; letter-spacing: .01em; }
.label .req { color: var(--danger); margin-left: 3px; }
.label .opt { font-weight: 500; color: var(--text-3); font-size: 11.5px; }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit; font-size: 14.5px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a93ad' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border-strong)); }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 14%, transparent); }
.input[readonly] { background: var(--surface-3); color: var(--text-2); }
.input-group { position: relative; }
.input-group > [data-lucide], .input-group > .lead { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 18px; height: 18px; pointer-events: none; }
.input-group .lead { font-weight: 650; width: auto; font-size: 14px; }
.input-group .input { padding-left: 42px; }
.input-group .input.has-trail { padding-right: 46px; }
.input-group .trail { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.err-text { font-size: 12px; color: var(--danger); margin-top: 6px; font-weight: 550; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.check input { appearance: none; width: 20px; height: 20px; flex: none; border: 1.5px solid var(--border-strong); border-radius: 6px; background: var(--surface); margin: 1px 0 0; display: grid; place-items: center; transition: all .15s; cursor: pointer; }
.check input:checked { background: var(--primary); border-color: var(--primary); }
.check input:checked::after { content: ''; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: 2px; }

/* choice cards (radio) & segmented control */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice .box { display: block; height: 100%; padding: 16px; border: 1.5px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); transition: all .18s; }
.choice .box strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.choice .box span { font-size: 12.5px; color: var(--text-3); line-height: 1.4; display: block; }
.choice:hover .box { border-color: var(--primary); }
.choice input:checked + .box { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent); }
.choice input:focus-visible + .box { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }
.segmented { display: inline-flex; padding: 4px; background: var(--surface-3); border-radius: 13px; gap: 2px; max-width: 100%; overflow-x: auto; }
.segmented a, .segmented button { padding: 8px 16px; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); font-weight: 600; font-size: 13.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.segmented a.active, .segmented button.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.segmented a:hover:not(.active), .segmented button:hover:not(.active) { color: var(--text); }

/* file dropzone */
.dropzone { border: 2px dashed var(--border-strong); border-radius: var(--r-md); background: var(--surface-2); padding: 18px; text-align: center; transition: all .18s; position: relative; cursor: pointer; }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-soft); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dropzone .dz-ic { width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.dropzone strong { display: block; font-size: 13.5px; } .dropzone small { color: var(--text-3); font-size: 12px; }
.dropzone.has-file { border-style: solid; border-color: var(--success); background: var(--success-soft); }
.dropzone.has-file .dz-ic { background: var(--success); color: #fff; }
.dz-preview { display: none; align-items: center; gap: 12px; text-align: left; }
.dropzone.has-file .dz-idle { display: none; } .dropzone.has-file .dz-preview { display: flex; }
.dz-preview img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); background: #fff; }
.dz-preview .dz-name { font-weight: 650; font-size: 13.5px; word-break: break-all; } .dz-preview .dz-size { font-size: 12px; color: var(--text-3); }
.dz-clear { position: relative; z-index: 2; margin-left: auto; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--r-pill); font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger  { background: var(--danger-soft);  color: var(--danger); }
.badge-info    { background: var(--info-soft);    color: var(--info); }
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-accent  { background: var(--accent-soft);  color: var(--accent); }

/* Alerts */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid transparent; font-size: 13.5px; margin-bottom: 18px; line-height: 1.5; }
.alert [data-lucide] { margin-top: 2px; width: 18px; height: 18px; }
.alert-info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 22%, transparent); }
.alert-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 22%, transparent); }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
.alert-danger, .alert-error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 22%, transparent); }
.alert b, .alert strong { color: inherit; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); font-weight: 700; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; } .table tbody tr:hover { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .88em; }
@media (max-width: 720px) {
  .table.stack thead { display: none; }
  .table.stack, .table.stack tbody, .table.stack tr, .table.stack td { display: block; width: 100%; }
  .table.stack tr { border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 12px; padding: 6px 4px; background: var(--surface); }
  .table.stack td { border: 0; display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; text-align: right; }
  .table.stack td::before { content: attr(data-label); font-weight: 650; color: var(--text-3); font-size: 12px; text-align: left; }
}

/* Tabs & pagination */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tabs a, .tabs button { padding: 12px 16px; border: 0; background: none; font-weight: 650; color: var(--text-3); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .active { color: var(--primary); border-bottom-color: var(--primary); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; flex-wrap: wrap; color: var(--text-3); font-size: 13px; }
.pager .btns { display: flex; gap: 8px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { padding: 18px 20px; }
.stat .s-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.stat .s-label { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.stat .s-value { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ic-primary { background: var(--primary-soft); color: var(--primary); } .ic-success { background: var(--success-soft); color: var(--success); }
.ic-danger { background: var(--danger-soft); color: var(--danger); } .ic-warning { background: var(--warning-soft); color: var(--warning); }
.ic-info { background: var(--info-soft); color: var(--info); } .ic-accent { background: var(--accent-soft); color: var(--accent); }

/* Key/value list */
.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 0; font-size: 14px; }
.kv dt, .kv dd { margin: 0; padding: 11px 0; border-bottom: 1px dashed var(--border); }
.kv dt { color: var(--text-3); font-weight: 550; } .kv dd { font-weight: 600; word-break: break-word; text-align: right; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }

/* Empty / skeleton */
.empty { text-align: center; padding: 48px 24px; }
.empty .e-ic { width: 72px; height: 72px; border-radius: 24px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--grad-brand-soft); color: var(--primary); }
.empty .e-ic [data-lucide] { width: 32px; height: 32px; }
.empty h3 { margin-bottom: 6px; } .empty p { color: var(--text-3); max-width: 44ch; margin: 0 auto 18px; }
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 10px; }

/* Modal / drawer */
.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 10, 28, .55); backdrop-filter: blur(4px); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.open { display: flex; animation: fade .2s ease; }
.modal { background: var(--surface); border-radius: var(--r-xl); width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto; box-shadow: var(--shadow-lg); animation: pop .22s var(--ease); border: 1px solid var(--border); }
.modal.lg { max-width: 760px; } .modal.sm { max-width: 400px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-body { padding: 24px; } .modal-foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; background: var(--surface-2); }
.drawer-backdrop { align-items: stretch; justify-content: flex-end; padding: 0; }
.drawer { background: var(--surface); width: min(100%, 520px); height: 100%; overflow-y: auto; box-shadow: var(--shadow-lg); animation: slide-in .28s var(--ease); border-left: 1px solid var(--border); }

/* Toasts */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 36px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: toast-in .35s var(--ease); position: relative; overflow: hidden; }
.toast .t-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.toast .t-body { flex: 1; font-size: 13.5px; padding-top: 5px; } .toast .t-body b { display: block; margin-bottom: 1px; }
.toast .t-x { background: none; border: 0; color: var(--text-3); padding: 4px; margin: -2px -4px 0 0; }
.toast::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; background: currentColor; width: 100%; transform-origin: left; animation: toast-bar 5s linear forwards; opacity: .5; }
.toast.success { color: var(--success); } .toast.error { color: var(--danger); } .toast.warning { color: var(--warning); } .toast.info { color: var(--info); }
.toast .t-body { color: var(--text); }
.toast.success .t-ic { background: var(--success-soft); } .toast.error .t-ic { background: var(--danger-soft); } .toast.warning .t-ic { background: var(--warning-soft); } .toast.info .t-ic { background: var(--info-soft); }
.toast.leaving { animation: toast-out .25s ease forwards; }

/* Stepper */
.stepper { display: flex; align-items: flex-start; gap: 0; margin-bottom: 28px; overflow-x: auto; padding: 4px 2px 8px; }
.step { display: flex; align-items: center; gap: 12px; flex: 1 0 auto; min-width: 0; }
.step:last-child { flex: 0 0 auto; }
.step .s-dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13.5px; background: var(--surface); color: var(--text-3); border: 2px solid var(--border-strong); flex: none; transition: all .25s; }
.step .s-dot [data-lucide] { width: 17px; height: 17px; }
.step .s-text { font-size: 13px; font-weight: 650; color: var(--text-3); white-space: nowrap; }
.step .s-bar { flex: 1; height: 2px; background: var(--border-strong); margin: 0 14px; min-width: 24px; border-radius: 2px; transition: background .25s; }
.step.active .s-dot { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--shadow-glow); }
.step.active .s-text { color: var(--text); }
.step.done .s-dot { background: var(--success); border-color: var(--success); color: #fff; } .step.done .s-text { color: var(--text-2); } .step.done .s-bar { background: var(--success); }
@media (max-width: 720px) { .step .s-text { display: none; } .step.active .s-text { display: block; } }
.step-panel { display: none; animation: fade .3s ease; } .step-panel.active { display: block; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 22px; margin-top: 8px; border-top: 1px solid var(--border); }

/* Timeline (remarks) */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item::before { content: ''; position: absolute; left: -26px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); }
.tl-item.admin::before { border-color: var(--accent); } .tl-item.system::before { border-color: var(--text-3); }
.tl-item .tl-meta { font-size: 12px; color: var(--text-3); margin-bottom: 3px; } .tl-item .tl-text { background: var(--surface-2); padding: 10px 14px; border-radius: 12px; font-size: 13.5px; }

/* Misc */
.divider-text { display: flex; align-items: center; gap: 14px; color: var(--text-3); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; margin: 20px 0; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; } .progress > i { display: block; height: 100%; background: var(--grad-brand); border-radius: 99px; transition: width .4s var(--ease); }
.otp-inputs { display: flex; gap: 10px; justify-content: center; } .otp-inputs input { width: 52px; height: 60px; text-align: center; font: 700 24px var(--font-display); border-radius: 14px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); }
.otp-inputs input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--text-2); font-size: 13px; font-weight: 600; border: 1px solid transparent; }
a.chip:hover, button.chip:hover { background: var(--primary-soft); color: var(--primary); }
.chip.active { background: var(--primary-soft); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.copy-btn { cursor: pointer; }

/* ── 5. Pages ──────────────────────────────────────────────────────────────── */

/* Dashboard hero */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; margin-bottom: 30px; }
@media (max-width: 1100px) { .hero-grid { grid-template-columns: 1fr; } }
.greeting h1 { font-size: 1.9rem; } .greeting p { color: var(--text-2); margin-top: 4px; }
.wallet-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 26px; color: #fff; background: var(--grad-brand);
  box-shadow: 0 24px 50px -18px rgba(79, 70, 229, .6); isolation: isolate; min-height: 232px; display: flex; flex-direction: column; justify-content: space-between;
}
.wallet-card::before { content: ''; position: absolute; width: 320px; height: 320px; right: -90px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 68%); z-index: -1; }
.wallet-card::after { content: ''; position: absolute; width: 260px; height: 260px; left: -80px; bottom: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 140, 80, .5), rgba(255, 140, 80, 0) 68%); z-index: -1; }
.wallet-card .wc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.wallet-card .wc-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; display: flex; align-items: center; gap: 8px; }
.wallet-card .wc-balance { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 700; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.wallet-card .eye { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.wallet-card .eye:hover { background: rgba(255, 255, 255, .26); }
.wallet-card .wc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.wallet-card .btn { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .24); backdrop-filter: blur(6px); box-shadow: none; }
.wallet-card .btn:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.wallet-card .btn.solid { background: #fff; color: var(--primary); border-color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35); }
.wallet-card .wc-meta { display: flex; gap: 22px; margin-top: 16px; font-size: 12.5px; opacity: .9; }
.wallet-card .wc-meta b { display: block; font-size: 15px; font-family: var(--font-display); }

.banner-card { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 232px; box-shadow: var(--shadow-md); }
.banner-slide { position: absolute; inset: 0; padding: 28px; color: #fff; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateX(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.banner-slide.active { opacity: 1; transform: none; pointer-events: auto; }
.banner-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(0, 0, 0, .14)); }
.banner-slide > * { position: relative; }
.banner-slide h3 { color: #fff; font-size: 1.7rem; margin-bottom: 6px; max-width: 18ch; font-weight: 700; }
.banner-slide p { opacity: .88; margin-bottom: 18px; max-width: 34ch; }
.banner-slide .bn-ic { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 130px; height: 130px; opacity: .17; stroke-width: 1.4; }
.banner-slide .btn { background: #fff; color: #111; border: 0; align-self: flex-start; }
.banner-dots { position: absolute; left: 28px; bottom: 18px; display: flex; gap: 6px; z-index: 2; }
.banner-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .45); padding: 0; transition: all .3s; }
.banner-dots button.active { width: 26px; background: #fff; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 16px; gap: 12px; }
.section-head h2 { display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ''; width: 5px; height: 22px; border-radius: 4px; background: var(--grad-brand); }
.section-head a.more { font-weight: 650; font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; }

/* Service tiles */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 16px; }
.svc-grid.compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.svc-tile {
  display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-xs); color: var(--text); position: relative; overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.svc-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); color: var(--text); }
.svc-tile::after { content: ''; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: var(--tile-tint, var(--primary-soft)); opacity: .7; transition: transform .3s var(--ease); }
.svc-tile:hover::after { transform: scale(1.5); }
.svc-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--tile, var(--grad-brand)); box-shadow: 0 10px 20px -8px var(--tile-shadow, rgba(79, 70, 229, .5)); position: relative; z-index: 1; }
.svc-ic [data-lucide] { width: 24px; height: 24px; }
.svc-tile h4 { font-size: 15px; font-weight: 650; position: relative; z-index: 1; font-family: var(--font-sans); letter-spacing: 0; }
.svc-tile p { font-size: 12.5px; color: var(--text-3); line-height: 1.45; position: relative; z-index: 1; margin-top: -8px; }
.svc-tile .tag { position: absolute; top: 14px; right: 14px; z-index: 2; }
.svc-tile .arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 650; color: var(--primary); position: relative; z-index: 1; opacity: 0; transform: translateX(-6px); transition: all .22s; }
.svc-tile:hover .arrow { opacity: 1; transform: none; }
.svc-tile.mini { flex-direction: row; align-items: center; padding: 14px 16px; gap: 14px; }
.svc-tile.mini .svc-ic { width: 44px; height: 44px; border-radius: 13px; } .svc-tile.mini .svc-ic [data-lucide] { width: 21px; height: 21px; }
.svc-tile.mini h4 { font-size: 14px; } .svc-tile.mini::after { display: none; } .svc-tile.mini .arrow { display: none; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.cat-card { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: all .22s var(--ease); position: relative; overflow: hidden; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); color: var(--text); }
.cat-card .svc-ic { width: 58px; height: 58px; border-radius: 18px; }
.cat-card h3 { font-size: 16px; } .cat-card p { color: var(--text-3); font-size: 13px; margin-top: 2px; }
.cat-card .count { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--text-3); }

/* Transactions */
.txn-list { display: flex; flex-direction: column; }
.txn-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .12s, padding .18s; border-radius: 12px; }
.txn-row:last-child { border-bottom: 0; }
.txn-row:hover { background: var(--surface-2); padding-left: 12px; padding-right: 12px; }
.txn-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.txn-ic.cr { background: var(--success-soft); color: var(--success); } .txn-ic.dr { background: var(--danger-soft); color: var(--danger); }
.txn-main { min-width: 0; flex: 1; } .txn-main b { display: block; font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txn-main small { color: var(--text-3); font-size: 12px; }
.txn-amt { text-align: right; font-family: var(--font-display); font-weight: 700; font-size: 15.5px; font-variant-numeric: tabular-nums; flex: none; }
.txn-amt small { display: block; font-family: var(--font-sans); font-weight: 500; font-size: 11.5px; color: var(--text-3); }
.txn-amt.cr { color: var(--success); } .txn-amt.dr { color: var(--danger); }

/* Auth pages */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); }
.auth-aside { position: relative; overflow: hidden; background: var(--grad-brand); color: #fff; padding: 48px clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
.auth-aside::before { content: ''; position: absolute; width: 640px; height: 640px; right: -240px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 66%); z-index: -1; }
.auth-aside::after { content: ''; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 76, .55), transparent 66%); z-index: -1; }
.auth-aside .logo-wrap { background: #fff; border-radius: 14px; padding: 8px 16px; display: inline-flex; box-shadow: var(--shadow-lg); } .auth-aside .logo-wrap img { height: 34px; width: auto; }
.auth-aside h2 { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 700; line-height: 1.12; max-width: 14ch; margin-bottom: 14px; letter-spacing: -.025em; }
.auth-aside .lead { font-size: 16px; opacity: .88; max-width: 42ch; }
.auth-points { display: grid; gap: 14px; margin-top: 30px; }
.auth-point { display: flex; gap: 14px; align-items: center; font-weight: 550; } .auth-point .ap-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); display: grid; place-items: center; backdrop-filter: blur(6px); flex: none; }
.auth-stats { display: flex; gap: 34px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .22); } .auth-stats b { display: block; font: 700 1.55rem var(--font-display); } .auth-stats span { font-size: 12.5px; opacity: .8; }
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 36px 24px; position: relative; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 1.9rem; margin-bottom: 6px; } .auth-card .sub { color: var(--text-2); margin-bottom: 28px; }
.auth-top { position: absolute; top: 18px; right: 18px; display: flex; gap: 8px; align-items: center; }
.auth-mobile-logo { display: none; margin-bottom: 26px; } .auth-mobile-logo img { height: 36px; }
.auth-foot { text-align: center; margin-top: 24px; color: var(--text-2); font-size: 14px; } .auth-foot a { font-weight: 650; }
@media (max-width: 960px) { .auth-wrap { grid-template-columns: 1fr; } .auth-aside { display: none; } .auth-mobile-logo { display: block; } .auth-main { justify-content: flex-start; padding-top: 70px; } }

/* Application engine */
.app-hero { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); margin-bottom: 22px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.app-hero::before { content: ''; position: absolute; inset: 0 0 0 auto; width: 40%; background: var(--grad-brand-soft); mask-image: linear-gradient(to left, #000, transparent); -webkit-mask-image: linear-gradient(to left, #000, transparent); }
.app-hero .svc-ic { width: 60px; height: 60px; border-radius: 18px; flex: none; } .app-hero > div { position: relative; }
.app-hero h1 { font-size: 1.45rem; } .app-hero p { color: var(--text-2); margin-top: 2px; font-size: 13.5px; }
.price-tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-weight: 650; font-size: 13px; box-shadow: var(--shadow-xs); }
.price-tag b { color: var(--primary); font-family: var(--font-display); font-size: 1.05rem; }
.summary-card { position: sticky; top: calc(var(--topbar-h) + 20px); }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .layout-2 { grid-template-columns: 1fr; } .summary-card { position: static; } }
.hist-card { padding: 18px 20px; display: flex; gap: 16px; align-items: flex-start; cursor: pointer; transition: all .18s; }
.hist-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.success-screen { text-align: center; padding: 40px 24px; }
.success-screen .ok { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 22px; background: var(--success-soft); color: var(--success); display: grid; place-items: center; animation: pop .5s var(--ease); box-shadow: 0 0 0 12px color-mix(in srgb, var(--success) 10%, transparent); }
.success-screen .ok [data-lucide] { width: 44px; height: 44px; stroke-width: 2.4; }

/* ── 6. Utilities ──────────────────────────────────────────────────────────── */
.flex { display: flex; } .between { justify-content: space-between; } .center { align-items: center; } .wrap { flex-wrap: wrap; } .col { flex-direction: column; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 24px; }
.grow { flex: 1; min-width: 0; } .w-full { width: 100%; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 24px; } .mt-6 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 24px; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--text-3); } .text-2 { color: var(--text-2); } .text-sm { font-size: 13px; } .text-xs { font-size: 12px; } .text-center { text-align: center; } .text-right { text-align: right; }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; } .nowrap { white-space: nowrap; } .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-success { color: var(--success); } .text-danger { color: var(--danger); } .text-warning { color: var(--warning); } .text-primary { color: var(--primary); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } .grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hide-mobile { } @media (max-width: 720px) { .hide-mobile { display: none !important; } }

/* Animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
@keyframes toast-bar { to { transform: scaleX(0); } }
.reveal { animation: pop .5s var(--ease) both; }
.reveal.d1 { animation-delay: .05s; } .reveal.d2 { animation-delay: .1s; } .reveal.d3 { animation-delay: .15s; } .reveal.d4 { animation-delay: .2s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

@media print {
  .sidebar, .topbar, .bottom-nav, .footer, .page-actions, .toasts { display: none !important; }
  .app { display: block; } body { background: #fff; } .card { box-shadow: none; }
}
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ── Notifications ───────────────────────────────────────────────────────── */
.note-row { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); position: relative; transition: background .15s; }
.note-row:last-child { border-bottom: 0; }
.note-row:hover { background: var(--surface-2); }
.note-row.unread { background: var(--primary-soft); }
.note-row.unread::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.note-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.note-ic.tone-success { background: var(--success-soft); color: var(--success); } .note-ic.tone-warning { background: var(--warning-soft); color: var(--warning); }
.note-ic.tone-danger { background: var(--danger-soft); color: var(--danger); } .note-ic.tone-info { background: var(--primary-soft); color: var(--primary); }
.note-main { flex: 1; min-width: 0; } .note-main b { display: block; font-weight: 650; } .note-main p { margin: 3px 0 6px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.note-main small { color: var(--text-3); font-size: 12.5px; }
.note-actions { display: flex; align-items: center; gap: 6px; flex: none; }
@media (max-width: 560px) { .note-row { flex-wrap: wrap; } .note-actions { width: 100%; justify-content: flex-end; } }

/* Support */
.ticket { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.ticket .reply { margin: 10px 0; padding: 12px 14px; border-radius: 12px; background: var(--primary-soft); }
.ticket .reply small { color: var(--primary); font-weight: 650; display: flex; align-items: center; gap: 6px; }
.ticket .reply p { margin: 4px 0 0; font-size: 14px; }
.contact-tile { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.contact-tile:hover { border-color: var(--primary); transform: translateY(-1px); }
.contact-tile b { display: block; font-weight: 650; word-break: break-all; }
.contact-tile small { color: var(--text-3); font-size: 13px; }

/* Legal pages */
.legal { max-width: 820px; margin: 0 auto; }
.legal-head { text-align: center; margin-bottom: 22px; }
.legal-head .hi.lg { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 12px; display: grid; place-items: center; }
.legal-head h1 { font: 700 1.8rem var(--font-display); }
.legal-sec { padding: 22px 26px; border-bottom: 1px solid var(--border); } .legal-sec:last-child { border-bottom: 0; }
.legal-sec h3 { font-size: 1rem; margin-bottom: 8px; } .legal-sec p { color: var(--text-2); line-height: 1.75; font-size: 14.5px; }

/* Register */
.reg-steps { display: flex; gap: 8px; margin: 0 0 22px; }
.reg-steps span { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--text-3); padding: 8px 12px; border-radius: 12px; background: var(--surface-2); }
.reg-steps i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--border-strong); color: #fff; flex: none; }
.reg-steps .on { color: var(--primary); background: var(--primary-soft); } .reg-steps .on i { background: var(--primary); }
.reg-steps .done { color: var(--success); background: var(--success-soft); } .reg-steps .done i { background: var(--success); }
.verify-row { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 16px; flex-wrap: wrap; }
.verify-row.verified { border-color: var(--success); background: var(--success-soft); }
.verify-row small { display: block; word-break: break-all; }
.otp-field { width: 130px; text-align: center; letter-spacing: .3em; font-weight: 700; }
@media (max-width: 520px) { .reg-steps span { font-size: 0; padding: 8px; justify-content: center; } .reg-steps i { font-size: 12px; } .otp-field { flex: 1; } }

/* Application engine */
.app-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; font: inherit; color: inherit; }
.app-row:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.app-row .ar-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .app-row .ar-main b { font-weight: 650; } .app-row .ar-main small { font-size: 12.5px; color: var(--text-2); }
.app-row .ar-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; } .app-row .ar-side small { color: var(--text-3); font-size: 12.5px; }
.result-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border-radius: 16px; background: var(--success-soft); border: 1px solid color-mix(in srgb, var(--success) 25%, transparent); }
.result-box small { display: block; color: var(--success); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; } .result-box b { font: 700 1.1rem var(--font-display); word-break: break-all; }
.doc-link { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; color: inherit; text-decoration: none; font-weight: 550; } .doc-link span { flex: 1; } .doc-link:hover { border-color: var(--primary); background: var(--primary-soft); }
.doc-link [data-lucide] { width: 18px; height: 18px; color: var(--primary); }

/* Recharge */
.rc-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 980px) { .rc-grid { grid-template-columns: 1fr; } }
.plan-list { display: flex; flex-direction: column; gap: 10px; max-height: 640px; overflow-y: auto; padding-right: 4px; }
.plan { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, background .15s; }
.plan:hover { border-color: var(--primary); } .plan.sel { border-color: var(--primary); background: var(--primary-soft); }
.plan .pl-amt { font: 700 1.25rem var(--font-display); color: var(--primary); min-width: 74px; }
.plan .pl-main { flex: 1; min-width: 0; } .plan .pl-main b { display: block; font-size: 14px; } .plan .pl-main small { display: block; color: var(--text-2); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.plan .pl-cat { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }

/* Fee strip */
.fee-strip { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; margin-bottom: 18px; font-size: 13.5px; border: 1px solid transparent; }
.fee-strip.ok { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 22%, transparent); }
.fee-strip.low { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 22%, transparent); }
.fee-strip [data-lucide] { width: 18px; height: 18px; }

/* Steps list */
.steps-list { list-style: none; padding: 0; margin: 0; counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; }
.steps-list li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.steps-list b { font-weight: 650; } .steps-list span { color: var(--text-2); font-size: 13.5px; line-height: 1.5; }

/* Fee box / choice columns */
.choices.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } @media (max-width: 640px) { .choices.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fee-box { border: 1px solid var(--border); border-radius: 16px; padding: 6px 18px; background: var(--surface-2); }
.fee-box > div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; } .fee-box > div:last-child { border-bottom: 0; }
.fee-box .total { font-weight: 700; font-size: 1.05rem; } .fee-box .total b { color: var(--primary); font-family: var(--font-display); }

/* Loader ring */
.loader { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--primary); animation: spin .8s linear infinite; margin: 0 auto; }
.plan-card .svc-ic { flex: none; }

/* Shop ledger */
.lg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } @media (max-width: 900px) { .lg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lg-stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); }
.lg-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.lg-stat small { display: block; color: var(--text-3); font-size: 12px; font-weight: 600; } .lg-stat b { font: 700 1.25rem var(--font-display); font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; padding: 4px; background: var(--surface-3); border-radius: 14px; gap: 4px; width: 100%; }
.seg button { flex: 1; padding: 10px 14px; border: 0; background: none; border-radius: 10px; font: 600 14px inherit; color: var(--text-2); cursor: pointer; display: inline-flex; gap: 8px; justify-content: center; align-items: center; transition: all .15s; }
.seg button.on { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.suggest { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); z-index: 20; overflow: hidden; }
.suggest button { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 14px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; } .suggest button:hover { background: var(--primary-soft); } .suggest small { color: var(--text-3); }
.item-row { display: grid; grid-template-columns: 1fr 80px 100px 36px; gap: 8px; align-items: center; }
@media (max-width: 560px) { .item-row { grid-template-columns: 1fr 64px 80px 32px; } }

/* Chat */
.chat { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.chat-msgs { height: 260px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; word-break: break-word; }
.msg small { display: block; font-size: 10.5px; font-weight: 700; opacity: .6; margin-bottom: 2px; }
.msg.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 5px; }
.msg.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.chat-send { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); background: var(--surface); }

/* Repeater */
.repeater { display: flex; flex-direction: column; gap: 10px; } .rp-list { display: flex; flex-direction: column; gap: 10px; }
.rp-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)) 36px; gap: 8px; align-items: end; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.rp-f span { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-3); margin-bottom: 4px; } .rp-f .input { padding: 9px 11px; font-size: 13.5px; }
.repeater > .btn { align-self: flex-start; }

/* CV templates gallery */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.tpl-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; } .tpl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tpl-prev { background: var(--surface-3); padding: 14px; display: flex; justify-content: center; }
.tpl-thumb { overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.14); border-radius: 4px; }
.tpl-info { padding: 14px 16px 16px; } .tpl-info b { display: block; } .tpl-info small { display: block; color: var(--text-3); font-size: 12.5px; margin-top: 2px; min-height: 32px; }

/* PVC / ID card studio */
.pvc-step { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; } .pvc-step i { font-style: normal; width: 28px; height: 28px; border-radius: 9px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; } .pvc-step b { display: block; } .pvc-step small { color: var(--text-3); font-size: 12.5px; }
.pvc-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-bottom: 14px; }
.pvc-doc { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 14px; font: 600 12px inherit; color: var(--text-2); cursor: pointer; transition: all .15s; } .pvc-doc [data-lucide] { width: 20px; height: 20px; color: var(--primary); } .pvc-doc:hover { border-color: var(--primary); } .pvc-doc.on { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-glow); } .pvc-doc.on [data-lucide] { color: #fff; }
.pvc-edit { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; } @media (max-width: 900px) { .pvc-edit { grid-template-columns: 1fr; } }
.pvc-crop { background: #0f1020; border-radius: 14px; overflow: hidden; min-height: 300px; max-height: 620px; } .pvc-crop img { max-width: 100%; display: block; }
.pvc-status { padding: 12px 14px; border-radius: 12px; background: var(--primary-soft); margin-bottom: 14px; } .pvc-status b { display: block; color: var(--primary); } .pvc-status span { font-size: 13px; color: var(--text-2); }
.pvc-rng { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; color: var(--text-2); font-weight: 600; } .pvc-rng input { width: 100%; accent-color: var(--primary); }
.pvc-prev { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } @media (max-width: 700px) { .pvc-prev { grid-template-columns: 1fr; } } .pvc-prev canvas { width: 100%; height: auto; aspect-ratio: 85.6 / 53.98; border: 1px dashed var(--border-strong); border-radius: 12px; background: repeating-conic-gradient(var(--surface-3) 0% 25%, var(--surface) 0% 50%) 50% / 20px 20px; } .pvc-prev small { font-weight: 700; color: var(--text-3); letter-spacing: .08em; display: block; margin-bottom: 6px; }
.tool-drop.drag { border-color: var(--primary); background: var(--primary-soft); }

/* Tools */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 16px; }
.tool-item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; } .tool-item img { width: 100%; height: 150px; object-fit: contain; background: repeating-conic-gradient(var(--surface-3) 0% 25%, var(--surface) 0% 50%) 50% / 18px 18px; }
.ti-meta { padding: 10px 12px 4px; min-width: 0; } .ti-meta b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ti-meta small { color: var(--text-3); font-size: 12px; }
.ti-act { display: flex; gap: 4px; padding: 6px 10px 12px; justify-content: flex-end; flex-wrap: wrap; }
.field [data-seg], .seg[data-seg] { width: auto; }

/* Photo tools */
.bg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } @media (max-width: 760px) { .bg-grid { grid-template-columns: 1fr; } } .bg-view { border-radius: 12px; overflow: hidden; min-height: 200px; display: grid; place-items: center; background: var(--surface-3); } .bg-view img { max-width: 100%; max-height: 460px; display: block; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border-strong); cursor: pointer; padding: 0; } .swatch.on { outline: 3px solid var(--primary); outline-offset: 2px; }
.pp-prev { min-height: 200px; }

.bn-out { padding: 16px 18px; border-radius: 14px; background: var(--primary-soft); font-size: 1.35rem; line-height: 1.7; word-break: break-word; min-height: 60px; }

/* Invoice editor */
.inv-item { display: grid; grid-template-columns: minmax(0, 2fr) 90px 70px 100px 80px 36px; gap: 8px; align-items: center; } @media (max-width: 700px) { .inv-item { grid-template-columns: 1fr 1fr; } .inv-item > :first-child { grid-column: span 2; } }

/* YouTube */
.yt-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden; } .yt-frame iframe, .yt-frame > div { position: absolute; inset: 0; width: 100%; height: 100%; }
.yt-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); } .yt-row:last-child { border-bottom: 0; } .yt-row img { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; } .yt-row b { display: block; font-size: 13px; line-height: 1.35; } .yt-row small { color: var(--text-3); font-size: 12px; }

/* Incoming call */
.incoming-call { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); min-width: min(92vw, 420px); animation: pop .3s var(--ease); } .incoming-call small { display: block; color: var(--text-3); font-size: 12.5px; }
.ic-ring { width: 42px; height: 42px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; animation: ring 1s infinite; } @keyframes ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(14deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(8deg); } }
.call-page { background: linear-gradient(160deg, #1e1b4b, #4338ca 55%, #7c3aed); min-height: 100vh; }
.call-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; } .call-card { text-align: center; color: #fff; width: min(100%, 380px); }
.call-avatar { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.3); } .call-avatar [data-lucide] { width: 52px; height: 52px; } .ringing .call-avatar { animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.4); } 70% { box-shadow: 0 0 0 30px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.call-name { font: 700 1.7rem var(--font-display); } .call-state { opacity: .85; margin-top: 6px; min-height: 22px; }
.call-actions { display: flex; gap: 22px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }
.call-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; color: #fff; font: 600 13px inherit; cursor: pointer; text-decoration: none; } .call-btn i, .call-btn [data-lucide] { width: 64px; height: 64px; padding: 19px; border-radius: 50%; background: rgba(255,255,255,.16); transition: transform .15s; } .call-btn:active [data-lucide] { transform: scale(.92); }
.call-btn.accept [data-lucide] { background: #22c55e; } .call-btn.decline [data-lucide] { background: #ef4444; } .call-btn.on [data-lucide] { background: #fff; color: #4338ca; }

/* Narrow phones */
@media (max-width: 520px) { .topbar { padding-left: 12px; padding-right: 12px; } .hide-mobile-title, .topbar-title { display: none; } .wallet-pill .plus { display: none; } .wallet-pill { padding-right: 12px; } }
.hero-right { position: relative; } .app-hero .grow { min-width: 0; }
@media (max-width: 640px) { .app-hero { flex-wrap: wrap; padding: 18px; } .app-hero .grow { flex: 1 1 150px; } .app-hero h1 { font-size: 1.25rem; } .hero-right { width: 100%; } .hero-right > .flex.col { flex-direction: row; justify-content: space-between; align-items: center !important; width: 100%; } }

/* Floating operator chat (Aadhaar Mobile Link) */
.lc { position: fixed; right: 20px; bottom: 20px; width: 340px; max-width: calc(100vw - 24px); z-index: 90; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(79, 70, 229, .08); overflow: hidden; display: flex; flex-direction: column; animation: lc-in .25s var(--ease); }
.lc[hidden] { display: none; }
@keyframes lc-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.lc-head { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: var(--grad-brand); color: #fff; cursor: pointer; user-select: none; }
.lc-ic { width: 34px; height: 34px; border-radius: 11px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; flex: none; } .lc-ic svg { width: 18px; height: 18px; }
.lc-title { min-width: 0; flex: 1; line-height: 1.25; } .lc-title b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lc-title small { display: block; font-size: 11.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff; font: 700 11px/20px var(--font-sans); text-align: center; } .lc-badge[hidden] { display: none; }
.lc-btn { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; } .lc-btn:hover { background: rgba(255, 255, 255, .22); } .lc-btn svg { width: 16px; height: 16px; }
.lc-body { display: flex; flex-direction: column; } .lc.min .lc-body { display: none; }
.lc-msgs { height: 320px; max-height: 52vh; overflow-y: auto; padding: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.lc-empty { margin: auto; text-align: center; color: var(--text-3); font-size: 12.5px; padding: 0 14px; }
.lc-m { display: flex; flex-direction: column; max-width: 86%; } .lc-m.me { align-self: flex-end; align-items: flex-end; } .lc-m.them { align-self: flex-start; }
.lc-from { font-size: 11px; color: var(--text-3); background: var(--surface); border-radius: 8px 8px 0 0; padding: 3px 9px 0; }
.lc-bub { padding: 8px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; word-break: break-word; }
.lc-m.them .lc-bub { background: var(--primary-soft); color: var(--text); border-top-left-radius: 6px; } .lc-m.me .lc-bub { background: var(--primary-soft-2); color: var(--text); border-top-right-radius: 6px; }
.lc-bub audio { max-width: 100%; height: 34px; }
.lc-time { font-size: 10.5px; color: var(--text-3); margin-top: 3px; padding: 0 4px; }
.lc-send { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); background: var(--surface); }
.lc-input { flex: 1; min-width: 0; border: 1px solid var(--border-strong, var(--border)); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14px; background: var(--surface); color: var(--text); } .lc-input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.lc-go { width: 42px; border: 0; border-radius: 12px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-glow); } .lc-go svg { width: 18px; height: 18px; }
@media (max-width: 1024px) { .lc { right: 12px; bottom: 92px; } }
@media (max-width: 480px) { .lc { left: 12px; right: 12px; width: auto; max-width: none; } }
