/* ================================================================
   LUNARIS — Shared Design System
   Single source of truth for tokens + common chrome across
   index / tarot / horoscope / numerology.

   Load this BEFORE any page-specific stylesheet.
   ================================================================ */

/* ── 1. Tokens ─────────────────────────────────────────────── */
:root {
  /* Core palette */
  --ink:         #0e0a1c;
  --ink-soft:    #2a1f45;
  --deep:        #1a0f30;
  --plum:        #3d1f5c;
  --violet:      #6b3fa0;
  --gold:        #c9a96e;
  --gold-light:  #e8d5a3;
  --gold-pale:   #f5edda;
  --moon:        #f0eaf8;
  --mist:        #d8cff0;

  /* Surfaces */
  --panel:        rgba(18, 12, 34, 0.76);
  --panel-solid:  rgba(14, 10, 28, 0.94);
  --surface:      rgba(255, 255, 255, 0.05);
  --surface-2:    rgba(255, 255, 255, 0.08);
  --surface-3:    rgba(255, 255, 255, 0.12);

  /* Lines */
  --line:        rgba(201, 169, 110, 0.20);
  --line-soft:   rgba(201, 169, 110, 0.12);
  --line-strong: rgba(201, 169, 110, 0.42);

  /* Text */
  --text:        var(--moon);
  --text-muted:  rgba(216, 207, 240, 0.68);
  /* 0.6 keeps faint text at ~5:1 on --ink; 0.42 measured ~3:1 (fails AA). */
  --text-faint:  rgba(216, 207, 240, 0.6);

  /* Status (tuned for dark backgrounds) */
  --red:    #ff7a72;
  --green:  #5fd6a0;
  --blue:   #7fb0f0;
  --purple: #c0a0f0;
  --teal:   #5fd3cc;

  /* Typography */
  --font-display: "Cormorant SC", "Cormorant Garamond", Georgia, serif;
  --font-accent:  "Cormorant Garamond", Georgia, serif;
  --font-body:    "Spectral", Georgia, "Times New Roman", serif;

  /* Shape */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-panel: 0 24px 80px rgba(0, 0, 0, 0.38);
  --shadow-lift:  0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-gold:  0 8px 28px rgba(201, 169, 110, 0.24);

  /* Motion — ease-out curves settle softly instead of stopping dead, which
     is most of what makes a transition read as "smooth". */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --tr-fast: 0.2s var(--ease-out);
  --tr-base: 0.34s var(--ease-out);
  --tr-slow: 0.56s var(--ease-out);

  /* Rhythm */
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;

  /* Shared chrome metrics */
  --brand-size: 42px;
}

/* ── 2. Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  font-family: var(--font-body);
  font-variant-numeric: lining-nums;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(107, 63, 160, 0.34), transparent 60%),
    radial-gradient(ellipse 60% 80% at 82% 90%, rgba(201, 169, 110, 0.15), transparent 55%),
    linear-gradient(135deg, var(--ink), var(--deep) 54%, #0d111c);
  /* No background-attachment: fixed — .lun-sky covers this anyway, and a
     fixed body background makes the browser repaint the page on every
     scroll frame. */
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
}

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

a { color: var(--gold-light); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  color: var(--gold-light);
}

::selection {
  background: rgba(201, 169, 110, 0.28);
  color: var(--gold-pale);
}

/* Solid gold: the old 42%-alpha ring was barely visible on the night sky. */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

a, button, label, select, [role="button"] { touch-action: manipulation; }

/* Cross-page fade between Lunaris sections (Chromium 126+, Safari 18.2+;
   other browsers just navigate as before). */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.32s;
  animation-timing-function: var(--ease-out);
}

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(201, 169, 110, 0.3) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 110, 0.26);
  border-radius: var(--radius-pill);
}
*::-webkit-scrollbar-thumb:hover { background: rgba(201, 169, 110, 0.45); }

/* ── 3. Cosmic backdrop ────────────────────────────────────── */
.lun-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Own compositor layer: the sky never repaints while the page scrolls. */
  transform: translateZ(0);
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, #2a0f4e 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 90%, #1a0840 0%, transparent 55%),
    radial-gradient(ellipse 100% 100% at 50% 50%, #0e0a1c 40%, #160c2e 100%);
}

.lun-starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: translateZ(0);
}

/* ── 4. Topbar & brand ─────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  color: var(--gold-pale);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--brand-size);
  height: var(--brand-size);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 700;
  overflow: hidden;
  transition: border-color var(--tr-base), box-shadow var(--tr-base), transform var(--tr-slow);
}

.brand:hover .brand-mark {
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(201, 169, 110, 0.25);
  transform: rotate(-8deg) scale(1.05);
}

.brand strong,
.brand small { display: block; }

.brand strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-light);
}

.brand small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language switcher (mounted by assets/js/i18n.js) */
.lang-switch { position: relative; flex: none; margin-inline-start: 16px; }
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  background: var(--surface-2);
  color: var(--gold-pale);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background var(--tr-fast), border-color var(--tr-fast), color var(--tr-fast);
}
.lang-switch-btn:hover,
.lang-switch-btn[aria-expanded="true"] { border-color: var(--line-strong); background: rgba(201, 169, 110, 0.16); color: var(--gold-light); }
.lang-flag { width: 20px; height: 15px; flex: none; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
.lang-caret { width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); opacity: 0.7; }
.lang-switch-btn[aria-expanded="true"] .lang-caret { transform: translateY(1px) rotate(225deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 60;
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 190px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(16, 12, 28, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.lang-menu[hidden] { display: none; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--gold-pale);
  font-size: 13px;
  cursor: pointer;
  outline: none;
}
.lang-option:hover,
.lang-option:focus-visible { background: rgba(201, 169, 110, 0.16); color: var(--gold-light); }
.lang-option[aria-selected="true"] { color: var(--gold-light); font-weight: 700; }
.lang-option[aria-selected="true"]::after { content: "✓"; margin-inline-start: auto; opacity: 0.8; }
@media (max-width: 520px) {
  .lang-switch-btn .lang-code { display: none; }
  .lang-switch-btn { padding: 8px 10px; }
}


/* Right-to-left (Arabic): flip the few physical-direction rules */
[dir="rtl"] .topbar,
[dir="rtl"] .topbar-actions { direction: rtl; }
[dir="rtl"] .ai-panel,
[dir="rtl"] .ai-log,
[dir="rtl"] .ai-form { direction: rtl; text-align: right; }
[dir="rtl"] .spread,
[dir="rtl"] .chart-board { direction: ltr; } /* card/palace layout is positional, not textual */
[dir="rtl"] .palace,
[dir="rtl"] .center-card { direction: rtl; }

/* ── 5. Buttons & chips ────────────────────────────────────── */
.status-chip,
.home-button { padding: 8px 12px; }
.home-button .btn-icon { width: 20px; height: 20px; flex: none; margin: 0; filter: brightness(1.9) drop-shadow(0 0 4px rgba(201, 169, 110, 0.6)); }

.ghost-button,
.home-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  background: var(--surface-2);
  color: var(--gold-pale);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background var(--tr-fast), border-color var(--tr-fast), color var(--tr-fast), transform var(--tr-fast);
}

.home-button .btn-icon { width: 20px; height: 20px; flex: none; margin: 0; filter: brightness(1.9) drop-shadow(0 0 4px rgba(201, 169, 110, 0.6)); }

.ghost-button,
.home-button { cursor: pointer; min-height: 40px; }

.ghost-button:hover,
.home-button:hover {
  border-color: var(--line-strong);
  background: rgba(201, 169, 110, 0.16);
  color: var(--gold-light);
  transform: translateY(-1px);
}

.ghost-button:active,
.home-button:active { transform: translateY(0) scale(0.97); transition-duration: 0.08s; }

.home-button {
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.24), rgba(107, 63, 160, 0.16));
  color: var(--gold-light);
}

.status-chip {
  color: var(--text-muted);
  font-weight: 500;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 22px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light) 50%, var(--gold));
  background-size: 200% 100%;
  color: #17110a;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: background-position var(--tr-slow), transform var(--tr-fast), box-shadow var(--tr-fast);
}

.primary-button:hover {
  background-position: -100% 0;
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(201, 169, 110, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.primary-button:active { transform: translateY(0) scale(0.98); transition-duration: 0.08s; }

.primary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ── 6. Panels & section headings ──────────────────────────── */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0.35;
}

.ornament-line {
  width: 60px;
  height: 1px;
  background: var(--gold);
}

.ornament-dot {
  width: 22px;
  height: 22px;
  filter: brightness(1.9) drop-shadow(0 0 8px rgba(201, 169, 110, 0.6));
}
.brand-mark img { filter: brightness(1.9) drop-shadow(0 0 4px rgba(201, 169, 110, 0.6)); width: 70%; height: 70%; object-fit: contain; }

/* ── 7. Form fields ────────────────────────────────────────── */
.field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.field > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.lun-input,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 400;
  outline: none;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast), background var(--tr-fast);
}

.field textarea { padding: 10px 12px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--line-strong); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(201, 169, 110, 0.7);
  background: var(--surface-3);
  box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.12);
}

.field select {
  appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field select option {
  background: var(--deep);
  color: var(--text);
}

/* ── 8. Footer ─────────────────────────────────────────────── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  padding: 28px 0 0;
  margin-top: 32px;
  border-top: 1px solid var(--line-soft);
}

.site-footer .footer-left {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.site-footer .footer-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.15), transparent);
}

.site-footer .footer-right {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.8;
  white-space: nowrap;
}

/* ── 9. Toast ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 999;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  background: rgba(26, 15, 48, 0.95);
  color: var(--gold-light);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(16px);
  transition: opacity var(--tr-base), transform var(--tr-slow);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── 10. Utilities ─────────────────────────────────────────── */
.lun-stack { position: relative; z-index: 1; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Entrance: panels drift up into place when a page opens or content is
   re-rendered. Stagger with an inline --i (index) on each element. */
@keyframes lun-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes lun-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lun-breathe {
  50% { opacity: 0.45; }
}

.lun-rise {
  animation: lun-rise 0.7s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

/* Soft pulse for "Đang tính…" style placeholders. */
.lun-busy { animation: lun-breathe 1.4s var(--ease-in-out) infinite; }

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

@media (max-width: 560px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-footer .footer-line { display: none; }
}

/* ── Welcome dialog (assets/js/welcome.js) ── */
dialog.wl {
  width: min(420px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(107, 63, 160, 0.38), transparent 60%),
    var(--panel-solid);
  color: var(--text);
  box-shadow: var(--shadow-panel);
  overflow-y: auto;
  animation: wl-in 0.4s var(--ease-out);
}
dialog.wl:focus { outline: none; }
dialog.wl::backdrop { background: rgba(5, 4, 12, 0.78); backdrop-filter: blur(6px); animation: wl-fade 0.3s ease-out; }
@keyframes wl-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
@keyframes wl-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { dialog.wl, dialog.wl::backdrop { animation: none; } }

.wl-close {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--text-muted);
  font-size: 26px; line-height: 1; cursor: pointer;
  transition: background var(--tr-fast), color var(--tr-fast);
}
.wl-close:hover { background: var(--surface-2); color: var(--gold-light); }

.wl-body { display: flex; flex-direction: column; gap: 12px; padding: 36px 28px 26px; text-align: center; }
.wl-mark {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 4px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.22), rgba(107, 63, 160, 0.2));
}
.wl-mark img { filter: brightness(1.9) drop-shadow(0 0 4px rgba(201, 169, 110, 0.6)); }
.wl-body h2 { margin: 0; color: var(--gold-light); font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: 0.04em; }
.wl-note, .wl-hint { margin: 0; color: var(--text-muted); line-height: 1.6; }
.wl-note { margin-bottom: 8px; }
.wl-hint { font-size: 13px; }
.wl-google { display: flex; justify-content: center; }
.wl-google:empty { display: none; }
.wl-google > .wl-btn { width: 100%; }

.wl-btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--gold-pale);
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background var(--tr-fast), border-color var(--tr-fast), transform var(--tr-fast);
}
.wl-ico { display: inline-flex; flex: none; width: 20px; height: 20px; margin-right: 10px; }
.wl-ico svg { width: 100%; height: 100%; }
.wl-guest { display: inline-flex; align-items: center; justify-content: center; align-self: center; }
.wl-guest .wl-ico { width: 18px; height: 18px; margin-right: 8px; }
.wl-btn:hover { background: rgba(201, 169, 110, 0.16); color: var(--gold-light); transform: translateY(-1px); }
.wl-btn:active { transform: scale(0.98); }
.wl-btn:disabled { opacity: 0.6; cursor: wait; }
.wl-apple[hidden], .wl-or[hidden] { display: none; }
.wl-apple { background: #fff; color: #000; border-color: #fff; }
.wl-apple:hover { background: #f1f1f1; color: #000; }
.wl-primary, .wl-primary:hover { background: linear-gradient(135deg, var(--gold), var(--gold-light) 50%, var(--gold)); color: #17110a; border: 0; box-shadow: var(--shadow-gold); }

.wl-or { display: flex; align-items: center; gap: 12px; color: var(--text-faint); font-size: 13px; }
.wl-or span { flex: 1; height: 1px; background: var(--line); }
.wl-or em { font-style: normal; }

/* Guest is a quiet text link, not a third button: it is the way out, not the goal. */
.wl-guest {
  min-height: 44px; padding: 8px 12px; border: 0; background: none;
  color: var(--gold-light); font: inherit; font-size: 14px; text-decoration: underline;
  text-underline-offset: 4px; text-decoration-color: var(--line-strong); cursor: pointer;
}
.wl-guest:hover { text-decoration-color: var(--gold); }

.wl-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-muted); text-align: left; }
.wl-field input, .wl-field select {
  min-height: 46px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 16px;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.wl-field input:focus, .wl-field select:focus { outline: none; border-color: rgba(201, 169, 110, 0.7); box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.12); }
.wl-msg { min-height: 1.4em; margin: 0; color: var(--red); font-size: 13px; }
.wl-btn:focus-visible, .wl-guest:focus-visible, .wl-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wl-form { display: flex; flex-direction: column; gap: 12px; }
.wl-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); }
.wl-tab { flex: 1; min-height: 40px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background var(--tr-fast), color var(--tr-fast); }
.wl-tab[aria-pressed="true"] { background: rgba(201, 169, 110, 0.2); color: var(--gold-light); }
.wl-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wl-danger { color: var(--red); text-decoration-color: rgba(255, 122, 114, 0.4); }
