* {
  box-sizing: border-box;
}

:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79b8ff;
  --success: #3fb950;
  --radius: 12px;
  --item-price-color: #f59e0b;
  --app-banner-height: 3.5rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

html, body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
}

.landing-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem 1.25rem;
}

.landing-header {
  text-align: center;
  padding: 0 0 1.5rem;
}

/* App banner – mobile: full-width aspect slot + cover; tablet/laptop: compact bar */
.landing-header .app-banner-wrap {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 1536 / 397;
  background: #0b1528;
  box-sizing: border-box;
}
.landing-header .app-banner {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}


.hidden {
  display: none !important;
}

.landing-section {
  margin-bottom: 2.5rem;
}

/* Promo carousel (above Browse by category) */
.landing-promo-section {
  margin-bottom: 1.5rem;
}

.landing-promo-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.landing-promo-viewport {
  overflow: hidden;
  width: 100%;
}

.landing-promo-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.landing-promo-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
}

.landing-promo-link,
.landing-promo-slide-inner {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg);
}

.landing-promo-link {
  text-decoration: none;
}

.landing-promo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.landing-promo-img--contain {
  object-fit: contain;
  background: #fff;
}

.landing-promo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(15, 20, 25, 0.72);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-promo-nav:hover,
.landing-promo-nav:focus {
  background: rgba(15, 20, 25, 0.9);
  outline: none;
  color: var(--accent);
}

.landing-promo-prev {
  left: 0.4rem;
}

.landing-promo-next {
  right: 0.4rem;
}

.landing-promo-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.45rem;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  z-index: 2;
}

.landing-promo-dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.landing-promo-dot.is-active {
  background: var(--accent);
  transform: scale(1.15);
}

.landing-promo-carousel.is-hidden {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .landing-promo-track {
    transition: none;
  }
}

/* Dynamic Special Offers / Deals flyers.
   Target canvas ~1406×768; static image promos keep their own 16/9 frame. */
.landing-promo-link--flyer,
.landing-promo-slide-inner--flyer {
  aspect-ratio: 1406 / 768;
  text-decoration: none;
  color: inherit;
}

.deal-flyer {
  --df-gold: #e6b325;
  --df-ink: #1a2b4a;
  --df-navy: #0e2744;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.7rem 0.55rem;
  box-sizing: border-box;
  background: #fff8ef;
  color: var(--df-ink);
  border: 2px solid var(--df-gold);
  border-radius: 0.85rem;
}

/* Store theme class is kept on the slide; card colors follow item order, not theme. */

.deal-flyer-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-shrink: 0;
  min-height: 3.4rem;
  padding: 0.15rem 0 0.35rem;
}

.deal-flyer-logo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
  padding: 0.2rem;
  box-sizing: border-box;
  border: 3px solid var(--df-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 2px #fff;
}

.deal-flyer-logo--placeholder {
  background: linear-gradient(145deg, #ffe566, var(--df-gold));
}

.deal-flyer-store {
  margin: 0;
  max-width: 46%;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--df-ink);
  text-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deal-flyer-badge {
  flex-shrink: 0;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  border: none;
  box-shadow: none;
}

.deal-flyer-cards {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0.4rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  flex: 1;
  min-height: 0;
  align-content: stretch;
}

.deal-flyer-card {
  --card-fill: #c2185b;
  --card-price-bg: #9b1248;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-radius: 0.7rem;
  background: var(--card-fill);
  border: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.deal-flyer-offer-pill {
  position: absolute;
  top: 0.28rem;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  max-width: calc(100% - 0.4rem);
  padding: 0.14rem 0.4rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe14a 0%, #f5c400 100%);
  color: #7a3e00;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.deal-flyer-card:nth-child(7n + 1) { --card-fill: #c2185b; --card-price-bg: #9b1248; }
.deal-flyer-card:nth-child(7n + 2) { --card-fill: #ef6c00; --card-price-bg: #c65a00; }
.deal-flyer-card:nth-child(7n + 3) { --card-fill: #2e7d32; --card-price-bg: #1b5e20; }
.deal-flyer-card:nth-child(7n + 4) { --card-fill: #1565c0; --card-price-bg: #0d47a1; }
.deal-flyer-card:nth-child(7n + 5) { --card-fill: #7b1fa2; --card-price-bg: #6a1b9a; }
.deal-flyer-card:nth-child(7n + 6) { --card-fill: #c62828; --card-price-bg: #8e1c1c; }
.deal-flyer-card:nth-child(7n + 7) { --card-fill: #c4920a; --card-price-bg: #8a6508; }

.deal-flyer-card-media {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-fill);
  padding: 1.15rem 0.3rem 0.25rem;
}

.deal-flyer-card-img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.15));
}

.deal-flyer-card-title {
  margin: 0;
  padding: 0.4rem 0.35rem;
  width: 100%;
  max-height: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  color: #fff;
  text-shadow: none;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.deal-flyer-card--no-img .deal-flyer-card-media {
  background: var(--card-fill);
}

.deal-flyer-card-name,
.deal-flyer-card-price {
  margin: 0;
  flex-shrink: 0;
  text-align: center;
  color: #fff;
  font-weight: 900;
  line-height: 1.15;
  padding: 0.24rem 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deal-flyer-card-name {
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  background: var(--card-fill);
  border-top: none;
  text-shadow: none;
}

.deal-flyer-card-price {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  background: var(--card-price-bg);
  border-top: none;
  text-shadow: none;
}

.deal-flyer-order-line {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin: 0.15rem 0 0.35rem;
  color: var(--df-ink);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.deal-flyer-order-line strong {
  color: #f97316;
  font-weight: 800;
}

.deal-flyer-order-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  display: block;
}

.deal-flyer-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
  margin: 0;
  padding: 0.42rem 0.85rem;
  border-radius: 0.55rem;
  background: var(--df-navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  min-height: 1.85rem;
  text-shadow: none;
}

.deal-flyer-phone {
  flex-shrink: 0;
  white-space: nowrap;
}

.deal-flyer-address {
  min-width: 0;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deal-flyer-cta-text {
  width: 100%;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.landing-promo-slide.is-promo-active .deal-flyer-card {
  animation: deal-flyer-pop 0.5s ease-out both;
  animation-delay: calc(var(--i, 0) * 0.05s);
}

.landing-promo-slide.is-promo-active .deal-flyer-logo {
  animation: deal-flyer-logo-bob 2.8s ease-in-out infinite;
}

.landing-promo-slide.is-promo-active .deal-flyer-badge {
  animation: deal-flyer-badge-pulse 2.4s ease-in-out infinite;
}

@keyframes deal-flyer-pop {
  from { opacity: 0; transform: translateY(6px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes deal-flyer-logo-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes deal-flyer-badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Mobile: keep 1406/768 flyer ratio; denser type for 5-col cards */
@media (max-width: 640px) {
  .deal-flyer {
    padding: 0.35rem 0.4rem 0.3rem;
  }

  .deal-flyer-header {
    gap: 0.35rem;
    min-height: 2.4rem;
    padding-bottom: 0.2rem;
  }

  .deal-flyer-logo {
    width: 2.35rem;
    height: 2.35rem;
    border-width: 2px;
  }

  .deal-flyer-store {
    max-width: 38%;
    font-size: 0.78rem;
  }

  .deal-flyer-badge {
    font-size: 0.55rem;
    padding: 0.18rem 0.4rem;
    letter-spacing: 0.04em;
  }

  .deal-flyer-cards {
    gap: 0.22rem;
    padding: 0.1rem 0 0.28rem;
  }

  .deal-flyer-card {
    border-radius: 0.4rem;
  }

  .deal-flyer-offer-pill {
    top: 0.12rem;
    font-size: 0.38rem;
    padding: 0.08rem 0.22rem;
    letter-spacing: 0.01em;
  }

  .deal-flyer-card-media {
    padding: 0.85rem 0.12rem 0.08rem;
  }

  .deal-flyer-order-line {
    margin: 0.08rem 0 0.2rem;
    font-size: 0.55rem;
    gap: 0.2rem;
  }

  .deal-flyer-order-icon {
    width: 0.75rem;
    height: 0.75rem;
  }

  .deal-flyer-card-title {
    font-size: 0.62rem;
    padding: 0.2rem 0.15rem;
    -webkit-line-clamp: 5;
  }

  .deal-flyer-card-name {
    font-size: 0.48rem;
    padding: 0.12rem 0.1rem;
  }

  .deal-flyer-card-price {
    font-size: 0.52rem;
    padding: 0.12rem 0.1rem;
  }

  .deal-flyer-footer {
    margin: 0;
    padding: 0.22rem 0.4rem;
    border-radius: 0.35rem;
    font-size: 0.5rem;
    min-height: 1.2rem;
  }
}

@media (max-width: 420px) {
  .deal-flyer-store {
    font-size: 0.68rem;
  }

  .deal-flyer-card-title {
    font-size: 0.52rem;
  }

  .deal-flyer-card-name {
    font-size: 0.42rem;
  }

  .deal-flyer-card-price {
    font-size: 0.46rem;
  }

  .deal-flyer-footer {
    font-size: 0.48rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-promo-slide.is-promo-active .deal-flyer-card,
  .landing-promo-slide.is-promo-active .deal-flyer-logo,
  .landing-promo-slide.is-promo-active .deal-flyer-badge {
    animation: none;
  }
}

.landing-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text);
}

.dropdown-wrap {
  margin-bottom: 1.25rem;
}

.landing-browse-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
}

.landing-browse-toolbar .dropdown-wrap {
  margin-bottom: 0;
  flex: 1 1 180px;
  min-width: 0;
}

.landing-search-wrap {
  flex: 1 1 180px;
  min-width: 0;
}

.landing-search-input {
  width: 100%;
  max-width: 320px;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  appearance: none;
}

.landing-search-input:hover,
.landing-search-input:focus {
  border-color: var(--accent);
  outline: none;
}

.landing-search-input::-webkit-search-cancel-button {
  cursor: pointer;
}

.landing-search-empty {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.landing-select {
  width: 100%;
  max-width: 320px;
  padding: 0.65rem 2rem 0.65rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238b949e' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.landing-select:hover,
.landing-select:focus {
  border-color: var(--accent);
  outline: none;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.store-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-card,
.store-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--item-price-color);
  transition: border-color 0.2s, transform 0.2s;
}

.category-card:hover,
.store-card:hover {
  border-color: #fbbf24;
}

.category-card-link,
.store-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.category-card-img-wrap,
.store-card-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg);
}

.category-card-img,
.store-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-card-name,
.store-card-name {
  padding: 0.45rem 0.5rem;
  font-weight: 600;
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.25;
}

.store-card-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.45rem;
}

.store-card-distance {
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.store-card-desc {
  padding: 0 0.65rem 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.3;
}

.stores-section.hidden {
  display: none !important;
}

.stores-section .store-cards .store-card.filtered-out {
  display: none;
}

.landing-error {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 1rem;
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) {
  .landing-wrap {
    padding: 1.5rem 1.5rem 3rem;
  }
  .category-cards {
    gap: 0.85rem;
  }
  .store-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .category-card-name {
    font-size: 0.9rem;
    padding: 0.5rem 0.65rem;
  }
}

@media (min-width: 768px) {
  :root {
    --app-banner-height: 5rem;
  }

  .landing-header .app-banner-wrap {
    width: calc(100% + 2rem);
    max-width: none;
    margin-left: -1rem;
    margin-right: -1rem;
    aspect-ratio: auto;
    height: var(--app-banner-height);
    min-height: var(--app-banner-height);
    max-height: var(--app-banner-height);
    align-items: center;
  }

  .landing-header .app-banner {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }
}

@media (min-width: 1024px) {
  :root {
    --app-banner-height: 7.5rem;
  }

  .landing-wrap {
    padding: 2rem 2rem 2.5rem;
  }

  .landing-header {
    padding-bottom: 0.75rem;
  }

  .landing-header .app-banner-wrap {
    width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-right: -2rem;
    height: var(--app-banner-height);
    min-height: var(--app-banner-height);
    max-height: var(--app-banner-height);
  }
}

.site-footer {
  text-align: center;
  padding: 0.35rem 1rem max(1rem, env(safe-area-inset-bottom, 0px));
  font-size: 0.9rem;
}

.site-footer-about-link {
  display: inline-block;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #c2410c;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.site-footer-about-link:hover {
  color: #ea580c;
  text-shadow: 0 0 10px rgba(234, 88, 12, 0.4);
}

.site-footer-about-link:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 3px;
  border-radius: 2px;
}

/* —— Vertical hub (Phase 1) —— */
.landing-hub {
  margin: 0.5rem 0 2rem;
  text-align: center;
}

.landing-hub-title {
  margin: 0 0 0.5rem;
  font-family: Oswald, 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.landing-hub-lede {
  margin: 0 auto 1.35rem;
  max-width: 32rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--muted);
}

.landing-hub-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 52rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .landing-hub-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.landing-hub-card {
  margin: 0;
  border-radius: var(--radius);
  border: 3px solid var(--hub-accent, var(--item-price-color));
  background: var(--surface);
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.landing-hub-card:hover {
  border-color: #fbbf24;
  transform: translateY(-2px);
}

.landing-hub-card--disabled {
  opacity: 0.55;
  filter: grayscale(0.35);
}

.landing-hub-card--disabled:hover {
  border-color: var(--hub-accent, var(--item-price-color));
  transform: none;
}

.landing-hub-card-link {
  display: block;
  padding: 1.15rem 1.2rem 1.25rem;
  color: inherit;
  text-decoration: none;
  min-height: 8.5rem;
}

.landing-hub-card-link--disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.landing-hub-card-img {
  display: block;
  width: 100%;
  max-height: 9.5rem;
  margin: 0 0 0.85rem;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
}

.landing-hub-card-title {
  margin: 0 0 0.45rem;
  font-family: Oswald, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--hub-accent, var(--item-price-color));
}

.landing-hub-card-tagline {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--muted);
}

.landing-hub-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
}

.landing-hub-badge--live {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.landing-hub-back-wrap {
  margin: 0 0 0.85rem;
}

.landing-hub-back {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.landing-hub-back:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Next Slot coming-soon page */
.nextslot-hero {
  max-width: 36rem;
  margin: 1rem auto 2.5rem;
  text-align: center;
}

.nextslot-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.nextslot-hero h1 {
  margin: 0 0 0.75rem;
  font-family: Oswald, system-ui, sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 600;
}

.nextslot-lede,
.nextslot-note {
  margin: 0 0 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.nextslot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.35rem;
}

.nextslot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid transparent;
}

.nextslot-btn--primary {
  background: var(--item-price-color);
  color: #0f1419;
}

.nextslot-btn--ghost {
  border-color: rgba(230, 237, 243, 0.35);
  color: var(--text);
}

.nextslot-btn--ghost:hover {
  border-color: #fff;
}

/* Next Slot booking app (Phase 2/3) */
.ns-app {
  max-width: 40rem;
  margin: 1rem auto 3rem;
}

.ns-app-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.ns-app-title {
  margin: 0;
  font-family: Oswald, system-ui, sans-serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 600;
}

.ns-app-lede {
  margin: 0.45rem auto 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.ns-step {
  margin-top: 1rem;
}

button.category-card-link.ns-category-btn {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}

.ns-provider-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 3px solid var(--item-price-color);
  background: var(--surface);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ns-provider-logo {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  border-radius: 0.45rem;
  flex-shrink: 0;
  background: var(--bg);
}

.ns-provider-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.ns-step-title {
  margin: 0 0 0.85rem;
  font-family: Oswald, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.ns-provider-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.ns-provider-card:hover {
  border-color: #fbbf24;
  transform: translateY(-2px);
}

.ns-provider-name {
  font-family: Oswald, system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--item-price-color);
}

.ns-provider-sub {
  font-size: 0.88rem;
  color: var(--muted);
}

.ns-provider-meta {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.ns-field-label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.ns-select,
.ns-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(230, 237, 243, 0.25);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
}

textarea.ns-input {
  resize: vertical;
}

.ns-slots-title {
  margin: 1.25rem 0 0.6rem;
  font-size: 1rem;
  font-weight: 600;
}

.ns-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
  gap: 0.6rem;
}

.ns-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.65rem 0.5rem;
  border-radius: 0.6rem;
  border: 2px solid rgba(230, 237, 243, 0.25);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ns-slot-time {
  line-height: 1.2;
}

.ns-slot-spots {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.02em;
}

.ns-slot:hover {
  border-color: var(--item-price-color);
  color: var(--item-price-color);
}

.ns-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.85rem;
  padding: 0;
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
}

.ns-back:hover {
  text-decoration: underline;
}

.ns-hub-back-wrap {
  margin: 0 0 0.25rem;
}

a.ns-hub-back {
  cursor: pointer;
}

.ns-summary {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.6rem;
  background: rgba(88, 166, 255, 0.12);
  color: var(--text);
  font-weight: 600;
}

.ns-submit {
  width: 100%;
  margin-top: 1.25rem;
  cursor: pointer;
}

.ns-empty {
  color: var(--muted);
  font-size: 0.92rem;
}

.ns-error {
  margin: 0.75rem 0 0;
  color: #f87171;
  font-size: 0.9rem;
  font-weight: 600;
}

.ns-success-card {
  text-align: center;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  border: 3px solid var(--item-price-color);
  background: var(--surface);
}

.ns-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Next Slot provider config */
.nsc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.nsc-item {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border: 2px solid rgba(230, 237, 243, 0.2);
  background: var(--surface);
}

.nsc-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.nsc-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #79b8ff;
}

.nsc-remove {
  margin-left: auto;
  background: none;
  border: none;
  color: #f87171;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.nsc-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin-top: 0.55rem;
}

.nsc-check {
  font-size: 0.85rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nsc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.nsc-row .ns-input {
  flex: 1 1 10rem;
}

.nsc-select-sm {
  flex: 0 1 8rem;
  min-width: 7rem;
}

.nsc-time,
.nsc-date {
  flex: 0 1 8.5rem;
  min-width: 7rem;
}

.nsc-all-day {
  white-space: nowrap;
}

.nsc-row-wrap {
  align-items: flex-end;
}

