:root {
  --gdt-maroon: #7a0019;
  --gdt-gold: #ffcc33;
  --gdt-ink: #1d1b19;
  --gdt-muted: #706a64;
  --gdt-paper: #fbf8f4;
  --gdt-line: rgba(24, 21, 18, 0.09);
  --gdt-success: #187a4d;
  --gdt-warning: #855b00;
  --gdt-danger: #a22936;
  --gdt-radius-sm: 12px;
  --gdt-radius-md: 16px;
  --gdt-radius-lg: 22px;
  --gdt-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root {
  --gdt-maroon: #7a0019;
  --gdt-maroon-deep: #520012;
  --gdt-gold: #ffcc33;
  --gdt-gold-soft: #fff1bd;
  --gdt-ink: #211b18;
  --gdt-muted: #726a62;
  --gdt-surface: rgba(255, 253, 249, 0.78);
  --gdt-line: rgba(78, 57, 37, 0.12);
  --gdt-shadow: 0 18px 45px rgba(70, 44, 26, 0.10);
  --gdt-shadow-lift: 0 26px 60px rgba(70, 44, 26, 0.16);
}

html {
  background: #fff8f1;
}

body {
  color: var(--gdt-ink);
  background-color: #fff8f1;
}

::selection {
  color: #fff;
  background: var(--gdt-maroon);
}

/* Shared navigation: a stable, product-level anchor on every page. */
.nav {
  isolation: isolate;
}

.nav-inner,
.nav {
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.nav-inner {
  border-color: rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 14px 36px rgba(70, 44, 26, 0.08) !important;
}

.brand-mark {
  background: linear-gradient(145deg, #ffe58b 0%, var(--gdt-gold) 55%, #e7a915 100%) !important;
  color: var(--gdt-maroon-deep) !important;
}

.nav-link,
.nav-button,
.button,
.add-button,
.card-action,
.search-button,
.vote-button,
.vote-link {
  border-radius: 14px !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease !important;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--gdt-ink) !important;
  background: rgba(33, 27, 24, 0.055) !important;
}

.nav-link.active {
  color: var(--gdt-maroon) !important;
  background: rgba(122, 0, 25, 0.09) !important;
}

.page-shell .button.primary,
.page-shell .nav-button.primary {
  color: var(--gdt-maroon-deep) !important;
  border-color: rgba(160, 112, 0, 0.24) !important;
  background: linear-gradient(135deg, #ffe48a 0%, var(--gdt-gold) 56%, #e7ae19 100%) !important;
  box-shadow: 0 12px 26px rgba(217, 159, 6, 0.22) !important;
}

.button:hover:not(:disabled),
.nav-button:hover,
.add-button:hover,
.search-button:hover,
.card-action:hover,
.vote-button:hover,
.vote-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--gdt-shadow) !important;
}

.button:active:not(:disabled),
.nav-button:active,
.add-button:active,
.search-button:active,
.card-action:active,
.vote-button:active {
  transform: translateY(0) scale(0.98);
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(36, 92, 143, 0.28) !important;
  outline-offset: 3px;
}

/* Give repeated content a consistent premium depth without changing layout. */
.panel,
.hero-card,
.deal,
.restaurant-card,
.result-card,
.catalog-item,
.auth-panel,
.profile-card,
.stat,
.step,
.add-restaurant,
.search-panel {
  border-color: var(--gdt-line) !important;
  box-shadow: var(--gdt-shadow) !important;
}

.deal,
.restaurant-card,
.result-card,
.catalog-item,
.stat,
.step {
  transform: translateZ(0);
  will-change: transform;
}

.deal:hover,
.restaurant-card:hover,
.result-card:hover,
.catalog-item:hover,
.stat:hover,
.step:hover {
  transform: translateY(-4px);
  border-color: rgba(33, 27, 24, 0.1) !important;
  box-shadow: 0 24px 56px rgba(46, 39, 33, 0.13) !important;
}

.stat::before,
.step::before {
  background: linear-gradient(90deg, var(--gdt-maroon), var(--gdt-gold)) !important;
}

.eyebrow,
.kicker,
.section-kicker,
.panel-kicker,
.board-kicker {
  color: var(--gdt-maroon) !important;
  letter-spacing: 0.08em !important;
}

.status-badge.confirmed,
.status.confirmed,
.status.ok {
  color: #126a42 !important;
  background: rgba(34, 197, 94, 0.1) !important;
  border-color: rgba(34, 197, 94, 0.24) !important;
}

.status-badge.checking,
.status.warning {
  color: #805400 !important;
  background: rgba(255, 204, 51, 0.18) !important;
  border-color: rgba(220, 157, 0, 0.28) !important;
}

.status-badge.expired,
.status.error {
  color: #a01d2d !important;
  background: rgba(239, 68, 68, 0.09) !important;
  border-color: rgba(239, 68, 68, 0.22) !important;
}

.restaurant-avatar,
.stat-icon,
.step-icon {
  color: var(--gdt-maroon) !important;
  background: linear-gradient(145deg, #fff8dc, #fff0ba) !important;
  border-color: rgba(180, 125, 0, 0.16) !important;
}

input:not([type=checkbox]):not([type=radio]),
select,
textarea {
  border-color: var(--gdt-line) !important;
  background-color: rgba(255, 255, 255, 0.86) !important;
}

input:not([type=checkbox]):not([type=radio]):focus,
select:focus,
textarea:focus {
  border-color: rgba(36, 92, 143, 0.42) !important;
  box-shadow: 0 0 0 4px rgba(36, 92, 143, 0.09) !important;
}

/* Keep content semantic and readable on the browsing surfaces. */
.deal:hover h2,
.deal:focus-within h2,
.restaurant-card:hover h2,
.restaurant-card:focus-within h2 {
  color: var(--ink) !important;
}

.restaurant-card:hover .restaurant-tag,
.restaurant-card:focus-within .restaurant-tag {
  filter: none !important;
  color: #694200 !important;
}

.restaurant-card:hover .price-tag,
.restaurant-card:focus-within .price-tag {
  color: var(--blue) !important;
}

.deal:hover .status-badge.confirmed,
.deal:focus-within .status-badge.confirmed {
  color: var(--green) !important;
}

.deal:hover .status-badge:not(.confirmed):not(.expired),
.deal:focus-within .status-badge:not(.confirmed):not(.expired) {
  color: #694200 !important;
}

.chip-radio input:checked + span,
.scenario-button:hover,
.scenario-button:focus-visible {
  color: var(--gdt-maroon) !important;
  border-color: rgba(122, 0, 25, 0.28) !important;
  background: linear-gradient(135deg, #fff9df, #fff0b9) !important;
}

@media (max-width: 760px) {
  .nav,
.page,
.hero,
.section {
    width: min(100% - 24px, 680px) !important;
  }
  .nav-inner {
    border-radius: 20px !important;
  }
  .panel,
.hero-card,
.deal,
.restaurant-card,
.result-card,
.catalog-item,
.auth-panel,
.profile-card,
.stat,
.step,
.add-restaurant,
.search-panel {
    border-radius: 20px !important;
  }
  .deal:hover,
.restaurant-card:hover,
.result-card:hover,
.catalog-item:hover,
.stat:hover,
.step:hover {
    transform: none;
  }
}
@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;
  }
}
/* Product system v3: consistent structure and finish across every GDT surface. */
:root {
  --gdt-canvas: #fbf8f4;
  --gdt-canvas-deep: #f5efe7;
  --gdt-card: rgba(255, 255, 255, 0.82);
  --gdt-card-solid: #fffdfa;
  --gdt-hairline: rgba(24, 21, 18, 0.085);
  --gdt-text-secondary: #706a64;
  --gdt-blue: #345f7d;
  --gdt-green: #2f7b67;
  --gdt-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gdt-shadow-card: 0 1px 2px rgba(35, 29, 24, 0.03), 0 14px 34px rgba(35, 29, 24, 0.075);
  --gdt-shadow-hover: 0 2px 4px rgba(35, 29, 24, 0.04), 0 24px 52px rgba(35, 29, 24, 0.12);
}

body {
  color: #1d1b19 !important;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  background: radial-gradient(circle at 10% 4%, rgba(244, 201, 93, 0.17), transparent 25%), radial-gradient(circle at 92% 8%, rgba(52, 95, 125, 0.075), transparent 22%), linear-gradient(180deg, #fffdfa 0%, var(--gdt-canvas) 44%, var(--gdt-canvas-deep) 100%) !important;
}

h1,
h2,
h3 {
  color: #191715;
  text-wrap: balance;
}

h1 {
  letter-spacing: -0.045em !important;
}

h2 {
  letter-spacing: -0.025em;
}

p,
.hero-copy,
.intro,
.muted,
.help,
.help-copy,
.panel-copy,
.section-copy {
  color: var(--gdt-text-secondary);
}

/* Navigation is the same piece of product chrome on every secondary page. */
.nav:not(:has(.nav-inner)) {
  position: sticky !important;
  top: 12px !important;
  z-index: 50 !important;
  min-height: 64px;
  margin-top: 12px !important;
  padding: 11px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.86) !important;
  border-radius: 20px !important;
  background: rgba(255, 253, 249, 0.8) !important;
  box-shadow: 0 12px 32px rgba(35, 29, 24, 0.075) !important;
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
}

.brand {
  color: #1d1b19;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

.brand-mark {
  border-radius: 11px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 7px 16px rgba(139, 98, 12, 0.16) !important;
}

.nav-link {
  min-height: 40px;
  padding-inline: 14px !important;
  color: #69645f !important;
  font-weight: 700 !important;
}

.nav-link.active {
  color: #1d1b19 !important;
  background: rgba(29, 27, 25, 0.065) !important;
}

.account-dropdown {
  padding: 7px !important;
  border: 1px solid var(--gdt-hairline) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 18px 44px rgba(35, 29, 24, 0.14) !important;
}

.dropdown-link {
  border-radius: 9px !important;
}

.dropdown-link:hover,
.dropdown-link:focus-visible {
  color: #1d1b19 !important;
  background: rgba(29, 27, 25, 0.055) !important;
}

/* Buttons use contrast and hierarchy, with color reserved for meaning. */
.button,
.nav-button,
.search-button,
.add-button,
.submit-button,
.google-button,
.location-button,
.card-action,
.vote-button,
.usage-button {
  min-height: 44px;
  border-color: var(--gdt-hairline) !important;
  font-weight: 800 !important;
  box-shadow: 0 1px 2px rgba(35, 29, 24, 0.035), 0 7px 18px rgba(35, 29, 24, 0.055) !important;
  transition: transform 220ms var(--gdt-ease), box-shadow 220ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease !important;
}

.button:not(.primary):not(.secondary),
.nav-button:not(.primary),
.google-button,
.location-button,
.card-action:not(.primary) {
  color: #26221f !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

.button:hover:not(:disabled),
.nav-button:hover,
.search-button:hover,
.add-button:hover,
.submit-button:hover,
.google-button:hover,
.location-button:hover,
.card-action:hover,
.vote-button:hover,
.usage-button:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 27, 25, 0.15) !important;
  box-shadow: 0 2px 3px rgba(35, 29, 24, 0.04), 0 13px 28px rgba(35, 29, 24, 0.1) !important;
}

.deal-grid .button.primary,
.auth-panel .button,
.locked-actions .button.primary {
  border-color: #211e1b !important;
  background: linear-gradient(180deg, #2c2926, #171513) !important;
  color: #fff !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 11px 24px rgba(29, 25, 21, 0.18) !important;
}

/* Page introductions use one readable rhythm. */
.content > .hero,
.page > .hero,
.shell > .hero {
  padding-top: clamp(44px, 7vw, 82px);
  padding-bottom: 28px;
}

.content > .hero h1,
.page > .hero h1,
.shell > .hero h1 {
  max-width: 880px;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.98;
}

.content > .hero .hero-copy,
.page > .hero .hero-copy,
.shell > .hero p {
  max-width: 720px;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.62;
}

/* Deals: strong scanning hierarchy and calm, readable interaction. */
.deal-grid {
  gap: 16px !important;
}

.deal-grid .deal {
  border: 1px solid var(--gdt-hairline) !important;
  border-radius: 22px !important;
  background: var(--gdt-card) !important;
  box-shadow: var(--gdt-shadow-card) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 260ms var(--gdt-ease), box-shadow 260ms ease, border-color 220ms ease, background 220ms ease !important;
}

.deal-grid .deal:hover,
.deal-grid .deal:focus-within {
  transform: translateY(-4px) !important;
  border-color: rgba(36, 92, 143, 0.16) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: var(--gdt-shadow-hover) !important;
}

.deal-grid .deal h2 {
  color: #191715 !important;
  font-size: 20px;
  line-height: 1.25;
}

.deal-grid .discount {
  border: 1px solid rgba(149, 104, 5, 0.12);
  background: linear-gradient(145deg, #fff9e8, #fbe8b7) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.9);
}

.deal-grid .meta {
  color: var(--gdt-blue) !important;
}

.deal-grid .vote-button:hover,
.deal-grid .vote-button.active,
.deal-grid .votes {
  color: var(--gdt-green) !important;
}

.deal-grid .vote-button.active {
  border-color: rgba(47, 123, 103, 0.24) !important;
  background: rgba(47, 123, 103, 0.08) !important;
}

.locked-card {
  border-color: var(--gdt-hairline) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: var(--gdt-shadow-hover) !important;
}

/* Restaurant discovery: cards and map feel like one composed workspace. */
.search-panel,
.map-panel,
.restaurant-grid .restaurant-card,
.add-restaurant {
  border: 1px solid var(--gdt-hairline) !important;
  background: var(--gdt-card) !important;
  box-shadow: var(--gdt-shadow-card) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.search-panel {
  padding: 18px !important;
  border-radius: 22px !important;
}

.search-input,
.search-button {
  min-height: 48px !important;
}

.tag-chip {
  min-height: 36px !important;
  border: 1px solid var(--gdt-hairline) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  color: #69645f !important;
  box-shadow: none !important;
}

.tag-chip:hover,
.tag-chip:focus-visible {
  color: #25211e !important;
  border-color: rgba(52, 95, 125, 0.2) !important;
  background: #fff !important;
}

.tag-chip.active {
  color: #fff !important;
  border-color: rgba(47, 123, 103, 0.32) !important;
  background: linear-gradient(145deg, #2f7b67, #438e75) !important;
  box-shadow: 0 8px 20px rgba(47, 123, 103, 0.16) !important;
}

.restaurant-grid .restaurant-card {
  border-radius: 22px !important;
  transition: transform 260ms var(--gdt-ease), box-shadow 260ms ease, border-color 220ms ease, background 220ms ease !important;
}

.restaurant-grid .restaurant-card:hover,
.restaurant-grid .restaurant-card:focus-within,
.restaurant-grid .restaurant-card.active {
  transform: translateY(-4px) !important;
  border-color: rgba(52, 95, 125, 0.16) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: var(--gdt-shadow-hover) !important;
}

.restaurant-grid .restaurant-card h2 {
  color: #191715 !important;
  letter-spacing: -0.025em;
}

.restaurant-tag {
  min-height: 30px !important;
  border-radius: 999px !important;
  background: #fff8df !important;
  box-shadow: none !important;
}

.price-tag {
  color: var(--gdt-blue) !important;
  background: #edf4f7 !important;
}

.map-panel {
  overflow: clip !important;
  border-radius: 22px !important;
  box-shadow: 0 2px 4px rgba(35, 29, 24, 0.04), 0 22px 50px rgba(35, 29, 24, 0.11) !important;
}

.map-panel::before {
  display: none !important;
}

.map-toolbar,
.map-selection {
  background: rgba(255, 255, 255, 0.72) !important;
}

.card-action.primary {
  border-color: rgba(47, 123, 103, 0.28) !important;
  background: linear-gradient(145deg, #2f7b67, #438e75) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(47, 123, 103, 0.16) !important;
}

.add-restaurant {
  border-radius: 22px !important;
}

.add-restaurant::before {
  width: 3px !important;
  background: #d3aa49 !important;
}

/* Forms: grouped, legible, and consistent across deal and restaurant submission. */
.page > .panel,
.hours-section,
.checkbox-list,
.radio-list {
  border-color: var(--gdt-hairline) !important;
  background: var(--gdt-card) !important;
  box-shadow: var(--gdt-shadow-card) !important;
}

.page > .panel {
  padding: clamp(22px, 4vw, 38px) !important;
  border-radius: 24px !important;
}

.form-grid {
  gap: 20px !important;
}

.form-field label,
.field label,
.field-label {
  margin-bottom: 8px !important;
  color: #312d29;
  font-size: 13px !important;
  font-weight: 800 !important;
}

input:not([type=checkbox]):not([type=radio]),
select,
textarea {
  min-height: 48px;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: inset 0 1px 1px rgba(35, 29, 24, 0.025);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease !important;
}

textarea {
  padding-block: 13px !important;
}

.hours-section,
.checkbox-list,
.radio-list {
  border-radius: 18px !important;
  box-shadow: none !important;
}

.help-copy,
.help,
.hint,
.location-note {
  color: #77716b !important;
  font-size: 13px;
  line-height: 1.55;
}

/* Authentication: more focused, less decorative, more trustworthy. */
.shell:has(.auth-panel) {
  min-height: calc(100vh - 108px) !important;
  padding-top: 44px !important;
}

.auth-panel {
  width: min(480px, 100%) !important;
  padding: clamp(26px, 5vw, 38px) !important;
  border: 1px solid var(--gdt-hairline) !important;
  border-radius: 26px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 2px 4px rgba(35, 29, 24, 0.04), 0 26px 64px rgba(35, 29, 24, 0.12) !important;
  backdrop-filter: blur(20px);
}

.auth-panel::before {
  inset: 0 0 auto !important;
  width: 100% !important;
  height: 3px !important;
  background: linear-gradient(90deg, #d4a63c, #efd58a, #345f7d) !important;
  transform: none !important;
  animation: none !important;
}

.auth-panel h1 {
  font-size: clamp(32px, 6vw, 42px) !important;
  line-height: 1.05;
}

.auth-panel .intro {
  margin-bottom: 26px !important;
}

.google-button {
  border-color: rgba(35, 29, 24, 0.12) !important;
  background: #fff !important;
}

.switch a {
  color: var(--gdt-blue) !important;
}

.error-list,
.message-box,
.message,
.message-banner {
  border-radius: 13px !important;
}

/* Profile and search share the same durable surface language. */
.profile-head .avatar,
.profile-form,
.activity-card,
.layout > .panel,
.result-card,
.catalog-item {
  border-color: var(--gdt-hairline) !important;
}

.activity-card,
.result-card,
.catalog-item {
  background: var(--gdt-card) !important;
  box-shadow: var(--gdt-shadow-card) !important;
}

.layout > .panel {
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: var(--gdt-shadow-card) !important;
}

.result-card,
.catalog-item {
  border-radius: 16px !important;
}

@media (max-width: 820px) {
  .nav:not(:has(.nav-inner)) {
    top: 8px !important;
    width: min(100% - 20px, 680px) !important;
    min-height: 58px;
    border-radius: 17px !important;
  }
  .content > .hero,
.page > .hero,
.shell > .hero {
    padding-top: 38px;
  }
  .content > .hero h1,
.page > .hero h1,
.shell > .hero h1 {
    font-size: clamp(38px, 10vw, 58px);
  }
  .discovery-layout {
    gap: 18px !important;
  }
}
@media (max-width: 560px) {
  h1 {
    letter-spacing: -0.035em !important;
  }
  .nav-toggle {
    border-radius: 11px !important;
    background: #fff !important;
  }
  .deal-grid .deal,
.restaurant-grid .restaurant-card,
.map-panel,
.search-panel,
.add-restaurant,
.auth-panel,
.page > .panel {
    border-radius: 18px !important;
  }
  .deal-grid .deal {
    padding: 16px !important;
  }
  .deal-grid .discount {
    border-radius: 14px !important;
  }
  .search-panel {
    padding: 14px !important;
  }
  .auth-panel {
    padding: 24px !important;
  }
  .button,
.search-button,
.add-button,
.submit-button,
.google-button {
    min-height: 46px;
  }
}
/* Restaurant route preview: practical travel information appears where it is needed. */
.restaurant-grid .restaurant-card {
  gap: 14px !important;
}

.route-preview {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid rgba(52, 95, 125, 0.14);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(237, 244, 247, 0.9), rgba(255, 255, 255, 0.82));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.84);
}

.route-preview::before {
  content: "Walk";
  display: grid;
  place-items: center;
  grid-row: span 2;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(52, 95, 125, 0.1);
  color: var(--gdt-blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.route-preview-kicker {
  color: var(--gdt-blue);
  font-size: 11px;
  font-weight: 800;
}

.route-preview strong {
  color: #1f2f3c;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.route-preview > span:last-child {
  grid-column: 2;
  color: #68717a;
  font-size: 12px;
  line-height: 1.4;
}

.route-preview-pending {
  grid-column: 2;
  color: #68717a;
  font-size: 12px;
  font-weight: 700;
}

.route-location-button,
.eta-location-button {
  min-height: 38px;
  border: 1px solid rgba(52, 95, 125, 0.18);
  border-radius: 11px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--gdt-blue);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms var(--gdt-ease), background 180ms ease, box-shadow 180ms ease;
}

.route-location-button:hover,
.route-location-button:focus-visible,
.eta-location-button:hover,
.eta-location-button:focus-visible {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 8px 18px rgba(52, 95, 125, 0.12);
}

.route-preview-enter-active,
.route-preview-leave-active {
  transition: opacity 220ms ease, transform 260ms var(--gdt-ease), max-height 260ms var(--gdt-ease);
  overflow: hidden;
}

.route-preview-enter-from,
.route-preview-leave-to {
  max-height: 0;
  opacity: 0;
  transform: translateY(-7px);
}

.route-preview-enter-to,
.route-preview-leave-from {
  max-height: 110px;
  opacity: 1;
  transform: translateY(0);
}

.map-selection {
  display: grid;
  gap: 12px;
}

.map-selection-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.map-selection-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--gdt-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.current-time {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(29, 27, 25, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
  text-align: right;
}

.current-time span,
.current-time strong {
  display: block;
}

.current-time span {
  color: #77716b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.current-time strong {
  margin-top: 2px;
  color: #26221f;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.arrival-summary {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(47, 123, 103, 0.17);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(232, 246, 239, 0.92), rgba(255, 255, 255, 0.8));
}

.arrival-summary strong {
  color: #1c604c;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.arrival-summary span {
  color: #5b7369;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.map-selection-actions {
  margin-top: 2px !important;
}

@media (max-width: 560px) {
  .route-preview {
    padding: 11px;
  }
  .map-selection-head {
    gap: 10px;
  }
  .arrival-summary strong {
    font-size: 18px;
  }
}
/* Profile: an Apple-like personal dashboard with a quiet editorial hierarchy. */
.profile-page {
  padding-top: clamp(34px, 6vw, 68px) !important;
  padding-bottom: 88px !important;
}

.profile-page .messages {
  margin-bottom: 18px !important;
}

.profile-page .messages li {
  border-color: rgba(47, 123, 103, 0.16) !important;
  background: rgba(232, 246, 239, 0.74) !important;
  color: #1c604c !important;
  box-shadow: 0 8px 20px rgba(47, 123, 103, 0.08);
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(310px, 0.78fr);
  gap: 20px;
  align-items: stretch;
}

.profile-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gdt-hairline);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 2px 4px rgba(35, 29, 24, 0.04), 0 26px 66px rgba(35, 29, 24, 0.1);
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
}

.profile-identity {
  min-height: 430px;
  padding: clamp(28px, 5vw, 48px);
  background: radial-gradient(circle at 100% 0%, rgba(244, 201, 93, 0.17), transparent 32%), rgba(255, 255, 255, 0.86);
}

.profile-identity::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -74px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(52, 95, 125, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(52, 95, 125, 0.025), 0 0 0 66px rgba(244, 201, 93, 0.018);
  pointer-events: none;
}

.profile-page .profile-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 22px;
}

.profile-page .avatar {
  width: 114px;
  height: 114px;
  flex: 0 0 114px;
  border: 6px solid rgba(255, 255, 255, 0.88);
  border-radius: 34px;
  background: linear-gradient(145deg, #fff3c8, #f2c959);
  color: #5c460a;
  box-shadow: 0 14px 34px rgba(150, 109, 18, 0.17), inset 0 1px rgba(255, 255, 255, 0.8);
  font-size: 42px;
}

.profile-page .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-title {
  min-width: 0;
}

.profile-overline,
.editor-overline {
  display: block;
  color: var(--gdt-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-title h1 {
  margin: 7px 0 8px;
  font-size: clamp(38px, 5vw, 64px) !important;
  line-height: 0.94;
}

.profile-meta {
  overflow: hidden;
  margin: 0;
  color: #3d3934;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-since {
  margin: 5px 0 0;
  color: #807a73;
  font-size: 13px;
  font-weight: 700;
}

.profile-bio {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 30px 0 0 !important;
  color: #65605a !important;
  font-size: 16px;
  line-height: 1.65;
}

.empty-bio {
  max-width: 500px;
  color: #89837c !important;
  font-style: italic;
}

.profile-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}

.profile-stat {
  min-height: 94px;
  padding: 15px 16px;
  border: 1px solid rgba(29, 27, 25, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.8);
}

.profile-stat strong {
  display: block;
  color: #22201d;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.profile-stat span {
  display: block;
  margin-top: 8px;
  color: #77716b;
  font-size: 12px;
  font-weight: 800;
}

.profile-editor {
  padding: 30px;
}

.profile-editor h2 {
  margin: 8px 0 8px;
  font-size: 27px;
  line-height: 1.08;
}

.profile-editor > p {
  margin: 0 0 24px;
  color: #77716b;
  font-size: 14px;
  line-height: 1.55;
}

.profile-page .profile-form {
  display: grid;
  gap: 17px;
}

.profile-field label {
  color: #38332e;
}

.profile-field input[type=file] {
  padding: 10px;
  color: #6f6963;
  font-size: 13px;
}

.profile-field input[type=file]::file-selector-button {
  margin-right: 10px;
  border: 0;
  border-radius: 9px;
  padding: 7px 10px;
  background: #edf4f7;
  color: var(--gdt-blue);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.profile-page .profile-form .button.primary {
  width: 100%;
  margin-top: 2px;
  border-color: #211e1b !important;
  background: linear-gradient(180deg, #2c2926, #171513) !important;
  color: #fff !important;
}

.activity-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 70px 0 20px;
}

.activity-heading h2 {
  max-width: 610px;
  margin: 7px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
}

.activity-link {
  flex: 0 0 auto;
}

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

.profile-page .activity-card {
  min-height: 236px;
  padding: 22px;
  border: 1px solid var(--gdt-hairline);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--gdt-shadow-card);
  transition: transform 240ms var(--gdt-ease), box-shadow 240ms ease, border-color 200ms ease;
}

.profile-page .activity-card::before {
  display: none;
}

.profile-page .activity-card:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 95, 125, 0.14);
  box-shadow: var(--gdt-shadow-hover);
}

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

.activity-card-head h2 {
  margin: 0 !important;
  font-size: 20px !important;
  letter-spacing: -0.025em;
}

.activity-card-head span {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #f1f5f6;
  color: var(--gdt-blue);
  font-size: 12px;
  font-weight: 900;
}

.redeemed-card .activity-card-head span {
  background: #fff4d6;
  color: #886000;
}

.submitted-card .activity-card-head span {
  background: #fbeaf0;
  color: #8d1e3a;
}

.favorite-card .activity-card-head span {
  background: #e9f5ee;
  color: #227454;
}

.profile-page .list {
  gap: 8px;
}

.profile-page .item {
  gap: 4px;
  padding: 12px 13px;
  border: 1px solid rgba(29, 27, 25, 0.065);
  border-radius: 14px;
  background: rgba(252, 251, 249, 0.84);
  transition: background 180ms ease, border-color 180ms ease;
}

.profile-page .item:hover {
  border-color: rgba(52, 95, 125, 0.14);
  background: #fff;
}

.profile-page .item strong {
  color: #2b2723;
  font-size: 14px;
}

.profile-page .item span,
.profile-page .empty {
  color: #78716b;
  font-size: 12px;
  line-height: 1.45;
}

.profile-page .empty {
  border-color: rgba(29, 27, 25, 0.13);
  background: rgba(250, 248, 244, 0.7);
}

@media (max-width: 860px) {
  .profile-hero,
.activity-grid {
    grid-template-columns: 1fr;
  }
  .profile-editor {
    padding: 26px;
  }
}
@media (max-width: 560px) {
  .profile-page {
    padding-top: 30px !important;
  }
  .profile-card {
    border-radius: 21px;
  }
  .profile-identity,
.profile-editor {
    padding: 23px;
  }
  .profile-page .profile-head {
    align-items: flex-start;
    gap: 15px;
  }
  .profile-page .avatar {
    width: 74px;
    height: 74px;
    flex-basis: 74px;
    border-width: 4px;
    border-radius: 22px;
    font-size: 28px;
  }
  .profile-title h1 {
    font-size: 34px !important;
  }
  .profile-meta {
    font-size: 13px;
  }
  .profile-stats {
    gap: 7px;
    margin-top: 25px;
  }
  .profile-stat {
    min-height: 82px;
    padding: 13px 10px;
    border-radius: 14px;
  }
  .profile-stat strong {
    font-size: 25px;
  }
  .profile-stat span {
    font-size: 10px;
  }
  .activity-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 48px;
  }
  .activity-link {
    width: 100%;
  }
}
/* Smart Search: a focused AI-processing moment, not a generic spinner. */
.page:has(.ai-panel) .hero {
  max-width: 850px;
}

.page:has(.ai-panel) .mode-switcher {
  border: 1px solid rgba(122, 0, 25, 0.12);
  background: rgba(255, 253, 249, 0.72);
  box-shadow: 0 18px 44px rgba(70, 44, 26, 0.09);
  backdrop-filter: blur(18px);
}

.page:has(.ai-panel) .mode-tab {
  border-radius: 16px;
}

.ai-panel.is-loading {
  overflow: hidden !important;
  border-color: rgba(122, 0, 25, 0.28) !important;
  box-shadow: 0 30px 76px rgba(122, 0, 25, 0.18) !important;
}

.ai-panel.is-loading .panel-shell {
  opacity: 0.16;
  filter: blur(4px);
  transform: scale(0.985);
  transition: opacity 320ms ease, filter 420ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-panel .ai-loading {
  background: radial-gradient(circle at 50% 42%, rgba(255, 204, 51, 0.34), transparent 16%), radial-gradient(circle at 50% 42%, rgba(122, 0, 25, 0.12), transparent 44%), linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(255, 246, 222, 0.92));
  isolation: isolate;
}

.ai-panel .ai-loading::before {
  content: "";
  position: absolute;
  inset: -22%;
  z-index: -2;
  opacity: 0;
  background-image: linear-gradient(rgba(122, 0, 25, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(122, 0, 25, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at center, #000 16%, transparent 67%);
  transform: perspective(520px) rotateX(58deg) translateY(16%);
  animation: gdt-ai-grid 5.5s linear infinite;
  animation-play-state: paused;
}

.ai-panel.is-loading .ai-loading::before {
  opacity: 1;
  animation-play-state: running;
}

.ai-panel .ai-loading::after {
  content: "";
  position: absolute;
  width: min(530px, 92%);
  aspect-ratio: 1;
  border: 1px solid rgba(122, 0, 25, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(255, 204, 51, 0.035), 0 0 0 72px rgba(122, 0, 25, 0.024);
  opacity: 0;
  transform: scale(0.75);
  animation: gdt-ai-halo 3.6s ease-out infinite;
  animation-play-state: paused;
  pointer-events: none;
}

.ai-panel.is-loading .ai-loading::after {
  opacity: 1;
  animation-play-state: running;
}

.ai-panel .loading-content {
  position: relative;
  z-index: 2;
  width: min(410px, 100%);
}

.ai-panel .ai-constellation {
  width: 210px;
  height: 210px;
  margin-bottom: 18px;
  filter: drop-shadow(0 26px 42px rgba(122, 0, 25, 0.19));
}

.ai-panel .ai-constellation::before,
.ai-panel .ai-constellation::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px dashed rgba(122, 0, 25, 0.3);
  animation: gdt-ai-orbit 12s linear infinite;
  animation-play-state: paused;
}

.ai-panel .ai-constellation::after {
  inset: 44px;
  border-color: rgba(255, 178, 0, 0.48);
  animation-direction: reverse;
  animation-duration: 8s;
}

.ai-panel.is-loading .ai-constellation::before,
.ai-panel.is-loading .ai-constellation::after {
  animation-play-state: running;
}

.ai-panel .ring-outer {
  inset: 0;
  border-width: 2px;
}

.ai-panel .ring-middle {
  inset: 25px;
  border-width: 2px;
}

.ai-panel .ring-inner {
  inset: 52px;
  border-width: 2px;
}

.ai-panel .ai-core {
  inset: 71px;
  border-radius: 22px;
  letter-spacing: 0.08em;
  background: linear-gradient(145deg, #5b0014, #9c0528 62%, #c20d36);
  box-shadow: 0 18px 44px rgba(122, 0, 25, 0.34), 0 0 0 12px rgba(255, 204, 51, 0.13);
}

.ai-panel .data-node {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.56), 0 4px 18px rgba(255, 178, 0, 0.54);
}

.ai-panel .node-one {
  top: 15px;
  left: 51px;
}

.ai-panel .node-two {
  top: 82px;
  right: 6px;
}

.ai-panel .node-three {
  bottom: 13px;
  left: 93px;
}

.ai-panel .scan-beam {
  width: 2px;
  top: 15px;
  bottom: 15px;
  background: linear-gradient(180deg, transparent, rgba(255, 204, 51, 0.96), transparent);
  box-shadow: 0 0 22px rgba(255, 204, 51, 0.72);
}

.ai-panel .ai-signal-field {
  display: flex;
  justify-content: center;
  gap: 7px;
  height: 24px;
  margin: -8px 0 14px;
}

.ai-panel .ai-signal-field span {
  width: 4px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gdt-maroon), var(--gdt-gold));
  transform: scaleY(0.32);
  transform-origin: center;
  opacity: 0.42;
  animation: gdt-ai-signal 900ms ease-in-out infinite alternate;
  animation-play-state: paused;
}

.ai-panel .ai-signal-field span:nth-child(2) {
  animation-delay: 150ms;
}

.ai-panel .ai-signal-field span:nth-child(3) {
  animation-delay: 280ms;
}

.ai-panel .ai-signal-field span:nth-child(4) {
  animation-delay: 410ms;
}

.ai-panel .ai-signal-field span:nth-child(5) {
  animation-delay: 560ms;
}

.ai-panel.is-loading .ai-signal-field span {
  animation-play-state: running;
}

.ai-panel .loading-content strong {
  color: var(--gdt-maroon-deep);
  font-size: 22px;
  letter-spacing: 0;
}

.ai-panel .loading-stage {
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid rgba(122, 0, 25, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
  color: #655f59;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.86);
}

.ai-panel .loading-progress {
  width: min(252px, 72%);
  height: 6px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(122, 0, 25, 0.11);
}

.ai-panel .loading-progress span {
  width: 44%;
  background: linear-gradient(90deg, transparent, var(--gdt-maroon), var(--gdt-gold), transparent);
  box-shadow: 0 0 14px rgba(255, 178, 0, 0.65);
}

@keyframes gdt-ai-grid {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 52px, 52px 0;
  }
}
@keyframes gdt-ai-halo {
  0% {
    transform: scale(0.68);
    opacity: 0;
  }
  28% {
    opacity: 0.72;
  }
  100% {
    transform: scale(1.16);
    opacity: 0;
  }
}
@keyframes gdt-ai-orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes gdt-ai-signal {
  from {
    transform: scaleY(0.28);
    opacity: 0.35;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}
@media (max-width: 560px) {
  .ai-panel .ai-constellation {
    width: 176px;
    height: 176px;
  }
  .ai-panel .ring-middle {
    inset: 21px;
  }
  .ai-panel .ring-inner {
    inset: 43px;
  }
  .ai-panel .ai-core {
    inset: 60px;
  }
  .ai-panel .node-one {
    left: 42px;
  }
  .ai-panel .node-two {
    top: 68px;
  }
  .ai-panel .node-three {
    left: 77px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ai-panel .ai-loading::before,
.ai-panel .ai-loading::after,
.ai-panel .ai-constellation::before,
.ai-panel .ai-constellation::after,
.ai-panel .ai-signal-field span {
    animation: none !important;
  }
}
/* Statistics: a single, calm reveal that preserves the content-first layout. */
@keyframes gdt-stat-reveal {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.motion-enabled .stats .stat,
.motion-enabled .profile-stat {
  opacity: 0;
  will-change: transform, opacity, filter;
}

.motion-enabled .stats .stat.is-visible,
.motion-enabled .profile-stat.is-visible {
  animation: gdt-stat-reveal 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.motion-enabled .stats .stat.is-visible:nth-child(2),
.motion-enabled .profile-stat.is-visible:nth-child(2) {
  animation-delay: 90ms;
}

.motion-enabled .stats .stat.is-visible:nth-child(3),
.motion-enabled .profile-stat.is-visible:nth-child(3) {
  animation-delay: 180ms;
}

.stats .stat strong[data-countup],
.profile-stat strong[data-countup] {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .motion-enabled .stats .stat,
.motion-enabled .profile-stat {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}
.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.button,
.nav-button,
.add-button,
.card-action,
.search-button,
.vote-button,
.vote-link {
  align-items: center;
  border-radius: 12px;
  cursor: pointer;
  justify-content: center;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.button:hover:not(:disabled), .button:focus-visible,
.nav-button:hover:not(:disabled),
.nav-button:focus-visible,
.add-button:hover:not(:disabled),
.add-button:focus-visible,
.card-action:hover:not(:disabled),
.card-action:focus-visible,
.search-button:hover:not(:disabled),
.search-button:focus-visible,
.vote-button:hover:not(:disabled),
.vote-button:focus-visible,
.vote-link:hover:not(:disabled),
.vote-link:focus-visible {
  transform: translateY(-1px);
}
.button:active:not(:disabled),
.nav-button:active:not(:disabled),
.add-button:active:not(:disabled),
.card-action:active:not(:disabled),
.search-button:active:not(:disabled),
.vote-button:active:not(:disabled),
.vote-link:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}
.button:disabled, .button[aria-disabled=true],
.nav-button:disabled,
.nav-button[aria-disabled=true],
.add-button:disabled,
.add-button[aria-disabled=true],
.card-action:disabled,
.card-action[aria-disabled=true],
.search-button:disabled,
.search-button[aria-disabled=true],
.vote-button:disabled,
.vote-button[aria-disabled=true],
.vote-link:disabled,
.vote-link[aria-disabled=true] {
  cursor: not-allowed;
  opacity: 0.52;
  pointer-events: none;
}
.button[aria-busy=true],
.nav-button[aria-busy=true],
.add-button[aria-busy=true],
.card-action[aria-busy=true],
.search-button[aria-busy=true],
.vote-button[aria-busy=true],
.vote-link[aria-busy=true] {
  color: transparent !important;
  pointer-events: none;
  position: relative;
}
.button[aria-busy=true]::after,
.nav-button[aria-busy=true]::after,
.add-button[aria-busy=true]::after,
.card-action[aria-busy=true]::after,
.search-button[aria-busy=true]::after,
.vote-button[aria-busy=true]::after,
.vote-link[aria-busy=true]::after {
  animation: gdt-spin 700ms linear infinite;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  height: 16px;
  left: calc(50% - 8px);
  position: absolute;
  top: calc(50% - 8px);
  width: 16px;
}

.button.primary,
.button--primary {
  background: linear-gradient(135deg, #ffe28a, #ffcc33 58%, #e4ab12) !important;
  border-color: rgba(145, 97, 0, 0.25) !important;
  box-shadow: 0 10px 22px rgba(201, 144, 0, 0.2) !important;
  color: #502d00 !important;
}
.button.primary:hover:not(:disabled), .button.primary:focus-visible,
.button--primary:hover:not(:disabled),
.button--primary:focus-visible {
  box-shadow: 0 14px 27px rgba(201, 144, 0, 0.27) !important;
}

.button.secondary,
.button--secondary {
  background: rgba(255, 255, 255, 0.74) !important;
  border-color: rgba(24, 21, 18, 0.09) !important;
  box-shadow: 0 4px 12px rgba(31, 26, 22, 0.045) !important;
  color: #1d1b19 !important;
}
.button.secondary:hover:not(:disabled), .button.secondary:focus-visible,
.button--secondary:hover:not(:disabled),
.button--secondary:focus-visible {
  background: #fff !important;
  border-color: rgba(24, 21, 18, 0.16) !important;
  box-shadow: 0 9px 19px rgba(31, 26, 22, 0.08) !important;
}

.button.danger,
.button--danger {
  background: rgba(162, 41, 54, 0.08) !important;
  border-color: rgba(162, 41, 54, 0.21) !important;
  color: #a22936 !important;
}
.button.danger:hover:not(:disabled), .button.danger:focus-visible,
.button--danger:hover:not(:disabled),
.button--danger:focus-visible {
  background: rgba(162, 41, 54, 0.13) !important;
}

.status-badge,
.gdt-status {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  line-height: 1;
  min-height: 27px;
  padding: 0 10px;
}
.status-badge.confirmed, .status-badge.success, .status-badge[data-status=success],
.gdt-status.confirmed,
.gdt-status.success,
.gdt-status[data-status=success] {
  background: rgba(24, 122, 77, 0.1);
  border-color: rgba(24, 122, 77, 0.2);
  color: #187a4d;
}
.status-badge.checking, .status-badge.warning, .status-badge[data-status=warning],
.gdt-status.checking,
.gdt-status.warning,
.gdt-status[data-status=warning] {
  background: rgba(255, 204, 51, 0.18);
  border-color: rgba(186, 132, 0, 0.21);
  color: #855b00;
}
.status-badge.expired, .status-badge.error, .status-badge[data-status=error],
.gdt-status.expired,
.gdt-status.error,
.gdt-status[data-status=error] {
  background: rgba(162, 41, 54, 0.08);
  border-color: rgba(162, 41, 54, 0.18);
  color: #a22936;
}

.gdt-empty-state {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.62);
  border: 1px dashed rgba(24, 21, 18, 0.18);
  border-radius: 22px;
  display: grid;
  gap: 8px;
  padding: 24px;
}
.gdt-empty-state .gdt-empty-count {
  color: #7a0019;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gdt-empty-state h2,
.gdt-empty-state h3,
.gdt-empty-state p {
  margin: 0;
}
.gdt-empty-state p {
  color: #706a64;
  line-height: 1.55;
}

.gdt-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(24, 21, 18, 0.09);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(35, 29, 24, 0.06);
  transition: border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.gdt-card:hover, .gdt-card:focus-within {
  border-color: rgba(24, 21, 18, 0.14);
  box-shadow: 0 16px 35px rgba(35, 29, 24, 0.09);
  transform: translateY(-2px);
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(122, 0, 25, 0.24) !important;
  outline-offset: 3px;
}

@keyframes gdt-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .button,
.nav-button,
.add-button,
.card-action,
.search-button,
.vote-button,
.vote-link,
.gdt-card {
    transition: none;
  }
}
.hero.hero-planner {
  align-items: center;
  border-top: 1px solid rgba(24, 21, 18, 0.08);
  gap: clamp(70px, 9vw, 160px);
  grid-template-columns: minmax(0, 1fr) minmax(430px, 520px);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: calc(100svh - 92px);
  padding: clamp(78px, 8vw, 128px) max(32px, (100vw - 1450px) / 2);
  width: 100vw;
}
.hero.hero-planner h1 {
  font-size: clamp(74px, 7.4vw, 122px);
  line-height: 0.85;
  margin: 0;
  max-width: 8.1ch;
}

.planner-primary-action {
  margin-top: 42px;
}

.planner-primary-action .button {
  background: #7a0019;
  border: 1px solid rgba(93, 0, 20, 0.9);
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(122, 0, 25, 0.2), inset 0 1px 0 rgba(255, 204, 51, 0.52);
  color: #fffdf9;
  min-height: 58px;
  padding: 0 24px;
}
.planner-primary-action .button:hover {
  background: #620014;
  box-shadow: 0 20px 38px rgba(122, 0, 25, 0.27), inset 0 1px 0 rgba(255, 204, 51, 0.64);
}

.home-top-deals-sidebar {
  align-self: center;
  background: rgba(255, 254, 251, 0.88);
  border: 1px solid rgba(122, 0, 25, 0.16);
  border-radius: 16px;
  box-shadow: 0 26px 70px rgba(51, 32, 12, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  overflow: hidden;
  position: relative;
  transform: translateY(-4px);
  width: 100%;
}
.home-top-deals-sidebar::before {
  background: linear-gradient(90deg, #7a0019 0 42%, #ffcc33 42% 100%);
  content: "";
  height: 4px;
  inset: 0 0 auto;
  position: absolute;
}

.top-deals-head {
  align-items: center;
  border-bottom: 1px solid rgba(24, 21, 18, 0.08);
  display: flex;
  justify-content: space-between;
  padding: 31px 30px 23px;
}
.top-deals-head span {
  display: block;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-top: 4px;
}
.top-deals-head small {
  color: #7a0019;
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.top-deals-head::-webkit-details-marker {
  display: none;
}

.top-deals-summary-actions {
  align-items: center;
  color: #7a0019;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 12px;
}

.top-deals-summary-actions i {
  display: none;
  height: 17px;
  transition: transform 180ms ease;
  width: 17px;
}

.top-deals-list {
  display: grid;
  padding: 14px 16px;
}

.top-deal-item {
  align-items: center;
  border-radius: 10px;
  color: #1d1b19;
  display: grid;
  gap: 10px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  min-height: 88px;
  padding: 17px 14px;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}
.top-deal-item:hover {
  background: rgba(122, 0, 25, 0.05);
  transform: translateX(3px);
}
.top-deal-item:focus-visible {
  outline: 3px solid rgba(122, 0, 25, 0.32);
  outline-offset: -2px;
}

.top-deal-rank {
  align-items: center;
  border: 1px solid rgba(122, 0, 25, 0.13);
  border-radius: 12px;
  color: #7a0019;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  letter-spacing: 0.04em;
  width: 44px;
}

.top-deal-copy {
  min-width: 0;
}

.top-deal-copy strong, .top-deal-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-deal-copy strong {
  font-size: 16px;
}

.top-deal-copy small {
  color: #706a64;
  font-size: 13px;
  margin-top: 5px;
}

.top-deal-score {
  align-items: center;
  background: #fff1bf;
  border-radius: 999px;
  color: #674300;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  min-width: 32px;
}

.top-deals-empty {
  display: grid;
  gap: 5px;
  min-height: 120px;
  padding: 19px;
  place-content: center start;
}

.top-deals-empty strong {
  font-size: 14px;
}

.top-deals-empty span {
  color: #706a64;
  font-size: 12px;
}

.top-deals-foot {
  align-items: center;
  border-top: 1px solid rgba(24, 21, 18, 0.08);
  color: #706a64;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  padding: 19px 30px 22px;
}

.top-deals-foot a {
  color: #7a0019;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.home-overview {
  align-items: center;
  background: transparent;
  display: grid;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 100svh;
  padding: clamp(34px, 4vw, 60px) 0;
  scroll-margin-top: 74px;
  scroll-snap-align: start;
  width: 100vw;
}

.home-overview-shell {
  align-content: center;
  display: grid;
  gap: clamp(46px, 6vw, 78px);
  grid-template-columns: 1fr;
  margin: 0 auto;
  min-height: min(790px, 100svh - 84px);
  padding: clamp(56px, 7vw, 108px) clamp(32px, 5vw, 84px);
  width: min(100%, 1500px);
}

.home-overview-head {
  align-items: end;
  display: grid;
  gap: 24px 90px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.56fr);
}
.home-overview-head .section-kicker {
  grid-column: 1/-1;
  margin: 0;
}
.home-overview-head h2 {
  grid-column: 1;
}
.home-overview-head p:last-child {
  border-left: 2px solid rgba(122, 0, 25, 0.45);
  color: #706a64;
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 5px;
  max-width: 38ch;
  padding-left: 20px;
}

.home-overview-title {
  font-size: clamp(68px, 7vw, 116px);
  letter-spacing: -0.065em;
  line-height: 0.88;
  margin: 0;
}

.home-overview-data {
  display: grid;
  gap: 18px;
}

.home-overview .stats {
  gap: 20px;
  margin: 0;
}
.home-overview .stats .stat {
  align-items: center;
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(24, 21, 18, 0.09);
  box-shadow: 0 13px 30px rgba(35, 29, 24, 0.055);
  min-height: 260px;
  padding: 36px;
}
.home-overview .stats .stat::before {
  display: block;
  height: 3px;
}
.home-overview .stats .stat:hover {
  box-shadow: 0 18px 36px rgba(35, 29, 24, 0.09);
  transform: translateY(-2px);
}
.home-overview .stats .stat-icon {
  border-radius: 19px;
  height: 66px;
  width: 66px;
}
.home-overview .stats .stat strong {
  font-size: clamp(50px, 4.6vw, 72px);
}
.home-overview .stats .stat span {
  font-size: 15px;
  margin-top: 10px;
}

.home-proof {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home-proof .trust-pill {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #706a64;
  min-height: 28px;
  padding: 0 2px;
}
.home-proof .trust-pill i {
  color: #7a0019;
  height: 15px;
  width: 15px;
}

.motion-enabled .home-overview .home-overview-head,
.motion-enabled .home-overview .home-proof {
  filter: none !important;
  opacity: 0;
  transform: translateY(18px);
}

.motion-enabled .home-overview .stats .stat {
  filter: none !important;
  opacity: 0;
  transform: translateY(46px) scale(0.975);
}

.motion-enabled .home-overview.is-visible .home-overview-head {
  animation: gdt-overview-head-reveal 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.motion-enabled .home-overview.is-visible .home-proof {
  animation: gdt-overview-head-reveal 900ms cubic-bezier(0.16, 1, 0.3, 1) both 650ms;
}

.motion-enabled .home-overview .stats .stat.is-visible {
  animation: gdt-home-stat-reveal 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.motion-enabled .home-overview .stats .stat.is-visible:nth-child(2) {
  animation-delay: 220ms;
}

.motion-enabled .home-overview .stats .stat.is-visible:nth-child(3) {
  animation-delay: 440ms;
}

@keyframes gdt-overview-head-reveal {
  from {
    filter: none;
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    filter: none;
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes gdt-home-stat-reveal {
  from {
    filter: none;
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    filter: none;
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.pulse-section {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(84px, 9vw, 138px) max(32px, (100vw - 1450px) / 2) !important;
  scroll-margin-top: 74px;
  scroll-snap-align: start;
  width: 100vw !important;
}

.pulse-section .pulse-shell {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0 auto;
  max-width: 1450px;
  padding: 0;
}

.pulse-heading {
  align-items: end;
  display: flex;
  gap: 48px;
  justify-content: space-between;
  margin-bottom: 36px;
}
.pulse-heading h2 {
  font-size: clamp(48px, 5vw, 80px) !important;
  letter-spacing: -0.058em;
  line-height: 0.9;
  margin: 10px 0 0;
  max-width: 10ch;
}
.pulse-heading > p {
  color: #706a64;
  font-size: 17px !important;
  line-height: 1.55;
  margin: 0 0 6px;
  max-width: 42ch;
}

.pulse-card {
  border-radius: 20px !important;
  display: flex;
  flex-direction: column;
  min-height: 330px !important;
  padding: 27px !important;
}
.pulse-card .pulse-list {
  flex: 1;
}

.pulse-card-top {
  align-items: center;
  display: flex;
  gap: 10px;
}
.pulse-card-top .pulse-count {
  background: rgba(122, 0, 25, 0.08);
  border: 1px solid rgba(122, 0, 25, 0.1);
  border-radius: 999px;
  color: #7a0019;
  font-size: 12px;
  font-weight: 900;
  margin-left: auto;
  min-width: 28px;
  padding: 5px 8px;
  text-align: center;
}

.pulse-empty {
  align-items: center;
  background: rgba(255, 249, 239, 0.72);
  border: 1px dashed rgba(24, 21, 18, 0.15);
  border-radius: 16px;
  color: #706a64;
  display: flex;
  line-height: 1.5;
  margin: 0;
  min-height: 104px;
  padding: 15px;
}

.meal-planning-guide {
  border-top: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  padding: clamp(84px, 9vw, 138px) max(32px, (100vw - 1450px) / 2);
  scroll-margin-top: 74px;
  scroll-snap-align: start;
  width: 100vw;
}

.meal-planning-guide-shell {
  margin: 0 auto;
  max-width: 1450px;
}

.meal-planning-guide-heading {
  align-items: end;
  display: flex;
  gap: 50px;
  justify-content: space-between;
  margin-bottom: 42px;
}
.meal-planning-guide-heading h2 {
  font-size: clamp(50px, 5.2vw, 82px);
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin: 10px 0 0;
  max-width: 11ch;
}
.meal-planning-guide-heading > p {
  color: #706a64;
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 7px;
  max-width: 45ch;
}

.meal-planning-steps {
  counter-reset: meal-step;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.meal-planning-step {
  background: rgba(255, 255, 255, 0.61);
  border: 1px solid rgba(24, 21, 18, 0.1);
  border-radius: 16px;
  box-shadow: 0 16px 35px rgba(35, 29, 24, 0.055);
  min-height: 390px;
  display: flex;
  overflow: hidden;
  padding: 32px;
  position: relative;
  transition: box-shadow 180ms ease, transform 180ms ease;
}
.meal-planning-step::before {
  background: linear-gradient(90deg, #7a0019 0 42%, #ffcc33 42% 100%);
  content: "";
  height: 3px;
  inset: 0 0 auto;
  position: absolute;
}
.meal-planning-step:hover {
  box-shadow: 0 23px 42px rgba(35, 29, 24, 0.1);
  transform: translateY(-3px);
}
.meal-planning-step:focus-within {
  box-shadow: 0 0 0 3px rgba(122, 0, 25, 0.16), 0 23px 42px rgba(35, 29, 24, 0.1);
}
.meal-planning-step > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.meal-planning-step h3 {
  font-size: clamp(26px, 2.2vw, 33px);
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 22px 0 13px;
}
.meal-planning-step p:not(.meal-planning-label) {
  color: #706a64;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.meal-planning-step a {
  align-items: center;
  border-top: 1px solid rgba(122, 0, 25, 0.13);
  color: #7a0019;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
  text-decoration: none;
  width: 100%;
}
.meal-planning-step a i {
  height: 16px;
  width: 16px;
}
.meal-planning-step a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.meal-planning-step a:focus-visible {
  border-radius: 5px;
  outline: 3px solid rgba(122, 0, 25, 0.3);
  outline-offset: 3px;
}

.meal-planning-number {
  color: rgba(122, 0, 25, 0.4);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  position: absolute;
  right: 24px;
  top: 25px;
}

.meal-planning-icon {
  align-items: center;
  background: #fff1bf;
  border-radius: 14px;
  color: #7a0019;
  display: inline-flex;
  height: 47px;
  justify-content: center;
  width: 47px;
}

.meal-planning-icon i {
  height: 22px;
  width: 22px;
}

.meal-planning-label {
  color: #7a0019;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin: 20px 0 0;
  text-transform: uppercase;
}

@media (max-width: 780px) {
  .hero.hero-planner {
    gap: 34px;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 58px 22px;
  }
  .hero.hero-planner h1 {
    max-width: 12ch;
  }
  .home-top-deals-sidebar {
    width: 100%;
  }
  .top-deals-head {
    cursor: pointer;
    padding: 20px;
  }
  .top-deals-summary-actions i {
    display: block;
  }
  .home-top-deals-sidebar[open] .top-deals-summary-actions i {
    transform: rotate(180deg);
  }
  .home-top-deals-sidebar:not([open]) {
    box-shadow: 0 12px 28px rgba(51, 32, 12, 0.08);
  }
  .home-overview {
    display: block;
    min-height: 0;
    padding: 46px 0;
  }
  .home-overview-shell {
    gap: 28px;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 38px 22px;
    width: 100%;
  }
  .home-overview-head {
    display: block;
  }
  .home-overview-head .section-kicker {
    margin-bottom: 12px;
  }
  .home-overview-head p:last-child {
    margin-top: 15px;
  }
  .home-overview .stats {
    grid-template-columns: 1fr;
  }
  .home-overview .stats .stat {
    min-height: 122px;
    padding: 21px;
  }
  .pulse-section {
    margin-left: calc(50% - 50vw);
    padding: 62px 22px !important;
    width: 100vw !important;
  }
  .pulse-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 26px;
  }
  .pulse-heading h2 {
    font-size: clamp(40px, 12vw, 56px) !important;
  }
  .pulse-card {
    min-height: 0 !important;
    padding: 22px !important;
  }
  .meal-planning-guide {
    margin-left: calc(50% - 50vw);
    padding: 62px 22px;
    width: 100vw;
  }
  .meal-planning-guide-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
  }
  .meal-planning-guide-heading h2 {
    max-width: 12ch;
  }
  .meal-planning-steps {
    grid-template-columns: 1fr;
  }
  .meal-planning-step {
    min-height: 0;
    padding: 23px;
  }
  .meal-planning-step h3 {
    margin-top: 16px;
  }
  .meal-planning-step a {
    margin-top: 20px;
    padding-top: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .motion-enabled .home-overview .home-overview-head,
.motion-enabled .home-overview .home-proof {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
