:root {
  color-scheme: dark;
  --bg: #0c0907;
  --surface: #15110f;
  --surface-raised: #1d1713;
  --surface-soft: #211a15;
  --surface-light: #f6f1e8;
  --gold: #c4955a;
  --gold-bright: #e0bd83;
  --gold-deep: #8f6739;
  --text: #eee7db;
  --muted: #a49a8f;
  --dim: #6f665f;
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(196, 149, 90, 0.32);
  --success: #84b59a;
  --danger: #d7877b;
  --warning: #d8ad67;
  --info: #8caab6;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --display: 'Cormorant Garamond', Georgia, serif;
  --interface: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --safe-bottom: max(14px, env(safe-area-inset-bottom));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 4%, rgba(196, 149, 90, 0.09), transparent 30rem),
    radial-gradient(circle at 10% 42%, rgba(87, 54, 35, 0.12), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: var(--interface);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 32px 32px;
  content: '';
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

button,
input,
select,
a {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  min-height: 44px;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(224, 189, 131, 0.72);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  min-height: auto;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface-light);
  color: #17100c;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.boot-state,
.noscript-message {
  display: grid;
  min-height: 100vh;
  place-content: center;
  gap: 16px;
  color: var(--muted);
  text-align: center;
}

.brand-monogram {
  color: var(--gold);
  font-family: var(--display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.app-shell {
  min-height: 100vh;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 9, 7, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 45px;
  height: 45px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  place-items: center;
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.desktop-nav a {
  display: inline-flex;
  padding: 0 15px;
  align-items: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current='page'] {
  background: rgba(196, 149, 90, 0.1);
  color: var(--gold-bright);
}

.demo-badge {
  display: inline-flex;
  min-height: 28px;
  padding: 0 10px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(216, 173, 103, 0.3);
  border-radius: 999px;
  background: rgba(216, 173, 103, 0.08);
  color: var(--warning);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: '';
}

.page-frame {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 calc(102px + var(--safe-bottom));
}

.page-heading {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-heading h1,
.page-heading h2,
.section-heading h2,
.login-title,
.state-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.03;
}

.page-heading h1 {
  font-size: clamp(35px, 8vw, 58px);
  letter-spacing: -0.025em;
}

.page-heading p:last-child {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Page headings receive programmatic focus after client-side navigation so
   screen readers announce the new view; suppress the browser's text outline. */
[data-page-title]:focus {
  outline: none;
}

.section-heading {
  display: flex;
  margin: 32px 0 14px;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  font-size: 26px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.surface-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(31, 25, 21, 0.94), rgba(20, 16, 14, 0.96));
  box-shadow: var(--shadow);
}

.hero-grid {
  display: grid;
  gap: 16px;
}

.membership-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(229, 196, 138, 0.44);
  border-radius: 22px;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 224, 169, 0.25), transparent 14rem),
    linear-gradient(135deg, #5f4223 0%, #b38145 36%, #e0bd83 55%, #9b6b37 82%, #4e341c 100%);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  color: #1a110b;
}

.membership-card::before,
.membership-card::after {
  position: absolute;
  border: 1px solid rgba(38, 23, 13, 0.18);
  border-radius: 50%;
  content: '';
}

.membership-card::before {
  top: -110px;
  right: -70px;
  width: 260px;
  height: 260px;
}

.membership-card::after {
  top: -70px;
  right: -30px;
  width: 180px;
  height: 180px;
}

.membership-card__top,
.membership-card__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.membership-card__top {
  align-items: start;
}

.membership-card__bottom {
  margin-top: 56px;
  align-items: end;
}

.membership-card__brand {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.membership-card__brand span {
  display: block;
  margin-top: 2px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: none;
}

.membership-card__tier {
  text-align: right;
}

.membership-card__tier strong {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.membership-card__tier span {
  font-family: var(--display);
  font-size: 12px;
}

.membership-card__name {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.1;
}

.membership-card__name span {
  display: block;
  margin-top: 5px;
  font-family: var(--interface);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.membership-card__id {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.credit-panel {
  display: flex;
  min-height: 220px;
  padding: 24px;
  flex-direction: column;
  justify-content: space-between;
}

.credit-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.credit-balance {
  margin: 10px 0 0;
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: clamp(48px, 13vw, 70px);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.credit-balance small {
  margin-left: 7px;
  color: var(--muted);
  font-family: var(--interface);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.credit-meta {
  display: grid;
  margin: 22px 0;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.credit-meta div {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.credit-meta dt {
  color: var(--dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.credit-meta dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.btn-primary {
  background: var(--gold);
  color: #160f0a;
}

.btn-primary:hover {
  background: var(--gold-bright);
}

.btn-secondary {
  border-color: var(--border-gold);
  background: rgba(196, 149, 90, 0.08);
  color: var(--gold-bright);
}

.btn-ghost {
  border-color: var(--border);
  background: transparent;
  color: var(--muted);
}

.btn-danger {
  border-color: rgba(215, 135, 123, 0.3);
  background: rgba(215, 135, 123, 0.08);
  color: var(--danger);
}

.btn-block {
  width: 100%;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.activity-list {
  display: grid;
  gap: 10px;
}

.activity-item {
  display: grid;
  min-height: 78px;
  padding: 15px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(29, 23, 19, 0.72);
}

.activity-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  place-items: center;
  background: rgba(196, 149, 90, 0.1);
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 20px;
}

.activity-item--positive .activity-symbol {
  background: rgba(132, 181, 154, 0.1);
  color: var(--success);
}

.activity-copy {
  min-width: 0;
}

.activity-copy strong,
.activity-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-copy strong {
  display: block;
  font-size: 13px;
}

.activity-copy span,
.activity-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.activity-amount {
  text-align: right;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.amount-positive {
  color: var(--success);
}

.amount-negative {
  color: var(--text);
}

.benefit-grid,
.profile-grid {
  display: grid;
  gap: 12px;
}

.benefit-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(29, 23, 19, 0.72);
}

.benefit-index {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  place-items: center;
  color: var(--gold);
  font-family: var(--display);
  font-size: 17px;
}

.benefit-card h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
}

.benefit-card p,
.support-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.support-card {
  display: flex;
  margin-top: 14px;
  padding: 20px;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  background: linear-gradient(130deg, rgba(196, 149, 90, 0.12), rgba(29, 23, 19, 0.8));
}

.support-card h3 {
  margin: 2px 0 5px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
}

.support-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: '';
}

/* Enhanced tier materials and stable pointer-following spotlight. */
.membership-card {
  --tier-accent: #e7dfd0;
  --tier-accent-rgb: 231, 223, 208;
  --card-tilt-x: 0deg;
  --card-tilt-y: 0deg;
  isolation: isolate;
  display: flex;
  min-height: 276px;
  padding: 27px;
  flex-direction: column;
  border: 1px solid rgba(var(--tier-accent-rgb), 0.5);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 14%, rgba(var(--tier-accent-rgb), 0.2), transparent 12rem),
    linear-gradient(145deg, #211c18 0%, #3a3028 45%, #171311 100%);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  color: #f4eee4;
  transform: perspective(900px) rotateX(var(--card-tilt-x)) rotateY(var(--card-tilt-y));
  transform-style: preserve-3d;
  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
  will-change: transform;
}

.membership-card--silver {
  --tier-accent: #d8dde1;
  --tier-accent-rgb: 216, 221, 225;
  background:
    radial-gradient(circle at 88% 14%, rgba(225, 232, 237, 0.2), transparent 12rem),
    linear-gradient(145deg, #222527 0%, #454b4f 48%, #181a1c 100%);
}

.membership-card--gold {
  --tier-accent: #e0bd83;
  --tier-accent-rgb: 224, 189, 131;
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 224, 169, 0.24), transparent 12rem),
    linear-gradient(145deg, #271a10 0%, #634823 48%, #1a120d 100%);
}

.membership-card--platinum {
  --tier-accent: #eee5d6;
  --tier-accent-rgb: 238, 229, 214;
  background:
    radial-gradient(circle at 84% 16%, rgba(244, 235, 217, 0.24), transparent 12rem),
    radial-gradient(circle at 15% 110%, rgba(177, 145, 100, 0.2), transparent 15rem),
    linear-gradient(145deg, #171716 0%, #4a4640 50%, #161412 100%);
}

.membership-card::before {
  inset: 10px;
  z-index: 1;
  width: auto;
  height: auto;
  border: 1px solid rgba(var(--tier-accent-rgb), 0.18);
  border-radius: 17px;
  pointer-events: none;
}

.membership-card::after {
  top: -112px;
  right: -84px;
  z-index: 0;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(var(--tier-accent-rgb), 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(var(--tier-accent-rgb), 0.025),
    0 0 0 70px rgba(var(--tier-accent-rgb), 0.018);
  pointer-events: none;
}

.membership-card__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(var(--tier-accent-rgb), 0.28),
    rgba(var(--tier-accent-rgb), 0.08) 34%,
    transparent 68%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.membership-card__top,
.membership-card__centre,
.membership-card__bottom {
  position: relative;
  z-index: 2;
  display: flex;
}

.membership-card__top {
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.membership-card__centre {
  margin-top: 28px;
  align-items: center;
  gap: 18px;
}

.membership-card__bottom {
  margin-top: auto;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.membership-card__brand {
  color: rgba(244, 238, 228, 0.88);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.membership-card__ordinal {
  color: rgba(var(--tier-accent-rgb), 0.72);
  font-family: var(--display);
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  line-height: 0.8;
}

.membership-card__emblem {
  position: relative;
  display: grid;
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  border: 1px solid rgba(var(--tier-accent-rgb), 0.52);
  border-radius: 50%;
  place-items: center;
  box-shadow:
    0 0 0 5px rgba(var(--tier-accent-rgb), 0.045),
    inset 0 0 24px rgba(var(--tier-accent-rgb), 0.08);
  color: var(--tier-accent);
}

.membership-card__emblem::before {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(var(--tier-accent-rgb), 0.22);
  border-radius: 50%;
  content: '';
}

.membership-card__emblem span {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.membership-card__tier {
  min-width: 0;
  text-align: left;
}

.membership-card__tier strong {
  display: block;
  overflow: hidden;
  color: var(--tier-accent);
  font-family: var(--display);
  font-size: clamp(34px, 8vw, 48px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.9;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.membership-card__tier span {
  display: block;
  margin-top: 5px;
  color: rgba(244, 238, 228, 0.7);
  font-family: var(--display);
  font-size: 14px;
}

.membership-card__tier small,
.membership-card__name small,
.membership-card__id span {
  display: block;
  margin-bottom: 4px;
  color: rgba(244, 238, 228, 0.48);
  font-family: var(--interface);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.membership-card__name {
  color: #f4eee4;
  font-size: 22px;
}

.membership-card__name span {
  margin-top: 4px;
  color: rgba(244, 238, 228, 0.7);
  font-size: 10px;
}

.membership-card__id {
  color: rgba(244, 238, 228, 0.82);
  text-align: right;
}

:where(.surface-card, .activity-item, .benefit-card, .support-card, .transaction-card) {
  --glow-x: 50%;
  --glow-y: 50%;
  position: relative;
  isolation: isolate;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

:where(.surface-card, .activity-item, .benefit-card, .support-card, .transaction-card)::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: radial-gradient(
    300px circle at var(--glow-x) var(--glow-y),
    rgba(224, 189, 131, 0.16),
    rgba(196, 149, 90, 0.055) 38%,
    transparent 68%
  );
  content: '';
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

:where(.surface-card, .activity-item, .benefit-card, .support-card, .transaction-card):focus-within {
  border-color: rgba(224, 189, 131, 0.38);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42), 0 0 28px rgba(196, 149, 90, 0.1);
}

:where(.surface-card, .activity-item, .benefit-card, .support-card, .transaction-card):focus-within::after {
  opacity: 0.72;
}

@media (hover: hover) and (pointer: fine) {
  :where(.surface-card, .activity-item, .benefit-card, .support-card, .transaction-card).is-glowing {
    border-color: rgba(224, 189, 131, 0.42);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.44), 0 0 34px rgba(196, 149, 90, 0.12);
    transform: translateY(-2px);
  }

  :where(.surface-card, .activity-item, .benefit-card, .support-card, .transaction-card).is-glowing::after {
    opacity: 1;
  }

  .membership-card.is-glowing {
    border-color: rgba(var(--tier-accent-rgb), 0.82);
    box-shadow:
      0 30px 78px rgba(0, 0, 0, 0.52),
      0 0 42px rgba(var(--tier-accent-rgb), 0.18),
      inset 0 0 0 1px rgba(255, 255, 255, 0.055);
    transform: perspective(900px) translateY(-4px) rotateX(var(--card-tilt-x)) rotateY(var(--card-tilt-y));
  }

  .membership-card.is-glowing .membership-card__glow {
    opacity: 1;
  }
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: grid;
  padding: 8px 10px var(--safe-bottom);
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  background: rgba(17, 13, 11, 0.96);
  backdrop-filter: blur(18px);
}

.bottom-nav a {
  display: grid;
  min-height: 58px;
  place-content: center;
  gap: 3px;
  border-radius: 10px;
  color: var(--dim);
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.bottom-nav a[aria-current='page'] {
  background: rgba(196, 149, 90, 0.08);
  color: var(--gold-bright);
}

.nav-glyph {
  display: block;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
}

/* Login */
.login-page {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
}

.login-header,
.login-footer {
  display: flex;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.cross-app-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.cross-app-links a {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.cross-app-links a:hover,
.cross-app-links a:focus-visible {
  color: var(--gold);
}

.login-header {
  min-height: 76px;
}

.login-footer {
  min-height: 64px;
  padding: 10px 0;
  color: var(--dim);
  font-size: 10px;
}

.login-main {
  display: grid;
  width: min(1120px, calc(100% - 32px));
  margin: auto;
  padding: 26px 0 42px;
  place-items: center;
}

.login-card {
  width: min(100%, 450px);
  padding: 28px 22px;
}

.login-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-title {
  font-size: clamp(38px, 10vw, 52px);
}

.login-intro {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.demo-notice {
  display: flex;
  margin: 0 0 22px;
  padding: 13px;
  align-items: start;
  gap: 10px;
  border: 1px solid rgba(216, 173, 103, 0.25);
  border-radius: 12px;
  background: rgba(216, 173, 103, 0.07);
  color: #d9c19b;
  font-size: 11px;
  line-height: 1.5;
}

.demo-notice strong {
  color: var(--warning);
}

.demo-notice__mark {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid currentColor;
  border-radius: 50%;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.form-stack {
  display: grid;
  gap: 16px;
}

.field-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.field-control {
  position: relative;
}

.field-control input,
.select-control {
  width: 100%;
  min-height: 49px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: rgba(12, 9, 7, 0.6);
  color: var(--text);
  font-size: 14px;
}

.field-control input::placeholder {
  color: #625951;
}

.field-control input:focus,
.select-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 149, 90, 0.1);
}

.password-input {
  padding-right: 74px !important;
}

.password-toggle {
  position: absolute;
  top: 3px;
  right: 4px;
  min-width: 66px;
  min-height: 43px;
  border: 0;
  background: transparent;
  color: var(--gold-bright);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.form-help-row {
  display: flex;
  margin-top: -4px;
  align-items: center;
  justify-content: flex-end;
}

.form-help-row button {
  border: 0;
  background: transparent;
  color: var(--gold-bright);
  cursor: pointer;
  font-size: 11px;
}

.form-error,
.form-success {
  margin: 0;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 11px;
}

.form-error {
  border: 1px solid rgba(215, 135, 123, 0.25);
  background: rgba(215, 135, 123, 0.07);
  color: #e8aaa0;
}

.form-success {
  border: 1px solid rgba(132, 181, 154, 0.25);
  background: rgba(132, 181, 154, 0.07);
  color: #abd1ba;
}

/* Payment */
.pay-layout {
  display: grid;
  gap: 16px;
}

.qr-panel,
.payment-side-panel {
  padding: 20px;
}

.state-banner {
  display: flex;
  margin-bottom: 18px;
  align-items: center;
  gap: 11px;
}

.state-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 6px rgba(216, 173, 103, 0.08);
}

.state-dot--success {
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(132, 181, 154, 0.08);
}

.state-dot--danger {
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(215, 135, 123, 0.08);
}

.state-dot--pulse {
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  50% { transform: scale(0.72); opacity: 0.66; }
}

.state-banner strong {
  display: block;
  font-size: 13px;
}

.state-banner span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.qr-stage {
  display: grid;
  min-height: 330px;
  padding: 18px;
  place-items: center;
  border-radius: 18px;
  background: var(--surface-light);
  color: #17110d;
}

.qr-code-wrap {
  position: relative;
  display: grid;
  width: min(100%, 294px);
  aspect-ratio: 1;
  place-items: center;
}

.qr-canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.qr-demo-stamp {
  position: absolute;
  display: grid;
  min-width: 82px;
  min-height: 42px;
  padding: 5px 10px;
  border: 3px solid #8f1f1f;
  border-radius: 6px;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  color: #8f1f1f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-8deg);
}

.qr-placeholder {
  width: min(100%, 260px);
  text-align: center;
}

.qr-placeholder__mark {
  display: grid;
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  border: 1px dashed rgba(23, 17, 13, 0.36);
  place-items: center;
  font-family: var(--display);
  font-size: 30px;
}

.qr-placeholder strong {
  display: block;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
}

.qr-placeholder p {
  margin: 6px 0 0;
  color: #665d55;
  font-size: 11px;
}

.countdown {
  display: flex;
  margin: 16px 0 0;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  font-variant-numeric: tabular-nums;
}

.countdown strong {
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 500;
}

.countdown span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.security-note {
  margin: 13px 0 0;
  color: var(--warning);
  font-size: 11px;
  text-align: center;
}

.payment-side-panel h2,
.confirmation-panel h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 29px;
  font-weight: 500;
}

.payment-side-panel > p {
  margin: 9px 0 22px;
  color: var(--muted);
  font-size: 12px;
}

.process-list {
  display: grid;
  margin: 0 0 22px;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.process-list b {
  display: grid;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  place-items: center;
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 15px;
}

.demo-controls {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 13px;
}

.demo-controls summary {
  min-height: 44px;
  color: var(--dim);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 44px;
  text-transform: uppercase;
}

.demo-controls p {
  margin: 0 0 12px;
  color: var(--dim);
  font-size: 10px;
}

.confirmation-panel {
  padding: 20px;
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  background: rgba(196, 149, 90, 0.08);
}

.confirmation-grid {
  display: grid;
  margin: 20px 0;
  gap: 0;
}

.confirmation-row {
  display: flex;
  min-height: 48px;
  padding: 10px 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.confirmation-row span:first-child {
  color: var(--muted);
}

.confirmation-row strong {
  text-align: right;
}

.confirmation-row--amount strong {
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
}

.completed-mark,
.state-mark {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 8px auto 20px;
  border: 1px solid currentColor;
  border-radius: 50%;
  place-items: center;
  color: var(--success);
  font-family: var(--display);
  font-size: 36px;
}

.state-mark {
  color: var(--warning);
}

.state-title {
  font-size: 34px;
  text-align: center;
}

.state-copy {
  max-width: 440px;
  margin: 10px auto 22px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* Activity */
.filter-bar {
  display: flex;
  margin-bottom: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-bar label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.select-control {
  width: auto;
  min-width: 168px;
  color-scheme: dark;
}

.transaction-card {
  display: grid;
  padding: 17px;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}

.transaction-card:last-child {
  border-bottom: 0;
}

.transaction-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
}

.transaction-main h3 {
  margin: 0;
  font-size: 14px;
}

.transaction-main p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.transaction-amount {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.transaction-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  color: var(--dim);
  font-size: 10px;
}

.transaction-meta code {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: var(--interface);
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  padding: 0 8px;
  align-items: center;
  border: 1px solid rgba(132, 181, 154, 0.25);
  border-radius: 999px;
  background: rgba(132, 181, 154, 0.08);
  color: var(--success);
  font-size: 9px;
  font-weight: 700;
}

.status-pill--reversed {
  border-color: rgba(140, 170, 182, 0.25);
  background: rgba(140, 170, 182, 0.08);
  color: var(--info);
}

.loading-list {
  display: grid;
  padding: 18px;
  gap: 14px;
}

.skeleton {
  height: 76px;
  border-radius: 12px;
  background: linear-gradient(90deg, #1a1512 20%, #241c17 50%, #1a1512 80%);
  background-size: 220% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  to { background-position: -220% 0; }
}

.empty-state {
  display: grid;
  min-height: 260px;
  padding: 28px;
  place-content: center;
  text-align: center;
}

.empty-state strong {
  font-family: var(--display);
  font-size: 29px;
  font-weight: 500;
}

.empty-state p {
  max-width: 390px;
  margin: 8px auto 18px;
  color: var(--muted);
  font-size: 12px;
}

/* Profile */
.profile-identity {
  display: flex;
  padding: 22px;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  display: grid;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  place-items: center;
  background: rgba(196, 149, 90, 0.08);
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 23px;
}

.profile-identity h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 29px;
  font-weight: 500;
  line-height: 1.1;
}

.profile-identity p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.profile-section {
  overflow: hidden;
}

.profile-row {
  display: grid;
  min-height: 62px;
  padding: 13px 17px;
  grid-template-columns: minmax(110px, 0.8fr) 1.2fr;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}

.profile-row:last-child {
  border-bottom: 0;
}

.profile-row dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-row dd {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.profile-actions {
  display: grid;
  margin-top: 14px;
  gap: 10px;
}

.action-link {
  display: flex;
  width: 100%;
  min-height: 58px;
  padding: 0 17px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(29, 23, 19, 0.72);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.action-link span:last-child {
  color: var(--gold);
  font-family: var(--display);
  font-size: 21px;
}

.action-link--danger {
  color: var(--danger);
}

dialog {
  width: min(92vw, 470px);
  padding: 0;
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.dialog-content {
  padding: 24px;
}

.dialog-content h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 31px;
  font-weight: 500;
}

.dialog-content > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.dialog-actions {
  display: flex;
  margin-top: 20px;
  justify-content: flex-end;
  gap: 10px;
}

.support-dialog {
  width: min(94vw, 720px);
  max-height: min(88vh, 880px);
}

.support-dialog__content {
  max-height: min(88vh, 880px);
  overflow: auto;
}

.support-dialog__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.support-dialog__heading p,
.request-empty {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.icon-button {
  width: 44px;
  min-width: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 24px;
}

.request-history {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.request-history h3 {
  margin: 0;
  color: var(--gold-bright);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.request-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-raised);
}

.request-card > strong {
  display: block;
  margin-top: 10px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
}

.request-card > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.request-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 9px;
}

.request-status {
  padding: 3px 8px;
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  color: var(--gold-bright);
  font-weight: 700;
  letter-spacing: .06em;
}

.request-status--completed {
  border-color: color-mix(in srgb, var(--success) 46%, transparent);
  color: var(--success);
}

.request-status--cancelled {
  border-color: color-mix(in srgb, var(--dim) 46%, transparent);
  color: var(--dim);
}

.request-thread {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.request-outcome,
.request-rating {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.service-satisfaction-form {
  display: flex;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.service-satisfaction-form label {
  display: grid;
  flex: 1 1 220px;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.request-message {
  max-width: 88%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 3px;
  background: var(--surface-soft);
}

.request-message--member {
  margin-left: auto;
  border-color: var(--border-gold);
  border-radius: 12px 12px 3px 12px;
  background: rgba(196, 149, 90, .09);
}

.request-message span,
.request-message time {
  color: var(--dim);
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.request-message p {
  margin: 4px 0;
  font-size: 12px;
  line-height: 1.5;
}

.support-form {
  display: grid;
  gap: 9px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.support-form label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
}

.support-form select,
.support-form textarea,
.support-form input[type="file"] {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
}

.support-form input[type="file"] {
  padding: 8px;
  cursor: pointer;
}

.field-note {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-weight: 400;
  letter-spacing: normal;
}

.support-form textarea {
  min-height: 112px;
  resize: vertical;
}

.support-form select:focus-visible,
.support-form textarea:focus-visible,
.support-form input[type="file"]:focus-visible {
  border-color: var(--gold-bright);
  outline: 3px solid rgba(196, 149, 90, .15);
}

.privacy-summary {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-raised);
}

.privacy-summary h3 {
  margin: 6px 0 0;
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
}

.privacy-summary p,
.privacy-rights p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.consent-form {
  display: grid;
  gap: 10px;
}

.consent-choice {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  cursor: pointer;
}

.consent-choice:focus-within {
  border-color: var(--gold-bright);
  outline: 3px solid rgba(196, 149, 90, .15);
}

.consent-choice input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--gold);
}

.consent-choice span {
  display: grid;
  gap: 4px;
}

.consent-choice strong {
  font-size: 13px;
}

.consent-choice small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.privacy-rights {
  margin-top: 6px;
  padding: 14px;
  border-left: 3px solid var(--gold-deep);
  background: rgba(196, 149, 90, .06);
}

.privacy-rights strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 12px;
}

.toast-region {
  position: fixed;
  top: 86px;
  right: 16px;
  z-index: 100;
  display: grid;
  width: min(360px, calc(100% - 32px));
  gap: 8px;
}

.toast {
  padding: 13px 15px;
  border: 1px solid var(--border-gold);
  border-radius: 11px;
  background: #211a15;
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 11px;
  animation: toast-in 180ms ease-out;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-6px); }
}

@media (min-width: 680px) {
  .page-frame {
    padding-top: 44px;
  }

  .hero-grid,
  .pay-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  }

  .benefit-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .support-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .profile-grid {
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
    align-items: start;
  }

  .profile-identity {
    min-height: 210px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .transaction-meta {
    grid-template-columns: 1.2fr 1fr auto;
    align-items: center;
  }

  .login-card {
    padding: 38px;
  }

  .qr-panel,
  .payment-side-panel {
    padding: 26px;
  }
}

@media (min-width: 860px) {
  .desktop-nav {
    display: flex;
  }

  .bottom-nav {
    display: none;
  }

  .page-frame {
    padding-bottom: 60px;
  }

  .header-inner {
    min-height: 78px;
  }
}

@media (max-width: 420px) {
  .header-inner,
  .page-frame,
  .login-header,
  .login-main,
  .login-footer {
    width: min(100% - 24px, 1120px);
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    display: none;
  }

  .demo-badge {
    padding: 0 8px;
    font-size: 8px;
  }

  .membership-card,
  .credit-panel {
    padding: 20px;
  }

  .membership-card__bottom {
    margin-top: 50px;
  }

  .profile-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .profile-row dd {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .membership-card {
    transform: none !important;
  }
}
