/* The Modaam design system (docs/design-system.md), as the PWA wears it: light only, flat, one
   blue accent on near-black ink, Vazirmatn, right to left. */

/* The same four Vazirmatn faces the Android app ships (res/font), as TrueType: no build step, no converter. */
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Colours live in palettes.css, one block per scheme; these never change with the scheme. */
  --pass: #1E7B4F;
  --pass-deep: #155A3A;
  --pass-soft: #E6F4EC;
  --fail: #B42318;
  --fail-deep: #8A1A11;
  --fail-soft: #FDECEA;
  --warn: #7A4E00;
  --warn-soft: #FBF0D9;
  --radius-card: 20px;
  --bar-height: 68px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

body { min-height: 100dvh; }

button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--link); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; text-align: right; }
/* Proportional digits, as the Android app draws them: Vazirmatn's tabular Persian digits sit too far apart. */
.num { font-variant-numeric: normal; }
.noscript { padding: 24px; text-align: center; }

.app { min-height: 100dvh; display: flex; flex-direction: column; }

/* ─── Screens ───────────────────────────────────────────────────────── */
.screen { flex: 1; display: flex; flex-direction: column; min-height: 100dvh; }
.screen.with-bar { padding-bottom: calc(var(--bar-height) + 26px + var(--safe-bottom)); }
.content { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.content.narrow { max-width: 560px; width: 100%; margin: 0 auto; }

.topbar {
  position: sticky; top: 0; z-index: 5;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: calc(10px + var(--safe-top)) 12px 10px;
  display: flex; align-items: center; gap: 8px;
}
.topbar h1 { font-size: 18px; font-weight: 700; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .sub { font-size: 12px; color: var(--muted); }
.topbar.plain { background: transparent; border: 0; position: static; }

/* ─── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 24px; border-radius: 16px;
  font-size: 17px; font-weight: 600; white-space: nowrap;
  background: var(--brand); color: #fff; transition: opacity .15s, transform .05s;
}
.btn:active { transform: scale(.985); }
.btn.block { width: 100%; }
.btn.sm { height: 48px; font-size: 15px; border-radius: 14px; padding: 0 18px; }
.btn.xs { height: 40px; font-size: 13px; border-radius: 12px; padding: 0 14px; }
.btn.dark { background: var(--brand-deep); }
.btn.crema { background: var(--crema); color: var(--on-crema); }
.btn.soft { background: var(--crema-soft); color: var(--accent); }
.btn.outlined { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn.danger { background: var(--surface); color: var(--fail); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn.on-ink { background: var(--hero-secondary); color: #fff; box-shadow: inset 0 0 0 1px var(--hero-border); }
.btn:disabled, .btn.disabled { background: var(--disabled); color: var(--on-disabled); box-shadow: none; cursor: default; }
.btn .spinner { width: 20px; height: 20px; border-width: 2px; border-color: currentColor transparent currentColor currentColor; }
.btn svg { width: 20px; height: 20px; flex: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--background); color: var(--muted); flex: none;
}
.icon-btn.ink { color: var(--ink); }
.icon-btn.ghost { background: transparent; }
.icon-btn.on-dark { background: rgba(255,255,255,.14); color: #fff; }
.icon-btn svg { width: 20px; height: 20px; }
.text-btn { color: var(--link); font-weight: 600; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; border-radius: 10px; }
.text-btn.body { color: var(--body); }

/* ─── Cards and rows ────────────────────────────────────────────────── */
.card { background: var(--surface); border-radius: var(--radius-card); padding: 16px 18px; }
.card.tight { padding: 0; overflow: hidden; }
.card.r18 { border-radius: 18px; }
.card.clickable { display: block; width: 100%; text-align: start; color: inherit; }
.section-head { display: flex; align-items: center; justify-content: space-between; }
.section-head h2 { font-size: 16px; font-weight: 700; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; min-height: 64px; width: 100%; text-align: start; color: inherit; }
.row + .row, .row + .divider { border-top: 1px solid var(--line-soft); }
.row .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row .title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub { font-size: 13px; color: var(--muted); }
.row .end { text-align: start; display: flex; flex-direction: column; align-items: flex-end; }
.row .end .amount { font-size: 15px; font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.row .end .unit { font-size: 11px; color: var(--muted); }
.row .end .amount.pos { color: var(--pass); }
/* A chevron or other icon placed straight in a row (the company panel's menus, the invoices, «بیشتر»). */
.row > svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
/* Settings: the colour schemes */
.palette-list { display: flex; flex-direction: column; gap: 10px; }
.palette { display: flex; align-items: center; gap: 14px; width: 100%; text-align: start; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); }
.palette.selected { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.palette .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.palette .name { font-size: 15px; font-weight: 600; }
.palette .mood { font-size: 13px; color: var(--muted); }
.palette .swatch { display: flex; gap: 5px; padding: 8px; border-radius: 14px; flex: none; }
.palette .swatch i { width: 16px; height: 16px; border-radius: 50%; display: block; }
.palette .radio { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-strong); display: flex; align-items: center; justify-content: center; flex: none; }
.palette.selected .radio { background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); color: #fff; }
.palette .radio svg { width: 14px; height: 14px; }
.settings-hint { font-size: 13px; color: var(--muted); margin: -4px 0 12px; }
.divider { height: 1px; background: var(--line-soft); margin: 0 16px; }
.badge {
  width: 44px; height: 44px; border-radius: 14px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--line-soft); color: var(--body);
}
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.pass { background: var(--pass-soft); color: var(--pass); }
.badge.fail { background: var(--fail-soft); color: var(--fail); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.sm { width: 40px; height: 40px; border-radius: 12px; }
.badge.lg { width: 52px; height: 52px; border-radius: 16px; }
.badge svg { width: 48%; height: 48%; }
.thumb { width: 46px; height: 46px; border-radius: 14px; background: var(--line-soft); object-fit: cover; flex: none; display: flex; align-items: center; justify-content: center; color: var(--body); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 22px; height: 22px; }
.fact { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; gap: 12px; }
.fact + .fact { border-top: 1px solid var(--line-soft); }
.fact .label { color: var(--muted); font-size: 14px; }
.fact .value { font-weight: 600; font-size: 15px; text-align: left; }
.fact .value.pass { color: var(--pass); }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--line-soft); color: var(--body); white-space: nowrap; }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.pill.fail { background: var(--fail-soft); color: var(--fail); }
.pill.pass { background: var(--pass-soft); color: var(--pass); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.sm { height: 22px; font-size: 11px; padding: 0 8px; }
.pill.lg { height: 30px; font-size: 13px; }
.pill svg { width: 14px; height: 14px; }

.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--line-soft); color: var(--body); font-size: 14px; font-weight: 500; }
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.notice .ntitle { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.notice .nfoot { font-size: 12px; color: var(--muted); margin-top: 4px; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.fail { background: var(--fail-soft); color: var(--fail-deep); }
.notice.accent { background: var(--accent-soft); color: var(--accent); }
.notice.pass { background: var(--pass-soft); color: var(--pass-deep); }

/* ─── Forms ─────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field input {
  height: 56px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface);
  padding: 0 14px; font-size: 17px; outline: none; width: 100%;
}
.field input:focus { border-color: var(--accent); }
.field input.error { border-color: var(--fail); color: var(--fail); }
.field input.ltr { direction: ltr; text-align: left; }
.field input.center { text-align: center; font-size: 24px; font-weight: 700; height: 64px; letter-spacing: .25em; }
.field .hint { font-size: 13px; color: var(--muted); }
.field .hint.error { color: var(--fail); }
.segments { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--line-soft); }
.segments button { flex: 1; height: 40px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--body); }
.segments button.active { background: var(--surface); color: var(--ink); font-weight: 700; }
.chips { display: flex; gap: 8px; }
.chips button { flex: 1; height: 44px; border-radius: 12px; background: var(--background); color: var(--body); font-weight: 500; font-size: 14px; }
.chips button.active { background: var(--brand); color: #fff; font-weight: 700; }
.error-banner { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--fail-soft); color: var(--fail-deep); font-size: 14px; font-weight: 500; }
.error-banner svg { width: 20px; height: 20px; color: var(--fail); flex: none; }
.ok-line { color: var(--pass); font-size: 13px; font-weight: 500; }

/* ─── Sign-in ───────────────────────────────────────────────────────── */
.signin { background: var(--surface); min-height: 100dvh; display: flex; flex-direction: column; }
.brand-panel {
  margin: calc(16px + var(--safe-top)) 16px 0; border-radius: 32px; background: var(--brand-gradient); color: #fff; position: relative; overflow: hidden;
  height: min(30dvh, 260px); display: flex; align-items: center; justify-content: center;
}
.brand-panel .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); }
.brand-panel img { height: 104px; filter: brightness(0) invert(1); position: relative; }
.brand-panel .promise { position: absolute; bottom: 20px; right: 28px; }
.brand-panel .promise b { display: block; font-size: 22px; font-weight: 700; }
.brand-panel .promise span { font-size: 13px; color: var(--on-ink-muted); }
.signin-form { padding: 24px; display: flex; flex-direction: column; gap: 24px; max-width: 420px; width: 100%; margin: 0 auto; }
.brand-line { display: flex; align-items: center; gap: 12px; }
.brand-line .mark { width: 44px; height: 44px; border-radius: 14px; background: var(--brand); display: flex; align-items: center; justify-content: center; }
.brand-line .mark img { height: 27px; filter: brightness(0) invert(1); }
.brand-line b { font-size: 19px; font-weight: 700; display: block; }
.brand-line span { font-size: 13px; color: var(--muted); }
.title-xl { font-size: 28px; font-weight: 700; }
.lead { font-size: 14px; color: var(--muted); line-height: 1.9; text-align: justify; }
.lead.center { text-align: center; }
@media (max-height: 640px) { .brand-panel { display: none; } }
@media (min-width: 840px) {
  .signin { flex-direction: row-reverse; }
  .brand-panel { flex: 1; height: auto; margin: 16px 16px 16px 0; }
  .brand-panel img { height: 236px; }
  .signin-form { width: 560px; padding: 48px; justify-content: center; }
}

/* ─── Home ──────────────────────────────────────────────────────────── */
.home-head { display: flex; align-items: center; gap: 12px; padding-top: calc(14px + var(--safe-top)); }
.home-head .mark { width: 44px; height: 44px; border-radius: 14px; background: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.home-head .mark img { height: 27px; filter: brightness(0) invert(1); }
.home-head .who { flex: 1; min-width: 0; }
.home-head .who b { font-size: 19px; font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-head .who span { font-size: 13px; color: var(--muted); }
.wallet-card { background: var(--brand-gradient); color: #fff; border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.wallet-card .label { display: flex; align-items: center; gap: 8px; color: var(--on-ink-muted); font-size: 13px; font-weight: 500; }
.wallet-card .label svg { width: 18px; height: 18px; }
.wallet-card .label .pill { margin-inline-start: auto; }
.wallet-card .amount { display: flex; align-items: flex-end; gap: 6px; }
.wallet-card .amount b { font-size: 36px; font-weight: 700; line-height: 1.2; }
.wallet-card .amount span { font-size: 14px; color: var(--on-ink-muted); padding-bottom: 8px; }
.scan-cta { display: flex; align-items: center; gap: 14px; width: 100%; background: var(--crema); color: var(--on-crema); border-radius: 16px; padding: 14px 18px; text-align: start; }
.scan-cta svg { width: 30px; height: 30px; flex: none; }
.scan-cta .chev { width: 20px; height: 20px; }
.scan-cta b { display: block; font-size: 17px; font-weight: 700; }
.scan-cta span { font-size: 12px; color: var(--on-crema); opacity: .8; }
.scan-cta .grow { flex: 1; }
.wallet-card .actions { display: flex; gap: 10px; }
.wallet-card .actions .btn { flex: 1; height: 46px; font-size: 14px; border-radius: 14px; padding: 0 12px; }
.credits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.credit { background: var(--surface); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.credit .top { display: flex; align-items: center; gap: 10px; }
.credit .name { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credit .val { display: flex; align-items: flex-end; gap: 4px; }
.credit .val b { font-size: 18px; font-weight: 700; }
.credit .val span { font-size: 11px; color: var(--muted); padding-bottom: 3px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { background: var(--surface); border-radius: 18px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.tile .badge { width: 46px; height: 46px; }
.tile span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ─── Bottom bar ────────────────────────────────────────────────────── */
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; }
.bottom-bar .bar { margin-top: 18px; border-top: 1px solid var(--line); background: var(--surface); height: calc(var(--bar-height) + var(--safe-bottom)); padding-bottom: var(--safe-bottom); display: flex; align-items: center; }
.bottom-bar .tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 600; height: 100%; justify-content: center; }
.bottom-bar .tab.active { color: var(--link); font-weight: 700; }
.bottom-bar .tab { position: relative; }
.bottom-bar .tab .dot { position: absolute; top: 8px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--fail); }
.bottom-bar .tab svg { width: 24px; height: 24px; }
.bottom-bar .tab.hole span { padding-top: 30px; }
.bottom-bar .scan { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: var(--crema); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px var(--background); }
.bottom-bar .scan svg { width: 30px; height: 30px; }

/* ─── Scanner ───────────────────────────────────────────────────────── */
.scanner { background: #000; color: #fff; min-height: 100dvh; position: relative; display: flex; flex-direction: column; }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; top: 50%; left: 50%; width: 68vw; max-width: 360px; aspect-ratio: 1; transform: translate(-50%, -50%); border: 3px solid rgba(255,255,255,.9); border-radius: 28px; }
.scanner .over-top { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; padding: calc(10px + var(--safe-top)) 12px 10px; }
.scanner .over-top h1 { flex: 1; font-size: 17px; font-weight: 700; }
.scanner .over-bottom { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 24px 24px calc(24px + var(--safe-bottom)); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; font-size: 14px; font-weight: 500; }
.scanner.denied { background: var(--background); color: var(--ink); }
.state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 6px; max-width: 400px; margin: 0 auto; }
.state .badge { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 8px; }
.state h2 { font-size: 17px; font-weight: 600; }
.state p { font-size: 14px; color: var(--muted); }
.state .actions { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; width: 100%; }
.spinner { width: 32px; height: 32px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--muted); min-height: 240px; }

/* ─── Payment sheet ─────────────────────────────────────────────────── */
.wallet-option { display: flex; align-items: center; gap: 14px; width: 100%; text-align: start; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 16px; color: var(--ink); }
.wallet-option.selected { background: var(--accent-soft); border-color: var(--accent); }
.wallet-option.off { background: var(--line-soft); color: var(--on-disabled); cursor: default; }
.wallet-option .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wallet-option .name { font-size: 15px; font-weight: 600; }
.wallet-option .bal { font-size: 13px; color: var(--muted); }
.wallet-option .radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center; flex: none; }
.wallet-option.selected .radio { background: var(--accent); border-color: var(--accent); color: #fff; }
.wallet-option .radio svg { width: 14px; height: 14px; }
.sticky-actions { position: sticky; bottom: 0; background: var(--surface); padding: 16px 16px calc(16px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); }
.item-head { display: flex; align-items: center; gap: 14px; }
.item-head .thumb { width: 64px; height: 64px; }
.item-head .main { flex: 1; min-width: 0; }
.item-head .main b { font-size: 17px; font-weight: 700; display: block; }
.item-head .main span { font-size: 13px; color: var(--muted); }
.item-head .price { text-align: left; }
.item-head .price b { font-size: 22px; font-weight: 700; display: block; }
.item-head .price span { font-size: 12px; color: var(--muted); }
.receipt-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding-top: calc(24px + var(--safe-top)); }
.receipt-head .badge { width: 84px; height: 84px; border-radius: 50%; }
.receipt-head h1 { font-size: 24px; font-weight: 700; color: var(--pass-deep); }
.receipt-head p { color: var(--body); font-weight: 500; padding: 0 12px; }

/* ─── Misc ──────────────────────────────────────────────────────────── */
.package { display: flex; align-items: center; gap: 14px; width: 100%; text-align: start; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 16px; color: var(--ink); }
.package.selected { background: var(--accent-soft); border-color: var(--accent); }
.package .radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center; flex: none; }
.package.selected .radio { background: var(--accent); border-color: var(--accent); color: #fff; }
.package .radio svg { width: 14px; height: 14px; }
.package .main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.package .main b { font-size: 15px; font-weight: 700; }
.package .main span { font-size: 12px; color: var(--muted); }
.package .price { text-align: left; }
.package .price b { font-size: 16px; font-weight: 700; display: block; }
.package .price span { font-size: 11px; color: var(--muted); }
.version { text-align: center; font-size: 12px; color: var(--muted); padding: 8px 0 24px; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(96px + var(--safe-bottom)); z-index: 20; background: var(--brand-deep); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 15px; font-weight: 500; max-width: 560px; margin: 0 auto; box-shadow: 0 8px 24px rgba(20,24,31,.18); }
.toast[hidden] { display: none; }
.dialog-backdrop { position: fixed; inset: 0; background: rgba(46,25,1,.5); z-index: 30; display: flex; align-items: center; justify-content: center; padding: 24px; }
.dialog { background: var(--surface); border-radius: 24px; padding: 24px; width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 12px; }
.dialog h2 { font-size: 20px; font-weight: 700; }
.dialog p { color: var(--body); font-size: 15px; }
.dialog .actions { display: flex; gap: 12px; margin-top: 10px; }
.dialog .actions .btn { flex: 1; height: 52px; font-size: 16px; }
.install-hint { display: flex; gap: 12px; align-items: flex-start; }
.install-hint .x { margin-inline-start: auto; }
.empty-text { font-size: 14px; color: var(--muted); padding: 14px 18px; }
.profile-card { display: flex; align-items: center; gap: 14px; }
.profile-card .main { flex: 1; min-width: 0; }
.profile-card b { font-size: 17px; font-weight: 700; display: block; }
.profile-card span { font-size: 13px; color: var(--muted); display: block; }
.profile-card svg.chev { width: 20px; height: 20px; color: var(--muted); }
.list-stack { display: flex; flex-direction: column; gap: 10px; }
.balances .row { min-height: 56px; padding: 12px 0; }
.balances .row .title { font-weight: 500; color: var(--body); font-size: 14px; }
.mt-auto { margin-top: auto; }
.center { text-align: center; }
