/* Color Palette - Extracted from Sushiyana Logo */
:root {
  --primary: #a31f22;
  --primary-glow: rgba(255, 9, 37, 0.96);
  --secondary: #000000;
  --bg-dark: #fcfcfc; /* Cleaner white background */
  --surface-dark: #ffffff;
  --surface-darker: #f9f9f9;
  --text-main: #1a1a1a;
  --text-soft: #444444;
  --text-muted: #777777;

  /* Effects */
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.05);
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Mobile First */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-smoothing: antialiased;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.5;
  user-select: none;
}

/* Typography */
h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

/* --- Loader --- */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s var(--ease);
}

.loader-logo {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 6px; /* Increased for "claire" / airy feel */
  margin-bottom: 2rem;
  text-transform: uppercase;
  filter: drop-shadow(0 0 20px var(--primary-glow));
}

.loader-bar {
  width: 140px;
  height: 2px;
  background: var(--glass-border);
  position: relative;
  overflow: hidden;
}

.loader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
  width: 100%;
  transform: translateX(-100%);
  animation: loadingProgress 1.2s infinite var(--ease);
}

@keyframes loadingProgress {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

/* --- Navigation & Header --- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
}

.header-content {
  padding: 0.5rem 1rem;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

/* Logo in header no longer used */

.lang-switch {
  display: flex;
  gap: 0.3rem;
}

/* Hamburger Menu */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.hamburger {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  position: relative;
  transition: all 0.3s var(--ease);
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  transition: all 0.3s var(--ease);
}

.hamburger::before {
  top: -6px;
}
.hamburger::after {
  bottom: -6px;
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(253, 245, 245, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.menu-overlay-content {
  width: 100%;
  max-width: 500px;
  padding: 2rem;
}

.menu-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}

.menu-overlay-header h2 {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.close-menu {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
}

.menu-overlay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 1rem;
}

.menu-overlay-item {
  padding: 1.2rem;
  background: var(--surface-dark);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  transition: all 0.3s var(--ease);
}

.menu-overlay-item:active {
  background: var(--primary);
  transform: scale(0.95);
}

.lang-btn {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.4s var(--ease);
}

.lang-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.nav-wrapper {
  margin-top: 0.8rem;
}

.category-nav {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding: 0 0.5rem 0.8rem;
  scrollbar-width: none;
  position: relative; /* For magic line positioning */
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.nav-indicator {
  position: absolute;
  bottom: 0.2rem;
  height: 3px;
  background: var(--primary);
  border-radius: 10px;
  transition: all 0.4s var(--ease);
  pointer-events: none;
}

.nav-item {
  padding: 0.4rem 1rem;
  background: var(--surface-darker);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-soft);
  transition: all 0.4s var(--ease);
}

.nav-item.active {
  background: var(--text-main);
  color: var(--bg-dark);
  border-color: var(--text-main);
  transform: scale(1.05);
}

#app {
  transition: opacity 0.4s var(--ease);
}

/* --- Hero Section --- */
.hero-section {
  padding: 1rem 1.5rem 0.5rem;
  text-align: center;
  background: radial-gradient(
    circle at top,
    rgba(163, 31, 34, 0.06) 0%,
    transparent 65%
  );
}

/* Large centered logo block */
.hero-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-logo {
  width: min(180px, 50vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 24px rgba(163, 31, 34, 0.15));
  animation: heroLogoIn 0.9s var(--ease) both;
}

@keyframes heroLogoIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  max-width: 280px;
  margin: 0 auto;
  animation: heroLogoIn 1.1s var(--ease) both;
}

.order-online-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  margin-top: 1rem;
  padding: 0.55rem 1.25rem 0.6rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(163, 31, 34, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
  animation: heroLogoIn 1.25s var(--ease) both;
  text-align: center;
  line-height: 1.2;
}

.order-online-btn-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.92;
}

.order-online-btn:hover {
  background: #8b181b;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(163, 31, 34, 0.42);
}

.order-online-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* --- Menu Grid & Items --- */
.menu-container {
  padding: 2rem 1rem;
}

.menu-category-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 190px;
}

.category-title {
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-title::before {
  content: "";
  width: 5px;
  height: 20px;
  background: var(--primary);
  border-radius: 10px;
}

.category-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-left: 1rem;
}

.category-photo-under-wrap {
  margin: -0.5rem 0 1.75rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.category-photo-under {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.items-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: 1 product */
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 650px) {
  .items-grid {
    grid-template-columns: repeat(3, 1fr); /* Tablet: 3 products */
  }
}

@media (min-width: 950px) {
  .items-grid {
    grid-template-columns: repeat(3, 1fr); /* Desktop: Max 3 products */
  }
}

.menu-item {
  background: var(--surface-dark);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.item-img,
.item-inline-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.6s var(--ease);
  display: block;
}

.item-media-poster,
.item-media-video {
  position: absolute;
  inset: 0;
}

.item-media-poster {
  z-index: 0;
}

.item-media-video {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.6s var(--ease);
}

/* La vidéo remplit son container uniquement quand elle joue */
.item-has-video.is-video-active .item-media-video {
  object-fit: cover;
  opacity: 1;
}

.item-has-video.is-video-active .item-media-poster {
  opacity: 0;
}

.item-image-wrapper {
  height: 200px;
  position: relative;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}

/* Border et effets premium uniquement sur les containers vidéo */
.item-has-video .item-image-wrapper {
  border: 1.5px solid rgba(163, 31, 34, 0.25);
  box-shadow:
    inset 0 -40px 40px -20px rgba(0, 0, 0, 0.12),
    0 4px 20px rgba(163, 31, 34, 0.1);
}

.item-has-video .item-image-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
  pointer-events: none;
  z-index: 2;
}

/* When the video is playing, hide the overlay */
.item-image-wrapper.is-playing .play-overlay {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

.menu-item:hover .item-img,
.menu-item:hover .item-inline-video {
  transform: scale(1.05);
}
.menu-item:hover .play-overlay {
  background: var(--primary);
  opacity: 1;
}

.item-badges {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  right: auto;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: calc(100% - 1.6rem);
  pointer-events: none;
}

.item-badge {
  background: var(--primary);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.item-content {
  padding: 1.25rem;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}

.item-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.video-play-btn {
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(163, 31, 34, 0.3);
}

.video-play-btn:hover {
  transform: scale(1.1);
  background: #ff5e5e;
}

.video-play-btn svg {
  fill: currentColor;
  margin-left: 2px;
}

.video-play-btn.is-playing {
  background: #333;
}

.item-price {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
  white-space: nowrap;
}

.item-description {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  display: block !important; /* Force visibility */
  opacity: 1 !important;
}

.add-to-cart {
  width: 100%;
  padding: 0.9rem;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.add-to-cart:active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(0.98);
}

/* --- Contact & Footer --- */
.contact-section {
  padding: 4rem 1.2rem;
  background: var(--surface-darker);
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-card h3 {
  font-family: "Outfit", sans-serif;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.hour-row {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.9rem;
}

.maps-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  padding: 1rem;
  border-radius: 12px;
  color: var(--text-main);
  text-decoration: none;
  margin-top: 2rem;
  font-weight: 600;
}

.order-online-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 4px 14px rgba(163, 31, 34, 0.25);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  text-align: center;
  line-height: 1.2;
}

.order-online-link-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.92;
}

.order-online-link:hover {
  background: #8b181b;
  transform: translateY(-1px);
}

/* --- Floating Button --- */
.call-floating-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 32px var(--primary-glow);
  z-index: 1001;
  text-decoration: none;
  transition: all 0.5s var(--ease);
  overflow: hidden;
  white-space: nowrap;
}

.call-floating-btn.expanded {
  width: 140px;
  padding: 0 1.5rem;
}

.call-floating-btn .btn-text {
  display: block;
  font-weight: 700;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s var(--ease);
  margin-left: 0;
}

.call-floating-btn.expanded .btn-text {
  max-width: 100px;
  opacity: 1;
  margin-left: 0.6rem;
}

.btn-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* --- Tablet & Desktop Overrides --- */
@media (min-width: 768px) {
  .items-grid {
    gap: 2rem;
  }

  .header-content {
    max-width: 1200px;
    margin: 0 auto;
  }

  .hero-section h1 {
    font-size: 4rem;
  }
  .hero-text p {
    font-size: 1.2rem;
    max-width: 500px;
  }

  .main-logo {
    height: 70px;
  }

  .call-floating-btn {
    width: auto;
    padding: 0 2rem;
    height: 56px;
  }
  .call-floating-btn .btn-text {
    display: block;
    font-weight: 700;
    margin-left: 0.8rem;
  }
}

@media (min-width: 1024px) {
  .menu-container {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* --- Animations --- */
.fade-up {
  opacity: 1; /* Rétabli à 1 par défaut pour éviter l'écran noir sur mobile */
  transform: translateY(0);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

/* On garde la classe visible pour les effets de scroll si besoin */
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================= */
/* Ultra Smooth Mobile Sections  */
/* ============================= */

.home-sections-container {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  padding: 2.5rem 1.2rem 4rem;
  max-width: 640px; /* mobile focus */
  margin: 0 auto;
}

/* ============================= */
/* CARD */
/* ============================= */

.section-card {
  position: relative;
  height: 220px;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  padding: 1.8rem;
  cursor: pointer;

  background: var(--secondary);

  transform: translateY(20px);
  opacity: 0;

  transition:
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.8s ease,
    box-shadow 0.4s ease;

  will-change: transform, opacity;
}

/* ============================= */
/* SCROLL REVEAL (class added via JS) */
/* ============================= */

.section-card.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* ============================= */
/* BACKGROUND */
/* ============================= */

.section-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 1.2s ease;
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

/* Subtle zoom when visible */
.section-card.is-visible .section-card-bg {
  transform: scale(1);
}

/* ============================= */
/* OVERLAY */
/* ============================= */

.section-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.2));
  z-index: 1;
}

/* ============================= */
/* CONTENT & AFFORDANCE */
/* ============================= */

.section-card-content {
  position: relative;
  z-index: 2;
  color: white;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* SMART AFFORDANCE INDICATOR */
.section-card::before {
  content: "DÉCOUVRIR →";
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 3;
  padding: 0.4rem 0.8rem;
  background: var(--primary);
  border-radius: 100px;
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(163, 31, 34, 0.3);
}

/* ============================= */
/* MOBILE TAP FEEDBACK */
/* ============================= */

.section-card:active {
  transform: scale(0.96);
  filter: brightness(0.9);
  transition: all 0.1s ease;
}

.section-card:active .section-card-bg {
  transform: scale(1.1);
}

@media (min-width: 768px) {
  .home-sections-container {
    flex-direction: row;
    max-width: 1200px;
    gap: 2rem;
  }
  .section-card {
    flex: 1;
    height: 320px;
  }
}

.back-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--text-main);
  transition: transform 0.3s var(--ease);
}
.back-btn:hover {
  transform: translateX(-3px);
  color: var(--primary);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  z-index: 5;
  pointer-events: none;
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

/* --- VIDEO MODAL (ROBUST) --- */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: none; /* JS switching */
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal.active {
  display: flex !important;
  opacity: 1;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

#modal-media-container {
  width: 100%;
  min-height: 200px; /* Minimum pour voir quelque chose */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

#modal-media-container video,
#modal-media-container img {
  width: 100%;
  height: 100%;
  max-height: 80vh;
  object-fit: contain; /* Vidéo complète, rien n'est coupé */
  display: block;
}

.close-video {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-video:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* --- PWA Install Popup --- */
.pwa-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.pwa-overlay.active {
  opacity: 1;
  visibility: visible;
}

.pwa-popup {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: 90%;
  max-width: 400px;
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  z-index: 10002;
  transition: transform 0.6s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(0,0,0,0.05);
}

.pwa-popup.active {
  transform: translateX(-50%) translateY(0);
}

.pwa-popup-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pwa-popup-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(163, 31, 34, 0.2);
}

.pwa-popup-text h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.pwa-popup-text p {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.4;
}

.pwa-popup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.pwa-btn {
  padding: 0.8rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: none;
}

.pwa-btn-cancel {
  background: var(--surface-darker);
  color: var(--text-soft);
}

.pwa-btn-install {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(163, 31, 34, 0.2);
}

.pwa-btn:active {
  transform: scale(0.96);
}
