:root {
  /* Brand foundation — deep forest with a sport-tech edge */
  --brand-950: #041810;
  --brand-900: #062218;
  --brand-800: #0c3a2a;
  --brand-700: #14523d;
  --brand-600: #1d6b50;

  /* Vibrant energy accent — younger and more electric than the old grass */
  --energy-500: #8ee73f;
  --energy-400: #a8f066;
  --energy-300: #c8f99a;
  --energy-100: #edffd8;

  /* Supporting palette */
  --grass-500: #7ed957;
  --grass-100: #e8f3df;
  --paper: #f6f7f4;
  --paper-2: #ecefe9;
  --surface: #ffffff;
  --surface-soft: #f9fbf7;
  --line: #e1e7de;
  --line-strong: #c9d4c4;
  --ink: #0f1612;
  --muted: #5f6f5e;
  --gold: #c9a857;
  --gold-soft: #f4edd2;
  --success: #2f8f5b;
  --warning: #e3a545;
  --danger: #d35c50;

  /* Radius — bigger, friendlier, more app-like */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --space: 16px;

  /* Shadows — softer, more diffused, less muddy */
  --shadow-app: 0 32px 80px rgba(4, 24, 18, 0.28);
  --shadow-card: 0 20px 48px rgba(8, 34, 24, 0.08);
  --shadow-float: 0 12px 32px rgba(8, 34, 24, 0.12);
  --shadow-soft: 0 6px 18px rgba(8, 34, 24, 0.06);
  --shadow-glow: 0 0 40px rgba(142, 231, 63, 0.25);

  color-scheme: light;
  font-family:
    "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  min-width: 0;
}

html {
  background: var(--brand-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 120% -10%, rgba(142, 231, 63, 0.14), transparent 55%),
    radial-gradient(80% 60% at -10% 10%, rgba(201, 168, 87, 0.10), transparent 45%),
    linear-gradient(155deg, var(--brand-950) 0%, var(--brand-800) 46%, var(--paper) 46%, var(--paper) 100%);
  letter-spacing: -0.01em;
}

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

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

button:not(:disabled):active {
  transform: scale(0.96);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

button:focus {
  outline: none;
}

button:focus-visible {
  outline: 3px solid rgba(142, 231, 63, 0.4);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(26px, 7vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.25;
}

h3 {
  font-size: 16px;
  font-weight: 750;
  line-height: 1.3;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.ui-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--energy-500);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-screen,
.mobile-stage {
  min-height: 100vh;
}

.login-screen {
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  position: relative;
  width: min(420px, 100%);
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(142, 231, 63, 0.18), transparent 55%),
    radial-gradient(90% 70% at -10% 20%, rgba(201, 168, 87, 0.14), transparent 50%),
    linear-gradient(180deg, rgba(12, 58, 42, 0.98), rgba(4, 24, 16, 0.99));
  box-shadow:
    var(--shadow-app),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.login-card::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: block;
  height: 220px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0));
  content: "";
  pointer-events: none;
}

.login-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-ambient span {
  position: absolute;
  right: -60px;
  width: 220px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(142, 231, 63, 0.35), transparent);
  transform: rotate(-22deg);
  animation: ambient-drift 8s ease-in-out infinite;
}

.login-ambient span:nth-child(1) {
  top: 120px;
  animation-delay: 0s;
}

.login-ambient span:nth-child(2) {
  top: 160px;
  width: 280px;
  animation-delay: -2.5s;
}

.login-ambient span:nth-child(3) {
  top: 200px;
  width: 170px;
  animation-delay: -5s;
}

@keyframes ambient-drift {
  0%, 100% {
    opacity: 0.6;
    transform: rotate(-22deg) translateX(0);
  }
  50% {
    opacity: 1;
    transform: rotate(-22deg) translateX(-30px);
  }
}

.login-brand {
  position: relative;
  margin: -150px 32px 54px;
}

.login-orb {
  position: absolute;
  top: 40px;
  right: 60px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(142, 231, 63, 0.35), rgba(142, 231, 63, 0.05) 55%, transparent 70%);
  filter: blur(24px);
  animation: orb-pulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes orb-pulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.login-logo {
  position: relative;
  display: block;
  width: 200px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

.login-copy,
.login-actions,
.login-note {
  position: relative;
  padding: 0 32px;
}

.login-copy h1 {
  max-width: 320px;
  color: #fff;
}

.login-copy p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.login-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.login-proof span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(6px);
}

.login-actions {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.login-note {
  display: grid;
  gap: 4px;
  margin: 28px 0 32px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.login-note strong {
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}

.line-button,
.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  letter-spacing: -0.01em;
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1),
    background 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.line-button {
  color: #fff;
  background: linear-gradient(180deg, #06c755, #05b34b);
  box-shadow:
    0 16px 34px rgba(5, 179, 75, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.primary-button {
  width: 100%;
  color: var(--brand-900);
  background: linear-gradient(180deg, var(--energy-400), var(--energy-500));
  box-shadow:
    0 16px 34px rgba(142, 231, 63, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.secondary-button {
  width: 100%;
  color: var(--brand-800);
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.login-card .secondary-button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.text-button {
  width: 100%;
  min-height: 42px;
  color: var(--muted);
  background: transparent;
}

.line-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.line-button:hover {
  box-shadow: 0 20px 40px rgba(5, 179, 75, 0.32);
}

.primary-button:hover {
  box-shadow:
    0 20px 40px rgba(142, 231, 63, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.mobile-stage {
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: 22px;
}

.phone-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(430px, 100%);
  height: min(900px, calc(100vh - 44px));
  height: min(900px, calc(100dvh - 44px));
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 40px;
  background:
    linear-gradient(180deg, var(--paper), #f1f2ee);
  box-shadow:
    var(--shadow-app),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.phone-shell::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 11;
  height: 140px;
  background: linear-gradient(180deg, rgba(246, 247, 244, 0), rgba(246, 247, 244, 0.92) 62%, var(--paper));
  content: "";
  pointer-events: none;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 28%, transparent 28% 100%),
    linear-gradient(145deg, var(--brand-800), var(--brand-950));
  box-shadow: 0 8px 24px rgba(4, 24, 16, 0.18);
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
}

.app-bar-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  min-height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
  background: transparent;
  transition: background 160ms ease;
}

.app-bar-brand:hover {
  background: rgba(255, 255, 255, 0.08);
}

.app-bar-brand img {
  display: block;
  width: 92px;
  height: auto;
}

.app-bar-title {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.app-bar-title span,
.app-bar-title strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-bar-title span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.app-bar-title strong {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.app-bar-status {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  max-width: 110px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

button.app-bar-status {
  cursor: pointer;
}

button.app-bar-status:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.app-bar-status.gold {
  border-color: rgba(201, 168, 87, 0.48);
  color: #fff;
  background: rgba(201, 168, 87, 0.18);
}

.app-bar-status.balance {
  border-color: rgba(232, 240, 140, 0.34);
  color: var(--energy-300);
  background: rgba(142, 231, 63, 0.12);
}

.app-bar-status.sync {
  border-color: rgba(142, 231, 63, 0.32);
  color: var(--energy-300);
  background: rgba(142, 231, 63, 0.12);
}

.app-bar-status.plain {
  color: rgba(255, 255, 255, 0.72);
}

.tier-pill {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid rgba(201, 168, 87, 0.42);
  border-radius: var(--radius-pill);
  color: #fff;
  background: rgba(201, 168, 87, 0.15);
  font-size: 12px;
  font-weight: 800;
}

.profile-card .tier-pill {
  color: var(--brand-800);
  background: var(--gold-soft);
  border-color: rgba(201, 168, 87, 0.2);
}

.app-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 18px calc(140px + env(safe-area-inset-bottom));
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.app-content::-webkit-scrollbar {
  display: none;
}

.app-content.is-entering-right {
  opacity: 0;
  transform: translateX(28px);
}

.app-content.is-entering-left {
  opacity: 0;
  transform: translateX(-28px);
}

.app-content.is-animating {
  animation: view-enter 320ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes view-enter {
  0% {
    opacity: 0;
    transform: translateX(var(--view-from-x, 28px));
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.app-content.is-entering-right.is-animating {
  --view-from-x: 28px;
}

.app-content.is-entering-left.is-animating {
  --view-from-x: -28px;
}

.bottom-nav {
  position: absolute;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 22px 44px rgba(4, 24, 16, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(24px) saturate(1.2);
}

.bottom-nav::before {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: -1;
  width: calc(20% - 4.8px);
  height: calc(100% - 16px);
  border-radius: 22px;
  background:
    linear-gradient(180deg, var(--energy-100), rgba(232, 243, 223, 0.96));
  box-shadow:
    0 8px 18px rgba(142, 231, 63, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  content: "";
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.bottom-nav[data-active-index="0"]::before {
  transform: translateX(0%);
}

.bottom-nav[data-active-index="1"]::before {
  transform: translateX(100%);
}

.bottom-nav[data-active-index="2"]::before {
  transform: translateX(200%);
}

.bottom-nav[data-active-index="3"]::before {
  transform: translateX(300%);
}

.bottom-nav[data-active-index="4"]::before {
  transform: translateX(400%);
}

.bottom-nav button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 52px;
  border-radius: 22px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: -0.01em;
  transition:
    color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bottom-nav .ui-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.1;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bottom-nav button.active {
  color: var(--brand-800);
}

.bottom-nav button.active .ui-icon {
  transform: translateY(-2px);
}

.bottom-nav button:not(.active):hover {
  color: var(--brand-800);
}

.hero-card,
.content-card,
.step-card,
.checkout-card,
.order-card,
.profile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  color: #fff;
  border-color: rgba(20, 82, 61, 0.18);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(142, 231, 63, 0.16), transparent 55%),
    radial-gradient(80% 60% at 0% 100%, rgba(201, 168, 87, 0.12), transparent 45%),
    linear-gradient(145deg, #14523d, #041810);
}

.card-soft {
  background: var(--surface-soft);
  border-color: var(--paper-2);
  box-shadow: var(--shadow-soft);
}

.card-accent {
  background:
    linear-gradient(145deg, var(--energy-100), #f4f9ec);
  border-color: rgba(142, 231, 63, 0.22);
  box-shadow:
    0 14px 34px rgba(142, 231, 63, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.card-quiet {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.card-elevated {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-card);
}

.passport-glow {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46%;
  background:
    linear-gradient(110deg, transparent 0 40%, rgba(255, 255, 255, 0.06) 40% 44%, transparent 44% 100%),
    linear-gradient(90deg, transparent, rgba(201, 168, 87, 0.12));
  pointer-events: none;
}

.hero-card p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.compact-hero {
  margin-bottom: 16px;
}

.hero-topline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.points-lockup {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.points-lockup > div {
  min-width: 0;
}

.points-lockup span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.points-lockup strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: clamp(34px, 9vw, 46px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.stored-value-amount {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.card-accent .points-lockup span:not(.coin-badge) {
  color: rgba(6, 34, 24, 0.68);
  font-weight: 750;
}

.card-accent .points-lockup .stored-value-amount {
  color: var(--brand-950);
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.coin-badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: var(--brand-900) !important;
  background: linear-gradient(145deg, #f4e8b5, var(--gold));
  font-size: 13px;
  font-weight: 900;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.passport-meta,
.wallet-stats {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.passport-meta span,
.wallet-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(4px);
}

.passport-meta .ui-icon {
  width: 14px;
  height: 14px;
}

.tier-progress {
  position: relative;
  overflow: hidden;
  height: 8px;
  margin-top: 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
}

.tier-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--energy-500), var(--gold));
  box-shadow: 0 0 12px rgba(142, 231, 63, 0.3);
}

.passport-booking {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.passport-booking > div {
  min-width: 0;
}

.passport-booking span,
.passport-booking p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.passport-booking strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-weight: 750;
}

.passport-booking p {
  margin: 4px 0 0;
}

.passport-booking button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  color: var(--brand-900);
  background: var(--energy-400);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(142, 231, 63, 0.2);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.quick-grid button {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas: "icon title" "icon note";
  gap: 4px 13px;
  align-items: center;
  min-height: 104px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(21, 54, 39, 0.08);
  border-radius: 22px;
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 246, 0.9));
  box-shadow:
    0 12px 28px rgba(4, 24, 16, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.quick-grid button:hover {
  border-color: var(--energy-300);
  box-shadow: var(--shadow-float);
  transform: translateY(-2px);
}

.quick-grid button:active {
  transform: scale(0.98);
}

.quick-icon {
  grid-area: icon;
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: var(--brand-800);
  background: rgba(246, 249, 242, 0.72);
  border: 1px solid rgba(18, 55, 39, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 18px rgba(4, 24, 16, 0.05);
  transition: background 180ms ease;
}

.quick-icon-img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 4px 7px rgba(4, 24, 16, 0.14));
}

.quick-grid strong {
  grid-area: title;
  align-self: end;
}

.quick-grid > button > span:last-child {
  grid-area: note;
  align-self: start;
}

.quick-grid button:hover .quick-icon {
  background: rgba(238, 247, 229, 0.9);
}

.quick-icon .ui-icon {
  width: 22px;
  height: 22px;
}

.quick-grid strong,
.quick-grid > button > span:last-child {
  display: block;
  min-width: 0;
}

.quick-grid strong {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.28;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-grid > button > span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.content-card,
.step-card,
.checkout-card,
.order-card,
.profile-card {
  margin-top: 16px;
  padding: 20px;
}

.content-card:first-of-type {
  margin-top: 0;
}

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

.section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
}

.section-head h2 .ui-icon {
  width: 18px;
  height: 18px;
  color: var(--energy-500);
}

.section-head > span,
.section-head > button {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.section-head > button {
  min-height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--brand-800);
  background: var(--energy-100);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.section-head > button:hover {
  background: var(--energy-300);
  transform: translateY(-1px);
}

.action-card {
  background:
    linear-gradient(145deg, #fff, #fbfcf8);
}

.return-nudge {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.venue-mini {
  position: relative;
  overflow: hidden;
  width: 82px;
  height: 82px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, #18251c 0 42%, #235d3e 42% 43%, #163727 43% 100%);
}

.venue-mini::before {
  position: absolute;
  top: 14px;
  left: 15px;
  width: 48px;
  height: 28px;
  border: 4px solid #2d3c31;
  border-radius: 6px;
  background: linear-gradient(180deg, #87b477, #2f7d4d);
  content: "";
}

.venue-mini span {
  position: absolute;
  right: 15px;
  bottom: 12px;
  width: 42px;
  height: 20px;
  border-radius: 5px;
  background: var(--grass-500);
  transform: skewX(-13deg);
}

.return-nudge strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.return-nudge p {
  margin: 5px 0 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.empty-card {
  padding: 14px;
  border: 1px dashed #c9d4c5;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.empty-card.compact strong {
  display: block;
  margin-bottom: 4px;
}

.empty-card p {
  margin: 0;
  font-size: 13px;
}

.order-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.order-preview span {
  color: var(--success);
  font-size: 12px;
  font-weight: 950;
}

.order-preview strong {
  display: block;
  margin-top: 3px;
}

.order-preview p {
  margin: 4px 0 0;
  font-size: 13px;
}

.announcement {
  display: grid;
  gap: 5px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.announcement:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.announcement span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  color: var(--brand-800);
  background: var(--energy-100);
  font-size: 11px;
  font-weight: 850;
}

.announcement strong {
  display: block;
  font-size: 14px;
  font-weight: 750;
}

.announcement p {
  margin-bottom: 0;
  font-size: 13px;
}

.flow-head {
  margin-bottom: 14px;
}

.flow-head span {
  color: var(--grass-500);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.flow-head h1 {
  margin-top: 4px;
}

.flow-head p {
  margin-bottom: 0;
  font-size: 14px;
}

.booking-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.booking-progress div {
  position: relative;
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: #fff;
}

.booking-progress span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--muted);
  background: var(--paper-2);
  font-size: 12px;
  font-weight: 950;
}

.booking-progress strong {
  font-size: 12px;
}

.booking-progress .active {
  border-color: rgba(16, 62, 46, 0.24);
  color: var(--brand-800);
  background: var(--grass-100);
}

.booking-progress .active span {
  color: #fff;
  background: var(--brand-800);
}

.branch-list,
.room-list {
  display: grid;
  gap: 10px;
}

.branch-chip,
.room-list button {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 86px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  text-align: left;
  background: #fff;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.branch-chip.active,
.room-list button.active {
  border-color: rgba(16, 62, 46, 0.36);
  background: var(--grass-100);
  box-shadow: inset 4px 0 0 var(--brand-800);
}

.venue-art,
.room-art,
.order-venue-art {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  height: 64px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #18251c 0 42%, #244c37 42% 43%, #123225 43% 100%);
}

.venue-art::before,
.room-art::before,
.order-venue-art::before {
  position: absolute;
  top: 11px;
  left: 13px;
  width: 38px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: linear-gradient(180deg, #87b477, #2f7d4d);
  content: "";
}

.venue-art i,
.venue-art::after,
.room-art::after,
.order-venue-art i,
.order-venue-art::after {
  position: absolute;
  content: "";
}

.venue-art i,
.order-venue-art i {
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 17px;
  border-radius: 5px;
  background: var(--grass-500);
  transform: skewX(-12deg);
}

.venue-art::after,
.room-art::after,
.order-venue-art::after {
  right: 17px;
  bottom: 26px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.tone-dome {
  background:
    linear-gradient(180deg, #1b221d 0 42%, #6c5b35 42% 43%, #25301f 43% 100%);
}

.tone-social {
  background:
    linear-gradient(180deg, #1d2420 0 42%, #426a4c 42% 43%, #1b3929 43% 100%);
}

.tone-offpeak {
  background:
    linear-gradient(180deg, #19221f 0 42%, #78875d 42% 43%, #243d2e 43% 100%);
}

.tone-tech {
  background:
    linear-gradient(180deg, #14231f 0 42%, #4a8b61 42% 43%, #173c2a 43% 100%);
}

.branch-copy,
.room-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.branch-copy strong,
.room-copy strong {
  font-size: 15px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.branch-copy small,
.room-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.branch-copy em,
.room-copy em {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--brand-800);
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.date-strip {
  display: grid;
  grid-auto-columns: minmax(78px, 1fr);
  grid-auto-flow: column;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.date-strip::-webkit-scrollbar {
  display: none;
}

.date-strip button,
.time-grid button,
.pay-methods button {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: #fff;
}

.date-strip button {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 64px;
}

.date-strip span,
.time-grid span {
  color: var(--muted);
  font-size: 12px;
}

.date-strip button.active,
.time-grid button.active,
.pay-methods button.active {
  color: #fff;
  border-color: var(--brand-800);
  background:
    linear-gradient(180deg, var(--brand-700), var(--brand-800));
}

.date-strip button.active span,
.time-grid button.active span {
  color: rgba(255, 255, 255, 0.76);
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.time-grid button {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 80px;
  padding: 9px 4px;
  overflow: hidden;
}

.time-grid em {
  justify-self: center;
  width: fit-content;
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--brand-800);
  background: var(--grass-100);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.time-grid button.active em {
  color: var(--brand-900);
  background: var(--gold-soft);
}

.booking-summary,
.price-box,
.order-facts,
.order-overview,
.reward-unlocked {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.order-overview {
  grid-template-columns: 0.8fr 0.8fr 1.4fr;
  margin-bottom: 12px;
}

.booking-summary div,
.price-box div,
.order-facts div,
.order-overview div,
.reward-unlocked div {
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  overflow: hidden;
}

.booking-summary span,
.price-box span,
.order-facts span,
.order-overview span,
.reward-unlocked span,
.attendees span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.booking-summary strong,
.price-box strong,
.order-facts strong,
.order-overview strong,
.reward-unlocked strong,
.attendees strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.order-overview strong {
  font-size: 18px;
}

.field {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: #fff;
  outline: none;
  padding: 12px 14px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--energy-500);
  box-shadow: 0 0 0 4px rgba(142, 231, 63, 0.12);
}

.pay-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.pay-methods.is-wallet {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pay-methods button {
  min-height: 48px;
  padding: 0 6px;
  font-size: 13px;
  font-weight: 800;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.pay-methods button:hover {
  border-color: var(--energy-300);
  transform: translateY(-1px);
}

.topup-amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.topup-amounts button {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  font-weight: 800;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.topup-amounts button:hover {
  border-color: var(--energy-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.topup-amounts button.active {
  color: var(--brand-900);
  border-color: var(--energy-500);
  background: var(--energy-100);
  box-shadow:
    0 8px 18px rgba(142, 231, 63, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.topup-amounts button span {
  pointer-events: none;
}

.wallet-hint {
  margin: -2px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(185, 154, 85, 0.28);
  border-radius: var(--radius-md);
  color: #6d634a;
  background: #fff8e8;
  font-size: 12px;
}

.stat-grid,
.record-metrics,
.rank-summary,
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-grid div,
.record-metrics div,
.rank-summary div,
.account-grid div {
  min-width: 0;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.stat-grid span,
.record-metrics span,
.rank-summary span,
.account-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.stat-grid strong,
.record-metrics strong,
.rank-summary strong,
.account-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.stat-grid.compact div {
  padding: 10px 8px;
  text-align: center;
}

.stat-grid.compact strong {
  font-size: 15px;
}

.data-hero .coin-badge {
  font-size: 11px;
}

.trend-chart {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 150px;
  padding: 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(111, 174, 63, 0.08), transparent 42%),
    var(--surface-soft);
}

.trend-chart div {
  display: grid;
  justify-items: center;
  align-items: end;
  gap: 6px;
}

.trend-chart span {
  display: block;
  width: 24px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, var(--grass-500), var(--brand-800));
}

.trend-chart strong {
  font-size: 14px;
}

.trend-chart em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.record-list,
.leaderboard-list {
  display: grid;
  gap: 10px;
}

.record-card,
.leaderboard-list article,
.challenge-mini,
.challenge-course {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.record-card {
  display: grid;
  gap: 12px;
  padding: 13px;
}

.record-head,
.challenge-mini,
.challenge-course {
  display: flex;
  align-items: center;
  gap: 12px;
}

.record-head > div,
.challenge-mini > div,
.challenge-course > div {
  min-width: 0;
  flex: 1 1 auto;
}

.record-head span,
.record-head p,
.record-note,
.challenge-mini span,
.challenge-mini p,
.challenge-course p,
.leaderboard-list p,
.quiet-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.record-head strong,
.challenge-mini strong,
.challenge-course strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.record-head em {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--brand-800);
  background: var(--grass-100);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.challenge-mini {
  padding: 13px;
}

.challenge-mini button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--brand-800);
  background: var(--grass-100);
  font-size: 13px;
  font-weight: 950;
}

.challenge-course {
  padding: 13px;
}

.challenge-course > span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--brand-800);
  background: var(--grass-100);
}

.challenge-reward {
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  color: #6d5b2c;
  background: var(--gold-soft);
  font-size: 13px;
  font-weight: 900;
}

.leaderboard-list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.leaderboard-list article.is-me {
  border-color: rgba(185, 154, 85, 0.48);
  background:
    linear-gradient(135deg, rgba(185, 154, 85, 0.12), transparent 54%),
    #fffef9;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  background: var(--brand-800);
  font-size: 13px;
  font-weight: 950;
}

.leaderboard-list strong {
  display: block;
  font-size: 15px;
}

.leaderboard-list em {
  color: var(--brand-800);
  font-size: 15px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.profile-progress {
  margin-top: 12px;
  background: var(--paper-2);
}

.profile-progress span {
  background: linear-gradient(90deg, var(--brand-800), var(--gold));
}

.quiet-note {
  margin-top: 9px;
}

.badge-row,
.badge-grid {
  display: grid;
  gap: 10px;
}

.badge-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.badge-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 84px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.badge-card.mini {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.badge-medal {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: var(--brand-800);
  background: var(--grass-100);
}

.badge-card.tone-gold .badge-medal,
.badge-card.tone-black .badge-medal {
  color: var(--brand-900);
  background: var(--gold-soft);
}

.badge-card.tone-tech .badge-medal {
  color: #fff;
  background: linear-gradient(145deg, var(--brand-700), var(--brand-900));
}

.badge-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.badge-card p,
.badge-card small {
  display: block;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.badge-card.is-locked {
  opacity: 0.52;
  filter: grayscale(0.4);
}

.price-box {
  margin-bottom: 12px;
}

.price-box .total {
  color: #fff;
  background:
    linear-gradient(180deg, var(--brand-700), var(--brand-800));
}

.price-box .total span {
  color: rgba(255, 255, 255, 0.72);
}

.success-view {
  position: relative;
  display: grid;
  gap: 14px;
  padding-top: 18px;
  text-align: center;
}

.success-orbit {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 130px;
  height: 84px;
  pointer-events: none;
  transform: translateX(-50%);
}

.success-orbit span {
  position: absolute;
  left: 50%;
  width: 1px;
  height: 30px;
  border-radius: 999px;
  background: rgba(111, 174, 63, 0.26);
  transform-origin: bottom center;
}

.success-orbit span:nth-child(1) {
  transform: rotate(-42deg);
}

.success-orbit span:nth-child(2) {
  height: 36px;
}

.success-orbit span:nth-child(3) {
  transform: rotate(42deg);
}

.success-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 4px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #fff;
  background:
    linear-gradient(145deg, var(--grass-500), var(--brand-800));
  font-size: 34px;
  font-weight: 950;
  box-shadow: 0 18px 36px rgba(16, 62, 46, 0.2);
  animation: success-pop 420ms ease both;
}

.success-mark .ui-icon {
  width: 36px;
  height: 36px;
  stroke-width: 2.4;
}

.success-view > p {
  margin-bottom: 0;
}

.reward-unlocked {
  text-align: left;
}

.reward-unlocked strong {
  color: var(--brand-800);
  font-size: clamp(16px, 4.8vw, 20px);
}

.action-stack {
  display: grid;
  gap: 10px;
}

.coupon-stack {
  display: grid;
  gap: 10px;
}

.tier-stack {
  display: grid;
  gap: 10px;
}

.tier-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.tier-card.is-current {
  border-color: rgba(185, 154, 85, 0.46);
  background:
    linear-gradient(135deg, rgba(185, 154, 85, 0.11), transparent 48%),
    #fffef9;
}

.tier-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tier-card-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.tier-card-head strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.tier-card-head em {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--brand-800);
  background: var(--grass-100);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.tier-card.is-current .tier-card-head em {
  color: var(--brand-900);
  background: var(--gold-soft);
}

.tier-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tier-benefits span {
  padding: 6px 8px;
  border: 1px solid rgba(16, 62, 46, 0.09);
  border-radius: 999px;
  color: var(--brand-800);
  background: #fff;
  font-size: 12px;
  font-weight: 850;
}

.coupon-card {
  --coupon-side: 112px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--coupon-side);
  gap: 0;
  overflow: hidden;
  min-height: 112px;
  padding: 0;
  border: 1px solid rgba(185, 154, 85, 0.42);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(110deg, rgba(185, 154, 85, 0.1) 0 38%, transparent 38% 100%),
    #fffefb;
}

.coupon-card::before,
.coupon-card::after {
  position: absolute;
  content: "";
}

.coupon-card::before {
  display: none;
}

.coupon-card::after {
  display: none;
}

.coupon-card > div:first-child {
  min-width: 0;
  padding: 16px 12px 16px 14px;
}

.coupon-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
}

.coupon-card strong {
  display: block;
  margin-top: 4px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.coupon-card p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.coupon-value {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: var(--coupon-side);
  min-width: 0;
  padding: 24px 8px 12px;
  border-left: 1px dashed rgba(185, 154, 85, 0.5);
  text-align: center;
}

.coupon-value strong {
  color: var(--brand-800);
  font-size: clamp(18px, 5.4vw, 23px);
  line-height: 1.08;
  white-space: nowrap;
}

.coupon-value span {
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--brand-800);
  background: var(--grass-100);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.coupon-card.featured {
  border-color: rgba(16, 62, 46, 0.24);
  background:
    linear-gradient(110deg, rgba(111, 174, 63, 0.09) 0 42%, transparent 42% 100%),
    var(--surface-soft);
}

.coupon-card.is-muted,
.muted-list {
  opacity: 0.62;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline article,
.mini-list article {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 12px 12px 12px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.timeline article i {
  position: absolute;
  top: 15px;
  left: 13px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px rgba(47, 143, 91, 0.18);
}

.timeline span {
  color: var(--success);
  font-size: 12px;
  font-weight: 950;
}

.timeline p,
.mini-list span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

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

.order-card {
  display: grid;
  gap: 12px;
}

.order-card-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.order-venue-art {
  width: 58px;
  height: 54px;
}

.order-card-head span {
  color: var(--muted);
  font-size: 12px;
}

.order-card-head strong {
  display: block;
  margin-top: 4px;
}

.status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 950;
}

.status.is-paid,
.status.is-done {
  color: #1c6f45;
  background: #e5f3e6;
}

.status.is-pending {
  color: #9b661a;
  background: #fff3d8;
}

.status.is-cancelled {
  color: var(--danger);
  background: #fae8e6;
}

.attendees {
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--grass-100);
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.inline-form button,
.order-actions button,
.copy-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--brand-800);
  background: var(--grass-100);
  font-size: 13px;
  font-weight: 950;
}

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

.profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #fff;
  background:
    linear-gradient(145deg, var(--brand-700), var(--brand-900));
  font-size: 22px;
  font-weight: 950;
}

.profile-card h1 {
  margin-bottom: 2px;
  font-size: 22px;
}

.profile-card p {
  margin-bottom: 0;
  font-size: 13px;
}

.quiet-card {
  box-shadow: var(--shadow-soft);
}

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

.form-stack .field {
  margin-top: 0;
}

.copy-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.inline-form input,
.copy-box input {
  min-width: 0;
}

.inline-form button,
.copy-box button,
.order-actions button {
  min-width: 0;
  white-space: nowrap;
}

.mini-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(108px + env(safe-area-inset-bottom));
  z-index: 30;
  width: min(360px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 40, 29, 0.95);
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 16px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes success-pop {
  0% {
    opacity: 0;
    transform: scale(0.78);
  }

  70% {
    transform: scale(1.04);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.app-content.is-animating > section,
.login-card {
  animation: fade-in-up 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.app-content.is-animating > section:nth-child(2) {
  animation-delay: 60ms;
}

.app-content.is-animating > section:nth-child(3) {
  animation-delay: 120ms;
}

.app-content.is-animating > section:nth-child(4) {
  animation-delay: 180ms;
}

.app-content.is-animating > section:nth-child(5) {
  animation-delay: 240ms;
}

.app-content.is-animating > section:nth-child(6) {
  animation-delay: 300ms;
}

.app-content.is-animating > section:nth-child(7) {
  animation-delay: 360ms;
}

.branch-chip,
.room-list button,
.date-strip button,
.time-grid button,
.record-card,
.leaderboard-list article,
.badge-card,
.coupon-card,
.tier-card,
.order-preview,
.order-card {
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    background 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.branch-chip:hover,
.room-list button:hover,
.date-strip button:not(.active):hover,
.time-grid button:not(.active):hover,
.record-card:hover,
.leaderboard-list article:hover,
.badge-card:hover,
.coupon-card:hover,
.tier-card:hover,
.order-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(108px + env(safe-area-inset-bottom));
  z-index: 30;
  width: min(360px, calc(100vw - 32px));
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  color: #fff;
  background: rgba(8, 40, 29, 0.95);
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  font-weight: 700;
  transform: translate(-50%, 16px) scale(0.96);
  transition:
    opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

@media (max-width: 520px) {
  body {
    background: var(--paper);
    overflow: hidden;
  }

  .mobile-stage,
  .login-screen {
    display: block;
    height: 100vh;
    height: 100dvh;
    padding: 0;
  }

  .phone-shell {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .login-card {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .login-card {
    min-height: 100vh;
  }

  .toast {
    bottom: calc(106px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 374px) {
  .time-grid,
  .booking-summary,
  .price-box,
  .order-facts,
  .quick-grid,
  .reward-unlocked,
  .stat-grid,
  .stat-grid.compact,
  .record-metrics,
  .rank-summary,
  .account-grid,
  .badge-grid {
    grid-template-columns: 1fr;
  }

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

  .leaderboard-list article {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .leaderboard-list em {
    grid-column: 2;
    justify-self: start;
  }

  .coupon-card {
    --coupon-side: 92px;
    min-height: 104px;
  }

  .coupon-card > div:first-child {
    padding: 14px 10px 14px 12px;
  }

  .coupon-value {
    padding-right: 6px;
    padding-left: 6px;
  }

  .coupon-value strong {
    font-size: 18px;
  }

  .return-nudge {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .venue-mini {
    width: 68px;
    height: 68px;
  }

  .venue-mini::before {
    top: 12px;
    left: 12px;
    width: 39px;
    height: 22px;
    border-width: 3px;
  }

  .venue-mini span {
    right: 12px;
    bottom: 10px;
    width: 34px;
    height: 16px;
  }

  .order-overview {
    grid-template-columns: 1fr 1fr;
  }

  .inline-form,
  .copy-box,
  .order-actions {
    grid-template-columns: 1fr;
  }

  .points-lockup strong {
    font-size: 31px;
  }

  .app-bar {
    gap: 8px;
    min-height: 58px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .app-bar-brand,
  .app-bar-brand img {
    width: 78px;
  }

  .app-bar-title strong {
    font-size: 16px;
  }

  .app-bar-status {
    max-width: 86px;
    min-height: 32px;
    padding: 0 8px;
    font-size: 10px;
  }

  .branch-chip,
  .room-list button {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}

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