:root {
  --orange: #ff6900;
  --orange-light: #ff8f3f;
  --action-orange: #b84300;
  --orange-soft: #fff0e5;
  --surface-soft: #f3f3f1;
  --background: #f9f9f9;
  --card: #ffffff;
  --card-muted: rgba(255, 255, 255, 0.72);
  --text: #161616;
  --secondary: #737373;
  --line: rgba(22, 22, 22, 0.08);
  --shadow: 0 6px 20px rgba(18, 18, 18, 0.045);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --phone-width: 430px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--background);
  color: var(--text);
  font-family: "Nunito", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

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

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255, 105, 0, 0.3);
  outline-offset: 3px;
}

[data-swipe-redeem]:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

body.dialog-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
}

.primary-button {
  width: 100%;
  min-height: 52px;
  border-radius: 18px;
  background: var(--action-orange);
  color: #fff;
  padding: 16px 20px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(255, 105, 0, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.button-spinner {
  display: inline-block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}

button[aria-busy="true"] {
  cursor: progress;
}

.auth-progress:empty {
  display: none;
}

.auth-bot-help {
  padding-top: 8px;
}

.auth-bot-help p {
  margin: 0 0 12px;
}

.auth-bot-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.primary-button.secondary {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.primary-button.muted {
  background: rgba(255, 105, 0, 0.12);
  color: var(--orange);
  box-shadow: none;
}

.primary-button.dark {
  background: #161616;
}

.secondary-button {
  width: 100%;
  min-height: 50px;
  border-radius: 18px;
  background: rgba(255, 105, 0, 0.14);
  color: var(--orange);
  padding: 15px 20px;
  font-weight: 800;
  border: 1px solid rgba(255, 105, 0, 0.28);
  box-shadow: 0 10px 24px rgba(255, 105, 0, 0.1);
  transition: transform 160ms ease, background 160ms ease;
}

.cancel-button {
  background: rgba(227, 93, 93, 0.12);
  color: #d94a4a;
  border-color: rgba(227, 93, 93, 0.24);
}

.secondary-button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.redeem-wait-button {
  background: rgba(191, 243, 212, 0.8);
  color: rgba(22, 22, 22, 0.45);
  box-shadow: none;
}

.redeem-wait-button:disabled {
  cursor: default;
  opacity: 1;
}

.cancel-text-button {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(227, 93, 93, 0.08);
  color: #b35b5b;
  text-align: center;
}

.cancel-text-button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.savings-input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
}

.savings-input-wrap span {
  color: var(--secondary);
  font-weight: 900;
}

.savings-input {
  font-size: 28px;
  font-weight: 900;
}

.main-shell {
  min-height: 100vh;
  padding-bottom: 108px;
  background:
    radial-gradient(circle at top right, rgba(255, 105, 0, 0.08), transparent 26%),
    linear-gradient(180deg, #fcfbfa 0%, #f8f8f8 100%);
}

.screen {
  width: min(calc(100% - 24px), var(--phone-width));
  margin: 0 auto;
  padding: 24px 0 40px;
  overflow-x: hidden;
}

.screen.hidden {
  display: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.how-it-works-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 8px 14px;
  border: 1px solid #f2d0b6;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--action-orange);
  font-weight: 800;
  text-align: left;
}

.how-it-works-button .ui-icon { width: 20px; height: 20px; }

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 22px rgba(255, 105, 0, 0.2);
}

.brand-name {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.brand-name.with-count {
  font-size: 30px;
  line-height: 1.08;
}

.subtitle {
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
}

.subscription-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #f3d8c6;
  border-radius: var(--radius-md);
  background: var(--orange-soft);
  color: var(--text);
  text-align: left;
}

.subscription-notice > .ui-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--action-orange);
}

.subscription-notice-copy {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.subscription-notice-copy strong {
  font-size: 12px;
  font-weight: 700;
}

.subscription-notice-arrow {
  flex: 0 0 auto;
  font-size: 23px;
  line-height: 1;
}

.subscription-notice-warning {
  border-color: #edc4bf;
  background: #fff0ed;
  color: #a43c32;
}

.subscription-notice-warning > .ui-icon {
  color: inherit;
}

.search-input,
.text-input,
.password-input,
.select-input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  outline: none;
}

.search-input:focus,
.text-input:focus,
.password-input:focus,
.select-input:focus {
  border-color: rgba(255, 105, 0, 0.36);
  box-shadow: 0 0 0 4px rgba(255, 105, 0, 0.08);
}

.search-input {
  margin-bottom: 20px;
}

.pill-row {
  margin: 8px 0 20px;
}

.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--secondary);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.restaurant-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.restaurant-card,
.surface-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.restaurant-card {
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.restaurant-card:active {
  transform: scale(0.99);
}

.restaurant-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.restaurant-card-body {
  padding: 18px;
}

.restaurant-card-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.deal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 105, 0, 0.1);
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
}

.empty-state,
.loading-state {
  min-height: 56vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px 18px;
}

.empty-state-card,
.loading-card {
  max-width: 380px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.empty-state-icon,
.loading-icon {
  font-size: 42px;
  color: var(--orange);
  margin-bottom: 14px;
}

.loading-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 4px solid rgba(255, 105, 0, 0.14);
  border-top-color: var(--orange);
  animation: spin 0.9s linear infinite;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(calc(100% - 28px), 460px);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(20px);
  z-index: 50;
}

.dock-button {
  flex: 1;
  min-height: 58px;
  border-radius: 999px;
  background: transparent;
  color: var(--secondary);
  font-weight: 800;
  display: grid;
  place-items: center;
  gap: 4px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dock-button.active {
  background: #fff;
  color: var(--orange);
  box-shadow: 0 10px 22px rgba(255, 105, 0, 0.12);
}

.dock-icon {
  font-size: 22px;
  line-height: 1;
}

.dock-label {
  font-size: 12px;
}

.profile-stack,
.booking-list,
.redeem-list {
  display: grid;
  gap: 16px;
}

.profile-card,
.booking-card,
.redeem-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.booking-overview-card,
.booking-history-section {
  display: grid;
  gap: 14px;
}

.booking-section-header {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.booking-section-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.booking-section-heading strong {
  font-size: 17px;
  line-height: 1.25;
}

.booking-section-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 900;
}

.booking-section-icon.current {
  background: rgba(0, 164, 109, 0.12);
  color: #009367;
  font-size: 11px;
}

.booking-section-icon.past {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.booking-section-icon.cancelled {
  background: rgba(217, 74, 74, 0.1);
  color: #d94a4a;
}

.booking-count-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(107, 114, 128, 0.1);
  color: #666d78;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.booking-count-badge.cancelled {
  background: rgba(217, 74, 74, 0.09);
  color: #b65353;
}

.history-toggle-button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px 13px 16px;
  border: 1px solid rgba(255, 105, 0, 0.2);
  border-radius: 16px;
  background: rgba(255, 105, 0, 0.08);
  color: var(--orange);
  text-align: left;
  font-weight: 900;
  line-height: 1.3;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.history-toggle-button.cancelled {
  border-color: rgba(217, 74, 74, 0.16);
  background: rgba(217, 74, 74, 0.06);
  color: #b65353;
}

.history-toggle-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 14px rgba(22, 22, 22, 0.08);
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 180ms ease;
}

.history-toggle-icon.expanded {
  transform: rotate(180deg) translateY(1px);
}

.booking-history-section.expanded {
  padding-bottom: 20px;
}

.booking-overview-card > .empty-state-card,
.booking-overview-card > .booking-list,
.booking-history-section > .booking-list {
  margin-top: 0;
}

.booking-overview-card > .empty-state-card {
  max-width: none;
  padding: 24px 18px;
  background: rgba(249, 249, 249, 0.82);
  border: 1px solid rgba(22, 22, 22, 0.04);
  box-shadow: none;
}

.booking-card,
.redeem-card {
  border: 1px solid rgba(22, 22, 22, 0.05);
  box-shadow: 0 10px 24px rgba(18, 18, 18, 0.065);
}

.avatar-block {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.signed-out-bookings-card {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 32px 24px;
  text-align: center;
}

.signed-out-bookings-card h3,
.signed-out-bookings-card p {
  margin: 0;
}

.signed-out-bookings-card .primary-button {
  margin-top: 8px;
}

.avatar-circle {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 30px rgba(255, 105, 0, 0.22);
}

.menu-list {
  display: grid;
}

.menu-row {
  width: 100%;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  border-radius: 14px;
  transition: background 160ms ease, transform 160ms ease;
}

.menu-row:last-child {
  border-bottom: 0;
}

.menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: 0 0 auto;
}

.menu-copy {
  flex: 1;
}

.menu-copy strong,
.card-heading strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.menu-copy span,
.muted,
.card-meta {
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.4;
}

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

.language-switch button {
  padding: 12px 10px;
  border-radius: 999px;
  background: rgba(255, 105, 0, 0.08);
  color: var(--secondary);
  font-weight: 800;
}

.language-switch button.active {
  background: var(--orange);
  color: #fff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  flex: 0 0 auto;
  white-space: nowrap;
}

.status-pill.upcoming {
  background: rgba(255, 105, 0, 0.12);
  color: var(--orange);
}

.status-pill.valid {
  background: rgba(0, 164, 109, 0.12);
  color: #009367;
}

.status-pill.past {
  background: rgba(107, 114, 128, 0.12);
  color: #6b7280;
}

.status-pill.cancelled {
  background: rgba(217, 74, 74, 0.12);
  color: #d94a4a;
}

.card-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.card-heading h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
}

.accent-text {
  color: var(--orange);
  font-weight: 800;
}

.info-list {
  display: grid;
  gap: 10px;
}

.info-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary);
  font-size: 14px;
}

.link-button {
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 105, 0, 0.08);
  color: var(--orange);
  font-weight: 800;
  text-align: left;
}

.swipe-redeem {
  position: relative;
  height: 58px;
  margin-top: 16px;
  border-radius: 999px;
  background: rgba(255, 105, 0, 0.14);
  border: 1px solid rgba(255, 105, 0, 0.28);
  overflow: hidden;
  cursor: grab;
}

.swipe-redeem-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 58px;
  border-radius: 999px;
  background: var(--orange);
}

.swipe-redeem-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  z-index: 1;
  pointer-events: none;
}

.swipe-redeem-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(255, 105, 0, 0.22);
  z-index: 2;
  touch-action: none;
  user-select: none;
}

.swipe-redeem.swiping,
.swipe-redeem.swiping .swipe-redeem-knob {
  cursor: grabbing;
}

.swipe-redeem.disabled {
  cursor: wait;
  opacity: 0.76;
}

.swipe-redeem.disabled .swipe-redeem-knob {
  pointer-events: none;
}

.swipe-redeem-dark {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.44);
  backdrop-filter: blur(10px);
  padding: 20px;
  z-index: 60;
}

.overlay.visible {
  display: flex;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  padding: 0;
}

.modal,
.detail-sheet,
.detail-page,
.dark-sheet {
  position: relative;
  width: min(100%, var(--phone-width));
  max-height: min(92vh, 980px);
  overflow: auto;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.modal {
  padding: 24px;
}

.guide-modal { overscroll-behavior: contain; }
.guide-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guide-header h2 { margin: 0; font-size: clamp(21px, 5.7vw, 27px); line-height: 1.15; }
.guide-header > button { flex: 0 0 auto; font-size: 20px; }
.guide-steps { display: grid; gap: 0; list-style: none; margin: 8px 0 0; padding: 0; }
.guide-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.guide-step-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--action-orange);
  font-weight: 900;
}
.guide-steps h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.25; }
.guide-steps p, .guide-note { color: #565656; font-size: 14px; line-height: 1.45; }
.guide-steps p { margin: 0; }
.guide-steps p + p { margin-top: 6px; }
.guide-note { margin: 14px 0; }

.dark-sheet {
  color: #fff;
  background:
    linear-gradient(180deg, #1a1a1a 0%, #2d1500 100%);
  padding: 24px;
}

.detail-page {
  display: block;
  width: min(100%, var(--phone-width));
  max-width: var(--phone-width);
  margin: 0 auto;
  max-height: none;
  min-height: calc(100vh - 140px);
  overflow-x: hidden;
  overflow-y: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.detail-page img.hero,
.detail-sheet img.hero {
  width: 100%;
  max-width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 28px;
}

.detail-content {
  padding: 8px;
  display: grid;
  gap: 22px;
}

.detail-back-button {
  padding: 0;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-section {
  background: #fff;
  border-radius: var(--radius-md);
}

.detail-header h2 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.02;
  font-weight: 900;
}

.detail-header p,
.detail-description {
  margin: 0;
  color: var(--secondary);
  line-height: 1.55;
}

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

.deal-choice {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 105, 0, 0.18);
}

.deal-choice.selected {
  background: rgba(255, 105, 0, 0.14);
  border-width: 2px;
  border-color: rgba(255, 105, 0, 0.6);
}

.deal-choice.inactive {
  opacity: 0.72;
  background: rgba(22, 22, 22, 0.03);
  cursor: not-allowed;
}

.deal-choice h4 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.deal-choice p {
  margin: 0 0 8px;
  color: var(--secondary);
}

.booking-section {
  padding-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.date-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 12px 0;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

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

.date-chip {
  min-width: 88px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 105, 0, 0.32);
  background: #fff;
  color: var(--secondary);
  font-weight: 800;
  display: grid;
  justify-items: center;
  gap: 2px;
  flex: 0 0 auto;
}

.date-chip.active {
  background: var(--orange);
  color: #fff;
}

.date-chip-day {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.date-chip-date {
  font-size: 15px;
}

.inline-note {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 105, 0, 0.08);
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.5;
}

.inline-success-note {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(0, 177, 115, 0.12);
  color: #0f8a61;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 800;
}

.hidden {
  display: none !important;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.split-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.section-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}

.text-button {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  background: transparent;
  color: var(--orange);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

@media (hover: hover) {
  .restaurant-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 105, 0, 0.16);
    box-shadow: 0 18px 36px rgba(18, 18, 18, 0.11);
  }

  .primary-button:hover,
  .secondary-button:hover,
  .history-toggle-button:hover {
    transform: translateY(-1px);
  }

  .primary-button:hover {
    filter: saturate(1.08);
    box-shadow: 0 17px 34px rgba(255, 105, 0, 0.27);
  }

  .history-toggle-button:hover {
    background: rgba(255, 105, 0, 0.12);
    border-color: rgba(255, 105, 0, 0.3);
  }

  .history-toggle-button.cancelled:hover {
    background: rgba(217, 74, 74, 0.1);
    border-color: rgba(217, 74, 74, 0.25);
  }

  .menu-row:hover {
    background: rgba(255, 105, 0, 0.05);
  }

  .dock-button:hover:not(.active) {
    color: var(--text);
    background: rgba(255, 255, 255, 0.56);
  }
}

.primary-button:active,
.secondary-button:active,
.history-toggle-button:active,
.menu-row:active,
.dock-button:active {
  transform: scale(0.985);
}

.auth-screen {
  display: grid;
  gap: 18px;
}

.auth-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.auth-title {
  margin: 0;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
}

.auth-subtitle {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}

.auth-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-toggle button {
  padding: 10px;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-weight: 800;
}

.auth-toggle button.active {
  background: #fff;
  color: var(--orange);
}

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

.auth-form input {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.auth-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.auth-helper,
.auth-disclaimer {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.45;
}

.error-banner,
.success-banner,
.info-banner {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
}

.error-banner {
  background: rgba(255, 83, 83, 0.16);
  color: #ffb8b8;
}

.success-banner {
  background: rgba(0, 177, 115, 0.16);
  color: #b7ffe3;
}

.booking-success-pop {
  animation: booking-pop 0.5s ease;
  transform-origin: top center;
}

@keyframes booking-pop {
  0% {
    opacity: 0.4;
    transform: translateY(10px) scale(0.98);
  }
  55% {
    opacity: 1;
    transform: translateY(0) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.info-banner {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.84);
}

.premium-feature-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.premium-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.premium-actions {
  display: grid;
  gap: 12px;
}

.premium-sheet {
  min-height: min(92vh, 760px);
}

.premium-status-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(118, 231, 174, 0.22);
  border-radius: 18px;
  background: rgba(118, 231, 174, 0.1);
}

.premium-status-card span {
  color: #76e7ae;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.premium-footer {
  color: rgba(255, 255, 255, 0.62);
}

.premium-lock-button {
  background: linear-gradient(135deg, #ff6900, #ff9b42);
}

.timer-circle {
  width: 210px;
  height: 210px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 12px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 12px rgba(255, 105, 0, 0.12);
}

.timer-value {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.center-stack {
  display: grid;
  gap: 18px;
  text-align: center;
}

.top-right-close {
  display: flex;
  justify-content: flex-end;
}

.icon-badge {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 105, 0, 0.14);
  color: var(--orange);
  font-size: 42px;
}

.subdued-text {
  color: rgba(255, 255, 255, 0.65);
}

.close-x {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: 0 0 44px;
  background: #f0ece8;
  color: #403b37;
  font-size: 18px;
}

.dark-sheet .close-x {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.demo-notice {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  margin: 14px 0;
  border: 1px solid #e6d9c6;
  border-radius: 18px;
  background: #fbf5e9;
  color: #665138;
  font-size: 13px;
  line-height: 1.5;
}

.demo-notice strong { font-size: 15px; }
.cuisine-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 16px;
  margin-bottom: 4px;
  scrollbar-width: thin;
}
.cuisine-filter {
  min-height: 44px;
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid #e7ded5;
  color: #635548;
  font-size: 14px;
  font-weight: 700;
}
.cuisine-filter.selected { color: #fff; background: #322b25; border-color: #322b25; }
.food-art { overflow: hidden; width: 100%; }
.food-art svg { display: block; width: 100%; height: 100%; }
.restaurant-card .food-art { height: 210px; }
.detail-page .food-art.hero { height: 260px; border-radius: 28px; }
.restaurant-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #766858;
  font-size: 12px;
  font-weight: 700;
}
.demo-badge { padding: 4px 8px; border-radius: 6px; background: #f3eee6; color: #74624b; font-size: 11px; }
.detail-header { width: 100%; }
.map-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; text-decoration: none; }
.compact-button { width: auto; min-height: 44px; padding: 10px 14px; font-size: 14px; }
.selected-deal-title { margin: 14px 0 4px; color: #9c4300; font-weight: 800; }
.booking-info { margin-top: 12px; }
.booking-info p { margin: 8px 0; }
.booking-info a { display: inline-block; padding: 8px 0; }
.auth-connect-step { padding: 16px; border-radius: 18px; background: rgba(255,255,255,.07); text-align: left; }
.auth-connect-step strong, .auth-step-title { font-size: 16px; }
.auth-connect-step p { margin: 8px 0 12px; }
.dark-sheet .auth-bot-link { background: #f5e9da; color: #3e2c1c; display: block; text-decoration: none; }
.auth-step-title { text-align: left; margin-top: 4px; }
.premium-launch-note { padding: 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; color: #f4dfc5; font-size: 14px; line-height: 1.6; }

@media (max-width: 400px) {
  .detail-page .food-art.hero { height: 215px; }
  .restaurant-card .food-art { height: 185px; }
  .auth-screen .auth-logo { width: 64px; height: 64px; }
  .auth-screen .auth-title { font-size: 24px; }
}

.screen-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.refresh-button,
.plain-button {
  min-width: 44px;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--secondary);
  box-shadow: var(--shadow);
}

.retry-card {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.retry-card .secondary-button {
  width: auto;
  min-width: 150px;
}

.footer-note {
  color: var(--secondary);
  font-size: 12px;
  text-align: center;
  line-height: 1.5;
}

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

@media (max-width: 820px) {
  .screen {
    width: min(calc(100% - 20px), var(--phone-width));
  }

  .detail-sheet img.hero {
    height: 260px;
  }

  .detail-content {
    padding: 8px;
  }

  .brand-name {
    font-size: 28px;
  }
}

@media (min-width: 821px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(255, 105, 0, 0.16), transparent 26%),
      radial-gradient(circle at bottom right, rgba(255, 105, 0, 0.1), transparent 24%),
      #f5f3f1;
  }

  .main-shell {
    width: var(--phone-width);
    margin: 0 auto;
    position: relative;
    background:
      radial-gradient(circle at top right, rgba(255, 105, 0, 0.08), transparent 26%),
      linear-gradient(180deg, #fcfbfa 0%, #f8f8f8 100%);
    box-shadow: 0 24px 70px rgba(24, 24, 24, 0.14);
    border-left: 1px solid rgba(255, 255, 255, 0.85);
    border-right: 1px solid rgba(255, 255, 255, 0.85);
  }

  .dock {
    width: calc(var(--phone-width) - 20px);
  }
}

@media (max-width: 640px) {
  .overlay {
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }

  .modal,
  .dark-sheet {
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overscroll-behavior: contain;
    scroll-padding-block: 20px;
  }

  .text-input {
    font-size: 16px;
  }

  .topbar {
    align-items: center;
  }

  .dock {
    width: min(calc(100% - 16px), calc(var(--phone-width) - 20px));
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}

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

/* Keep brand accents bright; use a darker orange for readable action labels. */
.secondary-button,
.primary-button.muted,
.deal-tag,
.dock-button.active,
.history-toggle-button:not(.cancelled),
.status-pill.upcoming,
.accent-text,
.link-button,
.text-button:not(.cancel-text-button) {
  color: var(--action-orange);
}

.dark-sheet .text-button {
  color: #ffad75;
}

.date-chip.active,
.language-switch button.active,
.premium-lock-button {
  background: var(--action-orange);
}

.primary-button.dark {
  box-shadow: 0 10px 24px rgba(22, 22, 22, 0.12);
}

.modal .error-banner {
  color: #a42626;
}

.modal .success-banner {
  color: #086746;
}

.primary-button:disabled {
  cursor: default;
  transform: none;
}

/* Orange actions, black typography, neutral surfaces. Status colors are semantic. */
body { background: #efefed; }
.main-shell {
  background: linear-gradient(180deg, #fff 0%, #fafaf8 100%);
  box-shadow: 0 16px 60px rgba(0,0,0,.06);
  border-color: var(--line);
}
.ui-icon { display: inline-block; width: 24px; height: 24px; flex: 0 0 auto; vertical-align: middle; }
.dock-icon .ui-icon { width: 24px; height: 24px; }
.deal-tag .ui-icon { width: 14px; height: 14px; }
.info-line .ui-icon, .detail-header p .ui-icon, .inline-note > .ui-icon { width: 18px; height: 18px; margin-right: 4px; }
.empty-state-icon .ui-icon { width: 44px; height: 44px; }
.avatar-circle .ui-icon, .icon-badge .ui-icon { width: 42px; height: 42px; }
.primary-button { background: var(--orange); color: #161616; box-shadow: 0 6px 18px rgba(255,105,0,.12); }
.primary-button.dark { background: #161616; color: #fff; box-shadow: none; }
.primary-button.secondary { background: #fff; color: #161616; border-color: var(--line); }
.primary-button.muted { background: var(--surface-soft); color: #646464; box-shadow: none; }
.primary-button:disabled:not([aria-busy="true"]), .redeem-wait-button:disabled { background: #ededeb; color: #646464; box-shadow: none; }
.secondary-button { background: #fff; color: #222; border-color: #dcdcd8; box-shadow: none; }
.secondary-button:hover { background: var(--surface-soft); }
.cancel-button, .cancel-text-button { background: var(--surface-soft); color: #444; border-color: #dededb; }
.cancel-button:hover, .cancel-text-button:hover { background: #e9e9e6; border-color: #c8c8c4; }
.deal-tag { background: var(--orange-soft); color: #993900; }
.demo-notice { background: var(--surface-soft); border-color: #e4e4e0; color: #555; }
.demo-notice strong { color: #222; }
.cuisine-filter { background: #fff; border-color: #dededb; color: #444; }
.cuisine-filter.selected { background: #161616; color: #fff; border-color: #161616; }
.restaurant-eyebrow { color: #676767; }
.demo-badge { background: var(--surface-soft); color: #626262; }
.dock { background: rgba(255,255,255,.96); border-color: #e4e4e0; box-shadow: 0 6px 28px rgba(0,0,0,.1); }
.dock-button { color: #666; }
.dock-button.active { background: var(--orange-soft); color: #161616; box-shadow: none; }
.dock-button.active .dock-icon { color: var(--action-orange); }
.avatar-circle { background: var(--orange-soft); color: #161616; box-shadow: none; }
.menu-icon { background: var(--surface-soft); color: #222; }
.history-toggle-button, .history-toggle-button.cancelled { background: var(--surface-soft); border-color: #e2e2de; color: #222; }
.history-toggle-button:hover, .history-toggle-button.cancelled:hover { background: var(--orange-soft); border-color: #ffc7a0; }
.booking-section-icon.current, .booking-section-icon.past, .booking-section-icon.cancelled,
.booking-count-badge, .booking-count-badge.cancelled { background: var(--surface-soft); color: #555; }
.status-pill.upcoming { background: var(--orange-soft); color: #993900; }
.status-pill.past, .status-pill.cancelled { background: var(--surface-soft); color: #555; }
.deal-choice { border-color: #e2e2de; }
.deal-choice.selected { background: var(--orange-soft); border-color: var(--orange); }
.deal-choice.inactive { border-color: #e2e2de; background: var(--surface-soft); }
.selected-deal-title { color: #161616; }
.date-chip { border-color: #dededb; }
.date-chip.active, .language-switch button.active, .premium-lock-button { background: var(--orange); color: #161616; }
.inline-note { background: var(--surface-soft); }
.dark-sheet { background: #181818; }
.dark-sheet .primary-button.secondary { background: transparent; color: #fff; border-color: #555; }
.dark-sheet .auth-bot-link { background: #fff; color: #161616; }
.redemption-receipt { text-align: center; }
.redemption-receipt .primary-button { width: 100%; margin-top: 24px; }
.receipt-pulse { margin: 30px auto; display: grid; place-items: center; width: 90px; height: 90px; border-radius: 50%; background: var(--orange); color: #161616; animation: receipt-live 2s ease-in-out infinite; }
.receipt-pulse .ui-icon { width: 48px; height: 48px; }
@keyframes receipt-live { 50% { box-shadow: 0 0 0 16px rgba(255,105,0,.14); transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .receipt-pulse { animation: none; } }
.premium-launch-note { color: #e4e4e4; border-color: #444; }
.premium-price-card { width: 100%; padding: 20px; border: 1px solid #555; border-radius: 18px; background: #242424; }
.premium-price-card strong { display: block; color: #fff; font-size: clamp(23px, 6vw, 30px); }
.premium-price-card p { margin: 10px 0 0; color: #e4e4e4; font-size: 14px; line-height: 1.6; }
.payment-sheet { max-width: 480px; }
.payment-heading { min-width: 0; }
.payment-sheet > .split-actions { align-items: flex-start; flex-wrap: nowrap; }
.payment-sheet > .split-actions > button { flex-shrink: 0; }
.payment-provider { color: var(--orange); font-size: 12px; font-weight: 900; letter-spacing: .06em; }
.payment-heading h2 { margin: 8px 0 0; font-size: clamp(24px, 7vw, 30px); line-height: 1.2; }
.payment-status-mark { width: 64px; height: 64px; margin: 24px auto 16px; display: grid; place-items: center; border-radius: 50%; background: #f3f3f3; }
.payment-status-mark.confirmed { background: var(--orange-soft); color: var(--orange); }
.payment-status-mark .ui-icon { width: 30px; height: 30px; }
.payment-amount { text-align: center; font-size: 25px; font-weight: 900; }
.payment-description { color: var(--secondary); line-height: 1.6; }
.payment-access-date { font-weight: 800; }
.payment-reference { padding: 14px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 6px; }
.payment-reference span { color: var(--secondary); font-size: 12px; }
.payment-reference code { font-size: 12px; overflow-wrap: anywhere; }
.payment-progress { min-height: 36px; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.payment-actions { display: grid; gap: 10px; }
.payment-actions button { width: 100%; white-space: normal; }
.payment-back { display: block; margin: 16px auto 0; }
.icon-badge { background: rgba(255,105,0,.12); color: var(--orange); }
.premium-status-card { border-color: #555; background: #242424; }
.premium-status-card > span { color: #fff; }
.swipe-redeem-knob { background: var(--orange); color: #161616; box-shadow: none; }
.swipe-redeem-fill { background: #9b3d00; }
.close-x { background: var(--surface-soft); color: #333; }
.dark-sheet .close-x { background: #333; color: #fff; }
.refresh-button, .plain-button { box-shadow: none; border: 1px solid #e4e4e0; color: #444; }
