:root {
  color-scheme: dark;
  --bg: #07070a;
  --bg-2: #111116;
  --ink: #f5eee6;
  --muted: #c8b7a6;
  --gold: #d9bc78;
  --gold-2: #ffe7a7;
  --teal: #2e7e82;
  --ruby: #7d2135;
  --jade: #95e0a5;
  --line: rgba(245, 238, 230, 0.2);
  --surface: rgba(13, 13, 17, 0.88);
  --surface-2: rgba(255, 255, 255, 0.045);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
  --radius: 8px;
  font-family: Tahoma, "Noto Sans Thai", "Leelawadee UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  --deep-bg: url("assets/firsthoro-deep-bg.png");
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #07070a;
  overflow-x: hidden;
}

.deep-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 5, 8, 0.18), rgba(5, 5, 8, 0.72) 58%, rgba(5, 5, 8, 0.94)),
    var(--deep-bg) center top / cover no-repeat fixed,
    #07070a;
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.02);
  transform-origin: center;
  transition: filter 420ms ease, opacity 420ms ease;
}

.deep-backdrop::before,
.deep-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.deep-backdrop::before {
  background:
    radial-gradient(ellipse at center, transparent 0 42%, rgba(0, 0, 0, 0.48) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.32), transparent 22%, transparent 76%, rgba(0, 0, 0, 0.38));
}

.deep-backdrop::after {
  background:
    radial-gradient(ellipse at 22% 70%, rgba(217, 188, 120, 0.14), transparent 28%),
    radial-gradient(ellipse at 78% 58%, rgba(217, 188, 120, 0.12), transparent 26%),
    linear-gradient(115deg, transparent 0 36%, rgba(240, 212, 141, 0.06) 48%, transparent 62%);
  mix-blend-mode: screen;
  opacity: 0.58;
  animation: deepLight 12s ease-in-out infinite alternate;
}

.deep-backdrop > span {
  position: absolute;
  display: block;
  pointer-events: none;
}

.deep-smoke {
  width: 34vw;
  min-width: 230px;
  max-width: 520px;
  height: 72vh;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(245, 238, 230, 0.16), transparent 56%),
    radial-gradient(ellipse at 48% 70%, rgba(149, 224, 165, 0.08), transparent 58%);
  filter: blur(28px);
  opacity: 0.34;
  transform-origin: center;
  animation: smokeDrift 16s ease-in-out infinite alternate;
}

.deep-smoke-a { left: 2%; top: 8%; }
.deep-smoke-b { right: -8%; top: 24%; animation-delay: -6s; animation-duration: 20s; }
.deep-smoke-c { left: 24%; bottom: -22%; animation-delay: -10s; animation-duration: 22s; }

.deep-ember {
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 216, 132, 0.82);
  box-shadow: 0 0 14px rgba(255, 190, 96, 0.7);
  opacity: 0;
  animation: emberFloat 7s ease-in-out infinite;
}

.deep-ember-a { left: 18%; bottom: 22%; animation-delay: -1s; }
.deep-ember-b { left: 34%; bottom: 12%; animation-delay: -4s; }
.deep-ember-c { right: 20%; bottom: 24%; animation-delay: -2.5s; }
.deep-ember-d { right: 9%; bottom: 15%; animation-delay: -5.5s; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 100%);
  background-size: 78px 78px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 5%, rgba(46, 126, 130, 0.16) 18%, transparent 35%),
    linear-gradient(72deg, transparent 22%, rgba(217, 188, 120, 0.11) 44%, transparent 64%),
    linear-gradient(128deg, transparent 38%, rgba(125, 33, 53, 0.16) 58%, transparent 78%);
  opacity: 0.82;
  transform: translate3d(0, 0, 0);
  animation: auraDrift 18s ease-in-out infinite alternate;
}

body[data-step="1"] {
  --deep-bg: url("assets/firsthoro-deep-bg.png");
}

body[data-step="2"] {
  --deep-bg: url("assets/firsthoro-deep-bg.png");
}

body[data-step="3"] {
  --deep-bg: url("assets/firsthoro-deep-bg.png");
}

body[data-step="4"] {
  --deep-bg: url("assets/firsthoro-deep-bg.png");
}

body[data-step="5"] {
  --deep-bg: url("assets/firsthoro-deep-bg.png");
}

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

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

img {
  max-width: 100%;
  display: block;
}

.sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.sky::before,
.sky::after {
  content: "";
  position: absolute;
  left: -18%;
  right: -18%;
  height: 34vh;
  background: linear-gradient(90deg, transparent, rgba(217, 188, 120, 0.1), rgba(46, 126, 130, 0.12), transparent);
  filter: blur(1px);
  opacity: 0.75;
  transform: rotate(-7deg);
  animation: ribbonFloat 14s ease-in-out infinite alternate;
}

.sky::before {
  top: 10%;
}

.sky::after {
  bottom: 8%;
  transform: rotate(6deg);
  animation-delay: -6s;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold-2);
  box-shadow: 0 0 12px rgba(240, 212, 141, 0.76);
  animation: pulse 4s ease-in-out infinite;
}

.s1 { left: 12%; top: 13%; animation-delay: 0.2s; }
.s2 { left: 84%; top: 18%; animation-delay: 1.1s; }
.s3 { left: 74%; top: 48%; animation-delay: 0.6s; }
.s4 { left: 18%; top: 71%; animation-delay: 1.8s; }
.s5 { left: 45%; top: 9%; animation-delay: 2.4s; }

.line {
  position: absolute;
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 212, 141, 0.48), transparent);
  transform-origin: center;
  opacity: 0.58;
  animation: lineSweep 7s ease-in-out infinite;
}

.l1 {
  top: 130px;
  left: -24px;
  transform: rotate(-18deg);
}

.l2 {
  right: -30px;
  bottom: 230px;
  transform: rotate(16deg);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.48; }
  50% { transform: scale(1.7); opacity: 1; }
}

.meteor {
  position: absolute;
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 231, 167, 0.86), transparent);
  opacity: 0;
  transform: rotate(-26deg);
  animation: meteorFly 9s linear infinite;
}

.m1 { left: -22%; top: 16%; animation-delay: 1.6s; }
.m2 { left: -26%; top: 44%; animation-delay: 5.2s; animation-duration: 11s; }
.m3 { left: -18%; top: 72%; animation-delay: 8.1s; animation-duration: 13s; }

.sigil {
  position: absolute;
  width: 190px;
  aspect-ratio: 1;
  border: 1px solid rgba(240, 212, 141, 0.14);
  border-radius: 50%;
  opacity: 0.32;
  background:
    conic-gradient(from 20deg, transparent 0 16deg, rgba(240, 212, 141, 0.3) 16deg 17deg, transparent 17deg 38deg),
    linear-gradient(90deg, transparent 49.6%, rgba(240, 212, 141, 0.22) 50%, transparent 50.4%),
    linear-gradient(0deg, transparent 49.6%, rgba(240, 212, 141, 0.22) 50%, transparent 50.4%);
  animation: rotateSlow 48s linear infinite;
}

.sigil-a { right: 5%; top: 12%; }
.sigil-b { left: 4%; bottom: 12%; width: 140px; animation-duration: 64s; animation-direction: reverse; }

@keyframes auraDrift {
  from { transform: translate3d(-2%, -1%, 0) skewX(-2deg); opacity: 0.6; }
  to { transform: translate3d(2%, 1%, 0) skewX(2deg); opacity: 0.94; }
}

@keyframes ribbonFloat {
  from { transform: translateX(-4%) rotate(-7deg); }
  to { transform: translateX(4%) rotate(-5deg); }
}

@keyframes meteorFly {
  0%, 54% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-26deg); }
  58% { opacity: 1; }
  68% { opacity: 0; transform: translate3d(145vw, 44vh, 0) rotate(-26deg); }
  100% { opacity: 0; transform: translate3d(145vw, 44vh, 0) rotate(-26deg); }
}

@keyframes lineSweep {
  0%, 100% { opacity: 0.28; filter: brightness(0.9); }
  50% { opacity: 0.72; filter: brightness(1.45); }
}

@keyframes deepLight {
  from { opacity: 0.42; transform: translate3d(-2%, 0, 0); }
  to { opacity: 0.84; transform: translate3d(2%, 0, 0); }
}

@keyframes smokeDrift {
  from { opacity: 0.18; transform: translate3d(-8%, 4%, 0) scale(0.92); }
  to { opacity: 0.42; transform: translate3d(8%, -5%, 0) scale(1.08); }
}

@keyframes emberFloat {
  0%, 100% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.7); }
  18% { opacity: 0.72; }
  70% { opacity: 0.16; transform: translate3d(28px, -120px, 0) scale(1.2); }
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.28;
    transform: translateX(-8%);
  }
  50% {
    opacity: 0.62;
    transform: translateX(8%);
  }
}

.site-header,
.progress,
.app-shell {
  position: relative;
  z-index: 2;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 20px 16px 10px;
}

.brand-mark {
  width: min(230px, 44vw);
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: linear-gradient(180deg, rgba(27, 27, 32, 0.86), rgba(7, 7, 10, 0.94));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  padding: 6px;
  text-decoration: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 9px 14px rgba(0, 0, 0, 0.58));
}

.site-header h1,
.page h2,
.page h3,
.page h4,
.eyebrow,
.lead,
p {
  margin-top: 0;
}

.site-header h1 {
  margin-bottom: 0;
  font-size: clamp(1.16rem, 3.6vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.eyebrow {
  margin-bottom: 4px;
  color: var(--gold-2);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: var(--radius);
  background: rgba(255, 247, 232, 0.06);
}

.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: min(1120px, calc(100% - 24px));
  margin: 2px auto 12px;
}

.progress-step {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 247, 232, 0.06);
  font-size: clamp(0.62rem, 2.7vw, 0.84rem);
  overflow-wrap: anywhere;
}

.progress-step.is-active {
  color: #17120c;
  border-color: rgba(240, 212, 141, 0.88);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  font-weight: 800;
}

.coach-cloud {
  position: sticky;
  top: 8px;
  z-index: 8;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  width: min(920px, calc(100% - 24px));
  margin: 0 auto 12px;
  border: 1px solid rgba(240, 212, 141, 0.34);
  border-radius: 32px 32px 32px 10px;
  padding: 10px 13px;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 25%, rgba(255, 247, 232, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(32, 26, 20, 0.94), rgba(51, 39, 30, 0.92));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 231, 167, 0.08);
  backdrop-filter: blur(14px);
}

.coach-cloud[hidden] {
  display: none;
}

.coach-cloud::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -7px;
  width: 16px;
  height: 16px;
  border-left: 1px solid rgba(240, 212, 141, 0.28);
  border-bottom: 1px solid rgba(240, 212, 141, 0.28);
  background: rgba(32, 26, 20, 0.94);
  transform: rotate(-45deg);
}

.coach-cloud.is-speaking {
  animation: cloudPulse 640ms ease;
}

.coach-orb {
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 42%, rgba(255, 244, 207, 0.95) 0 6px, transparent 7px),
    conic-gradient(from 20deg, rgba(240, 212, 141, 0.18), rgba(89, 197, 184, 0.34), rgba(240, 212, 141, 0.54), rgba(240, 212, 141, 0.18));
  box-shadow: 0 0 24px rgba(217, 188, 120, 0.28);
}

.coach-cloud p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.94rem;
}

.inapp-warning {
  display: grid;
  gap: 8px;
  width: min(920px, calc(100% - 24px));
  margin: 0 auto 12px;
  border: 1px solid rgba(240, 212, 141, 0.3);
  border-radius: var(--radius);
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(216, 173, 79, 0.15), rgba(89, 197, 184, 0.08)),
    rgba(32, 26, 20, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
}

.inapp-warning[hidden] {
  display: none;
}

.inapp-warning strong {
  color: var(--gold-2);
}

.inapp-warning p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

@keyframes cloudPulse {
  0% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-2px) scale(1.012); }
  100% { transform: translateY(0) scale(1); }
}

.app-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 16px 120px;
}

.page {
  display: none;
  animation: pageIn 420ms ease both;
}

.page.is-active {
  display: block;
}

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

body.is-transitioning .app-shell {
  animation: shellGlow 520ms ease both;
}

body.is-transitioning .deep-backdrop {
  animation: backdropPulse 560ms ease both;
}

@keyframes shellGlow {
  0% { filter: brightness(0.96) saturate(0.94); }
  48% { filter: brightness(1.16) saturate(1.16); }
  100% { filter: brightness(1) saturate(1); }
}

@keyframes backdropPulse {
  0% { filter: saturate(1.02) contrast(1.02) brightness(0.92); }
  52% { filter: saturate(1.22) contrast(1.08) brightness(1.12); }
  100% { filter: saturate(1.08) contrast(1.05) brightness(1); }
}

.page-hero {
  position: relative;
  min-height: 220px;
  display: grid;
  align-content: end;
  gap: 4px;
  margin-bottom: 16px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 7, 9, 0.94), rgba(7, 7, 9, 0.5) 58%, rgba(7, 7, 9, 0.78)),
    url("assets/graphic-options/option-b-photo-step1-intro.png") center / cover;
  box-shadow: var(--shadow);
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -94px;
  bottom: -116px;
  z-index: 0;
  width: min(440px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(from -12deg, transparent 0 9deg, rgba(240, 212, 141, 0.42) 9deg 10deg, transparent 10deg 30deg),
    radial-gradient(circle, transparent 0 34%, rgba(149, 224, 165, 0.13) 35% 36%, transparent 37% 47%, rgba(240, 212, 141, 0.38) 48% 49%, transparent 50% 63%, rgba(245, 238, 230, 0.16) 64% 65%, transparent 66%);
  filter: drop-shadow(0 0 28px rgba(217, 188, 120, 0.18));
  opacity: 0.66;
  animation: rotateSlow 58s linear infinite;
}

.page-hero::after,
.featured-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255, 241, 205, 0.18) 48%, transparent 64%),
    radial-gradient(circle at 46% 62%, rgba(217, 188, 120, 0.28), transparent 20%);
  mix-blend-mode: screen;
  opacity: 0.48;
  animation: shimmer 4.8s ease-in-out infinite;
}

.page-hero-form {
  background:
    linear-gradient(90deg, rgba(7, 7, 9, 0.93), rgba(7, 7, 9, 0.46) 56%, rgba(7, 7, 9, 0.8)),
    url("assets/graphic-options/option-b-photo-step2-form.png") center / cover;
}

.page-hero-form::before {
  right: auto;
  left: -100px;
  bottom: -116px;
  opacity: 0.5;
}

.page-hero-payment {
  background:
    linear-gradient(90deg, rgba(7, 7, 9, 0.95), rgba(7, 7, 9, 0.5) 57%, rgba(7, 7, 9, 0.82)),
    url("assets/graphic-options/option-b-photo-step3-payment.png") center / cover;
}

.page-hero-summary {
  background:
    linear-gradient(90deg, rgba(7, 7, 9, 0.94), rgba(7, 7, 9, 0.48) 57%, rgba(7, 7, 9, 0.82)),
    url("assets/graphic-options/option-b-photo-step4-summary.png") center / cover;
}

.page-hero-payment::before,
.page-hero-summary::before {
  width: min(390px, 76vw);
  opacity: 0.52;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero h2 {
  margin-bottom: 8px;
  font-size: clamp(1.62rem, 7vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.72), 0 0 24px rgba(217, 188, 120, 0.2);
}

.lead {
  width: min(680px, 100%);
  color: var(--muted);
  font-size: clamp(1rem, 3.4vw, 1.18rem);
  line-height: 1.65;
}

.zodiac-ring {
  position: absolute;
  right: -56px;
  top: 18px;
  width: 210px;
  aspect-ratio: 1;
  border: 1px solid rgba(240, 212, 141, 0.45);
  border-radius: 50%;
  background:
    conic-gradient(from 10deg, transparent 0 8deg, rgba(240, 212, 141, 0.5) 8deg 10deg, transparent 10deg 30deg),
    radial-gradient(circle, transparent 0 48%, rgba(240, 212, 141, 0.3) 49% 50%, transparent 51%);
  opacity: 0.55;
  animation: rotateSlow 42s linear infinite;
}

@keyframes rotateSlow {
  to { transform: rotate(360deg); }
}

.oracle-cards {
  position: absolute;
  right: 8px;
  top: 28px;
  width: 160px;
  height: 164px;
  opacity: 0.8;
}

.oracle-cards span {
  position: absolute;
  width: 76px;
  height: 116px;
  border: 1px solid rgba(240, 212, 141, 0.56);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(89, 197, 184, 0.14), rgba(180, 71, 74, 0.18)),
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(240, 212, 141, 0.09) 8px 9px);
  box-shadow: var(--shadow);
}

.oracle-cards span:nth-child(1) { left: 8px; top: 22px; transform: rotate(-13deg); }
.oracle-cards span:nth-child(2) { left: 44px; top: 8px; transform: rotate(2deg); }
.oracle-cards span:nth-child(3) { right: 0; top: 30px; transform: rotate(14deg); }

.featured-frame {
  position: relative;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(216, 173, 79, 0.28), rgba(89, 197, 184, 0.08)),
    rgba(255, 247, 232, 0.05);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.featured-frame img {
  width: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.terms-panel,
.choice-block,
.approval-panel,
.payment-content,
.appointment-card,
.final-message,
.timer-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.terms-panel::before,
.choice-block::before,
.approval-panel::before,
.payment-content::before,
.appointment-card::before,
.final-message::before,
.timer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 231, 167, 0.09), transparent 26% 74%, rgba(46, 126, 130, 0.08)),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent);
  opacity: 0.76;
}

.terms-panel > *,
.choice-block > *,
.approval-panel > *,
.payment-content > *,
.appointment-card > *,
.final-message > *,
.timer-card > * {
  position: relative;
  z-index: 1;
}

.terms-panel {
  padding: 16px;
}

.terms-panel h3,
.choice-block h3,
.payment-content h3 {
  margin-bottom: 12px;
  color: var(--gold-2);
  font-size: 1.08rem;
}

.terms-copy {
  max-height: min(64vh, 760px);
  overflow: auto;
  padding-right: 4px;
  color: var(--muted);
  line-height: 1.72;
}

.terms-copy p {
  margin-bottom: 14px;
}

.primary-action,
.secondary-action,
.copy-account,
.link-action {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: var(--radius);
  padding: 12px 16px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  font-weight: 800;
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  isolation: isolate;
}

.primary-action {
  margin-top: 18px;
  color: #17120c;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 12px 32px rgba(217, 188, 120, 0.18);
}

.secondary-action,
.copy-account {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 247, 232, 0.08);
}

.copy-account {
  min-height: 42px;
  margin-top: 8px;
  font-size: 0.9rem;
}

.primary-action:active,
.secondary-action:active,
.copy-account:active {
  transform: translateY(1px) scale(0.99);
}

.primary-action::after,
.secondary-action::after,
.copy-account::after,
.link-action::after {
  content: "";
  position: absolute;
  inset: -60% -22%;
  z-index: -1;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.38) 50%, transparent 68%);
  transform: translateX(-72%) rotate(7deg);
  transition: transform 520ms ease;
}

.primary-action:hover::after,
.secondary-action:hover::after,
.copy-account:hover::after,
.link-action:hover::after {
  transform: translateX(72%) rotate(7deg);
}

.primary-action:focus-visible,
.secondary-action:focus-visible,
.copy-account:focus-visible,
.slot-button:focus-visible,
.sound-fab:focus-visible,
.help-fab:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

.ui-ripple {
  position: absolute;
  width: 12px;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 244, 207, 0.58);
  transform: translate(-50%, -50%) scale(1);
  animation: magicRipple 620ms ease-out forwards;
}

@keyframes magicRipple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

.booking-form,
.slip-form {
  display: grid;
  gap: 14px;
}

.restore-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border: 1px solid rgba(240, 212, 141, 0.22);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 247, 232, 0.08), rgba(89, 197, 184, 0.055)),
    var(--surface-2);
}

.restore-panel h3 {
  margin-bottom: 0;
  color: var(--gold-2);
}

.restore-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.queue-status-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border: 1px solid rgba(240, 212, 141, 0.22);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.queue-status-panel[hidden] {
  display: none;
}

.queue-status-panel h3,
.queue-status-panel p {
  margin: 0;
}

.queue-status-steps {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 2px 0;
  list-style: none;
}

.queue-status-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(245, 238, 230, 0.58);
  font-size: 0.92rem;
}

.queue-status-steps li::before {
  content: "";
  width: 11px;
  aspect-ratio: 1;
  border: 1px solid rgba(240, 212, 141, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 rgba(217, 188, 120, 0);
}

.queue-status-steps li.is-done,
.queue-status-steps li.is-active {
  color: var(--ink);
}

.queue-status-steps li.is-done::before,
.queue-status-steps li.is-active::before {
  border-color: rgba(149, 224, 165, 0.7);
  background: var(--jade);
  box-shadow: 0 0 14px rgba(149, 224, 165, 0.28);
}

.queue-status-steps li.is-active {
  color: var(--gold-2);
  font-weight: 800;
}

.status-detail-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}

.status-detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(245, 238, 230, 0.12);
  padding-top: 8px;
}

.status-detail-list dt {
  color: var(--muted);
}

.status-detail-list dd {
  margin: 0;
  color: var(--ink);
  text-align: right;
}

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

.restore-status[hidden] {
  display: none;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.people-row > span {
  color: var(--gold-2);
  font-size: 0.94rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(240, 212, 141, 0.32);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--ink);
  background: rgba(255, 247, 232, 0.08);
  outline: 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(216, 173, 79, 0.16);
}

.field textarea {
  resize: vertical;
  line-height: 1.55;
}

.time-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.time-pair select {
  font-weight: 800;
  text-align: center;
}

.choice-block {
  padding: 14px;
}

.hint,
.phone-options p,
.conditions p {
  color: var(--muted);
  line-height: 1.65;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.segmented label,
.price-option,
.check-row {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid rgba(240, 212, 141, 0.25);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 247, 232, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.segmented input,
.price-option input,
.check-row input {
  accent-color: var(--gold);
  flex: 0 0 auto;
}

.phone-options {
  margin-top: 12px;
}

.location-panel {
  margin-top: 12px;
}

.foreign-contact-grid {
  margin-top: 12px;
}

.queue-list,
.price-grid,
.bank-list {
  display: grid;
  gap: 12px;
}

.queue-card,
.bank-card,
.summary-box,
.conditions,
.slip-preview,
.status-box,
.total-box {
  border: 1px solid rgba(240, 212, 141, 0.22);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 12px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.slot-button {
  position: relative;
  overflow: hidden;
  min-height: 42px;
  border: 1px solid rgba(240, 212, 141, 0.28);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 247, 232, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.slot-button.is-selected {
  color: #17120c;
  border-color: var(--gold-2);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(255, 231, 167, 0.22), 0 12px 26px rgba(217, 188, 120, 0.18);
}

.price-option {
  align-items: flex-start;
  flex-direction: column;
}

.price-option input {
  position: absolute;
  opacity: 0;
}

.price-option:has(input:checked) {
  border-color: var(--gold-2);
  background: rgba(216, 173, 79, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 231, 167, 0.12), 0 14px 32px rgba(217, 188, 120, 0.1);
}

.price-title {
  color: var(--gold-2);
  font-size: 1.18rem;
  font-weight: 900;
}

.people-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.stepper {
  display: grid;
  grid-template-columns: 42px 58px 42px;
  min-height: 42px;
}

.stepper button,
.stepper input {
  border: 1px solid rgba(240, 212, 141, 0.3);
  color: var(--ink);
  background: rgba(255, 247, 232, 0.08);
  text-align: center;
}

.stepper button:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.stepper button:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.stepper input {
  border-inline: 0;
  border-radius: 0;
}

.check-row {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.total-box {
  margin-top: 12px;
  color: var(--gold-2);
  font-size: 1.1rem;
  font-weight: 900;
}

.approval-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
}

.approval-panel[hidden] {
  display: none;
}

.approval-panel h3 {
  margin-bottom: 0;
  color: var(--gold-2);
  font-size: 1.3rem;
}

.approval-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.booking-help {
  border: 1px solid rgba(240, 212, 141, 0.22);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 247, 232, 0.055);
}

.booking-help h4 {
  margin: 0 0 8px;
  color: var(--gold-2);
  font-size: 1rem;
}

.booking-help ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.65;
}

.booking-help li + li {
  margin-top: 4px;
}

.booking-help p {
  margin: 10px 0 0;
  font-size: 0.92rem;
}

.approval-icon {
  width: 68px;
  aspect-ratio: 1;
  border: 1px solid rgba(240, 212, 141, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 231, 167, 0.82) 0 6px, transparent 7px),
    conic-gradient(from -16deg, transparent 0 18deg, rgba(240, 212, 141, 0.58) 18deg 20deg, transparent 20deg 42deg),
    rgba(255, 247, 232, 0.05);
  box-shadow: 0 0 28px rgba(217, 188, 120, 0.18);
}

.approval-id {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(240, 212, 141, 0.24);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 247, 232, 0.06);
}

.approval-copy {
  color: inherit;
  cursor: pointer;
}

.approval-copy:active {
  transform: translateY(1px);
}

.approval-id span {
  color: var(--muted);
  font-size: 0.86rem;
}

.approval-id strong {
  color: var(--gold-2);
  font-size: 1.18rem;
  overflow-wrap: anywhere;
}

.line-fallback-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.booking-message-fallback[hidden] {
  display: none;
}

.booking-message-fallback textarea {
  min-height: 148px;
  font-size: 0.92rem;
}

.payment-layout {
  display: grid;
  gap: 14px;
}

.payment-content {
  padding: 14px;
}

.timer-card {
  position: sticky;
  top: 8px;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
}

.timer-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.timer-card strong {
  color: var(--gold-2);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.thai-list {
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.65;
}

.bank-card h4 {
  color: var(--gold-2);
  margin: 0 0 8px;
}

.bank-card p {
  margin-bottom: 6px;
  color: var(--muted);
}

.slip-form {
  margin-top: 16px;
}

.file-field input {
  padding: 10px;
}

.slip-preview img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 5px;
}

.status-box {
  color: var(--muted);
  line-height: 1.5;
}

.status-box.is-ok {
  color: #dff8e9;
  border-color: rgba(90, 157, 121, 0.72);
  background: rgba(90, 157, 121, 0.18);
}

.status-box.is-error {
  color: #ffe3dc;
  border-color: rgba(180, 71, 74, 0.72);
  background: rgba(180, 71, 74, 0.2);
}

.appointment-card {
  padding: 16px;
}

.appointment-card h3 {
  color: var(--gold-2);
  margin: 0 0 12px;
}

.appointment-card p {
  color: var(--muted);
  line-height: 1.6;
}

.appointment-card ul,
.appointment-card ol {
  color: var(--muted);
  line-height: 1.65;
  padding-left: 22px;
}

.appointment-card strong {
  color: var(--ink);
}

.action-row {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.thanks-scene {
  position: relative;
  min-height: 320px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 7, 10, 0.18), rgba(7, 7, 10, 0.72)),
    url("assets/graphic-options/option-b-photo-step4-summary.png") center / cover;
}

.thanks-card {
  position: absolute;
  width: 94px;
  height: 142px;
  border: 1px solid rgba(240, 212, 141, 0.5);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(216, 173, 79, 0.16), rgba(89, 197, 184, 0.2)),
    repeating-linear-gradient(135deg, rgba(255, 247, 232, 0.05) 0 10px, transparent 10px 20px);
  box-shadow: var(--shadow);
  animation: floatCard 4s ease-in-out infinite;
}

.thanks-card:nth-child(1) { left: 8%; top: 130px; transform: rotate(-14deg); }
.thanks-card:nth-child(2) { left: 50%; top: 62px; transform: translateX(-50%); animation-delay: 0.6s; }
.thanks-card:nth-child(3) { right: 8%; top: 132px; transform: rotate(14deg); animation-delay: 1.2s; }

@keyframes floatCard {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -12px; }
}

.final-message {
  padding: 18px;
  text-align: center;
}

.final-message h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 10vw, 4rem);
  color: var(--gold-2);
}

.final-message p {
  color: var(--muted);
  line-height: 1.7;
}

.link-action {
  margin-top: 14px;
}

.help-fab,
.sound-fab {
  position: fixed;
  z-index: 10;
  border-radius: var(--radius);
  border: 1px solid rgba(240, 212, 141, 0.4);
  box-shadow: var(--shadow);
}

.help-fab {
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  min-width: 146px;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  color: #17120c;
  text-decoration: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}

.help-fab span {
  font-weight: 900;
  font-size: 0.92rem;
}

.help-fab small {
  font-size: 0.72rem;
}

.sound-fab {
  left: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  min-height: 44px;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(32, 26, 20, 0.94);
}

.sound-fab[aria-pressed="false"] .sound-on,
.sound-fab[aria-pressed="true"] .sound-off {
  display: none;
}

.version-stamp {
  position: fixed;
  left: 12px;
  top: calc(8px + env(safe-area-inset-top));
  z-index: 9;
  max-width: calc(100vw - 24px);
  border: 1px solid rgba(240, 212, 141, 0.16);
  border-radius: 999px;
  padding: 3px 8px;
  color: rgba(245, 238, 230, 0.46);
  background: rgba(7, 7, 10, 0.46);
  font-size: 0.62rem;
  line-height: 1.2;
  letter-spacing: 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.queue-status-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(960px, calc(100% - 28px));
  margin: -4px auto 14px;
  border: 1px solid rgba(240, 212, 141, 0.22);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(13, 13, 17, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.queue-status-strip[hidden] {
  display: none;
}

.queue-status-strip > div {
  display: grid;
  gap: 4px;
}

.queue-status-strip strong {
  color: var(--gold-2);
  font-size: 1rem;
}

.queue-status-strip small {
  color: var(--muted);
  line-height: 1.45;
}

.status-pill {
  width: fit-content;
  border: 1px solid rgba(149, 224, 165, 0.28);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--jade);
  background: rgba(149, 224, 165, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
}

.maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 30%, rgba(217, 188, 120, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(7, 7, 10, 0.72), rgba(7, 7, 10, 0.96)),
    var(--deep-bg) center / cover fixed;
}

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

.maintenance-card {
  width: min(920px, 100%);
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(240, 212, 141, 0.32);
  border-radius: var(--radius);
  background: rgba(13, 13, 17, 0.92);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.64);
}

.maintenance-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #07070a;
}

.maintenance-copy {
  display: grid;
  gap: 10px;
  padding: 18px;
  text-align: center;
}

.maintenance-copy h1 {
  margin: 0;
  color: var(--gold-2);
  font-size: clamp(2rem, 8vw, 4rem);
}

.maintenance-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.maintenance-expected {
  font-size: 0.94rem;
}

body.is-maintenance .site-header,
body.is-maintenance .progress,
body.is-maintenance .coach-cloud,
body.is-maintenance .inapp-warning,
body.is-maintenance .app-shell {
  display: none;
}

.customer-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 32;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 22%, rgba(217, 188, 120, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(7, 7, 10, 0.68), rgba(7, 7, 10, 0.96)),
    var(--deep-bg) center / cover fixed;
}

.customer-lock-overlay[hidden] {
  display: none;
}

.customer-lock-card {
  position: relative;
  width: min(480px, 100%);
  overflow: hidden;
  border: 1px solid rgba(240, 212, 141, 0.38);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(32, 26, 20, 0.94), rgba(10, 10, 14, 0.95)),
    rgba(13, 13, 17, 0.94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.customer-lock-card h1 {
  margin: 8px 0 10px;
  color: var(--gold-2);
  font-size: clamp(1.9rem, 9vw, 3rem);
  line-height: 1.08;
}

.customer-lock-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.lock-orb {
  width: 82px;
  aspect-ratio: 1;
  margin: 0 auto 12px;
  border: 1px solid rgba(240, 212, 141, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 36%, rgba(255, 231, 167, 0.92), rgba(217, 188, 120, 0.24) 34%, transparent 48%),
    radial-gradient(circle at center, rgba(149, 224, 165, 0.16), transparent 62%),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 28px rgba(217, 188, 120, 0.28);
  animation: pulse 4s ease-in-out infinite;
}

.customer-unlock-form {
  display: grid;
  gap: 12px;
  margin: 18px 0 12px;
  text-align: left;
}

.customer-unlock-form input {
  text-align: center;
  letter-spacing: 0.12em;
  font-size: 1.35rem;
  font-weight: 800;
}

.lock-help-link {
  width: 100%;
  margin-top: 10px;
  text-align: center;
}

.hidden-field {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 76px;
  z-index: 11;
  width: min(360px, calc(100% - 32px));
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(32, 26, 20, 0.96);
  box-shadow: var(--shadow);
  animation: toastIn 260ms ease both;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 10px) scale(0.98); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@media (hover: hover) {
  .primary-action:hover,
  .secondary-action:hover,
  .copy-account:hover,
  .link-action:hover,
  .slot-button:hover,
  .segmented label:hover,
  .price-option:hover,
  .check-row:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 231, 167, 0.52);
    filter: brightness(1.06);
  }

  .choice-block:hover,
  .terms-panel:hover,
  .payment-content:hover,
  .appointment-card:hover {
    border-color: rgba(255, 231, 167, 0.32);
  }
}

.admin-shell .page-hero {
  min-height: 260px;
}

.admin-login {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-status,
.admin-toolbar,
.admin-results {
  margin-top: 14px;
}

.admin-toolbar {
  display: grid;
  gap: 10px;
}

.admin-tool-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid rgba(240, 212, 141, 0.2);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 247, 232, 0.045);
}

.admin-tool-panel h4 {
  margin: 0;
  color: var(--gold-2);
}

.admin-tool-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-calendar-status {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(240, 212, 141, 0.18);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.055);
}

.admin-calendar-status span,
.admin-calendar-status small {
  color: var(--muted);
}

.admin-calendar-status strong {
  color: var(--gold-2);
}

.admin-calendar-status a {
  color: var(--gold-2);
  font-weight: 800;
}

.admin-calendar-status.is-ok {
  border-color: rgba(84, 214, 143, 0.42);
  background: rgba(84, 214, 143, 0.1);
}

.admin-calendar-status.is-error {
  border-color: rgba(255, 105, 105, 0.42);
  background: rgba(255, 105, 105, 0.1);
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-mini-grid,
.admin-action-row {
  display: grid;
  gap: 10px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.admin-filter-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.admin-filter-chip {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(240, 212, 141, 0.22);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--muted);
  background: rgba(255, 247, 232, 0.055);
  cursor: pointer;
}

.admin-filter-chip.is-active {
  color: #18110a;
  border-color: rgba(255, 231, 167, 0.88);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}

.admin-filter-chip strong {
  font-size: 1.08rem;
}

.report-card {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(240, 212, 141, 0.16);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.report-card span {
  color: var(--muted);
  font-size: 0.78rem;
}

.report-card strong {
  color: var(--gold-2);
  font-size: 1.7rem;
  line-height: 1;
}

.report-card small {
  color: rgba(245, 238, 230, 0.62);
  line-height: 1.35;
}

.report-card.is-error strong {
  color: #ff9a9a;
}

.report-sections {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.report-table-block {
  display: grid;
  gap: 8px;
}

.report-table-block summary {
  border: 1px solid rgba(240, 212, 141, 0.22);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--gold-2);
  background: rgba(255, 247, 232, 0.05);
  font-weight: 900;
  cursor: pointer;
}

.report-table-block[open] summary {
  margin-bottom: 8px;
  color: #17120c;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}

.report-table-scroll {
  overflow-x: auto;
}

.report-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.report-table th,
.report-table td {
  border-bottom: 1px solid rgba(245, 238, 230, 0.12);
  padding: 8px;
  text-align: left;
}

.report-table th {
  color: var(--muted);
  font-weight: 700;
}

.report-table td {
  color: var(--ink);
}

.admin-slot-list {
  display: grid;
  gap: 8px;
}

.admin-slot-option {
  display: grid;
  grid-template-columns: auto 76px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(240, 212, 141, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 247, 232, 0.055);
}

.admin-slot-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.admin-slot-option span {
  color: var(--gold-2);
  font-weight: 800;
}

.admin-slot-option strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.admin-history {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.admin-results {
  display: grid;
  gap: 12px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-card,
.admin-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-card-head {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-card-actions {
  display: grid;
  gap: 8px;
}

.danger-action {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(225, 92, 92, 0.56);
  border-radius: var(--radius);
  padding: 9px 12px;
  color: #ffe8e8;
  background: rgba(128, 28, 38, 0.32);
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.danger-action:hover {
  filter: brightness(1.1);
  box-shadow: 0 10px 28px rgba(128, 28, 38, 0.18);
}

.danger-action:active {
  transform: translateY(1px) scale(0.99);
}

.admin-card h3 {
  margin: 0;
  color: var(--ink);
}

.admin-card-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}

.admin-card-quick small {
  color: var(--muted);
  line-height: 1.4;
}

.admin-stage-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(240, 212, 141, 0.24);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--gold-2);
  background: rgba(255, 247, 232, 0.07);
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-stage-pill.is-waiting_payment,
.admin-stage-pill.is-slip_submitted {
  color: #d6fff7;
  border-color: rgba(89, 197, 184, 0.42);
  background: rgba(46, 126, 130, 0.2);
}

.admin-stage-pill.is-queue_rejected {
  color: #ffe9ba;
  border-color: rgba(232, 151, 88, 0.42);
  background: rgba(146, 75, 29, 0.22);
}

.admin-stage-pill.is-completed {
  color: #ddffd9;
  border-color: rgba(149, 224, 165, 0.42);
  background: rgba(60, 130, 78, 0.18);
}

.admin-stage-pill.is-edit {
  color: #ffe8f0;
  border-color: rgba(255, 151, 186, 0.38);
  background: rgba(125, 33, 53, 0.24);
}

.admin-compact-meta {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  color: rgba(245, 238, 230, 0.72);
  font-size: 0.84rem;
}

.admin-row-details {
  margin-top: 10px;
}

.admin-row-details summary {
  min-height: 42px;
  border: 1px solid rgba(240, 212, 141, 0.26);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--gold-2);
  background: rgba(255, 247, 232, 0.055);
  font-weight: 900;
  cursor: pointer;
}

.admin-row-details[open] summary {
  margin-bottom: 12px;
  color: #17120c;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}

.admin-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.admin-card dl div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  border-top: 1px solid rgba(240, 212, 141, 0.14);
  padding-top: 8px;
}

.admin-card dt {
  color: var(--gold-2);
  font-weight: 800;
}

.admin-card dd {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.date-button-grid,
.time-button-grid {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 8px 0 2px;
  scrollbar-width: thin;
}

.date-choice-button,
.time-choice-button {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid rgba(240, 212, 141, 0.24);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  background: rgba(255, 247, 232, 0.06);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.date-choice-button.is-selected,
.time-choice-button.is-selected {
  color: #17120c;
  border-color: rgba(255, 231, 167, 0.88);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}

.booking-popup,
.new-booking-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 3, 5, 0.72);
  backdrop-filter: blur(10px);
}

.booking-popup[hidden],
.new-booking-modal[hidden] {
  display: none;
}

.booking-popup-card,
.new-booking-card {
  width: min(520px, 100%);
  border: 1px solid rgba(240, 212, 141, 0.38);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 231, 167, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(28, 22, 18, 0.98), rgba(7, 7, 10, 0.98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.new-booking-card {
  position: relative;
  overflow: hidden;
}

.new-booking-card::before {
  content: "";
  position: absolute;
  inset: -30% 20% auto auto;
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 231, 167, 0.24), transparent 68%);
  pointer-events: none;
}

.booking-popup-card h2,
.new-booking-card h2 {
  margin: 0 0 10px;
}

.new-booking-card p {
  color: var(--muted);
  line-height: 1.7;
}

#newBookingModalSummary {
  display: block;
  border: 1px solid rgba(240, 212, 141, 0.24);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--gold-2);
  background: rgba(255, 247, 232, 0.07);
  font-weight: 800;
}

.booking-popup-card ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.65;
}

.admin-empty {
  color: var(--muted);
}

@media (min-width: 720px) {
  .site-header {
    padding-top: 28px;
  }

  .field-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .field.full {
    grid-column: 1 / -1;
  }

  .queue-list,
  .price-grid,
  .bank-list,
  .action-row {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .payment-layout {
    grid-template-columns: minmax(280px, 420px) 1fr;
    align-items: start;
  }

  .payment-image {
    position: sticky;
    top: 86px;
  }

  .secondary-action,
  .primary-action {
    width: auto;
  }

  .booking-form .primary-action,
  .slip-form .primary-action,
  #acceptTerms,
  .final-message .primary-action {
    width: 100%;
  }

  .admin-toolbar,
  .admin-card-head {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .admin-card-actions {
    grid-template-columns: auto auto;
    align-items: center;
  }

  .admin-mini-grid,
  .admin-action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .admin-dashboard-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .admin-filter-panel {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .admin-toolbar .secondary-action,
  .admin-card-head .copy-account,
  .admin-card-head .danger-action {
    width: auto;
  }
}

@media (max-width: 430px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .admin-link {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .queue-status-strip,
  .admin-panel-head {
    display: grid;
  }

  .queue-status-strip .copy-account {
    width: 100%;
  }

  .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-slot-option {
    grid-template-columns: auto 1fr;
  }

  .admin-slot-option strong {
    grid-column: 2;
  }

  .progress {
    width: calc(100% - 16px);
    gap: 4px;
  }

  .app-shell {
    padding-inline: 10px;
  }

  .page-hero {
    min-height: 200px;
  }

  .slot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .segmented {
    grid-template-columns: 1fr;
  }

  .line-fallback-actions {
    grid-template-columns: 1fr;
  }

  .people-row {
    grid-template-columns: 1fr;
  }
}

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