/* Fidelidad Tattooink507 — visual foundations */
:root {
  --ink: #080807;
  --ink-raised: #10100e;
  --charcoal: #1c1b18;
  --smoke: #393730;
  --line: rgba(255, 252, 241, 0.16);
  --paper: #f6f2e8;
  --muted: #aaa69d;
  --gold: #e6bd69;
  --gold-light: #f8d98f;
  --gold-deep: #bd8936;
  --font-display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --radius-sm: 0.75rem;
  --radius-md: 1.125rem;
  --radius-lg: 1.75rem;
  --radius-pill: 999px;
  --page-gutter: clamp(1.5rem, 6vw, 3rem);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, a { font: inherit; }

/* Public mobile experience. The original brushwork image remains the visual base. */
.welcome-screen {
  isolation: isolate;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: max(1.25rem, env(safe-area-inset-top)) var(--page-gutter) max(1.1rem, env(safe-area-inset-bottom));
  background-color: var(--ink);
}

.welcome-screen::before,
.welcome-screen::after,
.registration-screen::before,
.registration-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.welcome-screen::before,
.registration-screen::before {
  background-image: url("/assets/brushwork-background.png");
  background-repeat: no-repeat;
  /* Enlarged crop aligns the original painted circle with the central title block. */
  background-size: auto 150%;
  background-position: 4vw -6vh;
  filter: contrast(0.88) brightness(0.5) saturate(0.55);
  transform: scale(1.018);
}

.welcome-screen::after,
.registration-screen::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 3, 3, 0.56) 0%, rgba(5, 5, 4, 0.23) 25%, rgba(5, 5, 4, 0.08) 51%, rgba(4, 4, 3, 0.38) 79%, rgba(3, 3, 3, 0.8) 100%),
    radial-gradient(ellipse 74% 46% at 50% 48%, rgba(11, 10, 8, 0.03) 12%, rgba(7, 7, 6, 0.31) 78%, rgba(4, 4, 4, 0.52) 100%);
}

.brand {
  position: absolute;
  top: max(1.25rem, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 0.58rem;
  color: rgba(246, 242, 232, 0.95);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.brand__mark {
  width: 0.38rem;
  height: 0.38rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(230, 189, 105, 0.65);
}

.hero {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__logo {
  position: absolute;
  top: clamp(4.8rem, 11.5vh, 6.5rem);
  left: 50%;
  width: clamp(9.2rem, 42vw, 11.8rem);
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 0.9rem rgba(244, 204, 111, 0.44)) drop-shadow(0 0 2.25rem rgba(198, 139, 40, 0.32));
}

.hero__copy {
  position: absolute;
  top: 45%;
  left: var(--page-gutter);
  right: var(--page-gutter);
  display: grid;
  justify-items: center;
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.66);
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.59rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.82rem, 8.35vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.34;
  text-transform: uppercase;
}

.hero__detail {
  margin: 1.5rem 0 0;
  color: rgba(246, 242, 232, 0.65);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.action-area {
  position: absolute;
  right: var(--page-gutter);
  bottom: clamp(6.35rem, 14.1vh, 7.45rem);
  left: var(--page-gutter);
  z-index: 2;
  display: grid;
  gap: 0.65rem;
  width: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  min-height: 3.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button svg { width: 1.2rem; height: 1.2rem; }
.button--primary {
  color: #1a160e;
  background: linear-gradient(105deg, #d5a956, var(--gold-light) 55%, #d7a84f);
  box-shadow: 0 12px 30px rgba(154, 104, 30, 0.22), inset 0 1px rgba(255, 249, 219, 0.7);
}
.button--primary:hover { transform: translateY(-2px); box-shadow: 0 15px 35px rgba(154, 104, 30, 0.32), inset 0 1px rgba(255, 249, 219, 0.7); }
.button--primary:active { transform: translateY(0); }
.button--secondary {
  min-height: 3rem;
  color: rgba(230, 189, 105, 0.88);
  background: rgba(8, 8, 7, 0.5);
  border-color: rgba(230, 189, 105, 0.38);
}
.button--secondary:hover { color: var(--gold-light); background: rgba(230, 189, 105, 0.08); border-color: rgba(230, 189, 105, 0.62); }
.button--secondary:active { transform: translateY(1px); }
.button:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }

.screen-footer {
  position: absolute;
  right: var(--page-gutter);
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  left: var(--page-gutter);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: rgba(246, 242, 232, 0.62);
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}
.screen-footer a { color: inherit; text-decoration: none; }
.screen-footer a:hover { color: var(--paper); }
.screen-footer span { width: 1px; height: 0.6rem; background: rgba(246, 242, 232, 0.32); }

/* Registration */
.registration-screen {
  isolation: isolate;
  position: relative;
  min-height: 100svh;
  overflow: auto;
  padding: max(1.3rem, env(safe-area-inset-top)) var(--page-gutter) 4.35rem;
  background: var(--ink);
}

.registration-screen::before {
  background-size: auto 142%;
  background-position: 5vw -1vh;
  filter: contrast(0.82) brightness(0.32) saturate(0.45);
  transform: scale(1.02);
}

.registration-screen::after {
  background: linear-gradient(180deg, rgba(4, 4, 3, 0.72), rgba(6, 6, 5, 0.55) 47%, rgba(4, 4, 3, 0.78));
}

.form-header {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  grid-template-columns: 2.75rem 1fr 2.75rem;
  height: 2.75rem;
}

.back-button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  color: var(--paper);
  border-radius: 50%;
}
.back-button svg { width: 1.45rem; height: 1.45rem; }
.back-button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

.form-header__brand {
  justify-self: center;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.registration-form {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.95rem;
  width: min(100%, 28rem);
  margin: 1.7rem auto 0;
}

.field-group { display: grid; gap: 0.48rem; }
.field-group > label { color: var(--paper); font-size: 0.78rem; font-weight: 600; }

.field-control {
  display: flex;
  align-items: center;
  min-height: 3.45rem;
  padding: 0 1rem;
  color: var(--gold-light);
  background: rgba(26, 26, 24, 0.86);
  border: 1px solid rgba(246, 242, 232, 0.09);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 0.6rem 1.8rem rgba(0, 0, 0, 0.1);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field-control:focus-within { border-color: rgba(230, 189, 105, 0.66); box-shadow: 0 0 0 3px rgba(230, 189, 105, 0.12); }
.field-icon { flex: 0 0 auto; width: 1.22rem; height: 1.22rem; margin-right: 0.75rem; color: var(--gold); }
.field-control input {
  min-width: 0;
  color: var(--paper);
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--font-display);
  font-size: 0.84rem;
}
.field-control input { width: 100%; }
.field-control input::placeholder { color: rgba(246, 242, 232, 0.4); }
.country-picker { position: relative; flex: 0 0 auto; width: max-content; align-self: stretch; margin: -0.35rem 0; }
.country-picker__trigger { display: flex; align-items: center; width: 100%; height: 100%; padding: 0; color: var(--paper); background: transparent; border: 0; cursor: pointer; font: inherit; font-size: 0.79rem; font-weight: 600; }
.country-picker__value { white-space: nowrap; }
.country-picker__menu { position: absolute; z-index: 10; top: calc(100% + 0.8rem); left: -2.25rem; width: min(22rem, calc(100vw - (var(--page-gutter) * 2))); overflow: hidden; background: #201f1b; border: 1px solid rgba(230, 189, 105, 0.4); border-radius: var(--radius-md); box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.6); }
.country-picker__search { display: flex; align-items: center; min-height: 3.15rem; padding: 0 0.95rem; border-bottom: 1px solid rgba(246, 242, 232, 0.12); color: var(--gold); }
.country-picker__search svg { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-right: 0.7rem; }
.country-picker__search input { min-width: 0; width: 100%; color: var(--paper); background: transparent; border: 0; outline: 0; font: inherit; font-size: 0.83rem; }
.country-picker__search input::placeholder { color: rgba(246, 242, 232, 0.48); }
.country-picker__list { max-height: 16.2rem; overflow-y: auto; overscroll-behavior: contain; }
.country-picker__option { display: grid; grid-template-columns: 1.65rem 1fr auto; align-items: center; width: 100%; min-height: 3.25rem; padding: 0 1rem; gap: 0.35rem; color: var(--paper); background: transparent; border: 0; border-bottom: 1px solid rgba(246, 242, 232, 0.07); cursor: pointer; font: inherit; font-size: 0.83rem; text-align: left; }
.country-picker__option strong { color: var(--gold-light); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; }
.country-picker__option:hover, .country-picker__option[aria-selected="true"] { background: rgba(230, 189, 105, 0.1); }
.field-control--phone > #phone-local { flex: 1 1 auto; width: auto; min-width: 0; margin-left: 4px; padding-inline: 0; }

.field-control--date { position: relative; cursor: pointer; }
.date-display { position: absolute; left: 3rem; color: rgba(246, 242, 232, 0.43); font-size: 0.84rem; pointer-events: none; }
.field-control--date.has-value .date-display { color: var(--paper); }
.field-control--date input[type="date"] { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }

.consents { display: grid; gap: 0.78rem; margin: 0.45rem 0 0.3rem; padding: 0; border: 0; }
.check-row { position: relative; display: grid; grid-template-columns: 1.55rem 1fr; gap: 0.65rem; align-items: start; color: rgba(246, 242, 232, 0.84); font-size: 0.7rem; font-weight: 500; line-height: 1.46; cursor: pointer; }
.check-row input { position: absolute; opacity: 0; }
.checkbox { display: grid; width: 1.35rem; height: 1.35rem; place-items: center; margin-top: 0.02rem; color: #1a160e; border: 1.5px solid rgba(230, 189, 105, 0.85); border-radius: 0.32rem; }
.checkbox svg { display: none; width: 0.88rem; height: 0.88rem; }
.check-row input:checked + .checkbox { background: var(--gold-light); border-color: var(--gold-light); }
.check-row input:checked + .checkbox svg { display: block; }
.check-row input:focus-visible + .checkbox { outline: 2px solid var(--paper); outline-offset: 3px; }

.registration-form .button { margin-top: 0.4rem; }
.registration-form .registration-recovery { margin-top: 0; }
.form-status { margin: -0.15rem 0 0; color: #f0a29a; font-size: 0.7rem; line-height: 1.45; }
.button:disabled, .admin-scan-button:disabled { cursor: wait; opacity: 0.66; }
.button.is-loading span::after { content: "…"; }
.registration-screen .screen-footer { bottom: max(1.1rem, env(safe-area-inset-bottom)); }

/* Desktop is an access handoff, never the public loyalty interface. */
.desktop-notice { display: none; }

@media (max-height: 42rem) {
  .hero__logo { top: 3.7rem; width: clamp(8rem, 35vh, 10rem); }
  .hero__copy { top: 43%; }
  .eyebrow { margin-bottom: 0.8rem; }
  .hero__detail { margin-top: 0.8rem; }
  .action-area { bottom: 4.55rem; }
}

@media (min-width: 48rem) {
  .public-page .mobile-public-screen { display: none; }

  .desktop-notice {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 100vh;
    place-items: center;
    overflow: hidden;
    padding: 3rem;
    background: #090908;
  }

  .desktop-notice::before,
  .desktop-notice::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
  }

  .desktop-notice::before {
    background: url("/assets/brushwork-background.png") center 42% / cover no-repeat;
    opacity: 0.42;
    filter: grayscale(1) contrast(0.88) brightness(0.44);
    transform: scale(1.04);
  }

  .desktop-notice::after {
    z-index: -1;
    background: radial-gradient(circle at center, rgba(9, 9, 8, 0.27), rgba(5, 5, 4, 0.82) 75%);
  }

  .desktop-notice__card {
    display: grid;
    justify-items: center;
    width: min(100%, 31rem);
    padding: 3.6rem 4rem 3rem;
    text-align: center;
    background: rgba(13, 13, 11, 0.58);
    border: 1px solid rgba(246, 242, 232, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.44), inset 0 1px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
  }

  .desktop-notice__copy { margin-top: 3rem; }
  .desktop-notice__copy .eyebrow { margin-bottom: 1rem; }
  .desktop-notice__copy h1 { font-size: clamp(1.6rem, 2.5vw, 2.25rem); letter-spacing: 0.1em; }
  .desktop-notice__copy p:not(.eyebrow) { margin: 1.2rem 0 0; color: var(--muted); font-size: 0.86rem; }

  .qr-frame {
    display: grid;
    place-items: center;
    width: 13.25rem;
    height: 13.25rem;
    margin-top: 2.2rem;
    padding: 0.75rem;
    background: var(--paper);
    border-radius: var(--radius-sm);
    box-shadow: 0 0 0 1px rgba(248, 217, 143, 0.4), 0 0 2.5rem rgba(230, 189, 105, 0.14);
  }

  .qr-frame img { display: block; width: 100%; height: 100%; }
  .desktop-notice__url { margin: 1.35rem 0 0; color: var(--gold-light); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.05em; }
}

@media (max-height: 44rem) {
  .registration-screen { padding-top: max(0.7rem, env(safe-area-inset-top)); }
  .registration-form { gap: 0.66rem; margin-top: 0.8rem; }
  .field-control { min-height: 3.05rem; }
  .consents { gap: 0.52rem; margin-top: 0.1rem; }
  .registration-form .button { min-height: 3.25rem; }
}

/* Screen 03: brief confirmation, with no customer/card details. */
.confirmation-screen { padding-bottom: 5rem; }
.confirmation-header { text-align: center; padding-block: 0.9rem; color: var(--paper); font-family: var(--font-mono); font-size: 0.71rem; font-weight: 500; letter-spacing: 0.14em; }
.confirmation-content { width: min(100%, 28rem); margin: clamp(3rem, 10svh, 6rem) auto 0; text-align: center; }
.confirmation-check { display: block; width: 6rem; height: 6rem; margin: 0 auto 1.6rem; color: var(--gold-light); filter: drop-shadow(0 0 10px rgba(230, 189, 105, 0.32)); }
.confirmation-content h1 { color: var(--gold-light); font-size: 2rem; font-weight: 600; letter-spacing: 0.05em; }
.confirmation-message { margin: 1rem 0 0; color: var(--paper); font-size: 1.13rem; line-height: 1.65; }
.confirmation-wallets { display: grid; justify-items: center; gap: 0.15rem; margin-top: 3.2rem; }
.wallet-badge { display: block; padding: 0.5rem; border: 0; background: transparent; line-height: 0; }
.wallet-badge img { display: block; width: auto; height: 3.05rem; max-width: 100%; }
.wallet-badge:disabled { cursor: wait; opacity: 0.7; }
.confirmation-continue { margin-top: 2rem; }
@media (max-height: 44rem) {
  .confirmation-content { margin-top: 1.5rem; }
  .confirmation-check { width: 4.5rem; height: 4.5rem; margin-bottom: 1rem; }
  .confirmation-wallets { margin-top: 1.75rem; }
  .confirmation-continue { margin-top: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }

/* Mi tarjeta */
.card-screen {
  min-height: 100svh;
  overflow: hidden;
  padding-bottom: 4.25rem;
}

.card-screen::before {
  background-size: auto 144%;
  background-position: 4vw -2vh;
  filter: contrast(0.84) brightness(0.31) saturate(0.5);
}

.card-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 2.75rem 1fr 2.75rem;
  align-items: center;
  min-height: 2.75rem;
}

.card-header__brand {
  justify-self: center;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.menu-button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  color: var(--paper);
  background: rgba(17, 17, 15, 0.74);
  border: 1px solid rgba(246, 242, 232, 0.18);
  border-radius: 50%;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.menu-button svg { width: 1.2rem; height: 1.2rem; }
.menu-button:hover { color: var(--gold-light); border-color: rgba(230, 189, 105, 0.44); }
.menu-button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.lucide {
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-content {
  position: relative;
  z-index: 2;
  width: min(100%, 28rem);
  margin: clamp(1rem, 3.2svh, 1.8rem) auto 0;
}

.loyalty-card {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  padding: 1.25rem 1rem 1.15rem;
  background: linear-gradient(150deg, rgba(27, 26, 23, 0.93), rgba(8, 8, 7, 0.96));
  border: 1px solid rgba(246, 242, 232, 0.2);
  border-radius: 1.35rem;
  box-shadow: 0 1.4rem 3.8rem rgba(0, 0, 0, 0.43), inset 0 1px rgba(255, 255, 255, 0.05);
}

.loyalty-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/brushwork-background.png") center 43% / cover no-repeat;
  opacity: 0.13;
  filter: grayscale(1) contrast(1.1);
}

.loyalty-card__identity {
  margin-top: 0.7rem;
  text-align: center;
}

.loyalty-card__identity strong {
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.loyalty-card__qr {
  display: grid;
  width: clamp(6.2rem, 27vw, 7rem);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 0.42rem;
  place-items: center;
  background: var(--paper);
  border-radius: 0.72rem;
  box-shadow:
    0 0.65rem 1.8rem rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(230, 189, 105, 0.16),
    0 0 1.05rem rgba(230, 189, 105, 0.075);
}

.loyalty-card__qr img { display: block; width: 100%; height: 100%; }

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.78rem 0.6rem;
  margin-top: 1.25rem;
}

.stamp-slot {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 3.1rem;
  aspect-ratio: 1;
  justify-self: center;
  place-items: center;
  color: rgba(230, 189, 105, 0.72);
  background: rgba(3, 3, 3, 0.34);
  border: 1px solid rgba(246, 242, 232, 0.24);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  box-shadow: inset 0 0.45rem 1rem rgba(0, 0, 0, 0.34);
}

.stamp-slot--milestone {
  color: var(--gold-light);
  border-color: rgba(230, 189, 105, 0.72);
  box-shadow: 0 0 0.6rem rgba(230, 189, 105, 0.14);
}

.stamp-slot--milestone::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 245deg, rgba(230, 189, 105, 0.12) 265deg, #e6bd69 298deg, #fff6d9 318deg, #f8d98f 330deg, transparent 348deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: milestone-orbit 4.5s linear infinite;
  pointer-events: none;
}

.stamp-slot--earned {
  --sticker-angle: 0deg;
  isolation: isolate;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.stamp-slot--earned img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: calc(100% + 0.72rem);
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%) rotate(var(--sticker-angle));
  filter: drop-shadow(0 0.35rem 0.42rem rgba(0, 0, 0, 0.48));
}

.stamp-slot--earned::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% + 0.72rem);
  aspect-ratio: 1;
  background: linear-gradient(108deg, transparent 28%, rgba(255, 255, 255, 0.32) 47%, rgba(214, 247, 255, 0.18) 51%, transparent 68%);
  background-size: 300% 100%;
  background-repeat: no-repeat;
  -webkit-mask: url("/assets/tattooink507-holographic-stamp.png") center / contain no-repeat;
  mask: url("/assets/tattooink507-holographic-stamp.png") center / contain no-repeat;
  mix-blend-mode: screen;
  opacity: 0.18;
  transform: translate(-50%, -50%) rotate(var(--sticker-angle));
  animation: sticker-shimmer 7.5s ease-in-out infinite;
  pointer-events: none;
}

.stamp-slot--earned:nth-child(2)::after { animation-delay: -1.1s; }
.stamp-slot--earned:nth-child(3)::after { animation-delay: -2.2s; }
.stamp-slot--earned:nth-child(4)::after { animation-delay: -3.3s; }

.stamp-slot--earned:nth-child(2) { --sticker-angle: 1deg; }
.stamp-slot--earned:nth-child(3) { --sticker-angle: -1.2deg; }
.stamp-slot--earned:nth-child(4) { --sticker-angle: 0.6deg; }

.card-rewards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 1.15rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(246, 242, 232, 0.1);
}

.card-reward {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0 0.6rem;
  color: rgba(176, 139, 67, 0.58);
}

.card-reward + .card-reward { border-left: 1px solid rgba(246, 242, 232, 0.1); }
.card-reward__icon { width: 1.25rem; height: 1.25rem; flex: 0 0 1.25rem; color: currentColor; }
.card-reward__copy { display: grid; gap: 0.18rem; min-width: 0; text-align: left; }
.card-reward span { color: currentColor; font-size: 0.65rem; font-weight: 600; }
.card-reward strong { color: currentColor; font-size: 0.53rem; font-weight: 500; line-height: 1.35; }
.card-reward.is-active {
  color: #f3cf79;
  animation: reward-outer-glow 3.2s ease-in-out infinite;
}

@keyframes reward-outer-glow {
  0%, 100% { filter: drop-shadow(0 0 0.18rem rgba(230, 189, 105, 0.3)); }
  50% { filter: drop-shadow(0 0 0.42rem rgba(244, 207, 121, 0.62)); }
}

.card-progress { margin-top: 1rem; }
.card-progress__track { height: 0.42rem; overflow: hidden; background: rgba(246, 242, 232, 0.22); border-radius: var(--radius-pill); }
.card-progress__track span { display: block; width: 40%; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: inherit; box-shadow: 0 0 0.7rem rgba(230, 189, 105, 0.24); }
.card-progress p { margin: 0.45rem 0 0; color: rgba(246, 242, 232, 0.72); font-family: var(--font-mono); font-size: 0.58rem; text-align: center; }
.card-reward-expiry { margin: 0.55rem 0 0; color: var(--gold-light); font-size: 0.58rem; font-weight: 600; text-align: center; }
.card-reward-expiry.is-expired { color: rgba(246, 242, 232, 0.68); }
.card-terms-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  margin: 0.15rem auto -0.45rem;
  padding: 0 0.45rem;
  color: rgba(246, 242, 232, 0.66);
  font-size: 0.55rem;
  line-height: 1.35;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: rgba(230, 189, 105, 0.55);
  text-underline-offset: 0.18rem;
}
.card-terms-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 0.12rem; border-radius: 0.35rem; }

.card-wallets {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  margin-top: 0.8rem;
}

.card-wallets .wallet-badge { flex: 0 0 auto; padding: 0.45rem; }
.card-wallets .wallet-badge img { height: 2.75rem; }

/* Shared Wallet loading state. It deliberately lives above the existing page instead of
   introducing a separate modal surface, so the customer keeps their visual context. */
.wallet-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.45rem;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  color: var(--gold-light);
  background: rgba(3, 3, 2, 0.56);
  backdrop-filter: blur(12px) saturate(0.58) contrast(0.82);
  -webkit-backdrop-filter: blur(12px) saturate(0.58) contrast(0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.wallet-loading-overlay[hidden] { display: none; }

.wallet-loading-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.wallet-loading-overlay__copy {
  display: grid;
  gap: 0.4rem;
  justify-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(0.74rem, 3.3vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.3;
  text-transform: uppercase;
}

.wallet-loading-overlay__copy span,
.wallet-loading-overlay__copy strong {
  display: block;
  color: transparent;
  background: linear-gradient(100deg, #745020 0%, #bb8638 28%, #f7e3a2 50%, #c79142 70%, #795121 100%);
  background-size: 235% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: wallet-metal-sheen 9s ease-in-out infinite;
}

.wallet-loading-overlay__copy strong { font-weight: 600; }

.wallet-loading-overlay__spinner {
  width: 2.35rem;
  aspect-ratio: 1;
  border: 1.5px solid rgba(127, 83, 27, 0.82);
  border-top-color: #f8dfa0;
  border-right-color: #d0a04a;
  border-radius: 50%;
  animation: wallet-spinner 920ms linear infinite;
}

@keyframes wallet-metal-sheen {
  0%, 100% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
}

@keyframes wallet-spinner { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .wallet-loading-overlay,
  .wallet-loading-overlay__copy span,
  .wallet-loading-overlay__copy strong,
  .wallet-loading-overlay__spinner { animation: none; transition: none; }
}

/* Screen 05: lateral navigation over the approved loyalty card. */
.side-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.74);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(1.5px);
  transition: opacity 320ms ease;
}

.side-menu {
  isolation: isolate;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  display: flex;
  width: min(83vw, 22rem);
  padding: max(1.35rem, env(safe-area-inset-top)) 1.1rem max(1.4rem, env(safe-area-inset-bottom));
  flex-direction: column;
  overflow: hidden;
  color: var(--paper);
  background: linear-gradient(155deg, rgba(25, 25, 22, 0.985), rgba(10, 10, 9, 0.995));
  border-left: 1px solid rgba(246, 242, 232, 0.1);
  box-shadow: -1.5rem 0 3.5rem rgba(0, 0, 0, 0.55);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 390ms cubic-bezier(0.22, 1, 0.36, 1), visibility 390ms step-end;
}

.side-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/brushwork-background.png") 54% 68% / auto 122% no-repeat;
  opacity: 0.085;
  filter: grayscale(1) contrast(1.1);
  pointer-events: none;
}

.menu-open { overflow: hidden; }
.menu-open .side-menu-backdrop { opacity: 1; pointer-events: auto; }
.menu-open .side-menu { transform: translateX(0); visibility: visible; transition: transform 390ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s; }

.side-menu__close {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  padding: 0;
  place-items: center;
  color: rgba(246, 242, 232, 0.9);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.side-menu__close svg { width: 1.45rem; height: 1.45rem; }
.side-menu__close:hover { color: var(--gold-light); }
.side-menu__close:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

.side-menu__nav {
  display: grid;
  gap: 0.42rem;
  margin-top: clamp(2rem, 5.5svh, 3.5rem);
}

.side-menu__item {
  display: grid;
  grid-template-columns: 1.55rem 1fr;
  align-items: center;
  width: 100%;
  min-height: 3.45rem;
  padding: 0.7rem 0.9rem;
  gap: 0.8rem;
  color: rgba(246, 242, 232, 0.78);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.78rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  transition: color 170ms ease, background 170ms ease, border-color 170ms ease;
}

.side-menu__item svg {
  width: 1.35rem;
  height: 1.35rem;
  justify-self: center;
}

.side-menu__item:hover { color: var(--paper); background: rgba(246, 242, 232, 0.045); }
.side-menu__item:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.side-menu__item.is-active {
  color: var(--gold-light);
  background: linear-gradient(90deg, rgba(230, 189, 105, 0.15), rgba(230, 189, 105, 0.09));
  border-color: rgba(230, 189, 105, 0.08);
  box-shadow: inset 0 1px rgba(255, 250, 224, 0.035);
}

.side-menu__footer {
  margin-top: auto;
  align-self: center;
  color: rgba(246, 242, 232, 0.58);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.side-menu__footer:hover { color: var(--paper); }

/* Public information pages */
.public-info-document,
.public-info-page {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.content-screen {
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  overflow-x: clip;
  overflow-y: auto;
  padding-bottom: 5rem;
}

.content-screen::before { transform: none; }

.public-info-page .content-body,
.public-info-page .content-heading,
.public-info-page .reward-list,
.public-info-page .steps-list,
.public-info-page .content-copy,
.public-info-page .terms-document,
.public-info-page img { max-width: 100%; }

.content-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 2.75rem 1fr 2.75rem;
  align-items: center;
  min-height: 2.75rem;
}

.content-header__brand {
  justify-self: center;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.content-body {
  position: relative;
  z-index: 2;
  width: min(100%, 28rem);
  margin: clamp(3.25rem, 10svh, 5.5rem) auto 0;
}

.content-heading {
  display: grid;
  justify-items: start;
  gap: 1rem;
}

.content-heading__icon {
  width: 1.55rem;
  height: 1.55rem;
  color: var(--gold);
}

.content-heading h1 {
  max-width: 100%;
  font-size: clamp(1.55rem, 7.3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 1.23;
}

.reward-list {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(246, 242, 232, 0.14);
}

.reward-list__item {
  display: grid;
  gap: 0.32rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid rgba(246, 242, 232, 0.14);
}

.reward-list__count {
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reward-list__item strong { color: var(--paper); font-size: 1rem; font-weight: 600; }

.content-copy {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  color: rgba(246, 242, 232, 0.79);
  font-size: 0.88rem;
  line-height: 1.65;
}

.content-copy p { margin: 0; }

.steps-list {
  display: grid;
  gap: 0;
  margin: 2.35rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(246, 242, 232, 0.14);
}

.steps-list li {
  display: grid;
  grid-template-columns: 1.55rem 1fr;
  align-items: center;
  min-height: 3.55rem;
  gap: 0.85rem;
  border-bottom: 1px solid rgba(246, 242, 232, 0.14);
}

.steps-list li > span {
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-align: center;
}

.steps-list p { margin: 0; color: rgba(246, 242, 232, 0.85); font-size: 0.84rem; line-height: 1.45; }
.content-note { margin: 1.6rem 0 0; color: var(--gold-light); font-size: 0.76rem; line-height: 1.55; }

.content-body--terms { margin-top: clamp(2.8rem, 8svh, 4.5rem); }
.terms-meta { display: grid; gap: 0.8rem; margin: 2.4rem 0 0; padding: 1.1rem 0; border-top: 1px solid rgba(246, 242, 232, 0.14); border-bottom: 1px solid rgba(246, 242, 232, 0.14); }
.terms-meta div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.terms-meta dt { color: rgba(246, 242, 232, 0.62); font-size: 0.75rem; }
.terms-meta dd { margin: 0; color: var(--gold-light); font-family: var(--font-mono); font-size: 0.63rem; }
.terms-document { margin-top: 1.8rem; color: rgba(246, 242, 232, 0.79); font-size: 0.84rem; line-height: 1.62; }
.terms-intro { margin: 0 0 1.8rem; color: rgba(246, 242, 232, 0.88); }
.terms-section { padding: 1.65rem 0; border-top: 1px solid rgba(246, 242, 232, 0.14); }
.terms-section__number { margin: 0 0 0.3rem; color: var(--gold-light); font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.09em; text-transform: uppercase; }
.terms-section h2 { margin: 0 0 1rem; color: var(--paper); font-size: 1.15rem; line-height: 1.25; }
.terms-section h3 { margin: 1.35rem 0 0.45rem; color: var(--gold-light); font-size: 0.78rem; letter-spacing: 0.025em; }
.terms-section p { margin: 0 0 0.8rem; }
.terms-section ul { display: grid; gap: 0.62rem; margin: 0.7rem 0 1rem; padding: 0 0 0 1.05rem; }
.terms-section li::marker { color: var(--gold); }
.terms-examples { margin: 1rem 0 1.3rem; padding: 0.25rem 0; border-top: 1px solid rgba(230, 189, 105, 0.2); border-bottom: 1px solid rgba(230, 189, 105, 0.2); }
.terms-examples p { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: 0.62rem 0; }
.terms-examples p + p { border-top: 1px solid rgba(246, 242, 232, 0.09); }
.terms-examples strong { color: rgba(246, 242, 232, 0.9); font-weight: 600; }
.terms-examples span { color: var(--gold-light); text-align: right; }

.content-copy--help { margin-top: 2.25rem; }
.contact-actions { display: grid; justify-items: start; gap: 0.75rem; margin-top: 2rem; }
.contact-action {
  display: inline-flex;
  align-items: center;
  min-height: 3.2rem;
  margin-top: 0;
  padding: 0 1rem;
  gap: 0.7rem;
  color: var(--gold-light);
  background: rgba(230, 189, 105, 0.08);
  border: 1px solid rgba(230, 189, 105, 0.36);
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-decoration: none;
}

.contact-action svg { width: 1.18rem; height: 1.18rem; }

@media (max-height: 44rem) {
  .content-body { margin-top: 1.5rem; }
  .content-heading { gap: 0.7rem; }
  .reward-list { margin-top: 1.5rem; }
  .reward-list__item { padding: 0.85rem 0; }
  .steps-list { margin-top: 1.45rem; }
  .steps-list li { min-height: 2.9rem; }
  .content-copy { margin-top: 1.25rem; gap: 0.65rem; }
}

@keyframes milestone-orbit {
  to { transform: rotate(360deg); }
}

@keyframes sticker-shimmer {
  0%, 58% { background-position: 100% 50%; }
  90%, 100% { background-position: 0% 50%; }
}

@media (max-height: 44rem) {
  .card-content { margin-top: 0.8rem; }
  .loyalty-card { padding-block: 0.9rem; }
  .loyalty-card__qr { width: 5.5rem; margin-top: 0.65rem; }
  .stamp-grid { gap: 0.5rem; margin-top: 0.8rem; }
  .card-rewards { margin-top: 0.75rem; padding-top: 0.65rem; }
  .card-progress { margin-top: 0.7rem; }
  .card-wallets { margin-top: 0.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .stamp-slot--milestone::before,
  .stamp-slot--earned::after { animation: none; }
  .stamp-slot--earned::after { opacity: 0; }
  .card-reward.is-active { animation: none; filter: drop-shadow(0 0 0.28rem rgba(230, 189, 105, 0.46)); }
  .side-menu,
  .side-menu-backdrop { transition: none; }
}

/* Admin: private scanner entry, deliberately functional and restrained. */
.admin-page { min-height: 100svh; background: var(--ink); }
.admin-screen {
  isolation: isolate;
  position: relative;
  min-height: 100svh;
  overflow: auto;
  padding: max(1.35rem, env(safe-area-inset-top)) clamp(1.25rem, 5vw, 3rem) max(1.35rem, env(safe-area-inset-bottom));
  background: var(--ink);
}

.admin-screen::before,
.admin-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.admin-screen::before {
  background: url("/assets/brushwork-background.png") 48% 43% / cover no-repeat;
  opacity: 0.12;
  filter: grayscale(1) contrast(1.05) brightness(0.58);
}

.admin-screen::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 6, 5, 0.42), rgba(6, 6, 5, 0.82));
}

.admin-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 50rem);
  margin: 0 auto;
}

.admin-header__brand,
.admin-header__section {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.admin-header__brand { color: var(--paper); }
.admin-header__section { color: var(--gold-light); font-size: 0.56rem; letter-spacing: 0.1em; }

.admin-start {
  display: grid;
  align-content: center;
  width: min(100%, 29rem);
  min-height: calc(100svh - 5.2rem);
  margin: 0 auto;
}

.admin-start[hidden] { display: none; }

.admin-dashboard {
  width: min(100%, 50rem);
  margin: 2.7rem auto 0;
  padding-bottom: 2rem;
}

.admin-dashboard[hidden] { display: none; }
.admin-dashboard__heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-dashboard__heading p { margin: 0 0 0.48rem; color: var(--gold-light); font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.09em; text-transform: uppercase; }
.admin-dashboard__heading h1 { font-size: clamp(1.7rem, 6vw, 2.35rem); font-weight: 600; letter-spacing: 0.045em; }
.admin-dashboard__scan { margin-top: 1.6rem; }
.admin-activity-button { position: relative; display: grid; width: 2.85rem; height: 2.85rem; flex: 0 0 auto; place-items: center; color: var(--gold-light); background: #080807; border: 1px solid rgba(230, 189, 105, 0.62); border-radius: 50%; }
.admin-activity-button svg { width: 1.2rem; height: 1.2rem; }
.admin-activity-button i { display: none; }
.admin-activity-button.has-new-activity { background: rgba(230, 167, 66, 0.16); border-color: rgba(248, 217, 143, 0.9); box-shadow: 0 0 0.9rem rgba(230, 189, 105, 0.13); animation: activity-new-arrival 1.45s ease-out 1; }
.admin-activity-button.has-new-activity i { position: absolute; top: 0.12rem; right: 0.12rem; display: block; width: 0.55rem; height: 0.55rem; background: var(--gold-light); border: 2px solid var(--ink); border-radius: 50%; box-shadow: 0 0 0.35rem rgba(248, 217, 143, 0.46); }
.admin-activity-button:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

.admin-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; margin-top: 1.55rem; }
.admin-summary a { position: relative; display: grid; min-width: 0; min-height: 7.3rem; align-content: start; padding: 0.9rem; color: var(--paper); background: rgba(246, 242, 232, 0.045); border: 1px solid rgba(246, 242, 232, 0.12); border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 120ms ease; }
.admin-summary svg { width: 1.1rem; height: 1.1rem; color: var(--gold); }
.admin-summary span { margin-top: 0.8rem; color: rgba(246, 242, 232, 0.62); font-size: 0.6rem; line-height: 1.25; }
.admin-summary strong { margin-top: 0.25rem; color: var(--gold-light); font-family: var(--font-mono); font-size: 1.1rem; font-weight: 500; }
.admin-summary .admin-summary__chevron { position: absolute; right: 0.64rem; bottom: 0.65rem; width: 0.82rem; height: 0.82rem; color: rgba(230, 189, 105, 0.52); }
.admin-summary a:active { background: rgba(230, 189, 105, 0.09); border-color: rgba(230, 189, 105, 0.38); transform: scale(0.975); }
.admin-summary a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
@media (hover: hover) { .admin-summary a:hover { background: rgba(230, 189, 105, 0.075); border-color: rgba(230, 189, 105, 0.32); box-shadow: 0 0.75rem 1.8rem rgba(0, 0, 0, 0.16); } }

.admin-dashboard__grid { display: grid; gap: 1.8rem; margin-top: 2.5rem; }
.admin-dashboard-section { margin-top: 2.45rem; }
.admin-list-section { min-width: 0; }
.admin-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid rgba(246, 242, 232, 0.14); }
.admin-section-heading h2 { margin: 0; color: var(--paper); font-size: 0.84rem; font-weight: 600; }
.admin-section-heading > svg { width: 1rem; height: 1rem; color: var(--gold-light); }
.admin-section-heading a { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--gold-light); font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.04em; text-decoration: none; text-transform: uppercase; }
.admin-section-heading a svg { width: 0.9rem; height: 0.9rem; }
.admin-person-list, .admin-registration-list { display: grid; }
.admin-person-list button, .admin-registration-list button { display: grid; grid-template-columns: 2.25rem 1fr; align-items: center; min-height: 3.85rem; padding: 0.65rem 0; gap: 0.75rem; color: inherit; background: transparent; border: 0; border-bottom: 1px solid rgba(246, 242, 232, 0.1); cursor: pointer; text-align: left; }
.admin-person-list button:last-child, .admin-registration-list button:last-child { border-bottom: 0; }
.admin-person-list__avatar { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; color: var(--gold-light); background: rgba(230, 189, 105, 0.1); border: 1px solid rgba(230, 189, 105, 0.2); border-radius: 50%; font-family: var(--font-mono); font-size: 0.57rem; }
.admin-person-list button > span:last-child, .admin-registration-list button > span:last-child { display: grid; gap: 0.21rem; min-width: 0; }
.admin-person-list strong, .admin-registration-list strong { color: rgba(246, 242, 232, 0.9); font-size: 0.74rem; font-weight: 600; }
.admin-person-list small, .admin-registration-list small { color: rgba(246, 242, 232, 0.53); font-size: 0.62rem; }

.admin-activity { margin-top: 2.4rem; }
.activity-group { padding-top: 1.35rem; }
.activity-group > p { margin: 0 0 0.5rem; color: var(--gold-light); font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.08em; text-transform: uppercase; }
.activity-row { display: grid; grid-template-columns: 2.1rem 1fr; align-items: center; min-height: 4.15rem; gap: 0.78rem; border-bottom: 1px solid rgba(246, 242, 232, 0.075); }
.activity-row__icon { display: grid; width: 1.75rem; height: 1.75rem; place-items: center; color: var(--gold); background: rgba(230, 189, 105, 0.08); border-radius: 50%; }
.activity-row__icon svg { width: 0.92rem; height: 0.92rem; }
.activity-row > span:last-child { display: grid; gap: 0.18rem; }
.activity-row strong { color: rgba(246, 242, 232, 0.88); font-size: 0.7rem; font-weight: 600; }
.activity-row small { color: rgba(246, 242, 232, 0.53); font-size: 0.61rem; }
.admin-person-list button:focus-visible, .admin-registration-list button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -2px; }

.admin-reward-list { display: grid; }
.admin-reward-list button { display: grid; grid-template-columns: 1fr 1.8rem; align-items: center; min-height: 4.35rem; padding: 0.75rem 0; gap: 0.7rem; color: inherit; background: transparent; border: 0; border-bottom: 1px solid rgba(246, 242, 232, 0.1); cursor: pointer; text-align: left; }
.admin-reward-list button > span { display: grid; gap: 0.24rem; min-width: 0; }
.admin-reward-list strong { color: rgba(246, 242, 232, 0.9); font-size: 0.75rem; font-weight: 600; }
.admin-reward-list small { overflow: hidden; color: rgba(246, 242, 232, 0.57); font-size: 0.6rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.admin-reward-list i { display: block; height: 0.22rem; overflow: hidden; margin-top: 0.22rem; background: rgba(246, 242, 232, 0.16); border-radius: var(--radius-pill); }
.admin-reward-list i b { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: inherit; }
.admin-reward-list em { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; color: var(--gold-light); background: rgba(230, 189, 105, 0.09); border: 1px solid rgba(230, 189, 105, 0.24); border-radius: 50%; font-family: var(--font-mono); font-size: 0.62rem; font-style: normal; }
.admin-reward-list button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -2px; }
.admin-page-footer { margin: 3rem 0 0; padding: 1.25rem 0 0; color: rgba(246, 242, 232, 0.38); border-top: 1px solid rgba(246, 242, 232, 0.09); font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.08em; text-align: center; }

.admin-view { padding-bottom: 3rem; }
.admin-view__content { width: min(100%, 42rem); margin: 2.25rem auto 0; }
.admin-view-back { display: inline-flex; align-items: center; min-height: 2rem; gap: 0.36rem; color: rgba(246, 242, 232, 0.78); font-size: 0.72rem; font-weight: 600; text-decoration: none; }
.admin-view-back svg { width: 1.18rem; height: 1.18rem; }
.admin-view__content > h1 { margin-top: 1.5rem; font-size: clamp(1.7rem, 6vw, 2.35rem); font-weight: 600; letter-spacing: 0.04em; }
.admin-view__eyebrow { margin: 1.65rem 0 -1rem; color: var(--gold-light); font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.08em; text-transform: uppercase; }
.activity-filters { display: flex; gap: 0.45rem; margin-top: 1.65rem; padding-bottom: 0.4rem; overflow-x: auto; scrollbar-width: none; }
.activity-filters::-webkit-scrollbar { display: none; }
.activity-filters button { min-height: 2.35rem; padding: 0 0.8rem; flex: 0 0 auto; color: rgba(246, 242, 232, 0.65); background: rgba(246, 242, 232, 0.04); border: 1px solid rgba(246, 242, 232, 0.14); border-radius: var(--radius-pill); cursor: pointer; font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.05em; text-transform: uppercase; }
.activity-filters button.is-active { color: #1a160e; background: var(--gold-light); border-color: var(--gold-light); }
.activity-filters button:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.activity-feed { margin-top: 1rem; }
.activity-group[hidden] { display: none; }
.activity-row { width: 100%; padding: 0.25rem 0; color: inherit; appearance: none; -webkit-appearance: none; background: transparent; border: 0; border-bottom: 1px solid rgba(246, 242, 232, 0.075); border-radius: 0; box-shadow: none; text-align: left; cursor: pointer; }
.activity-row[hidden] { display: none; }
.birthday-group { margin-top: 2.05rem; }
.birthday-group > p { margin: 0; padding-bottom: 0.65rem; color: var(--gold-light); border-bottom: 1px solid rgba(246, 242, 232, 0.14); font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.08em; text-transform: uppercase; }
.birthday-group a { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; align-items: center; width: 100%; min-height: 4.3rem; padding: 0.72rem 0; gap: 0.75rem; color: inherit; border-bottom: 1px solid rgba(246, 242, 232, 0.1); cursor: pointer; text-align: left; text-decoration: none; }
.birthday-group a > span:nth-child(2) { display: grid; min-width: 0; gap: 0.21rem; }
.birthday-group strong { color: rgba(246, 242, 232, 0.9); font-size: 0.74rem; font-weight: 600; }
.birthday-group small { overflow-wrap: anywhere; color: rgba(246, 242, 232, 0.53); font-size: 0.62rem; }
.birthday-group em { color: var(--gold-light); font-family: var(--font-mono); font-size: 0.56rem; font-style: normal; white-space: nowrap; }
.birthday-group a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -2px; }
.admin-reward-list--full { margin-top: 1.8rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.admin-client-search { position: relative; margin-top: 1.55rem; }
.admin-client-search svg { position: absolute; top: 50%; left: 0.95rem; width: 1.05rem; height: 1.05rem; color: rgba(230, 189, 105, 0.7); pointer-events: none; transform: translateY(-50%); }
.admin-client-search input { width: 100%; min-height: 3.35rem; padding: 0 1rem 0 2.75rem; color: var(--paper); background: rgba(246, 242, 232, 0.055); border: 1px solid rgba(246, 242, 232, 0.15); border-radius: var(--radius-sm); outline: none; font: inherit; font-size: 0.78rem; -webkit-appearance: none; }
.admin-client-search input::placeholder { color: rgba(246, 242, 232, 0.38); }
.admin-client-search input:focus { border-color: rgba(230, 189, 105, 0.7); box-shadow: 0 0 0 3px rgba(230, 189, 105, 0.1); }
.admin-directory-count { margin: 1.25rem 0 0.4rem; color: rgba(246, 242, 232, 0.48); font-family: var(--font-mono); font-size: 0.57rem; letter-spacing: 0.04em; }
.admin-client-directory { display: grid; }
.admin-client-row { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) minmax(6.7rem, auto) 0.9rem; align-items: center; min-height: 5.25rem; padding: 0.72rem 0; gap: 0.75rem; color: inherit; border-bottom: 1px solid rgba(246, 242, 232, 0.09); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background-color 130ms ease, transform 110ms ease; }
.admin-client-row__identity, .admin-client-row__status { display: grid; min-width: 0; gap: 0.22rem; }
.admin-client-row__identity strong { overflow: hidden; color: rgba(246, 242, 232, 0.92); font-size: 0.76rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.admin-client-row__identity small { overflow-wrap: anywhere; color: rgba(246, 242, 232, 0.5); font-size: 0.58rem; line-height: 1.45; }
.admin-client-row__status { justify-items: end; text-align: right; }
.admin-client-row__status strong { color: rgba(246, 242, 232, 0.82); font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; }
.admin-client-row__status small { max-width: 8rem; color: rgba(246, 242, 232, 0.44); font-size: 0.55rem; line-height: 1.3; }
.admin-client-row__status.has-reward strong, .admin-client-row__status.has-reward small { color: var(--gold-light); }
.admin-client-row__chevron { width: 0.9rem; height: 0.9rem; color: rgba(230, 189, 105, 0.5); }
.admin-client-row:active { background: rgba(230, 189, 105, 0.055); transform: scale(0.99); }
.admin-client-row:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -2px; }
@media (hover: hover) { .admin-client-row:hover { background: rgba(246, 242, 232, 0.025); } }
.admin-directory-more { display: flex; min-height: 2.9rem; margin: 1.2rem auto 0; padding: 0 1.1rem; align-items: center; justify-content: center; color: var(--gold-light); background: rgba(230, 189, 105, 0.07); border: 1px solid rgba(230, 189, 105, 0.24); border-radius: var(--radius-pill); cursor: pointer; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.05em; text-transform: uppercase; }
.admin-directory-more[hidden] { display: none; }
.admin-directory-more:disabled { opacity: 0.5; }
.admin-directory-more:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

@media (max-width: 34rem) {
  .admin-client-row { grid-template-columns: 2.25rem minmax(0, 1fr) 0.9rem; gap: 0.68rem; }
  .admin-client-row__status { grid-column: 2 / 4; grid-row: 2; justify-items: start; padding-bottom: 0.15rem; text-align: left; }
  .admin-client-row__status small { max-width: none; }
  .admin-client-row__chevron { grid-column: 3; grid-row: 1; }
  .birthday-group a { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .birthday-group em { grid-column: 2; }
}

@keyframes activity-new-arrival {
  0% { box-shadow: 0 0 0 rgba(230, 189, 105, 0); }
  45% { box-shadow: 0 0 1.3rem rgba(230, 189, 105, 0.26); }
  100% { box-shadow: 0 0 0.9rem rgba(230, 189, 105, 0.13); }
}

.admin-start__heading { max-width: 22rem; }
.admin-start__icon { width: 2.1rem; height: 2.1rem; color: var(--gold); }
.admin-start h1 { margin-top: 1.5rem; font-size: clamp(1.8rem, 6vw, 2.45rem); font-weight: 600; letter-spacing: 0.04em; }
.admin-start p { margin: 0.9rem 0 0; color: rgba(246, 242, 232, 0.7); font-size: 0.91rem; line-height: 1.6; }

.admin-scan-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 4rem;
  margin-top: 3rem;
  gap: 0.85rem;
  color: #1a160e;
  background: linear-gradient(105deg, #d5a956, var(--gold-light) 55%, #d7a84f);
  border: 1px solid rgba(255, 249, 219, 0.7);
  border-radius: var(--radius-md);
  box-shadow: 0 1rem 2.2rem rgba(154, 104, 30, 0.2), inset 0 1px rgba(255, 249, 219, 0.65);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-scan-button svg { width: 1.35rem; height: 1.35rem; }
.admin-scan-button:focus-visible,
.admin-icon-button:focus-visible,
.admin-flash-control:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.admin-scanner {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 50rem);
  min-height: calc(100svh - 3rem);
  margin: 0 auto;
}

.admin-scanner[hidden] { display: none; }
.admin-scanner__topbar { display: flex; align-items: center; justify-content: space-between; color: var(--paper); font-size: 0.82rem; font-weight: 600; }
.admin-icon-button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  color: var(--paper);
  background: rgba(17, 17, 15, 0.78);
  border: 1px solid rgba(246, 242, 232, 0.18);
  border-radius: 50%;
  cursor: pointer;
}
.admin-icon-button svg { width: 1.25rem; height: 1.25rem; }

.admin-camera-view {
  position: relative;
  display: grid;
  min-height: 23rem;
  margin: 1.4rem 0;
  overflow: hidden;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, rgba(70, 65, 52, 0.42), rgba(9, 9, 8, 0.95) 69%);
  border: 1px solid rgba(246, 242, 232, 0.17);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 5rem rgba(0, 0, 0, 0.48), 0 1.5rem 3.5rem rgba(0, 0, 0, 0.35);
}

.admin-camera-view__grain { position: absolute; inset: 0; opacity: 0.22; background: url("/assets/brushwork-background.png") 51% 43% / cover no-repeat; filter: grayscale(1) brightness(0.55); }
.admin-camera-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner-frame { position: relative; z-index: 1; width: min(62vw, 16rem); aspect-ratio: 1; }
.scanner-frame i { position: absolute; width: 2.6rem; height: 2.6rem; border-color: var(--gold-light); border-style: solid; filter: drop-shadow(0 0 0.45rem rgba(230, 189, 105, 0.32)); }
.scanner-frame i:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; border-radius: 0.8rem 0 0 0; }
.scanner-frame i:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; border-radius: 0 0.8rem 0 0; }
.scanner-frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; border-radius: 0 0 0 0.8rem; }
.scanner-frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; border-radius: 0 0 0.8rem 0; }
.admin-camera-view p { position: absolute; z-index: 1; bottom: 1.8rem; margin: 0; color: rgba(246, 242, 232, 0.78); font-size: 0.72rem; }

.admin-flash-control {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  min-height: 2.8rem;
  padding: 0 1.15rem;
  gap: 0.55rem;
  color: rgba(246, 242, 232, 0.82);
  background: rgba(246, 242, 232, 0.06);
  border: 1px solid rgba(246, 242, 232, 0.17);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 600;
}

.admin-flash-control svg { width: 1.05rem; height: 1.05rem; }
.admin-flash-control[aria-pressed="true"] { color: #1a160e; background: var(--gold-light); border-color: var(--gold-light); }

.scanner-frame {
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.admin-client {
  width: min(100%, 33rem);
  min-height: calc(100svh - 3rem);
  margin: 0 auto;
  padding-top: 0.15rem;
}

.admin-client[hidden] { display: none; }
.admin-client__topbar { display: flex; align-items: center; justify-content: space-between; color: rgba(246, 242, 232, 0.78); font-size: 0.72rem; font-weight: 600; }
.admin-back-control { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0; gap: 0.35rem; color: var(--paper); background: transparent; border: 0; cursor: pointer; font-size: 0.72rem; font-weight: 600; }
.admin-back-control svg { width: 1.2rem; height: 1.2rem; }
.admin-back-control:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.client-profile { margin-top: 2.2rem; }
.client-profile__identity { display: flex; align-items: center; gap: 1rem; }
.client-profile__avatar { display: grid; width: 3.1rem; height: 3.1rem; place-items: center; color: var(--gold-light); background: rgba(230, 189, 105, 0.1); border: 1px solid rgba(230, 189, 105, 0.3); border-radius: 50%; }
.client-profile__avatar svg { width: 1.45rem; height: 1.45rem; }
.client-profile__identity p { margin: 0 0 0.3rem; color: var(--gold-light); font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.08em; text-transform: uppercase; }
.client-profile__identity h1 { font-size: clamp(1.65rem, 7.5vw, 2.2rem); font-weight: 600; letter-spacing: 0.035em; line-height: 1.1; text-transform: none; }

.client-details { display: grid; gap: 0.9rem; margin: 2rem 0 0; padding: 1.25rem 0; border-top: 1px solid rgba(246, 242, 232, 0.14); border-bottom: 1px solid rgba(246, 242, 232, 0.14); }
.client-details div { display: grid; gap: 0.35rem; }
.client-details dt { display: inline-flex; align-items: center; gap: 0.42rem; color: rgba(246, 242, 232, 0.56); font-size: 0.66rem; }
.client-details dt svg { width: 1rem; height: 1rem; color: var(--gold); }
.client-details dd { margin: 0; color: var(--paper); font-size: 0.85rem; font-weight: 500; }

.client-stamps { margin-top: 2rem; }
.client-stamps__title { display: flex; align-items: baseline; justify-content: space-between; }
.client-stamps__title span { color: rgba(246, 242, 232, 0.72); font-size: 0.78rem; font-weight: 600; }
.client-stamps__title strong { color: var(--gold-light); font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; }
.client-stamps__track { display: grid; grid-template-columns: repeat(10, 1fr); gap: 0.45rem; margin-top: 0.85rem; }
.client-stamps__track i { display: block; aspect-ratio: 1; background: rgba(246, 242, 232, 0.06); border: 1px solid rgba(246, 242, 232, 0.2); border-radius: 50%; }
.client-stamps__track i.is-earned { background: linear-gradient(135deg, var(--gold), var(--gold-light)); border-color: var(--gold-light); box-shadow: 0 0 0.55rem rgba(230, 189, 105, 0.2); }
.client-reward-status { display: inline-flex; align-items: center; margin: 1.1rem 0 0; gap: 0.48rem; color: rgba(246, 242, 232, 0.58); font-size: 0.7rem; }
.client-reward-status svg { width: 1rem; height: 1rem; color: var(--gold); }
.client-reward-status.is-available { color: var(--gold-light); font-weight: 700; }
.client-reward-status.is-expired { color: rgba(246, 242, 232, 0.68); font-weight: 700; }
.client-reward-cycle { display: grid; gap: 0.35rem; margin: 0.85rem 0 0; padding-top: 0.8rem; border-top: 1px solid rgba(246, 242, 232, 0.1); }
.client-reward-cycle[hidden] { display: none; }
.client-reward-cycle div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.64rem; }
.client-reward-cycle dt { color: rgba(246, 242, 232, 0.52); }
.client-reward-cycle dd { margin: 0; color: var(--cream); text-align: right; }

.client-actions { display: grid; gap: 0.75rem; margin-top: 2.6rem; }
.client-actions .admin-scan-button { margin-top: 0; }
.admin-secondary-button { display: flex; align-items: center; justify-content: center; min-height: 3.5rem; gap: 0.65rem; color: var(--paper); background: rgba(246, 242, 232, 0.06); border: 1px solid rgba(246, 242, 232, 0.17); border-radius: var(--radius-md); cursor: pointer; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.065em; text-transform: uppercase; }
.admin-secondary-button svg { width: 1.1rem; height: 1.1rem; color: var(--gold-light); }
.admin-history-link { display: inline-flex; align-items: center; justify-content: center; justify-self: center; min-height: 2.8rem; padding: 0.2rem 0.5rem; gap: 0.38rem; color: var(--gold-light); background: transparent; border: 0; cursor: pointer; font-size: 0.7rem; font-weight: 600; }
.admin-history-link { text-decoration: none; }
.admin-history-link svg { width: 1rem; height: 1rem; }
.admin-secondary-button:focus-visible, .admin-history-link:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.admin-secondary-button[hidden], .admin-scan-button[hidden], .admin-flash-control[hidden] { display: none; }
.admin-correction-link { justify-self: center; padding: 0.2rem 0.5rem; color: rgba(246, 242, 232, 0.56); background: transparent; border: 0; cursor: pointer; font-size: 0.65rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.22rem; }
.admin-correction-link:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.admin-flow-state { width: min(100%, 33rem); min-height: calc(100svh - 3rem); margin: 0 auto; padding-top: 0.15rem; }
.admin-flow-state[hidden] { display: none; }
.admin-flow-state__topbar { display: flex; align-items: center; justify-content: space-between; color: rgba(246, 242, 232, 0.78); font-size: 0.72rem; font-weight: 600; }
.admin-flow-state__body { width: min(100%, 28rem); margin: clamp(4rem, 13vh, 7rem) auto 0; }
.admin-flow-state__body h1 { font-size: clamp(1.65rem, 7.5vw, 2.2rem); font-weight: 600; letter-spacing: 0.035em; line-height: 1.18; text-transform: none; }
.admin-flow-eyebrow { margin: 0 0 0.65rem; color: var(--gold-light); font-family: var(--font-mono); font-size: 0.59rem; letter-spacing: 0.1em; text-transform: uppercase; }
.admin-balance-change { display: grid; gap: 0; margin: 2rem 0 0; border-top: 1px solid rgba(246, 242, 232, 0.14); border-bottom: 1px solid rgba(246, 242, 232, 0.14); }
.admin-balance-change div { display: flex; align-items: center; justify-content: space-between; min-height: 3.55rem; }
.admin-balance-change div + div { border-top: 1px solid rgba(246, 242, 232, 0.09); }
.admin-balance-change dt { color: rgba(246, 242, 232, 0.6); font-size: 0.75rem; }
.admin-balance-change dd { margin: 0; color: var(--gold-light); font-family: var(--font-mono); font-size: 0.78rem; }
.admin-flow-note { margin: 1rem 0 0; color: rgba(246, 242, 232, 0.57); font-size: 0.72rem; line-height: 1.55; }
.admin-flow-actions { display: grid; gap: 0.75rem; margin-top: 2.4rem; }
.admin-flow-actions .admin-scan-button { margin-top: 0; }
.admin-flow-state--success { display: grid; align-content: center; }
.admin-flow-state--success .admin-flow-state__body { margin: 0 auto; text-align: center; }
.admin-flow-success-icon { display: grid; width: 3.4rem; height: 3.4rem; margin: 0 auto 1.4rem; place-items: center; color: var(--gold-light); border: 1px solid rgba(230, 189, 105, 0.7); border-radius: 50%; box-shadow: 0 0 1.4rem rgba(230, 189, 105, 0.13); }
.admin-flow-success-icon svg { width: 1.55rem; height: 1.55rem; }
.admin-flow-state--success .admin-flow-actions { margin-top: 2.65rem; text-align: left; }
.admin-correction-current { display: flex; align-items: center; justify-content: space-between; min-height: 3.7rem; margin-top: 1.8rem; padding: 0 1rem; background: rgba(230, 189, 105, 0.075); border: 1px solid rgba(230, 189, 105, 0.24); border-radius: var(--radius-sm); }
.admin-correction-current span { color: rgba(246, 242, 232, 0.64); font-size: 0.74rem; }
.admin-correction-current strong { color: var(--gold-light); font-family: var(--font-mono); font-size: 0.9rem; font-weight: 600; }
.admin-correction-picker { min-width: 0; margin: 1.7rem 0 0; padding: 0; border: 0; }
.admin-correction-picker legend { margin-bottom: 0.8rem; padding: 0; color: var(--paper); font-size: 0.78rem; font-weight: 600; }
.admin-correction-options { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.45rem; }
.admin-correction-option { display: flex; min-width: 0; min-height: 3.15rem; padding: 0; flex-direction: column; align-items: center; justify-content: center; color: rgba(246, 242, 232, 0.82); background: rgba(246, 242, 232, 0.055); border: 1px solid rgba(246, 242, 232, 0.17); border-radius: 0.72rem; cursor: pointer; font-family: var(--font-mono); font-size: 0.86rem; transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.admin-correction-option:hover { border-color: rgba(230, 189, 105, 0.52); }
.admin-correction-option:active { transform: scale(0.97); }
.admin-correction-option:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.admin-correction-option.is-selected { color: #17130b; background: linear-gradient(135deg, var(--gold), var(--gold-light)); border-color: var(--gold-light); box-shadow: 0 0 1rem rgba(230, 189, 105, 0.18); font-weight: 700; }
.admin-correction-option.is-current { color: var(--gold-light); background: rgba(230, 189, 105, 0.08); border-color: rgba(230, 189, 105, 0.34); cursor: default; opacity: 1; }
.admin-correction-option.is-current::after { content: "Actual"; margin-top: 0.08rem; color: rgba(246, 242, 232, 0.5); font-family: var(--font-display); font-size: 0.43rem; font-weight: 500; letter-spacing: 0.02em; }
.admin-correction-help { min-height: 1.1rem; margin: 0.7rem 0 0; color: rgba(246, 242, 232, 0.5); font-size: 0.64rem; }
.admin-balance-change--correction { margin-top: 1.35rem; }
.admin-field-label { display: grid; gap: 0.48rem; margin-top: 1.35rem; color: rgba(246, 242, 232, 0.76); font-size: 0.72rem; font-weight: 600; }
.admin-field-label select, .admin-field-label input { width: 100%; min-height: 3.25rem; padding: 0 0.9rem; color: var(--paper); background: rgba(246, 242, 232, 0.055); border: 1px solid rgba(246, 242, 232, 0.16); border-radius: var(--radius-sm); outline: none; font: inherit; font-size: 0.8rem; }
.admin-field-label select:focus, .admin-field-label input:focus { border-color: rgba(230, 189, 105, 0.72); box-shadow: 0 0 0 3px rgba(230, 189, 105, 0.1); }
.admin-field-label input::placeholder { color: rgba(246, 242, 232, 0.38); }
.admin-scan-button:disabled { cursor: not-allowed; filter: grayscale(0.25); opacity: 0.42; }

.admin-login { display: grid; align-content: center; width: min(100%, 28rem); min-height: calc(100svh - 5rem); margin: 0 auto; }
.admin-login[hidden] { display: none; }
.admin-login h1 { font-size: clamp(1.65rem, 7vw, 2.2rem); font-weight: 600; letter-spacing: 0.04em; text-transform: none; }
.admin-login form { margin-top: 1.4rem; }
.admin-login .admin-scan-button { margin-top: 1.5rem; }
.admin-login .form-status { margin-top: 0.8rem; }
.admin-empty-state { margin: 1rem 0; color: rgba(246, 242, 232, 0.5); font-size: 0.7rem; line-height: 1.5; }

.admin-history { margin-top: 2.1rem; }
.history-row { display: grid; grid-template-columns: 2.35rem 1fr; align-items: center; min-height: 4.75rem; gap: 0.8rem; border-bottom: 1px solid rgba(246, 242, 232, 0.075); }
.history-row__icon { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; color: var(--gold); background: rgba(230, 189, 105, 0.08); border-radius: 50%; }
.history-row__icon svg { width: 0.95rem; height: 0.95rem; }
.history-row__content { display: grid; gap: 0.17rem; }
.history-row strong { color: rgba(246, 242, 232, 0.9); font-size: 0.73rem; font-weight: 600; }
.history-row small { color: rgba(246, 242, 232, 0.53); font-size: 0.61rem; }
.history-row em { color: var(--gold-light); font-family: var(--font-mono); font-size: 0.58rem; font-style: normal; }

@media (min-width: 48rem) {
  .admin-screen { padding-inline: 3rem; }
  .admin-start { grid-template-columns: minmax(0, 1fr) minmax(15rem, 22rem); align-items: center; width: min(100%, 50rem); gap: 4rem; }
  .admin-scan-button { margin-top: 0; }
  .admin-camera-view { min-height: min(62vh, 36rem); }
  .admin-client, .admin-flow-state { width: min(100%, 39rem); }
  .admin-dashboard { margin-top: 3.2rem; }
  .admin-dashboard__scan { width: min(100%, 30rem); }
  .admin-dashboard__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .admin-activity { width: min(100%, 35rem); }
  .admin-dashboard-section { width: min(100%, 42rem); }
  .admin-view__content { margin-top: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-activity-button.has-new-activity { animation: none; }
}
