/* ============================================================
   RSVP SYSTEM — Shared Styles
   Aesthetic: Luxury event dark — obsidian, gold, crisp white
   ============================================================ */

/* ── Self-hosted brand serif (never evaporates on a CDN hiccup) ── */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../../lib/fonts/CormorantGaramond-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../../lib/fonts/CormorantGaramond-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../../lib/fonts/CormorantGaramond-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('../../lib/fonts/CormorantGaramond-Italic.ttf') format('truetype');
}
/* Syne (UI) + DM Sans (body) load non-blocking via <link> in the page head,
   with strong system fallbacks below so nothing breaks if they don't arrive. */

:root {
  --obsidian:   #0C0C12;
  --deep:       #111118;
  --surface:    #181820;
  --surface-2:  #1E1E28;
  --border:     rgba(197,158,89,.18);
  --gold:       #C59E59;
  --gold-light: #E8C880;
  --gold-dim:   rgba(197,158,89,.35);
  --white:      #F0EBDC;
  --muted:      #A6A6B6;   /* text-safe muted (>=4.5:1 on obsidian) */
  --muted-dim:  #8A8A9A;   /* decorative/hairline only — not for body text */
  --success:    #3ECF8E;
  --danger:     #E05C5C;
  --info:       #5C9FE0;

  --radius:     6px;
  --radius-lg:  12px;
  --shadow:     0 4px 24px rgba(0,0,0,.55);
  --shadow-sm:  0 2px 8px  rgba(0,0,0,.4);

  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-ui:      'Syne', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body:    'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--obsidian);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .02em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }

.label-ui {
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Gold accent ────────────────────────────────────────── */
.gold { color: var(--gold); }
.gold-light { color: var(--gold-light); }

/* ── Layout ─────────────────────────────────────────────── */
.page-wrap {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--deep);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: .04em;
}
.sidebar-brand .brand-sub {
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 2px;
}

.sidebar-nav {
  padding: 20px 0;
  flex: 1;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: all .2s;
  border-left: 2px solid transparent;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(197,158,89,.06);
}
.sidebar-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }

.sidebar-footer {
  padding: 16px 16px 20px;
  border-top: 1px solid var(--border);
  font-size: .75rem;
  color: var(--muted);
}
.sidebar-footer .sidebar-user {
  color: var(--white); font-size: .82rem; font-weight: 500;
  padding: 0 8px 10px; margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sidebar-foot-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px; border-radius: var(--radius);
  color: var(--muted); text-decoration: none;
  font-family: var(--font-ui); font-size: .78rem; font-weight: 600;
  letter-spacing: .04em;
}
.sidebar-foot-link svg { flex-shrink: 0; }
.sidebar-foot-link:hover { background: rgba(197,158,89,.08); color: var(--gold); }
.sidebar-foot-link.danger:hover { background: rgba(224,92,92,.1); color: var(--danger); }

.main-content {
  flex: 1;
  min-width: 0;
  padding: 40px 48px;
}

@media (max-width: 900px) {
  .sidebar { width: 200px; }
  .main-content { padding: 24px 20px; }
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-sm { padding: 18px 22px; }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
}

/* ── Stat blocks ────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}
.stat-card.success::before { background: var(--success); }
.stat-card.danger::before  { background: var(--danger); }
.stat-card.info::before    { background: var(--info); }

.stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--obsidian);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}
.btn-outline:hover { background: rgba(197,158,89,.1); }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(224,92,92,.3);
}
.btn-danger:hover { background: rgba(224,92,92,.1); }

.btn-sm { padding: 6px 12px; font-size: .7rem; }

/* ── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .9rem;
  transition: border-color .2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(197,158,89,.08);
}
.form-control::placeholder { color: var(--muted); }
select.form-control option { background: var(--surface-2); }

.form-hint {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 5px;
}

/* ── Tables ─────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
thead tr {
  border-bottom: 1px solid var(--border);
}
thead th {
  font-family: var(--font-ui);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
  text-align: left;
}
tbody tr {
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .15s;
}
tbody tr:hover { background: rgba(255,255,255,.03); }
tbody td {
  padding: 12px 14px;
  color: var(--white);
  vertical-align: middle;
}

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-ui);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.badge-gold    { background: rgba(197,158,89,.15); color: var(--gold); border: 1px solid var(--gold-dim); }
.badge-success { background: rgba(62,207,142,.12); color: var(--success); border: 1px solid rgba(62,207,142,.3); }
.badge-danger  { background: rgba(224,92,92,.12);  color: var(--danger);  border: 1px solid rgba(224,92,92,.3); }
.badge-info    { background: rgba(92,159,224,.12); color: var(--info);    border: 1px solid rgba(92,159,224,.3); }
.badge-muted   { background: rgba(138,138,154,.1); color: var(--muted);   border: 1px solid rgba(138,138,154,.2); }

/* ── Alerts ─────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .85rem;
  margin-bottom: 20px;
}
.alert-success { background: rgba(62,207,142,.1);  border: 1px solid rgba(62,207,142,.3);  color: var(--success); }
.alert-danger  { background: rgba(224,92,92,.1);   border: 1px solid rgba(224,92,92,.3);   color: var(--danger);  }
.alert-info    { background: rgba(92,159,224,.1);  border: 1px solid rgba(92,159,224,.3);  color: var(--info);    }

/* ── Page header ────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.page-header h1 { line-height: 1; }
.page-header-sub {
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

/* ── Divider ────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ── Grid ───────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ── Login page ─────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--obsidian);
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow);
}
.login-logo {
  text-align: center;
  margin-bottom: 36px;
}
.login-logo .name {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
}
.login-logo .sub {
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Search box ─────────────────────────────────────────── */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.search-bar .form-control { flex: 1; }

/* ── Checker UI specifics ───────────────────────────────── */
.checker-wrap {
  max-width: 540px;
  margin: 0 auto;
  padding: 32px 20px;
}
.scanner-box {
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
}
.scanner-box video { width: 100%; height: 100%; object-fit: cover; }
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  animation: scanMove 2s linear infinite;
  opacity: .7;
}
@keyframes scanMove {
  0%   { top: 10%; }
  50%  { top: 90%; }
  100% { top: 10%; }
}

.result-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 20px;
  animation: fadeIn .3s ease;
}
.result-card.success { border-color: rgba(62,207,142,.4); }
.result-card.danger  { border-color: rgba(224,92,92,.4);  }
.result-card.warning { border-color: rgba(197,158,89,.4); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Button loading states ──────────────────────────────── */
.btn-loading {
  pointer-events: none;
  opacity: .7;
  position: relative;
  color: transparent !important;
}
.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid currentColor;
  border-color: rgba(255,255,255,.8) rgba(255,255,255,.2) rgba(255,255,255,.2) rgba(255,255,255,.2);
  border-radius: 50%;
  animation: btn-spin .65s linear infinite;
}
.btn-gold.btn-loading::after {
  border-color: var(--obsidian) rgba(0,0,0,.15) rgba(0,0,0,.15) rgba(0,0,0,.15);
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Disabled state for non-loading buttons */
.btn:disabled:not(.btn-loading) {
  opacity: .45;
  pointer-events: none;
  cursor: not-allowed;
}

/* Page-level loading overlay */
#page-loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(12, 12, 18, .7);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
#page-loader.active { display: flex; }
/* Support both class naming conventions */
#page-loader .loader-ring,
#page-loader .pl-ring {
  width: 44px; height: 44px;
  border: 3px solid rgba(197,158,89,.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: btn-spin .8s linear infinite;
}
#page-loader .loader-text,
#page-loader .pl-text {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Toast notifications */
#toast-container {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--white);
  min-width: 200px;
  max-width: 360px;
  transform: translateX(120%);
  opacity: 0;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s;
  pointer-events: auto;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.toast-success { border-color: rgba(62,207,142,.35); }
.toast.toast-error   { border-color: rgba(224,92,92,.35); }
.toast.toast-info    { border-color: rgba(197,158,89,.35); }
.toast-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--muted);
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: rgba(197,158,89,.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ── Utility ────────────────────────────────────────────── */
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.text-muted { color: var(--muted); }
.text-sm { font-size: .8rem; }
.text-right { text-align: right; }
.fw-bold { font-weight: 600; }
.w-100 { width: 100%; }

/* ── Rich-text formatting toolbar ───────────────────────── */
.fmt-toolbar {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  padding: 6px; margin-bottom: -1px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}
.fmt-btn {
  min-width: 34px; height: 32px; padding: 0 9px;
  background: transparent; border: 1px solid transparent; border-radius: 4px;
  color: var(--muted); cursor: pointer; font-size: .85rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.fmt-btn:hover { background: rgba(197,158,89,.12); color: var(--gold); border-color: var(--gold-dim); }
.fmt-btn b { font-weight: 800; }
.fmt-btn i { font-family: var(--font-display); font-size: 1rem; }
.fmt-btn code { font-size: .75rem; }
.fmt-sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }
.fmt-toolbar + .form-control { border-radius: 0 0 var(--radius) var(--radius); }

/* ── Event workspace sub-nav ────────────────────────────── */
.event-workspace-head { margin-bottom: 28px; }
.event-workspace-title {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.event-workspace-title .ews-back {
  font-family: var(--font-ui); font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.event-workspace-title .ews-back:hover { color: var(--gold); }
.event-workspace-title .ews-name {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--white);
}
.event-tabs {
  display: flex; gap: 2px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.event-tabs a {
  font-family: var(--font-ui); font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  padding: 11px 16px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s, border-color .15s; white-space: nowrap;
}
.event-tabs a:hover { color: var(--white); }
.event-tabs a.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ── Mobile top bar + drawer ────────────────────────────── */
.mobile-topbar { display: none; }
.sidebar-scrim { display: none; }
@media (max-width: 760px) {
  .mobile-topbar {
    display: flex; align-items: center; gap: 14px;
    position: sticky; top: 0; z-index: 300;
    background: var(--deep); border-bottom: 1px solid var(--border);
    padding: 12px 16px;
  }
  .mobile-menu-btn {
    background: transparent; border: none; color: var(--gold);
    padding: 6px; cursor: pointer; display: flex; min-width: 44px; min-height: 44px;
    align-items: center; justify-content: center;
  }
  .mobile-brand { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); }
  .mobile-topbar-actions { margin-left: auto; display: flex; gap: 4px; }
  .mobile-icon-btn {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--radius);
    color: var(--gold); text-decoration: none;
  }
  .mobile-icon-btn:hover { background: rgba(197,158,89,.1); }
  .mobile-icon-btn.danger { color: var(--danger); }
  .mobile-icon-btn.danger:hover { background: rgba(224,92,92,.1); }
  .sidebar {
    position: fixed; top: 0; left: 0; height: 100vh; z-index: 400;
    transform: translateX(-100%); transition: transform .25s ease; width: 260px;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,.6); }
  .sidebar-scrim {
    position: fixed; inset: 0; z-index: 350; background: rgba(0,0,0,.5);
    opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  .sidebar-scrim.show { display: block; opacity: 1; pointer-events: auto; }
  .main-content { padding: 20px 16px; }
  .page-header { flex-direction: column; align-items: flex-start; }

  /* Dense tables → horizontal scroll is preserved via .table-wrap; keep tap targets */
  .btn { padding: 11px 18px; }
  .btn-sm { padding: 9px 14px; }
  .event-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── Themed confirm modal ───────────────────────────────── */
.ui-modal-scrim {
  position: fixed; inset: 0; z-index: 11000;
  background: rgba(12,12,18,.72); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; transition: opacity .18s;
}
.ui-modal-scrim.show { opacity: 1; }
.ui-modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 26px 20px; max-width: 400px; width: 100%;
  box-shadow: var(--shadow); transform: translateY(8px); transition: transform .18s;
}
.ui-modal-scrim.show .ui-modal { transform: translateY(0); }
.ui-modal-title { font-family: var(--font-display); font-size: 1.35rem; color: var(--white); margin-bottom: 8px; }
.ui-modal-body { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-bottom: 22px; }
.ui-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ── Credential "save once" card ────────────────────────── */
.cred-card {
  background: rgba(197,158,89,.08); border: 1px solid var(--gold-dim);
  border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 20px;
}
.cred-card .cred-head {
  font-family: var(--font-ui); font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.cred-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.cred-row code {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px;
  padding: 5px 10px; color: var(--white); font-size: .85rem;
}

/* ── Checker (door) ergonomics — big, one-handed targets ── */
.checker-wrap .btn { padding: 15px 22px; font-size: .82rem; min-height: 52px; }
.checker-wrap .btn-sm { padding: 12px 16px; font-size: .78rem; min-height: 46px; }
.checker-wrap .btn-block { width: 100%; justify-content: center; }
.checker-wrap .result-card .btn { width: 100%; margin-top: 14px; }
.torch-btn {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  background: rgba(12,12,18,.7); border: 1px solid var(--gold-dim); color: var(--gold);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: none; align-items: center; justify-content: center;
}
.torch-btn.available { display: flex; }
.torch-btn.on { background: var(--gold); color: var(--obsidian); }

/* ── Sync indicator (offline check-in queue) ────────────── */
.sync-pill {
  display: none; align-items: center; gap: 7px;
  background: rgba(224,92,92,.12); border: 1px solid rgba(224,92,92,.3);
  color: var(--danger); border-radius: 20px; padding: 6px 14px;
  font-family: var(--font-ui); font-size: .7rem; font-weight: 700; letter-spacing: .05em;
  margin: 0 auto 16px; width: fit-content;
}
.sync-pill.show { display: flex; }
.sync-pill.synced { background: rgba(62,207,142,.12); border-color: rgba(62,207,142,.3); color: var(--success); }


