/* ==========================================================================
   عزيمة — واجهة المستخدم (العازم والمعزوم)
   Deep brown surfaces, gold hairlines and a wallet-card identity.
   CSP-safe: no inline styles; proportions use .w-* / .h-* / .p-* (steps of 5);
   ornaments are local SVG files in ../img/.
   ========================================================================== */

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../../admin/fonts/IBMPlexSansArabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../../admin/fonts/IBMPlexSansArabic-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../../admin/fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype");
  font-weight: 600 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --font: "IBM Plex Sans Arabic", Tahoma, sans-serif;

  /* Browns */
  --bg: #2b1b11;
  --bg-deep: #25170e;
  --bg-deeper: #1d120a;
  --surface: #36241a;
  --surface-2: #3f2a1e;
  --surface-3: #4b3325;
  --field: #24170f;

  /* Gold */
  --gold: #dcb46e;
  --gold-soft: #efd6a4;
  --gold-deep: #a97a3a;
  --gold-grad: linear-gradient(120deg, #f4dfae 0%, #d6a85c 38%, #f1d69e 64%, #b3833f 100%);
  --gold-glow: rgb(220 180 110 / 22%);
  --ink: #23150b;

  /* Text */
  --text: #f7ede0;
  --text-2: #d2bea8;
  --text-3: #a08771;

  /* Lines */
  --line: rgb(220 180 110 / 15%);
  --line-soft: rgb(247 237 224 / 7%);
  --line-strong: rgb(220 180 110 / 38%);

  /* States (tuned for dark surfaces) */
  --green: #93d3a9;
  --green-bg: rgb(147 211 169 / 12%);
  --amber: #f0c46e;
  --amber-bg: rgb(240 196 110 / 13%);
  --blue: #a9c6e6;
  --blue-bg: rgb(169 198 230 / 12%);
  --red: #f2a79c;
  --red-bg: rgb(242 167 156 / 12%);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 0 rgb(255 255 255 / 4%) inset, 0 10px 24px -16px rgb(0 0 0 / 60%);
  --shadow-md: 0 1px 0 rgb(255 255 255 / 5%) inset, 0 24px 44px -24px rgb(0 0 0 / 75%);
  --shadow-lg: 0 40px 80px -36px rgb(0 0 0 / 85%);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
/* Warm, lamp-lit ambience behind every page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 88% -8%, rgb(220 160 80 / 13%), transparent 70%),
    radial-gradient(700px 520px at -10% 108%, rgb(150 90 45 / 22%), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #26170e 100%);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
strong {
  font-weight: 600;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
::selection {
  background: rgb(220 180 110 / 35%);
  color: var(--text);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.numeric {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.money {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
  font-weight: 600;
}
.money .currency {
  font-size: 0.72em;
  font-weight: 500;
  opacity: 0.72;
}
.gold-text,
.money.hero,
.money.kpi-value,
.money.total {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.money.hero .currency,
.money.kpi-value .currency,
.money.total .currency {
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
}
.clamp-1,
.clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.clamp-1 {
  -webkit-line-clamp: 1;
}
.clamp-2 {
  -webkit-line-clamp: 2;
}
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}
.container.narrow {
  max-width: 820px;
}
.skip-link {
  position: fixed;
  top: -100px;
  inset-inline-start: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--gold);
}
.kicker .icon {
  width: 16px;
  height: 16px;
}

/* ---------- Demo ribbon ---------- */
.demo-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-deeper);
  color: var(--text-2);
  font-size: 12.5px;
  text-align: center;
}
.demo-ribbon .icon {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

/* ---------- Logo ---------- */
.logo {
  display: inline-grid;
  justify-items: center;
  line-height: 1;
}
.logo-word {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 2px;
}
.logo-latin {
  margin-top: 3px;
  padding-inline-start: 0.42em;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--gold);
  direction: ltr;
}
.logo.small .logo-word {
  font-size: 24px;
}
.logo.small .logo-latin {
  font-size: 7.5px;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.2s var(--ease),
    box-shadow 0.2s,
    filter 0.2s;
}
.btn .icon {
  width: 18px;
  height: 18px;
}
.btn.primary {
  background: var(--gold-grad);
  background-size: 160% 100%;
  color: var(--ink);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 45%) inset,
    0 14px 30px -14px rgb(220 170 90 / 70%);
}
.btn.primary:hover {
  background-position: 100% 0;
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.btn.outline {
  border-color: var(--line-strong);
  color: var(--gold-soft);
  background: rgb(220 180 110 / 4%);
}
.btn.outline:hover {
  border-color: var(--gold);
  background: rgb(220 180 110 / 10%);
}
.btn.ghost {
  background: transparent;
  color: var(--text-2);
}
.btn.ghost:hover {
  background: var(--line-soft);
  color: var(--text);
}
.btn.ghost.danger {
  color: var(--red);
}
.btn.ghost.danger:hover {
  background: var(--red-bg);
}
.btn.light {
  background: var(--text);
  color: var(--ink);
}
.btn.light:hover {
  background: #fff;
  transform: translateY(-1px);
}
.btn.large {
  min-height: 52px;
  padding: 0 26px;
  font-size: 15.5px;
}
.btn.small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}
/* .block is also a section wrapper; keep the button a flex row. */
.btn.block {
  display: flex;
  gap: 8px;
  width: 100%;
}
.btn:disabled,
.btn.is-busy {
  opacity: 0.65;
  cursor: progress;
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
}
.link .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}
.link:hover .icon {
  transform: translateX(-3px);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--text-3);
  font-size: 13.5px;
  font-weight: 500;
}
.back-link .icon {
  width: 16px;
  height: 16px;
}
.back-link:hover {
  color: var(--gold);
}

/* ---------- Chips & avatars ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: rgb(220 180 110 / 12%);
  color: var(--gold-soft);
}
.chip .icon {
  width: 14px;
  height: 14px;
}
.chip.large {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
}
.chip.success {
  background: var(--green-bg);
  border-color: rgb(147 211 169 / 18%);
  color: var(--green);
}
.chip.warning {
  background: var(--amber-bg);
  border-color: rgb(240 196 110 / 20%);
  color: var(--amber);
}
.chip.info {
  background: var(--blue-bg);
  border-color: rgb(169 198 230 / 18%);
  color: var(--blue);
}
.chip.neutral {
  background: var(--line-soft);
  border-color: var(--line-soft);
  color: var(--text-2);
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, var(--surface-3), var(--bg-deep));
  color: var(--gold-soft);
  font-weight: 700;
  line-height: 1;
}
.avatar.small {
  width: 34px;
  height: 34px;
  font-size: 14px;
}
.avatar.xl {
  width: 88px;
  height: 88px;
  font-size: 34px;
}

/* ---------- Public header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgb(31 19 11 / 72%);
  backdrop-filter: blur(16px) saturate(1.2);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.site-header.is-scrolled {
  border-color: var(--line);
  background: rgb(31 19 11 / 88%);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}
.site-nav {
  display: flex;
  gap: 6px;
}
.site-nav a {
  position: relative;
  padding: 8px 14px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.site-nav a:hover {
  color: var(--gold-soft);
}
.site-nav a:hover::after {
  transform: scaleX(1);
}
.site-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Hero (scoped: .money.hero is a different component) ---------- */
section.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(40px, 7vw, 92px) 0 clamp(56px, 8vw, 110px);
  background:
    radial-gradient(3px 3px at 72% 18%, rgb(255 222 160 / 70%), transparent),
    radial-gradient(2px 2px at 84% 64%, rgb(255 222 160 / 55%), transparent),
    radial-gradient(2px 2px at 58% 82%, rgb(255 222 160 / 45%), transparent),
    radial-gradient(160px 160px at 76% 22%, rgb(240 190 110 / 16%), transparent 70%),
    radial-gradient(240px 240px at 92% 76%, rgb(240 190 110 / 10%), transparent 70%),
    radial-gradient(900px 600px at 20% 10%, rgb(120 72 38 / 45%), transparent 70%);
}
/* Geometric lattice fading from the top corner. */
section.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto auto;
  width: min(760px, 70%);
  height: 100%;
  background: url("../img/pattern.svg") repeat;
  background-size: 64px;
  opacity: 0.09;
  -webkit-mask-image: radial-gradient(circle at 100% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 100% 0%, #000 0%, transparent 70%);
}
section.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 42%;
  background: url("../img/waves.svg") no-repeat center bottom / 100% 100%;
  opacity: 0.55;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
section.hero h1 {
  margin: 16px 0 20px;
  font-size: clamp(32px, 4.3vw, 54px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -1px;
  color: var(--text);
}
.lead {
  max-width: 560px;
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.95;
  color: var(--text-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-2);
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-points .icon {
  width: 16px;
  height: 16px;
  color: var(--gold);
}
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(230 180 100 / 26%), transparent 65%);
  filter: blur(10px);
}

/* Phone mock-up */
.phone {
  display: grid;
  gap: 14px;
  width: min(350px, 100%);
  padding: 12px 14px 20px;
  border: 1px solid rgb(220 180 110 / 30%);
  border-radius: 46px;
  background: linear-gradient(180deg, #1a100a, #120a05);
  box-shadow:
    0 0 0 9px #0f0804,
    0 0 0 10px rgb(220 180 110 / 22%),
    var(--shadow-lg);
  animation: rise 0.8s var(--ease) both;
}
.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 14px 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  direction: ltr;
}
.phone-notch {
  width: 86px;
  height: 22px;
  border-radius: 999px;
  background: #000;
}
.phone-signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.phone-signal i {
  display: block;
  width: 3px;
  border-radius: 1px;
  background: var(--text);
}
.phone-signal i:nth-child(1) {
  height: 5px;
}
.phone-signal i:nth-child(2) {
  height: 8px;
}
.phone-signal i:nth-child(3) {
  height: 11px;
}
.phone-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gold-soft);
  font-size: 13.5px;
  font-weight: 500;
}
.phone-top .icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
}
.phone-cta {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.float-card {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgb(54 36 26 / 82%);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
.float-card .icon {
  width: 18px;
  height: 18px;
  color: var(--green);
}
.float-card.one {
  top: 20%;
  inset-inline-start: -2%;
}
.float-card.two {
  bottom: 16%;
  inset-inline-end: -4%;
  animation-delay: -3s;
}
.float-card.two .icon {
  color: var(--gold);
}

/* ---------- Occasion themes (card palettes) ---------- */
/* Any element with a theme-* class receives the palette as variables; :root holds the defaults. */
:root,
.wallet,
.theme-classic {
  --w-1: #3d2819;
  --w-2: #1e120a;
  --w-edge: rgb(220 180 110 / 55%);
  --w-text: #f7ede0;
  --w-muted: #d2bea8;
  --w-solid: #dcb46e;
  --w-grad: var(--gold-grad);
  --w-line: rgb(220 180 110 / 18%);
  --w-art: 1;
}
.theme-ramadan {
  --w-1: #155846;
  --w-2: #06241c;
  --w-muted: #b9d3c4;
  --w-text: #f2efe4;
  --w-solid: #e2c07a;
  --w-line: rgb(226 192 122 / 22%);
}
.theme-eid {
  --w-1: #26375f;
  --w-2: #0b1330;
  --w-muted: #bcc6dc;
  --w-text: #f1f0ea;
  --w-solid: #e6c27a;
  --w-line: rgb(230 194 122 / 22%);
}
.theme-wedding {
  --w-1: #fdf8f0;
  --w-2: #eadcc6;
  --w-edge: rgb(169 122 58 / 55%);
  --w-text: #3a2a1c;
  --w-muted: #7d6650;
  --w-solid: #a97a3a;
  --w-grad: linear-gradient(120deg, #c19550 0%, #8a5f24 45%, #c9a15a 70%, #7a5526 100%);
  --w-line: rgb(169 122 58 / 24%);
  --w-art: 0.55;
}
.theme-graduation {
  --w-1: #273049;
  --w-2: #0b0e17;
  --w-muted: #aab2c4;
  --w-text: #f1efe8;
  --w-solid: #e8d3a3;
  --w-grad: linear-gradient(120deg, #fbf0d4 0%, #d9c08a 40%, #f4e4bb 65%, #b89a5c 100%);
  --w-line: rgb(232 211 163 / 22%);
}
.theme-newborn {
  --w-1: #f1f5ee;
  --w-2: #cddbc8;
  --w-edge: rgb(92 122 96 / 45%);
  --w-text: #243326;
  --w-muted: #5f735f;
  --w-solid: #8c7336;
  --w-grad: linear-gradient(120deg, #a8894a 0%, #6f5a2a 50%, #b69a5c 75%, #6f5a2a 100%);
  --w-line: rgb(92 122 96 / 24%);
  --w-art: 0.5;
}
.theme-birthday {
  --w-1: #611c2f;
  --w-2: #22080f;
  --w-muted: #e2bcc5;
  --w-text: #f8ecee;
  --w-solid: #e8c07a;
  --w-line: rgb(232 192 122 / 22%);
}
.theme-thanks {
  --w-1: #7d5636;
  --w-2: #3a2415;
  --w-muted: #ead3b4;
  --w-text: #fbf1e2;
  --w-solid: #f0d49c;
  --w-line: rgb(240 212 156 / 24%);
}

/* ---------- Wallet card (the invitation identity) ---------- */
.wallet {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  padding: 22px 18px 14px;
  border: 1px solid var(--w-edge);
  border-radius: 22px;
  background: radial-gradient(130% 90% at 50% 0%, var(--w-1) 0%, var(--w-2) 72%);
  color: var(--w-text);
  text-align: center;
  box-shadow:
    0 0 0 4px rgb(0 0 0 / 18%) inset,
    0 30px 60px -34px rgb(0 0 0 / 90%);
  transition: background 0.4s var(--ease);
}
.wallet::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto auto;
  width: 62%;
  height: 48%;
  background: url("../img/pattern.svg") repeat;
  background-size: 44px;
  opacity: calc(0.16 * var(--w-art));
  -webkit-mask-image: radial-gradient(circle at 100% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 100% 0%, #000 0%, transparent 72%);
}
.wallet::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 46%;
  background: url("../img/waves.svg") no-repeat center bottom / 100% 100%;
  opacity: calc(0.7 * var(--w-art));
}
.wallet-brand {
  display: grid;
  justify-items: center;
  line-height: 1;
}
.wallet-logo,
.wallet-amount bdi {
  background: var(--w-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wallet-logo {
  font-size: 30px;
  font-weight: 700;
  padding-bottom: 2px;
}
.wallet-latin {
  margin-top: 4px;
  padding-inline-start: 0.5em;
  font-size: 8.5px;
  letter-spacing: 0.5em;
  color: var(--w-solid);
  direction: ltr;
}
.ornament {
  display: block;
  width: 120px;
  height: 14px;
  margin-top: 8px;
  background: url("../img/flourish.svg") no-repeat center / contain;
  opacity: 0.85;
}
.wallet-greeting {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: var(--w-solid);
  font-size: 14.5px;
  font-weight: 600;
}
.wallet-greeting .icon {
  width: 18px;
  height: 18px;
}
.wallet-label {
  color: var(--w-muted);
  font-size: 13px;
}
.wallet-amount {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.15;
  font-weight: 700;
}
.wallet-amount bdi {
  font-size: 46px;
  letter-spacing: -1px;
}
.wallet-amount span {
  font-size: 17px;
  font-weight: 600;
  color: var(--w-solid);
}
.wallet-note {
  max-width: 100%;
  color: var(--w-muted);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}
.wallet-note strong {
  color: var(--w-text);
}
.wallet-message {
  position: relative;
  max-width: 100%;
  margin-top: 2px;
  padding: 8px 14px;
  border-block: 1px solid var(--w-line);
  color: var(--w-text);
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.wallet-message::before {
  content: "«";
  margin-inline-end: 2px;
  color: var(--w-solid);
}
.wallet-message::after {
  content: "»";
  margin-inline-start: 2px;
  color: var(--w-solid);
}
.wallet-message.is-empty {
  display: none;
}
.wallet-qr {
  display: grid;
  place-items: center;
  width: 136px;
  aspect-ratio: 1;
  margin-top: 6px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 0 0 2px var(--w-solid),
    0 0 0 7px var(--w-line);
}
.wallet-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}
.wallet-qr.placeholder {
  background: #f7ede0;
  color: var(--ink);
}
.wallet-qr.placeholder .icon {
  width: 56%;
  height: 56%;
  stroke-width: 1.4;
}
.wallet-qr.locked {
  gap: 6px;
  align-content: center;
  background: rgb(0 0 0 / 22%);
  color: var(--w-solid);
  box-shadow: 0 0 0 1px var(--w-edge) inset;
  font-size: 12.5px;
  font-weight: 600;
}
.wallet-qr.locked .icon {
  width: 30px;
  height: 30px;
}
.wallet-code {
  margin-top: 4px;
  color: var(--w-muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}
.wallet-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--w-line);
  color: var(--w-muted);
  font-size: 12.5px;
}
.wallet-foot span {
  overflow-wrap: anywhere;
}
.wallet-foot .icon {
  width: 16px;
  height: 16px;
  color: var(--w-solid);
}
.wallet.compact {
  padding: 18px 16px 12px;
}
.wallet.compact .wallet-logo {
  font-size: 24px;
}
.wallet.compact .wallet-amount bdi {
  font-size: 38px;
}
.wallet.compact .wallet-qr {
  width: 96px;
}
.wallet.large {
  padding: 30px 24px 18px;
}
.wallet.large .wallet-logo {
  font-size: 36px;
}
.wallet.large .wallet-amount bdi {
  font-size: 56px;
}
.wallet.large .wallet-qr {
  width: min(240px, 66vw);
  padding: 12px;
  margin-top: 10px;
  border-radius: 18px;
}

/* ---------- Ethos marquee ---------- */
.ethos {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-deep);
}
.ethos-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  padding: 16px 0;
  animation: marquee 38s linear infinite;
}
.ethos span {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.ethos span:nth-of-type(4n) {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ethos i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* ---------- Sections (landing) ---------- */
.section {
  position: relative;
  padding: clamp(60px, 8vw, 104px) 0;
}
.section.tinted {
  isolation: isolate;
  background: var(--bg-deep);
  border-block: 1px solid var(--line);
}
.section.tinted::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("../img/pattern.svg") repeat;
  background-size: 72px;
  opacity: 0.04;
}
.section-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 660px;
  margin: 0 auto clamp(32px, 4vw, 52px);
  text-align: center;
}
.section-head .kicker::before,
.section-head .kicker::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line-strong);
}
.section-head h2 {
  font-size: clamp(27px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.section-head p:not(.kicker) {
  color: var(--text-2);
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.value-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), rgb(54 36 26 / 55%));
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s,
    box-shadow 0.3s;
}
.value-card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 120px;
  height: 120px;
  background: url("../img/pattern.svg") repeat;
  background-size: 40px;
  opacity: 0.08;
  -webkit-mask-image: radial-gradient(circle at 0 0, #000, transparent 70%);
  mask-image: radial-gradient(circle at 0 0, #000, transparent 70%);
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.value-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(220 180 110 / 14%), transparent 70%);
  color: var(--gold);
}
.value-icon .icon {
  width: 24px;
  height: 24px;
}
.value-card h3 {
  font-size: 19px;
  color: var(--gold-soft);
}
.value-card p {
  color: var(--text-2);
  font-size: 14.5px;
}
.how-tabs {
  display: grid;
  justify-items: center;
  gap: 36px;
}
.tab-list {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(0 0 0 / 18%);
}
.tab-list button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-weight: 600;
  transition:
    background 0.2s,
    color 0.2s;
}
.tab-list button:hover {
  color: var(--gold-soft);
}
.tab-list button[aria-selected="true"] {
  background: var(--gold-grad);
  color: var(--ink);
}
/* Editorial steps: outlined numerals on a gold rule. */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
  animation: rise 0.5s var(--ease) both;
}
.steps li::before {
  content: "";
  position: absolute;
  top: -4px;
  inset-inline-start: 0;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}
.steps li:nth-child(2) {
  animation-delay: 0.06s;
}
.steps li:nth-child(3) {
  animation-delay: 0.12s;
}
.steps li:nth-child(4) {
  animation-delay: 0.18s;
}
.step-no {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}
.steps h3 {
  font-size: 17px;
  color: var(--text);
}
.steps p {
  font-size: 14px;
  color: var(--text-2);
}
/* Feature grid drawn with hairlines. */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--line);
}
.feature {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 30px 26px;
  background: var(--bg);
  transition: background 0.3s;
}
.feature:hover {
  background: var(--surface);
}
.feature > .icon {
  width: 30px;
  height: 30px;
  color: var(--gold);
}
.feature h3 {
  font-size: 17px;
  color: var(--gold-soft);
}
.feature p {
  color: var(--text-2);
  font-size: 14px;
}
.faq {
  display: grid;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 4px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.faq summary:hover,
.faq details[open] summary {
  color: var(--gold-soft);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  width: 32px;
  height: 32px;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary .icon {
  transform: rotate(180deg);
}
.faq details p {
  padding: 0 4px 22px;
  color: var(--text-2);
}
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(48px, 7vw, 80px) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 10% 100%, rgb(220 170 90 / 22%), transparent 70%),
    var(--bg-deeper);
}
.cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("../img/waves.svg") no-repeat center / 100% 100%;
  opacity: 0.45;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.cta-band h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
}
.cta-band p {
  color: var(--text-2);
}
.cta-band .btn.light {
  background: var(--gold-grad);
  color: var(--ink);
}
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-deeper);
}
.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-3);
}

/* ---------- Auth ---------- */
.auth-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  min-height: calc(100vh - 36px);
}
.auth-side {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 4vw, 56px);
  border-inline-end: 1px solid var(--line);
  background:
    radial-gradient(420px 320px at 80% 70%, rgb(230 180 100 / 18%), transparent 70%),
    var(--bg-deeper);
}
.auth-side::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("../img/pattern.svg") repeat;
  background-size: 64px;
  opacity: 0.07;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
  mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.auth-side .logo {
  align-self: flex-start;
}
.auth-quote {
  margin-top: 12px;
  max-width: 420px;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 700;
  line-height: 1.45;
}
.auth-side .wallet {
  max-width: 300px;
  align-self: center;
  transform: rotate(-4deg);
}
.auth-main {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: clamp(24px, 5vw, 64px) 20px;
}
.auth-main .back-link {
  width: min(460px, 100%);
}
.auth-card {
  display: grid;
  gap: 22px;
  width: min(460px, 100%);
  padding: clamp(22px, 3.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface), rgb(54 36 26 / 70%));
  box-shadow: var(--shadow-md);
  animation: rise 0.5s var(--ease) both;
}
.auth-head {
  display: grid;
  gap: 6px;
}
.auth-head h1 {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  color: var(--text);
}
.auth-head p {
  color: var(--text-2);
}
.auth-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
}
.auth-form {
  display: grid;
  gap: 16px;
}
.auth-form .btn {
  margin-top: 6px;
}
.alt-login {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  font-size: 13.5px;
  color: var(--text-2);
}
.alt-login .icon {
  color: var(--green);
}
.alt-login.is-off .icon {
  color: var(--text-3);
}
.auth-switch {
  text-align: center;
  color: var(--text-2);
  font-size: 14px;
}
.auth-switch a {
  color: var(--gold);
  font-weight: 600;
}
.demo-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: rgb(0 0 0 / 18%);
  color: var(--text-3);
  font-size: 12.5px;
}
.demo-hint .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--gold);
}
.otp-input {
  width: 100%;
  min-height: 66px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--field);
  color: var(--gold-soft);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 14px;
  text-align: center;
  outline: none;
}
.otp-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
}

/* ---------- Form fields ---------- */
.field {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}
.field > label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.control {
  position: relative;
  display: flex;
  align-items: center;
}
.control input,
.control select {
  width: 100%;
  min-height: 50px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--field);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.control input::placeholder {
  color: var(--text-3);
  opacity: 0.75;
}
.control input[dir="ltr"] {
  text-align: right;
}
.control input[readonly] {
  background: rgb(0 0 0 / 14%);
  color: var(--text-3);
}
.control input:hover,
.control select:hover {
  border-color: var(--line-strong);
}
.control input:focus,
.control select:focus {
  border-color: var(--gold);
  background: #28190f;
  box-shadow: 0 0 0 4px var(--gold-glow);
}
.control select option {
  background: var(--surface);
  color: var(--text);
}
/* The page is RTL: the leading icon sits on the right even inside LTR inputs. */
.control.has-icon input,
.control.has-icon select {
  padding-right: 46px;
}
.control.has-end input {
  padding-left: 52px;
}
.control > .icon {
  position: absolute;
  right: 16px;
  width: 19px;
  height: 19px;
  color: var(--text-3);
  pointer-events: none;
  transition: color 0.2s;
}
.control:focus-within > .icon {
  color: var(--gold);
}
.control.select::after {
  content: "";
  position: absolute;
  left: 18px;
  width: 8px;
  height: 8px;
  border: solid var(--gold);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
  pointer-events: none;
}
.control select {
  appearance: none;
  padding-left: 40px;
  cursor: pointer;
}
.control-end {
  position: absolute;
  left: 14px;
  color: var(--text-3);
  font-size: 13.5px;
}
.toggle-visibility {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  left: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
}
.toggle-visibility:hover {
  background: var(--line-soft);
  color: var(--gold);
}
.toggle-visibility .icon {
  width: 18px;
  height: 18px;
}
.field-hint {
  font-size: 12.5px;
  color: var(--text-3);
}
.field-hint.with-icon {
  display: flex;
  align-items: center;
  gap: 6px;
}
.field-hint.with-icon .icon {
  color: var(--green);
}
.field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--red);
}
.field-error .icon {
  width: 15px;
  height: 15px;
}
.has-error .control input,
.has-error .control select,
.has-error .otp-input {
  border-color: rgb(242 167 156 / 65%);
  background: rgb(242 167 156 / 6%);
}

/* ---------- Account app bar ---------- */
.account-body {
  padding-bottom: 24px;
}
.app-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgb(31 19 11 / 84%);
  backdrop-filter: blur(16px) saturate(1.2);
}
.app-bar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}
.app-bar .logo-word {
  font-size: 26px;
}
.role-switch {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(0 0 0 / 22%);
}
.role-switch a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  transition:
    background 0.2s,
    color 0.2s;
}
.role-switch a:hover {
  color: var(--gold-soft);
}
.role-switch .icon {
  width: 16px;
  height: 16px;
}
.role-switch a.active {
  background: var(--gold-grad);
  color: var(--ink);
}
.app-nav {
  display: flex;
  gap: 2px;
  margin-inline-start: auto;
}
.app-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 12px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.app-nav .icon {
  width: 18px;
  height: 18px;
}
.app-nav a:hover {
  color: var(--gold-soft);
}
.app-nav a.active {
  color: var(--gold-soft);
  font-weight: 600;
}
.app-nav a.active::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: -15px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-grad);
}
.app-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-menu {
  position: relative;
}
.user-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  padding-inline-end: 8px;
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
}
.user-menu summary::-webkit-details-marker {
  display: none;
}
.user-menu summary:hover {
  background: var(--line-soft);
}
.user-menu .avatar {
  width: 38px;
  height: 38px;
}
.user-menu-name {
  font-size: 14px;
  font-weight: 600;
}
.user-menu .chevron {
  width: 16px;
  height: 16px;
  color: var(--text-3);
}
.user-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 60;
  display: grid;
  width: 268px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: pop 0.2s var(--ease);
}
.user-menu-head {
  display: grid;
  gap: 2px;
  margin-bottom: 6px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-3);
}
.user-menu-head strong {
  font-size: 14px;
  color: var(--text);
}
.user-menu-panel a,
.user-menu-panel button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
  text-align: start;
}
.user-menu-panel a:hover,
.user-menu-panel button:hover {
  background: var(--line-soft);
}
.user-menu-panel .icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
}
.user-menu-panel button,
.user-menu-panel button .icon {
  color: var(--red);
}
.account-main {
  display: grid;
  gap: 26px;
  padding-top: 30px;
  padding-bottom: 44px;
}
.bottom-nav {
  display: none;
}

/* ---------- Flash ---------- */
.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-size: 14px;
  animation: rise 0.4s var(--ease) both;
}
.flash p a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.flash.success {
  background: var(--green-bg);
  border-color: rgb(147 211 169 / 22%);
  color: var(--green);
}
.flash.danger {
  background: var(--red-bg);
  border-color: rgb(242 167 156 / 24%);
  color: var(--red);
}
.flash.warning {
  background: var(--amber-bg);
  border-color: rgb(240 196 110 / 24%);
  color: var(--amber);
}

/* ---------- Account: home ---------- */
.welcome,
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.welcome h1,
.page-head h1 {
  font-size: clamp(27px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
.welcome p:not(.kicker),
.page-head p {
  color: var(--text-2);
}
/* Summary card styled as a wallet pass. */
.balance-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  gap: 20px 32px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgb(220 180 110 / 50%);
  border-radius: var(--r-xl);
  background: radial-gradient(120% 140% at 100% 0%, #432c1d 0%, #1e120a 70%);
  box-shadow:
    0 0 0 4px rgb(0 0 0 / 16%) inset,
    var(--shadow-lg);
  animation: rise 0.5s var(--ease) both;
}
.balance-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto auto;
  width: 50%;
  height: 100%;
  background: url("../img/pattern.svg") repeat;
  background-size: 56px;
  opacity: 0.12;
  -webkit-mask-image: radial-gradient(circle at 100% 0%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 100% 0%, #000, transparent 70%);
}
.balance-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 70%;
  background: url("../img/waves.svg") no-repeat center bottom / 100% 100%;
  opacity: 0.5;
}
.balance-card.invitee {
  background: radial-gradient(120% 140% at 0% 0%, #4a301f 0%, #1e120a 70%);
}
.balance-main {
  display: grid;
  align-content: start;
  gap: 4px;
}
.balance-label {
  font-size: 14px;
  color: var(--text-2);
}
.money.hero {
  font-size: clamp(38px, 5.4vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
}
.balance-sub {
  font-size: 13.5px;
  color: var(--text-3);
}
.balance-stats {
  display: grid;
  align-content: center;
  gap: 10px;
  margin: 0;
}
.balance-stats div {
  display: grid;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgb(0 0 0 / 22%);
  backdrop-filter: blur(6px);
}
.balance-stats dt {
  font-size: 12.5px;
  color: var(--text-3);
}
.balance-stats dd {
  margin: 0;
  font-size: 18px;
  color: var(--gold-soft);
}
.balance-card .meter {
  grid-column: 1 / -1;
}
.block {
  display: grid;
  gap: 16px;
}
.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.block-head h2 {
  font-size: 19px;
  color: var(--text);
}
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.quick-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s,
    box-shadow 0.25s;
}
.quick-links a:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.quick-links a > .icon {
  width: 46px;
  height: 46px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
}
.quick-links span {
  display: grid;
}
.quick-links small {
  font-size: 12.5px;
  color: var(--text-3);
}

/* ---------- Meter ---------- */
.meter {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(0 0 0 / 30%);
}
.meter.light {
  background: rgb(255 255 255 / 10%);
}
.meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold-grad);
  transform-origin: right;
  animation: grow-x 0.9s 0.1s var(--ease) both;
}

/* ---------- Voucher cards (ticket style) ---------- */
.voucher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.voucher {
  --tone: var(--gold);
  position: relative;
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), #301f15);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s,
    box-shadow 0.25s;
  animation: rise 0.45s var(--ease) both;
}
.voucher::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 24px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--tone);
  opacity: 0.85;
}
.voucher.tone-success {
  --tone: var(--green);
}
.voucher.tone-warning {
  --tone: var(--amber);
}
.voucher.tone-info {
  --tone: var(--blue);
}
.voucher.tone-neutral {
  --tone: var(--text-3);
}
.voucher:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.voucher-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.voucher-link:focus-visible {
  outline-offset: 2px;
}
.voucher-head,
.voucher-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.voucher-id {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.1em;
}
.voucher-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.voucher-person > div {
  display: grid;
  min-width: 0;
}
.voucher-dir {
  font-size: 12px;
  color: var(--text-3);
}
.voucher-person strong {
  font-size: 15.5px;
  line-height: 1.5;
}
/* Perforated tear line with side notches. */
.voucher-amounts {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}
.voucher-amounts::before,
.voucher-amounts::after {
  content: "";
  position: absolute;
  top: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
}
.voucher-amounts::before {
  right: -31px;
}
.voucher-amounts::after {
  left: -31px;
}
.voucher-amounts div {
  display: grid;
}
.voucher-amounts span:first-child {
  font-size: 12px;
  color: var(--text-3);
}
.money.big {
  font-size: 21px;
  color: var(--gold-soft);
}
.voucher-foot {
  font-size: 12.5px;
  color: var(--text-2);
}
.voucher-place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.voucher-place .icon {
  width: 16px;
  height: 16px;
  color: var(--gold);
}
.voucher-action {
  position: relative;
  z-index: 2;
}
.voucher-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 600;
}
.voucher-cta .icon {
  width: 16px;
  height: 16px;
}
.voucher-date {
  color: var(--text-3);
  white-space: nowrap;
}

/* ---------- Empty ---------- */
.empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 44px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: rgb(0 0 0 / 12%);
  text-align: center;
}
.empty.compact {
  padding: 24px 16px;
  border-style: solid;
  border-color: var(--line-soft);
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
}
.empty h3 {
  font-size: 17px;
  color: var(--text);
}
.empty p {
  color: var(--text-2);
  font-size: 14px;
}

/* ---------- Filters ---------- */
.chips {
  display: flex;
  gap: 8px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.filter-chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}
.filter-chip.active {
  border-color: transparent;
  background: var(--gold-grad);
  color: var(--ink);
  font-weight: 600;
}
.filter-chip .count {
  min-width: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgb(0 0 0 / 25%);
  color: var(--gold-soft);
  font-size: 12px;
  text-align: center;
}
.filter-chip.active .count {
  background: rgb(35 21 11 / 16%);
  color: var(--ink);
}

/* ---------- Create / pay ---------- */
.progress-steps {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.progress-steps li {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text-3);
  font-size: 14px;
  font-weight: 600;
}
.progress-steps span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 13px;
}
.progress-steps span .icon {
  width: 15px;
  height: 15px;
}
.progress-steps .current {
  border-color: var(--line-strong);
  color: var(--gold-soft);
}
.progress-steps .current span {
  border-color: transparent;
  background: var(--gold-grad);
  color: var(--ink);
}
.progress-steps .done {
  color: var(--green);
}
.progress-steps .done span {
  border-color: rgb(147 211 169 / 30%);
  background: var(--green-bg);
}
.create-layout,
.pay-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 24px;
}
.pay-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.create-main,
.detail-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.create-aside,
.detail-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}
.aside-kicker {
  justify-self: center;
}
.card-section {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), #321f15);
  box-shadow: var(--shadow-sm);
  animation: rise 0.45s var(--ease) both;
}
.card-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: var(--text);
}
.card-section h2 > .icon {
  color: var(--gold);
}
.section-no {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  font-size: 14px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.amount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.amount-chip {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  color: var(--gold-soft);
  font-size: 14px;
  font-weight: 600;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.amount-chip:hover {
  border-color: var(--gold);
}
.amount-chip.active {
  border-color: transparent;
  background: var(--gold-grad);
  color: var(--ink);
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.choice {
  position: relative;
  display: flex;
}
.choice input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice-body {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--field);
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.choice-body .icon {
  width: 24px;
  height: 24px;
  color: var(--gold);
}
.choice-body strong {
  font-size: 15px;
}
.choice-body small {
  font-size: 12.5px;
  color: var(--text-3);
}
.choice:hover .choice-body {
  border-color: var(--line-strong);
}
.choice input:checked + .choice-body {
  border-color: var(--gold);
  background: rgb(220 180 110 / 8%);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.choice input:focus-visible + .choice-body {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.reveal-field.is-hidden {
  display: none;
}
.muted-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
}
.muted-note .icon {
  width: 16px;
  height: 16px;
  color: var(--gold);
}
.summary-list {
  display: grid;
  margin: 0;
}
.summary-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.summary-list > div:last-child {
  border-bottom: 0;
}
.summary-list dt {
  flex-shrink: 0;
  font-size: 13.5px;
  color: var(--text-3);
}
.summary-list dd {
  margin: 0;
  font-weight: 600;
  text-align: end;
  overflow-wrap: anywhere;
}
.summary-list.compact > div {
  padding: 9px 0;
}
.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: rgb(220 180 110 / 7%);
  font-weight: 600;
}
.money.total {
  font-size: 28px;
  font-weight: 700;
}
.pay-box p {
  color: var(--text-2);
}
.secure-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgb(147 211 169 / 20%);
  border-radius: var(--r);
  background: var(--green-bg);
  color: var(--green);
  font-size: 13.5px;
}

/* ---------- Invitation detail ---------- */
.success-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid rgb(147 211 169 / 26%);
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, rgb(147 211 169 / 14%), transparent);
  animation: rise 0.5s var(--ease) both;
}
.success-panel h2 {
  font-size: 18px;
  color: var(--green);
}
.success-panel p {
  color: var(--text-2);
  font-size: 14px;
}
.success-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
}
.success-icon .icon {
  width: 28px;
  height: 28px;
}
.qr-voucher {
  display: grid;
  justify-items: center;
  gap: 14px;
  animation: rise 0.5s var(--ease) both;
}
.qr-voucher .wallet {
  max-width: 440px;
}
.amount-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.amount-trio div {
  display: grid;
  gap: 2px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgb(0 0 0 / 14%);
}
.amount-trio span:first-child {
  font-size: 12.5px;
  color: var(--text-3);
}
.money.accent {
  color: var(--green);
}
.usage-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.usage-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.usage-list li:last-child {
  border-bottom: 0;
}
.usage-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
}
.usage-list div {
  display: grid;
  min-width: 0;
}
.usage-list small {
  font-size: 12.5px;
  color: var(--text-3);
}
.timeline {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline li {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 18px;
  color: var(--text-3);
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 4px;
  right: 15px;
  width: 1px;
  background: var(--line);
}
.timeline li:last-child::before {
  display: none;
}
.timeline .dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-deep);
}
.timeline .dot .icon {
  width: 16px;
  height: 16px;
}
.timeline div {
  display: grid;
}
.timeline strong {
  font-size: 14.5px;
}
.timeline small {
  font-size: 12.5px;
}
.timeline .done {
  color: var(--text);
}
.timeline .done .dot {
  border-color: transparent;
  background: var(--gold-grad);
  color: var(--ink);
}
.timeline .done::before {
  background: var(--line-strong);
}
.timeline .current {
  color: var(--text);
}
.timeline .current .dot {
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-bg);
}

/* ---------- Reports ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.kpi {
  display: grid;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), #321f15);
  box-shadow: var(--shadow-sm);
  animation: rise 0.45s var(--ease) both;
}
.kpi:first-child {
  border-color: var(--line-strong);
  background: radial-gradient(120% 120% at 100% 0%, #47301f, #22150d 75%);
}
.kpi:nth-child(2) {
  animation-delay: 0.05s;
}
.kpi:nth-child(3) {
  animation-delay: 0.1s;
}
.kpi:nth-child(4) {
  animation-delay: 0.15s;
}
.kpi-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
}
.kpi-label {
  font-size: 13px;
  color: var(--text-3);
}
.kpi > strong {
  font-size: 30px;
  line-height: 1.2;
  color: var(--gold-soft);
}
.money.kpi-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}
.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 18px;
}
.legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-3);
}
.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.swatch.total {
  background: rgb(220 180 110 / 28%);
}
.swatch.used {
  margin-inline-start: 8px;
  background: var(--gold);
}
.month-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  height: 240px;
  margin: 0;
  padding: 0 0 30px;
  list-style: none;
  border-bottom: 1px solid var(--line-strong);
  background-image: linear-gradient(180deg, var(--line-soft) 1px, transparent 1px);
  background-size: 100% 25%;
}
.month-chart li {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}
.bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
}
.bar {
  display: block;
  width: min(22px, 40%);
  min-height: 3px;
  border-radius: 8px 8px 2px 2px;
  transform-origin: bottom;
  animation: grow-y 0.9s var(--ease) both;
}
.bar.total {
  background: rgb(220 180 110 / 24%);
  box-shadow: 0 0 0 1px rgb(220 180 110 / 18%) inset;
}
.bar.used {
  background: linear-gradient(180deg, #f1d69e, #b3833f);
  box-shadow: 0 0 18px -4px rgb(220 180 110 / 55%);
}
.month-label {
  position: absolute;
  top: calc(100% + 8px);
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}
.donut-card {
  justify-items: center;
}
.donut-card .block-head {
  justify-self: stretch;
}
.donut {
  --p: 0;
  display: grid;
  place-items: center;
  width: 196px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #b3833f, #f1d69e calc(var(--p) * 1%), rgb(0 0 0 / 28%) 0);
  box-shadow: 0 0 40px -10px rgb(220 180 110 / 40%);
}
.donut > span {
  display: grid;
  place-items: center;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, var(--surface-2), var(--bg-deep));
  line-height: 1.2;
}
.donut strong {
  font-size: 34px;
  color: var(--gold-soft);
}
.donut small {
  font-size: 13px;
  color: var(--text-3);
}
.donut-card .summary-list {
  justify-self: stretch;
}
.status-bars {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.status-bars li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.status-name {
  color: var(--text-2);
}
.meter-fill.tone-pending_payment {
  background: var(--amber);
}
.meter-fill.tone-active {
  background: var(--green);
}
.meter-fill.tone-partially_used {
  background: var(--blue);
}
.meter-fill.tone-used {
  background: var(--text-3);
}
.people-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.people-list li {
  display: grid;
  grid-template-columns: 22px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.people-list li:last-child {
  border-bottom: 0;
}
.people-list .money {
  color: var(--gold-soft);
}
.rank {
  color: var(--gold);
  font-weight: 600;
  text-align: center;
}
.people-name {
  display: grid;
  min-width: 0;
  font-weight: 600;
}
.people-name small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--text-3);
}

/* ---------- Profile ---------- */
.profile-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.identity-card {
  position: sticky;
  top: 96px;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 30px 22px;
  border: 1px solid rgb(220 180 110 / 50%);
  border-radius: var(--r-xl);
  background: radial-gradient(130% 90% at 50% 0%, #3d2819 0%, #1e120a 72%);
  text-align: center;
  box-shadow:
    0 0 0 4px rgb(0 0 0 / 16%) inset,
    var(--shadow-lg);
}
.identity-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 40%;
  background: url("../img/waves.svg") no-repeat center bottom / 100% 100%;
  opacity: 0.5;
}
.identity-card .avatar {
  margin-bottom: 6px;
  border-color: var(--gold);
}
.identity-card h2 {
  font-size: 19px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.identity-card p {
  color: var(--text-2);
}
.identity-stats {
  display: grid;
  width: 100%;
  margin: 12px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.identity-stats div {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 13.5px;
}
.identity-stats dt {
  color: var(--text-3);
}
.identity-stats dd {
  margin: 0;
  font-weight: 600;
  color: var(--gold-soft);
}
.profile-forms {
  display: grid;
  gap: 18px;
}
.form-foot,
.signout-row {
  display: flex;
  justify-content: flex-end;
}

/* ---------- Occasions, messages & invitation response ---------- */
.occasion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.occasion-option {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--field);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.occasion-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.occasion-option:hover {
  border-color: var(--line-strong);
}
.occasion-option:has(input:checked) {
  border-color: var(--gold);
  background: rgb(220 180 110 / 8%);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.occasion-option:has(input:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.occasion-swatch {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 88px;
  aspect-ratio: 1.55;
  border: 1px solid var(--w-edge);
  border-radius: 10px;
  background: radial-gradient(130% 110% at 50% 0%, var(--w-1), var(--w-2));
  color: var(--w-solid);
  box-shadow: 0 8px 18px -12px rgb(0 0 0 / 80%);
}
.occasion-swatch .icon {
  width: 22px;
  height: 22px;
}
.occasion-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.occasion-option:has(input:checked) .occasion-name {
  color: var(--gold-soft);
}
.occasion-tag,
.voucher-occasion {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.occasion-tag {
  padding: 3px 10px 3px 12px;
  border: 1px solid var(--w-edge);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--w-1), var(--w-2));
  color: var(--w-text);
  font-size: 12.5px;
}
.occasion-tag .icon,
.voucher-occasion .icon {
  width: 15px;
  height: 15px;
  color: var(--w-solid);
}
.voucher-occasion .icon {
  width: 22px;
  height: 22px;
  padding: 4px;
  border: 1px solid var(--w-edge);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--w-1), var(--w-2));
}
.textarea {
  width: 100%;
  min-height: 92px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--field);
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
  resize: vertical;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.textarea::placeholder {
  color: var(--text-3);
  opacity: 0.75;
}
.textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
}
.has-error .textarea {
  border-color: rgb(242 167 156 / 65%);
}
.field-hint.counter {
  text-align: end;
}
.optional {
  margin-inline-start: 4px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
}
.message-text {
  font-weight: 500;
  line-height: 1.8;
  color: var(--text);
}
.summary-occasion {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 12px 0 4px;
}
.invite-reveal {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background:
    radial-gradient(420px 260px at 50% 0%, rgb(220 170 90 / 16%), transparent 70%),
    var(--bg-deep);
  text-align: center;
  animation: rise 0.5s var(--ease) both;
}
.invite-reveal h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
}
.reveal-from {
  margin-bottom: 8px;
  color: var(--text-2);
}
.reveal-from strong {
  color: var(--gold-soft);
}
.invite-reveal .wallet {
  max-width: 420px;
}
.reveal-actions {
  width: min(420px, 100%);
  margin-top: 8px;
}
.decline-box {
  width: min(420px, 100%);
  color: var(--text-3);
  font-size: 14px;
}
.decline-box summary {
  padding: 8px;
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.decline-box summary::-webkit-details-marker {
  display: none;
}
.decline-box > div {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px dashed rgb(242 167 156 / 40%);
  border-radius: var(--r);
  background: var(--red-bg);
  color: var(--text-2);
}
.notice-panel {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, rgb(220 180 110 / 10%), transparent);
}
.notice-panel.waiting {
  border-color: rgb(240 196 110 / 35%);
  background: linear-gradient(90deg, var(--amber-bg), transparent);
}
.notice-panel h2 {
  font-size: 18px;
}
.notice-panel p {
  margin: 4px 0 10px;
  color: var(--text-2);
  font-size: 14px;
}
.notice-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
}
.invite-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, rgb(220 180 110 / 14%), rgb(220 180 110 / 4%));
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s;
  animation: rise 0.45s var(--ease) both;
}
.invite-banner:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}
.invite-banner > span:nth-child(2) {
  display: grid;
  flex: 1;
}
.invite-banner small {
  color: var(--text-2);
  font-size: 13px;
}
.invite-banner > .icon {
  color: var(--gold);
}
.invite-banner-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--ink);
}
.balance-stats .credit-stat {
  border-color: var(--line-strong);
  background: rgb(220 180 110 / 10%);
}

/* ---------- Wallet badges (official artwork, unmodified: no effects or animation) ---------- */
.wallet-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.wallet-badge {
  display: block;
  border-radius: 28px;
}
.wallet-badge img {
  display: block;
  width: auto;
  height: 55px;
}
.wallet-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 6px;
  color: var(--gold-soft);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.wallet-text-link .icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
}
.wallet-note-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-3);
  font-size: 12.5px;
  text-align: center;
}
.wallet-note-text .icon {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

/* ---------- Credit ---------- */
.credit-toggle {
  display: block;
  margin-bottom: 12px;
  cursor: pointer;
}
.credit-toggle input {
  position: absolute;
  opacity: 0;
}
.credit-toggle-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--field);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.credit-toggle-body > span {
  display: grid;
  flex: 1;
}
.credit-toggle-body small {
  color: var(--text-3);
  font-size: 12.5px;
}
.credit-toggle-body > .icon {
  color: var(--gold);
}
.credit-toggle-body::after {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}
.credit-toggle input:checked + .credit-toggle-body {
  border-color: var(--gold);
  background: rgb(220 180 110 / 8%);
}
.credit-toggle input:checked + .credit-toggle-body::after {
  border-color: transparent;
  background:
    linear-gradient(45deg, transparent 44%, var(--ink) 45%, var(--ink) 55%, transparent 56%) 5px 7px / 6px 7px no-repeat,
    linear-gradient(-45deg, transparent 44%, var(--ink) 45%, var(--ink) 55%, transparent 56%) 9px 4px / 8px 11px no-repeat,
    var(--gold-grad);
}
.credit-toggle input:focus-visible + .credit-toggle-body {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Notifications ---------- */
.bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-2);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.bell:hover,
.bell.active {
  border-color: var(--line-strong);
  color: var(--gold-soft);
}
.bell-count {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: var(--gold-grad);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}
.notification-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.notification {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  animation: rise 0.4s var(--ease) both;
}
.notification.unread {
  border-color: var(--line-strong);
  background: linear-gradient(90deg, rgb(220 180 110 / 10%), var(--surface) 60%);
}
.notification-icon,
.activity-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
}
.notification.unread .notification-icon {
  border-color: transparent;
  background: var(--gold-grad);
  color: var(--ink);
}
.notification-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.notification-body p {
  color: var(--text-2);
  font-size: 14px;
}
.notification-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  color: var(--text-3);
  font-size: 12.5px;
  white-space: nowrap;
}
.delivery-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.delivery {
  padding: 1px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgb(0 0 0 / 16%);
  color: var(--text-3);
  font-size: 11.5px;
}
.delivery.success {
  border-color: rgb(147 211 169 / 22%);
  color: var(--green);
}
.delivery.info {
  border-color: rgb(169 198 230 / 20%);
  color: var(--blue);
}
.delivery.danger {
  border-color: rgb(242 167 156 / 24%);
  color: var(--red);
}
.activity-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.activity-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.activity-list li:last-child {
  border-bottom: 0;
}
.activity-list li > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.activity-list strong small {
  color: var(--text-3);
  font-weight: 500;
}
.activity-list p {
  color: var(--text-2);
  font-size: 13.5px;
}
.activity-list time {
  color: var(--text-3);
  font-size: 12px;
  white-space: nowrap;
}
.timeline .declined .dot {
  background: var(--red-bg);
  color: var(--red);
}

/* ---------- Notification settings ---------- */
.section-lead {
  color: var(--text-2);
  font-size: 14px;
}
.channel-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.channel-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.channel-list li:last-child {
  border-bottom: 0;
}
.channel-list li > span:nth-child(2) {
  display: grid;
  min-width: 0;
}
.channel-list small {
  color: var(--text-3);
  font-size: 12.5px;
}
.channel-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
}

/* ---------- Demo tools ---------- */
.demo-tools {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px dashed rgb(169 198 230 / 40%);
  border-radius: var(--r-lg);
  background: rgb(169 198 230 / 6%);
}
.demo-tools h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--blue);
}
.demo-tools p {
  color: var(--text-3);
  font-size: 13px;
}
.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Proportion utilities (steps of 5) ---------- */
.w-0 { width: 0; }
.w-5 { width: 5%; }
.w-10 { width: 10%; }
.w-15 { width: 15%; }
.w-20 { width: 20%; }
.w-25 { width: 25%; }
.w-30 { width: 30%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }
.w-95 { width: 95%; }
.w-100 { width: 100%; }
.h-0 { height: 0; }
.h-5 { height: 5%; }
.h-10 { height: 10%; }
.h-15 { height: 15%; }
.h-20 { height: 20%; }
.h-25 { height: 25%; }
.h-30 { height: 30%; }
.h-35 { height: 35%; }
.h-40 { height: 40%; }
.h-45 { height: 45%; }
.h-50 { height: 50%; }
.h-55 { height: 55%; }
.h-60 { height: 60%; }
.h-65 { height: 65%; }
.h-70 { height: 70%; }
.h-75 { height: 75%; }
.h-80 { height: 80%; }
.h-85 { height: 85%; }
.h-90 { height: 90%; }
.h-95 { height: 95%; }
.h-100 { height: 100%; }
.p-0 { --p: 0; }
.p-5 { --p: 5; }
.p-10 { --p: 10; }
.p-15 { --p: 15; }
.p-20 { --p: 20; }
.p-25 { --p: 25; }
.p-30 { --p: 30; }
.p-35 { --p: 35; }
.p-40 { --p: 40; }
.p-45 { --p: 45; }
.p-50 { --p: 50; }
.p-55 { --p: 55; }
.p-60 { --p: 60; }
.p-65 { --p: 65; }
.p-70 { --p: 70; }
.p-75 { --p: 75; }
.p-80 { --p: 80; }
.p-85 { --p: 85; }
.p-90 { --p: 90; }
.p-95 { --p: 95; }
.p-100 { --p: 100; }

/* ---------- Motion ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}
@keyframes grow-x {
  from {
    transform: scaleX(0);
  }
}
@keyframes grow-y {
  from {
    transform: scaleY(0);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
/* RTL marquee: the doubled track slides by half its width. */
@keyframes marquee {
  to {
    transform: translateX(50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .app-nav {
    display: none;
  }
  .role-switch {
    margin-inline-start: auto;
  }
  .compact-hide {
    display: none;
  }
  .bottom-nav {
    position: fixed;
    inset-inline: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    background: rgb(31 19 11 / 90%);
    backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: var(--shadow-lg);
  }
  .bottom-nav a {
    display: grid;
    flex: 1;
    justify-items: center;
    gap: 2px;
    padding: 6px 4px;
    border-radius: 16px;
    color: var(--text-3);
    font-size: 11.5px;
    font-weight: 600;
  }
  .bottom-nav a .icon {
    width: 22px;
    height: 22px;
  }
  .bottom-nav a.active {
    color: var(--gold-soft);
    background: rgb(220 180 110 / 10%);
  }
  .bottom-nav .fab {
    display: grid;
    place-items: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    margin-top: -28px;
    border: 4px solid var(--bg);
    border-radius: 50%;
    background: var(--gold-grad);
    color: var(--ink);
    box-shadow: 0 14px 28px -12px rgb(220 170 90 / 70%);
  }
  .bottom-nav .fab .icon {
    width: 26px;
    height: 26px;
  }
  .account-body {
    padding-bottom: 116px;
  }
  .create-layout,
  .pay-layout,
  .detail-layout,
  .profile-layout,
  .report-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .create-aside,
  .detail-aside,
  .identity-card {
    position: static;
  }
  .create-aside .wallet {
    max-width: 380px;
    justify-self: center;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual {
    margin-top: 12px;
  }
  .float-card.one {
    inset-inline-start: 0;
  }
  .float-card.two {
    inset-inline-end: 0;
  }
  .value-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-side {
    display: none;
  }
  .quick-links {
    grid-template-columns: minmax(0, 1fr);
  }
  .choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .notification {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .notification-meta {
    grid-column: 2;
    justify-items: start;
    grid-auto-flow: column;
    justify-content: space-between;
  }
  .balance-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .balance-stats {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 15px;
  }
  .site-header-inner {
    min-height: 66px;
  }
  .site-actions {
    gap: 4px;
  }
  .site-actions .btn {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13.5px;
  }
  .site-actions .btn.ghost {
    padding: 0 10px;
  }
  .logo-word,
  .app-bar .logo-word {
    font-size: 24px;
  }
  .logo-latin {
    font-size: 7px;
  }
  .app-bar-inner {
    min-height: 64px;
    gap: 8px;
  }
  .user-menu-name,
  .user-menu .chevron {
    display: none;
  }
  .role-switch a {
    padding: 0 11px;
  }
  .feature-grid,
  .steps,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .step-no {
    font-size: 52px;
  }
  .progress-steps li {
    justify-content: center;
    padding: 8px;
    font-size: 12.5px;
  }
  .amount-trio {
    grid-template-columns: minmax(0, 1fr);
  }
  .occasion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .activity-list li {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .activity-list time {
    grid-column: 2;
  }
  .app-bar .bell {
    width: 38px;
    height: 38px;
  }
  .status-bars li {
    grid-template-columns: 96px minmax(0, 1fr) 28px;
  }
  .welcome .btn,
  .page-head .btn,
  .cta-inner .btn {
    width: 100%;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
  }
  .phone {
    width: min(300px, 88%);
    border-radius: 40px;
  }
  .float-card {
    padding: 8px 12px;
    font-size: 12px;
  }
  .wallet-amount bdi {
    font-size: 40px;
  }
  .wallet.large .wallet-amount bdi {
    font-size: 46px;
  }
}
@media (max-width: 380px) {
  .role-switch a .icon {
    display: none;
  }
  .site-actions .btn.primary .icon {
    display: none;
  }
}
