* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- Live Theme Mutator: per-brand CSS variables ---------- */
/* Korpa = brand blue (deep/saturated, distinct from Wolt's lighter cyan) —
   no official public hex found for Korpa.ba, this is a representative value.
   Default (fallback / no data-app yet) = Korpa palette. */
:root {
  --brand-primary: #0057ff;
  --brand-secondary: #001a4d;
  --brand-glow: rgba(0, 87, 255, 0.45);
  --brand-text-on: #f5faff;
}

[data-app="korpa"] {
  --brand-primary: #0057ff;
  --brand-secondary: #001a4d;
  --brand-glow: rgba(0, 87, 255, 0.45);
  --brand-text-on: #f5faff;
}

/* Wolt = verified real brand cerulean/"Robin's Egg Blue" (#00C2E8 / #009DE0 family) */
[data-app="wolt"] {
  --brand-primary: #00c2e8;
  --brand-secondary: #062a3d;
  --brand-glow: rgba(0, 194, 232, 0.45);
  --brand-text-on: #001824;
}

/* Glovo = verified real brand yellow (#FFC244) */
[data-app="glovo"] {
  --brand-primary: #ffc244;
  --brand-secondary: #3d2f00;
  --brand-glow: rgba(255, 194, 68, 0.45);
  --brand-text-on: #2b2000;
}

/* Zapp = energetic brand orange — no official public brand palette found for
   this app, this is a representative value matching the requested identity. */
[data-app="zapp"] {
  --brand-primary: #ff6a00;
  --brand-secondary: #3d1a00;
  --brand-glow: rgba(255, 106, 0, 0.5);
  --brand-text-on: #2b1400;
}

body {
  min-height: 100vh;
  font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, #1a1033 0%, #0a0a18 45%, #05050d 100%);
  color: #f2f2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  transition: background 0.4s ease;
}

.page {
  width: 100%;
  max-width: 460px;
}

.hero {
  text-align: center;
  margin-bottom: 28px;
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #9dfcd8;
  background: rgba(72, 255, 190, 0.1);
  border: 1px solid rgba(72, 255, 190, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 34px;
  font-weight: 800;
  background: linear-gradient(90deg, #7cf3ff, #b98cff 60%, #ff8cdc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.hero-sub {
  color: #a4a4c4;
  font-size: 14px;
  max-width: 400px;
  margin: 0 auto;
}

/* ---------- Mobile App Switcher ---------- */
.app-switcher {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 6px;
  margin: 0 auto 32px;
  backdrop-filter: blur(12px);
}

.app-tab {
  flex: 1;
  padding: 10px 4px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #b7b7d9;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.app-tab:hover {
  background: rgba(255, 255, 255, 0.06);
}

.app-tab.active {
  background: var(--brand-primary);
  color: var(--brand-text-on);
  box-shadow: 0 0 18px var(--brand-glow);
}

.voice-assistant {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ---------- Neon mic button (brand-reactive) ---------- */
.mic-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: radial-gradient(circle at 30% 30%, var(--brand-secondary), #120a2e 70%);
  box-shadow:
    0 0 25px var(--brand-glow),
    0 0 60px var(--brand-glow),
    inset 0 0 20px var(--brand-glow);
  transition: transform 0.15s ease, box-shadow 0.3s ease, background 0.4s ease;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.mic-btn:hover {
  transform: scale(1.03);
}

.mic-btn:active {
  transform: scale(0.97);
}

.mic-icon {
  font-size: 48px;
  filter: drop-shadow(0 0 12px var(--brand-glow));
  z-index: 2;
}

.mic-label {
  font-size: 13px;
  font-weight: 600;
  color: #e6e6ff;
  z-index: 2;
  text-align: center;
  padding: 0 18px;
  letter-spacing: 0.3px;
}

.mic-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--brand-glow);
  opacity: 0;
}

.mic-btn.listening {
  box-shadow:
    0 0 40px var(--brand-glow),
    0 0 100px var(--brand-glow),
    inset 0 0 30px var(--brand-glow);
}

.mic-btn.listening .mic-icon {
  animation: mic-bounce 0.6s ease-in-out infinite;
}

.mic-btn.listening .mic-pulse {
  animation: pulse-ring 1.6s ease-out infinite;
}

.mic-btn.listening .mic-pulse-2 {
  animation-delay: 0.5s;
}

.mic-btn.unsupported {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.mic-btn.locked {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: 0 0 30px rgba(255, 70, 70, 0.55), inset 0 0 20px rgba(255, 70, 70, 0.3);
}

.mic-btn.locked .mic-icon {
  filter: drop-shadow(0 0 10px rgba(255, 70, 70, 0.8));
}

@keyframes pulse-ring {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes mic-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.voice-status {
  min-height: 34px;
  font-size: 14px;
  color: #b7b7d9;
  text-align: center;
  max-width: 420px;
}

.menu-hint {
  margin-top: 24px;
  text-align: center;
}

.menu-hint h2 {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7c7ca0;
  margin-bottom: 14px;
  font-weight: 600;
}

.menu-hint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px; /* keeps the scrollbar off the card edges */
}

.menu-hint-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
}

/* ---------- Glassmorphic mobile checkout popup ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 15, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 100;
}

.cart-overlay.hidden {
  display: none;
}

.cart-overlay.visible {
  opacity: 1;
}

.cart-modal {
  position: relative;
  width: 92%;
  max-width: 380px;
  background: rgba(30, 24, 60, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 34px;
  padding: 20px 26px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 0 40px var(--brand-glow);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.2s ease, box-shadow 0.4s ease;
}

.cart-overlay.visible .cart-modal {
  transform: translateY(0) scale(1);
}

/* Phone-chrome details, so the popup reads as a mobile app checkout screen */
.phone-notch {
  width: 56px;
  height: 5px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  margin: 0 auto 18px;
}

.phone-home-indicator {
  width: 110px;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  margin: 18px auto 0;
}

.cart-close {
  position: absolute;
  top: 20px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #e6e6ff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

.cart-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.cart-header-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand-primary);
  font-weight: 700;
}

.cart-header h2 {
  font-size: 22px;
  margin-top: 4px;
  color: #fff;
}

.cart-lines {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  color: #d8d8f0;
}

.cart-line-price {
  font-weight: 600;
  color: #fff;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  padding-top: 6px;
}

.cart-limit-notice {
  margin-top: 10px;
  font-size: 12px;
  color: #ffd479;
  text-align: center;
}

.cart-limit-notice.hidden {
  display: none;
}

.mock-badge {
  margin-top: 14px;
  font-size: 12px;
  color: #9dfcd8;
  background: rgba(72, 255, 190, 0.08);
  border: 1px solid rgba(72, 255, 190, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
}

.checkout-btn {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-text-on);
  background: var(--brand-primary);
  box-shadow: 0 8px 24px var(--brand-glow);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.4s ease;
}

.checkout-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.checkout-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.checkout-status {
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
  min-height: 18px;
  color: #b7b7d9;
}

.checkout-status.pending {
  color: #ffd479;
}

.checkout-status.success {
  color: #9dfcd8;
  font-weight: 600;
}

/* ---------- Cross-project navigation footer ---------- */
.site-nav {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.site-nav-label {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7c7ca0;
  font-weight: 600;
  margin-bottom: 14px;
}

.site-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.site-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d8d8f0;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

a.site-nav-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.site-nav-btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-style: dashed;
}

.soon-badge {
  font-size: 9px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(255, 212, 121, 0.18);
  color: #ffd479;
  border-radius: 999px;
  padding: 2px 7px;
  font-weight: 700;
}

@media (max-width: 480px) {
  .mic-btn {
    width: 170px;
    height: 170px;
  }
  .hero h1 {
    font-size: 27px;
  }
  .app-tab {
    font-size: 11px;
  }
  .site-nav-btn {
    font-size: 12px;
    padding: 8px 12px;
  }
}
