:root {
  --espresso: #574C3E;
  --burgundy: #721629;
  --emerald: #1D544D;
  --obsidian: #0C251F;
  --sage: #767F79;
  --sand: #F8E3C9;
  --gold: #E49E41;

  --bg: #F6EFE6;
  --surface: #FFFDF9;
  --surface-pure: #FFFFFF;
  --surface-muted: #FAF5EE;
  --border: rgba(87, 76, 62, 0.18);
  --border-strong: rgba(87, 76, 62, 0.30);

  --text: #0C251F;
  --text-muted: #574C3E;
  --text-subtle: #767F79;

  --primary: #1D544D;
  --primary-hover: #0C251F;
  --primary-active: #091C17;
  --primary-soft: rgba(29, 84, 77, 0.08);
  --primary-border: rgba(29, 84, 77, 0.38);

  --green: #1D544D;
  --green-soft: rgba(29, 84, 77, 0.09);
  --green-border: rgba(29, 84, 77, 0.32);

  --amber: #A66511;
  --amber-soft: #FDF4E4;
  --amber-border: rgba(228, 158, 65, 0.55);

  --red: #721629;
  --red-soft: #FDF2F4;
  --red-border: rgba(114, 22, 41, 0.30);

  --shadow: 0 2px 8px rgba(12, 37, 31, 0.05), 0 18px 42px rgba(87, 76, 62, 0.11);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(ellipse at top center, #F8E3C9 0%, #FBF5EC 46%, var(--bg) 100%);
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.num,
.mono,
input[type="text"],
input[type="tel"] {
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.hidden {
  display: none !important;
}

/* Pure 3D-Flip Falling Banknotes Background (Desktop & Tablet) */
.banknotes-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  perspective: 1100px;
  transition: opacity 0.2s ease;
}

.banknotes-stage.is-switching {
  opacity: 0;
}

.banknotes-stage.is-paused .bn-lane,
.banknotes-stage.is-paused .bn-card {
  animation-play-state: paused !important;
}

.bn-lane {
  position: absolute;
  top: 0;
  left: var(--x, 8%);
  width: var(--w, 152px);
  height: var(--h, 68px);
  opacity: 0;
  will-change: transform, opacity;
  animation: bnFall var(--dur, 16s) linear var(--delay, 0s) infinite;
}

.bn-lane.bn-near {
  --w: 152px;
  --h: 68px;
  --op: 0.68;
}

.bn-lane.bn-mid {
  --w: 138px;
  --h: 62px;
  --op: 0.48;
}

.bn-lane.bn-far {
  --w: 116px;
  --h: 52px;
  --op: 0.28;
  filter: blur(0.6px);
}

.bn-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  animation: bnFlip3D var(--dur, 16s) ease-in-out var(--delay, 0s) infinite;
}

.bn-face {
  position: absolute;
  inset: 0;
  border-radius: 5px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 0.75px solid rgba(87, 76, 62, 0.28);
  box-shadow: 0 4px 12px rgba(12, 37, 31, 0.16);
  background: var(--surface-muted);
}

.bn-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 227, 201, 0.05);
  pointer-events: none;
}

.bn-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.bn-back {
  transform: rotateY(180deg);
}

@keyframes bnFall {
  0% {
    transform: translate3d(0, -130px, 0);
    opacity: 0;
  }
  8% {
    opacity: var(--op, 0.52);
  }
  50% {
    transform: translate3d(var(--drift, 10px), 46vh, 0);
    opacity: var(--op, 0.52);
  }
  86% {
    opacity: var(--op, 0.52);
  }
  100% {
    transform: translate3d(calc(var(--drift, 10px) * -0.45), calc(100vh + 130px), 0);
    opacity: 0;
  }
}

@keyframes bnFlip3D {
  0% {
    transform: rotateZ(var(--tilt-a, -12deg)) rotateY(0deg);
  }
  34% {
    transform: rotateZ(calc(var(--tilt-a, -12deg) * 0.4)) rotateY(0deg);
  }
  60% {
    transform: rotateZ(calc(var(--tilt-b, 10deg) * 0.6)) rotateY(180deg);
  }
  100% {
    transform: rotateZ(var(--tilt-b, 10deg)) rotateY(180deg);
  }
}

@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  .banknotes-stage {
    display: none !important;
  }
}

/* Shells */
.client-shell {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding: 26px 16px 56px;
}

.checkout-shell {
  position: relative;
  z-index: 2;
  max-width: 940px;
  margin: 0 auto;
  padding: 26px 16px 56px;
}

/* Header */
.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

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

.logo-slot {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--sand);
  border: 1.5px dashed var(--espresso);
  color: var(--espresso);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--obsidian);
}

.brand-accent {
  color: var(--emerald);
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--emerald);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}

.back-link:hover {
  border-color: var(--emerald);
  background: var(--primary-soft);
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-btn:hover {
  color: var(--emerald);
}

.lang-btn.active {
  background: var(--emerald);
  color: #FFFFFF;
}

/* Online rate pill */
.rate-status-footer {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Profile Avatar Circle & Popover (BZONE ID) */
.profile-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.profile-avatar-btn {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 2px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--gold) 100%);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(12, 37, 31, 0.12);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.profile-avatar-btn:hover,
.profile-avatar-btn.is-open {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(29, 84, 77, 0.24);
}

.profile-avatar-btn:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}

.profile-avatar-btn.has-user::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  border: 2px solid var(--surface);
}

.profile-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--surface);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.profile-avatar-btn:hover .profile-avatar-inner,
.profile-avatar-btn.is-open .profile-avatar-inner {
  background: var(--sand);
  color: var(--obsidian);
}

.profile-avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-initials {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--obsidian);
}

.profile-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  max-width: calc(100vw - 32px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 36px rgba(12, 37, 31, 0.16);
  z-index: 40;
  animation: popoverFadeIn 0.16s ease;
}

@keyframes popoverFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.profile-popover-head strong {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--obsidian);
}

.profile-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--espresso);
  white-space: nowrap;
}

.profile-popover-desc {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
}

.profile-popover-cta {
  width: 100%;
  padding: 10px 14px;
  font-size: 13.5px;
  border-radius: 10px;
}

.profile-soon-note {
  margin: 9px 0 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-subtle);
  padding: 6px 8px;
  border-radius: 8px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.profile-soon-note.is-highlighted {
  background: var(--amber-soft);
  color: var(--espresso);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(228, 158, 65, 0.5);
  animation: pulseGold 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseGold {
  0% {
    box-shadow: 0 0 0 0 rgba(228, 158, 65, 0.5);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(228, 158, 65, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(228, 158, 65, 0);
  }
}

/* Hero */
.hero-intro {
  text-align: center;
  margin-bottom: 18px;
}

.hero-intro h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--obsidian);
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 23px;
  box-shadow: var(--shadow);
}

.section-label {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--espresso);
}

/* Target currency selector */
.currency-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 520px) {
  .currency-selector {
    grid-template-columns: 1fr;
  }
}

.currency-card {
  border: 1.5px solid var(--border);
  background: var(--surface-muted);
  border-radius: 14px;
  padding: 13px 15px;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
}

.currency-card:hover {
  border-color: var(--primary-border);
  background: var(--surface-pure);
}

.currency-card.active {
  background: var(--surface-pure);
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(29, 84, 77, 0.10);
}

.direction-pair {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.currency-card-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--espresso);
}

.currency-card.active .currency-card-name {
  color: var(--obsidian);
}

.currency-card-code {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-pure);
  border: 1px solid var(--border);
  color: var(--text-subtle);
  transition: all 0.16s ease;
}

.direction-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  transition: color 0.16s ease, transform 0.16s ease;
}

.currency-card.active .code-from {
  background: var(--sand);
  border-color: rgba(87, 76, 62, 0.25);
  color: var(--obsidian);
}

.currency-card.active .direction-arrow {
  color: var(--gold);
  transform: translateX(1px);
}

.currency-card.active .code-to {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #FFFFFF;
}

/* Rate banner (Warm Espresso #574C3E + Gold #E49E41) */
.rate-banner {
  background: var(--espresso);
  border: 1px solid rgba(228, 158, 65, 0.25);
  border-radius: var(--radius-md);
  padding: 15px 19px;
  margin-bottom: 16px;
}

.rate-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rate-banner-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sand);
}

.rate-banner-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.01em;
}

/* Amount fields */
.calc-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.amount-box {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}

.amount-box-receive {
  background: #F7F1E8;
  border-color: rgba(29, 84, 77, 0.24);
}

.amount-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.amount-box-head label {
  font-size: 12px;
  font-weight: 700;
  color: var(--espresso);
  letter-spacing: 0.01em;
}

.input-field-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-pure);
  border: 1.5px solid rgba(87, 76, 62, 0.28);
  border-radius: 12px;
  padding: 10px 14px 10px 16px;
  box-shadow: 0 2px 6px rgba(12, 37, 31, 0.04);
  cursor: text;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.input-field-bar:hover {
  border-color: rgba(87, 76, 62, 0.48);
}

.input-field-bar:focus-within {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(29, 84, 77, 0.14);
}

.amount-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 28px;
  font-weight: 800;
  color: var(--obsidian);
  outline: none;
  padding: 0;
  line-height: 1.25;
}

.input-trailing {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.edit-icon {
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.input-field-bar:focus-within .edit-icon {
  color: var(--emerald);
}

.currency-tag {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--espresso);
  background: #F4EDE4;
  border: 1px solid rgba(87, 76, 62, 0.22);
  border-radius: var(--radius-sm);
  padding: 6px 11px;
  flex-shrink: 0;
}

.currency-tag.currency-tag-acquire {
  background: var(--sand);
  border-color: rgba(87, 76, 62, 0.28);
  color: var(--obsidian);
}

.swap-wrap {
  display: flex;
  justify-content: center;
  margin: -18px 0;
  z-index: 2;
}

.swap-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-pure);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(12, 37, 31, 0.10);
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.swap-btn:hover {
  border-color: var(--emerald);
  background: var(--sand);
  transform: scale(1.06);
}

.swap-btn:active {
  transform: scale(0.95);
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.quick-chip {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface-pure);
  color: var(--espresso);
  cursor: pointer;
  transition: all 0.12s ease;
}

.quick-chip:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  background: rgba(248, 227, 201, 0.45);
}

/* Exchange process spoiler */
.process-spoiler {
  margin-top: 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.process-spoiler[open] {
  background: var(--surface);
  border-color: var(--primary-border);
}

.process-spoiler-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--espresso);
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
}

.process-spoiler-summary::-webkit-details-marker {
  display: none;
}

.process-spoiler-summary:hover,
.process-spoiler[open] .process-spoiler-summary {
  color: var(--emerald);
}

.process-spoiler-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.process-chevron {
  flex-shrink: 0;
  color: var(--sage);
  transition: transform 0.2s ease, color 0.15s ease;
}

.process-spoiler[open] .process-chevron {
  transform: rotate(180deg);
  color: var(--emerald);
}

.process-spoiler-body {
  padding: 2px 14px 14px;
  border-top: 1px solid rgba(87, 76, 62, 0.12);
}

.process-steps {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.process-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--sand);
  border: 1px solid rgba(87, 76, 62, 0.25);
  color: var(--obsidian);
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-copy {
  flex: 1;
  min-width: 0;
}

.step-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--obsidian);
  margin-bottom: 2px;
}

.step-copy p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Alerts */
.alert {
  padding: 11px 13px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-top: 12px;
  border: 1px solid;
}

.alert-amber {
  background: var(--amber-soft);
  border-color: var(--amber-border);
  color: var(--amber);
}

.alert-red {
  background: var(--red-soft);
  border-color: var(--red-border);
  color: var(--red);
}

.alert-green {
  background: var(--green-soft);
  border-color: var(--green-border);
  color: var(--green);
}

.alert-blue {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

/* CTA Button — Solid Emerald -> Solid Obsidian + Shimmer Gleam on hover (no static gradient) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.12s ease;
}

.btn:hover {
  background: var(--surface-muted);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: -35%;
  left: 0;
  width: 34%;
  height: 170%;
  background: linear-gradient(90deg, transparent 0%, rgba(248, 227, 201, 0.28) 50%, transparent 100%);
  transform: translateX(-160%) rotate(18deg);
  pointer-events: none;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: rgba(228, 158, 65, 0.65);
  box-shadow: 0 10px 24px rgba(12, 37, 31, 0.28);
}

.btn-primary:hover:not(:disabled)::after {
  animation: ctaShimmerSweep 0.68s ease forwards;
}

.btn-primary:active:not(:disabled) {
  background: var(--primary-active);
  transform: translateY(1px);
}

.btn-primary:disabled {
  background: var(--sage);
  border-color: var(--sage);
  cursor: not-allowed;
  box-shadow: none;
}

@keyframes ctaShimmerSweep {
  0% {
    transform: translateX(-160%) rotate(18deg);
  }
  100% {
    transform: translateX(390%) rotate(18deg);
  }
}

.btn-cta {
  width: 100%;
  margin-top: 16px;
  padding: 15px 20px;
  font-size: 16px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(29, 84, 77, 0.24);
}

.btn-cta.is-service-paused,
.btn-cta.is-service-paused:hover {
  background: rgba(118, 127, 121, 0.24);
  border-color: rgba(87, 76, 62, 0.20);
  color: rgba(87, 76, 62, 0.72);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-cta.is-service-paused::after {
  display: none;
}

body.is-service-paused .live-dot {
  background: var(--sage);
  animation: none;
  box-shadow: none;
}

/* Service pause notice banner (4 backend-selectable presets) */
.pause-banner {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid var(--border-strong);
  background: var(--surface-muted);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pause-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.pause-banner-body {
  flex: 1;
  min-width: 0;
}

.pause-banner-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.pause-banner-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 2px 9px;
  border-radius: 999px;
}

.pause-banner-title {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 4px;
}

.pause-banner-text {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.48;
}

/* Preset 1: sleep (night break — warm espresso & gold) */
.pause-banner[data-preset="sleep"] {
  background: linear-gradient(180deg, #574C3E 0%, #4A4034 100%);
  border-color: rgba(228, 158, 65, 0.40);
}

.pause-banner[data-preset="sleep"] .pause-banner-icon {
  background: rgba(248, 227, 201, 0.14);
  color: var(--gold);
}

.pause-banner[data-preset="sleep"] .pause-banner-badge {
  background: var(--sand);
  color: var(--obsidian);
}

.pause-banner[data-preset="sleep"] .pause-banner-title {
  color: #FFFDF9;
}

.pause-banner[data-preset="sleep"] .pause-banner-text {
  color: var(--sand);
}

/* Preset 2: break (short break — warm amber & sand) */
.pause-banner[data-preset="break"] {
  background: #FDF4E4;
  border-color: rgba(228, 158, 65, 0.55);
}

.pause-banner[data-preset="break"] .pause-banner-icon {
  background: var(--sand);
  color: var(--amber);
}

.pause-banner[data-preset="break"] .pause-banner-badge {
  background: rgba(228, 158, 65, 0.22);
  color: #7C4B0C;
}

.pause-banner[data-preset="break"] .pause-banner-title {
  color: var(--obsidian);
}

.pause-banner[data-preset="break"] .pause-banner-text {
  color: var(--espresso);
}

/* Preset 3: away (away from laptop — calm cream & espresso) */
.pause-banner[data-preset="away"] {
  background: #F6EFE6;
  border-color: rgba(87, 76, 62, 0.36);
}

.pause-banner[data-preset="away"] .pause-banner-icon {
  background: #EBE0D1;
  color: var(--espresso);
}

.pause-banner[data-preset="away"] .pause-banner-badge {
  background: rgba(87, 76, 62, 0.14);
  color: var(--espresso);
}

.pause-banner[data-preset="away"] .pause-banner-title {
  color: var(--obsidian);
}

.pause-banner[data-preset="away"] .pause-banner-text {
  color: var(--espresso);
}

/* Preset 4: busy (paused / high load — restrained burgundy blush) */
.pause-banner[data-preset="busy"] {
  background: var(--red-soft);
  border-color: rgba(114, 22, 41, 0.28);
}

.pause-banner[data-preset="busy"] .pause-banner-icon {
  background: rgba(114, 22, 41, 0.10);
  color: var(--burgundy);
}

.pause-banner[data-preset="busy"] .pause-banner-badge {
  background: rgba(114, 22, 41, 0.12);
  color: var(--burgundy);
}

.pause-banner[data-preset="busy"] .pause-banner-title {
  color: var(--obsidian);
}

.pause-banner[data-preset="busy"] .pause-banner-text {
  color: var(--espresso);
}

/* Local-only interactive pause preview bar (never shown in production) */
.pause-preview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px dashed rgba(87, 76, 62, 0.38);
  font-size: 12px;
  color: var(--espresso);
}

.pause-preview-label {
  font-weight: 700;
  margin-right: 4px;
}

.pause-preview-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface-pure);
  color: var(--espresso);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.pause-preview-btn:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.pause-preview-btn.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #FFFFFF;
}

/* Checkout Layout */
.checkout-head {
  margin-bottom: 18px;
}

.checkout-head h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--obsidian);
}

.checkout-head p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 820px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.stack-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  color: var(--obsidian);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kv-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.kv-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

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

.kv-row strong {
  text-align: right;
  color: var(--obsidian);
}

.kv-highlight {
  padding: 12px 14px;
  background: var(--espresso);
  border: 1px solid rgba(228, 158, 65, 0.28);
  border-radius: var(--radius-md);
}

.kv-highlight span:first-child {
  color: var(--sand);
  font-weight: 600;
}

.kv-highlight strong {
  font-size: 17px;
  color: var(--gold);
}

/* Timer box */
.timer-card {
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--green-border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.timer-card.is-warning {
  background: var(--amber-soft);
  border-color: var(--amber-border);
}

.timer-card.is-expired {
  background: var(--red-soft);
  border-color: var(--red-border);
}

.timer-card.is-accepted {
  background: var(--green-soft);
  border-color: var(--green-border);
}

.timer-card.is-payment-received {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.timer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.timer-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--emerald);
}

.timer-card.is-warning .timer-title {
  color: var(--amber);
}

.timer-card.is-expired .timer-title {
  color: var(--burgundy);
}

.timer-card.is-accepted .timer-title {
  color: var(--emerald);
}

.timer-card.is-payment-received .timer-title {
  color: #1d4ed8;
}

.timer-clock {
  font-size: 22px;
  font-weight: 800;
  color: var(--emerald);
  flex-shrink: 0;
}

.timer-card.is-warning .timer-clock {
  color: var(--gold);
}

.timer-card.is-expired .timer-clock {
  color: var(--burgundy);
}

.timer-card.is-accepted .timer-clock {
  color: var(--emerald);
}

.timer-card.is-payment-received .timer-clock {
  color: #1d4ed8;
}

.timer-track {
  margin-top: 10px;
  height: 7px;
  border-radius: 999px;
  background: rgba(87, 76, 62, 0.14);
  overflow: hidden;
}

.timer-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: var(--emerald);
  transition: width 0.4s linear;
}

.timer-card.is-warning .timer-fill {
  background: var(--gold);
}

.timer-card.is-expired .timer-fill {
  background: var(--burgundy);
  width: 0%;
}

.timer-card.is-accepted .timer-fill {
  background: var(--emerald);
}

.timer-card.is-payment-received .timer-fill {
  background: #2563eb;
}

.timer-desc {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Form */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--obsidian);
  background: var(--surface-pure);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(29, 84, 77, 0.14);
}

.form-control:disabled {
  background: var(--surface-muted);
  color: var(--text-subtle);
}

textarea.form-control {
  min-height: 82px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 6px;
  user-select: none;
}

.checkbox-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--emerald);
}

.form-hint {
  font-size: 12px;
  color: var(--text-subtle);
  margin: 0 0 14px;
}

.field-subhint {
  font-size: 11.5px;
  color: var(--text-subtle);
  margin-top: 5px;
}

.payout-box {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.payout-box-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--obsidian);
}

.method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--surface-pure);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.method-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.method-tab:hover:not(:disabled) {
  color: var(--emerald);
}

.method-tab.active {
  background: var(--emerald);
  color: #FFFFFF;
}

.method-tab:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.prefix-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.prefix-chip {
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-muted);
  color: var(--espresso);
  cursor: pointer;
  transition: all 0.12s ease;
}

.prefix-chip:hover:not(:disabled) {
  border-color: var(--emerald);
  color: var(--emerald);
  background: rgba(248, 227, 201, 0.55);
}

.prefix-chip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status-pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill-badge.pending {
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

.status-pill-badge.cancelled {
  background: var(--red-soft);
  color: var(--burgundy);
  border: 1px solid var(--red-border);
}

.status-pill-badge.accepted {
  background: var(--green-soft);
  color: var(--emerald);
  border: 1px solid var(--green-border);
}

.status-pill-badge.payment_received {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.status-pill-badge.completed {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-border);
}

/* Order status guide & live progress */
.status-guide {
  margin: 14px 0 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.status-guide-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--espresso);
  letter-spacing: 0.01em;
}

.status-guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.status-guide-item.is-current {
  background: var(--surface-pure);
  border-color: var(--emerald);
  box-shadow: 0 0 0 2px rgba(29, 84, 77, 0.10);
}

.status-guide-item-cancel.is-current {
  background: var(--red-soft);
  border-color: var(--red-border);
  box-shadow: 0 0 0 2px rgba(114, 22, 41, 0.10);
}

.status-guide-item.is-done {
  opacity: 0.82;
}

.status-step-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1px solid transparent;
}

.status-step-dot.dot-amber {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: var(--amber-border);
}

.status-step-dot.dot-emerald {
  background: var(--green-soft);
  color: var(--emerald);
  border-color: var(--green-border);
}

.status-step-dot.dot-blue {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.status-step-dot.dot-burgundy {
  background: var(--red-soft);
  color: var(--burgundy);
  border-color: var(--red-border);
}

.status-guide-item.is-done .status-step-dot {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #FFFFFF;
}

.status-guide-copy {
  flex: 1;
  min-width: 0;
}

.status-guide-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.status-guide-row strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--obsidian);
}

.status-guide-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.status-now-pill {
  display: none;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--obsidian);
  white-space: nowrap;
}

.status-guide-item.is-current .status-now-pill {
  display: inline-flex;
}

.status-guide-item-cancel.is-current .status-now-pill {
  background: var(--red-border);
  color: var(--burgundy);
}

.center-card {
  max-width: 520px;
  margin: 40px auto;
  text-align: center;
}

.center-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.center-card p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 480px) {
  .logo-slot {
    width: 34px;
    height: 34px;
    font-size: 9px;
  }
  .brand-title {
    font-size: 17.5px;
  }
  .topbar-right {
    gap: 7px;
  }
  .amount-input {
    font-size: 24px;
  }
  .rate-banner-value {
    font-size: 19px;
  }
  .hero-intro h1 {
    font-size: 23px;
  }
}
