﻿/* ===== RESET ===== */
:root {
  --text: #ffffff;
}

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

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

/* ===== CONTENT PROTECTION ===== */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea,
select,
[contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

img,
a {
  -webkit-user-drag: none;
}

/* ===== SKIP LINK + MAIN LANDMARK ===== */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 30000;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  background: #ffffff;
  color: #000000;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

main {
  display: flex;
  flex-direction: column;
}

/* ===== BASE ===== */
body {
  background:
    linear-gradient(
      to bottom,
      transparent 70%,
      #000 100%
    ) top / 100% 50vh no-repeat,
    linear-gradient(
      to left,
      #000 0%,
      #150000 10%,
      #250000 25%,
      #3a0508 40%,
      #4d0a10 50%,
      #3a0508 60%,
      #250000 75%,
      #150000 90%,
      #000 100%
    ) top / 100% 50vh no-repeat,
     #000000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: "Poppins", sans-serif;
  line-height: 1.5;
}

/* ===== PERFORMANCE ===== */
.hero,
.products,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 1200px 900px;
}

.map-section {
  content-visibility: visible;
}

.card {
  content-visibility: auto;
  contain-intrinsic-size: 280px 420px;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  align-items: center;
  gap: 3rem;
  background-color: transparent;
  padding: 1rem 2rem;
  position: relative;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.9;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.logo-word {
  font-family: "Marcellus", serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1;
  background: linear-gradient(100deg, #ffffff 0%, #ffffff 45%, rgba(255, 255, 255, 0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: letter-spacing 0.4s ease;
}

.nav-logo:hover .logo-word {
  letter-spacing: 0.22em;
}

.nav-logo:hover .logo-mark {
  transform: rotate(90deg);
  opacity: 1;
}

.nav-logo:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 6px;
  border-radius: 8px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  color: #fff;
  margin-left: auto;
}

.nav-menu a,
.nav-menu a:visited {
  color: #fff;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.menu-logo {
  display: none;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.nav-icon-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  transition: background 0.25s ease, color 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-icon-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  appearance: none;
}

.hamburger:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 6px;
  border-radius: 4px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== FOOTER ===== */
.section-divider {
  border: none;
  height: 1px;
  background: #333333;
  margin: 0;
}

.footer {
  background-color: transparent;
  border-top: 1px solid #333333;
  padding: 3rem 2rem 1.5rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 2fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Marcellus", serif;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.footer-logo .logo-mark {
  color: #fff;
  opacity: 0.85;
}

.footer-tagline {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  color: #ccc;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.footer-links h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  color: #fff;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  color: #ccc;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #fff;
}

.footer-social h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  color: #fff;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: #ccc;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #fff;
}

.footer-newsletter h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-newsletter p {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  color: #ccc;
  font-size: 0.86rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.6rem 1rem;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 15px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s;
}

.newsletter-form input::placeholder {
  color: #999999;
}

.newsletter-status {
  margin-top: 0.75rem;
  color: #dfe8ff;
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
}

.newsletter-form input:focus {
  border-color: #555;
}

.newsletter-form button {
  padding: 0.6rem 1.2rem;
  background: #fff;
  color: #0a0a0a;
  border: none;
  border-radius: 15px;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.newsletter-form button:hover {
  opacity: 0.85;
}

.footer-bottom {
  border-top: 1px solid #1a1a1a;
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  color: #ccc;
  font-size: 0.85rem;
}

/* ===== HERO ===== */
.hero {
  z-index: 0;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.hero-text {
  position: absolute;
  top: 9vh;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 0 1rem;
  box-sizing: border-box;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: clamp(4.5rem, 15vw, 30rem);
  line-height: 1.02;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.08rem;
  opacity: 0.9;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 60px rgba(255, 255, 255, 0.5),
    0 0 120px rgba(255, 255, 255, 0.3);
  animation: slideDown 1.2s ease-out forwards;
}

.hero-text-main {
  display: block;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 0.9;
  }
}

.hero-image {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.hero-image > picture {
  display: contents;
}

.hero-img {
  max-width: 70%;
  max-height: 62vh;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.7));
  animation:
    slideUp 1.2s ease-out both,
    float 6s ease-in-out 1.2s infinite;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
  25% { transform: translateY(-15px) rotateX(1deg) rotateY(-1deg); }
  50% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
  75% { transform: translateY(8px) rotateX(-0.5deg) rotateY(0.5deg); }
}

@keyframes heroFadeDown {
  from {
    transform: translateY(-16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes heroLighten {
  0%, 100% {
    text-shadow:
      0 0 0.16em rgba(255, 255, 255, 0.24),
      0 0 0.5em rgba(255, 255, 255, 0.1);
  }
  50% {
    text-shadow:
      0 0 0.32em rgba(255, 255, 255, 0.62),
      0 0 0.85em rgba(255, 255, 255, 0.32),
      0 0 1.6em rgba(255, 255, 255, 0.14);
  }
}

.btn-order {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 3rem auto 0;
  padding: 10px 2rem;
  background: transparent;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 20px;
  transform-origin: center bottom;
  animation: btnSlideUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}

.btn-order:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}

.btn-order::after {
  content: "";
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: -60%;
  width: 55%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.14) 32%,
    rgba(255, 255, 255, 0.46) 50%,
    rgba(255, 255, 255, 0.14) 68%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(0) rotate(18deg);
  animation: btnShine 4.8s ease-in-out 2.4s infinite;
  pointer-events: none;
}

@keyframes btnShine {
  0% {
    transform: translateX(0) rotate(18deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  45% {
    transform: translateX(400%) rotate(18deg);
    opacity: 1;
  }
  46%, 100% {
    transform: translateX(400%) rotate(18deg);
    opacity: 0;
  }
}

@keyframes btnSlideUp {
  0% {
    opacity: 0;
    transform: translateY(160%) scale(0.9);
  }
  55% {
    opacity: 1;
    transform: translateY(-8%) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== Brand logo loop ===== */
.brand-strip {
  position: relative;
  overflow: hidden;
  padding: 3rem 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  contain: layout paint;
}

.brand-strip::before {
  content: "";
  position: absolute;
  inset: 0 4%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.13) 30%,
    rgba(255, 255, 255, 0.06) 52%,
    rgba(255, 255, 255, 0.02) 70%,
    rgba(255, 255, 255, 0) 88%
  );
  pointer-events: none;
}

.brand-track {
  display: flex;
  width: max-content;
  animation: brandScroll 52s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.brand-list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand-list li {
  flex: 0 0 auto;
  padding: 0 2.75rem;
}

.brand-list img {
  display: block;
  height: clamp(1.6rem, 3.4vw, 2.75rem);
  width: auto;
  max-width: 16rem;
  object-fit: contain;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@keyframes brandScroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ===== Product grid ===== */
.products {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  padding: 2rem 4rem 2rem;
  justify-content: safe center;
  scrollbar-width: none;
}

.products::-webkit-scrollbar {
  display: none;
}

.card {
  flex: 0 0 auto;
  width: min(450px, 25vw);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(60px);
  animation: cardUp 0.8s ease-out forwards;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 0.75rem 0.5rem 1rem;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.3s; }
.card:nth-child(3) { animation-delay: 0.5s; }

@keyframes cardUp {
  to { opacity: 1; transform: translateY(0); }
}

.card:hover {
  transform: translateY(-8px);
  transition: transform 0.3s;
}

.card img {
  width: 90%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
}

.card-body {
  color: #fff;
  padding: 1rem 0;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
}

.card-body h3 {
  margin-bottom: 0.5rem;
}

.card-body .desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.swatches {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.swatch.active {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.swatch:hover {
  transform: scale(1.3);
}

.card-body .price {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  display: block;
}

.card-body .view-btn {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-family: "Poppins", sans-serif;
  transition: background 0.3s, color 0.3s;
}

.card-body .view-btn:hover {
  background: #fff;
  color: #000;
}

@media (min-width: 769px) {
  .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 auto;
    width: 100%;
  }

  .card-body h3 {
    line-height: 1.5;
    min-height: 3em;
  }

  .card-body .desc {
    line-height: 1.5;
    min-height: 3em;
  }

  .card-body .price {
    margin-top: auto;
  }
}

/* --- VIEW MORE --- */
.view-more {
  width: 100%;
  text-align: center;
  margin: 0 0 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 1.5s forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.view-more a {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.719);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.5rem;
  transition: color 0.3s;
}

.view-more a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e7e7e7;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.view-more a:hover {
  color: #949493;
}

.view-more a:hover::after {
  transform: scaleX(1);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s, transform 0.3s;
}

.view-more a:hover .btn-arrow {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

/* --- SECTION HEADINGS --- */
.section-title {
  display: block;
  width: fit-content;
  max-width: 100%;
  text-align: center;
  font-size: 3rem;
  font-family: "Poppins", sans-serif;
  margin: 8rem auto 0;
  background-image: linear-gradient(131deg, #f3f3f3, #707070);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(255, 255, 255, 0.14));
  opacity: 0;
  transform: translateY(40px);
  animation: cardUp 0.8s ease-out 0.9s forwards;
}

.section-title ~ .section-title {
  margin-top: 10rem;
}

.section-sub {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(40px);
  animation: cardUp 0.8s ease-out 1.1s forwards;
}

/* ===== Store map ===== */
.map-section {
  position: relative;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 1;
  margin-bottom: 100px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.map-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

.map-wrapper {
  display: grid;
  grid-template-columns: 1fr 260px;
}

#map {
  height: 300px;
  width: 100%;
  background-color: #000;
}

.leaflet-fade-anim .leaflet-tile {
  animation: none;
}

.hours-card {
  background: transparent;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  font-family: "Poppins", sans-serif;
}

.hours-card h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 16px;
}

.hours-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hours-list li span {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.hours-list li.today {
  color: #ffffff;
  border-left: 2px solid rgba(255, 255, 255, 0.6);
  padding-left: 10px;
}

.hours-list li.today span {
  color: #ffffff;
}

.open-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
}

.open-badge.open {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
  animation: badge-glow-green 3s ease-in-out infinite;
}

.open-badge.open::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

@keyframes badge-glow-green {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 255, 255, 0); }
  50%      { box-shadow: 0 0 12px rgba(255, 255, 255, 0.3); }
}

.open-badge.closed {
  background: rgba(255, 70, 70, 0.08);
  color: #ff4646;
  border: 1px solid rgba(255, 70, 70, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  animation: badge-glow-red 3s ease-in-out infinite;
}

.open-badge.closed::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #ff4646;
  border-radius: 50%;
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-glow-red {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 70, 70, 0); }
  50%      { box-shadow: 0 0 12px rgba(255, 70, 70, 0.25); }
}

.directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.25s ease;
  margin-inline: auto;
}

.directions-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateX(2px);
}

.directions-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: none !important;
}

.leaflet-control-attribution {
  display: none !important;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  width: 40px !important;
  height: 40px !important;
  line-height: 38px !important;
  text-align: center !important;
  transition: all 0.25s ease !important;
  margin-bottom: 4px !important;
}

.leaflet-control-zoom-in:hover,
.leaflet-control-zoom-out:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: scale(1.05);
}

.leaflet-control-zoom-in:focus,
.leaflet-control-zoom-out:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5) !important;
  outline-offset: 2px !important;
}

.leaflet-popup-content-wrapper {
  background: #1a1a2e;
  color: #eee;
  border-radius: 8px;
}

.leaflet-popup-tip {
  background: #1a1a2e;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.829); }
  70%  { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.leaflet-marker-icon div {
  animation: pulse 2s infinite;
}

/* ===== Search Overlay ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}

.search-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10001;
}

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

.search-content {
  text-align: center;
  max-width: 640px;
  width: 92%;
  padding: 2rem;
  animation: searchFadeIn 0.4s ease-out;
}

@keyframes searchFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-content h2 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  color: #fff;
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.search-field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 1rem 2.9rem 1rem 2.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box input:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.search-box input:focus {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s ease;
}

.search-box input:focus::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-box-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  display: flex;
  transition: color 0.3s ease;
}

.search-box:focus-within .search-box-icon {
  color: rgba(255, 255, 255, 0.8);
}

.search-clear {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.search-clear:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.search-clear[hidden] {
  display: none;
}

.search-submit {
  flex: 0 0 auto;
  padding: 1rem 1.5rem;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
}

.search-submit:hover {
  background: rgba(255, 255, 255, 0.88);
}

.search-submit:active {
  transform: scale(0.96);
}

.search-results {
  text-align: left;
  max-height: min(52vh, 440px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.search-results::-webkit-scrollbar {
  width: 8px;
}

.search-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.search-results::-webkit-scrollbar-track {
  background: transparent;
}

.search-results.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2.5rem 1.5rem;
  border-style: dashed;
  color: rgba(255, 255, 255, 0.4);
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  text-align: center;
}

.search-results.empty::before {
  content: '';
  width: 34px;
  height: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='0.35' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.7;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.75rem;
  background: none;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-result-item + .search-result-item {
  margin-top: 0.15rem;
}

.search-result-item:hover,
.search-result-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.search-result-item:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: -2px;
}

.search-result-item:active {
  transform: scale(0.99);
}

.search-result-thumb {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.search-result-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.search-result-name {
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-desc {
  color: rgba(255, 255, 255, 0.45);
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-price {
  flex: 0 0 auto;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding-left: 0.5rem;
}

.search-result-name mark {
  background: none;
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.search-empty-title {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* ===== Auth Modal ===== */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
}

.auth-modal.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0s;
}

.auth-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-gradient-mesh {
  position: absolute;
  inset: 0;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #ffffff 0%, transparent 70%);
  opacity: 0.1;
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #7b2ff7 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  animation-delay: -7s;
}

.blob-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #ff4d4d 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.1); }
  50% { transform: translate(-20px, 30px) scale(0.9); }
  75% { transform: translate(-30px, -30px) scale(1.05); }
}

.auth-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 20001;
}

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

.auth-card {
  position: relative;
  flex: 0 0 auto;
  margin: auto;
  width: min(720px, 94vw);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem 2.5rem;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
  animation: authSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  isolation: isolate;
}

@keyframes authSlideIn {
  from { opacity: 0; transform: translateY(50px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-form {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

.auth-form.active {
  display: grid;
  animation: authFadeIn 0.4s ease;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-form h2,
.auth-sub,
.auth-terms,
.auth-form .magnetic-btn {
  grid-column: 1 / -1;
}

.auth-form h2 {
  font-family: "Poppins", sans-serif;
  font-size: 1.85rem;
  color: #fff;
  margin-bottom: 0;
  letter-spacing: -0.02em;
  text-align: center;
}

.auth-sub {
  color: rgba(255, 255, 255, 0.5);
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  margin-top: -0.75rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-field label {
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.auth-field:focus-within label {
  color: #ffffff;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap .input-prefix {
  position: absolute;
  left: 1rem;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.3s ease;
  z-index: 2;
}

.auth-field:focus-within .input-prefix {
  color: #ffffff;
}

.auth-field input {
  width: 100%;
  padding: 1.1rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  outline: none;
  transition: all 0.35s ease;
}

.auth-field input:focus {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(255, 255, 255, 0.05);
}

.auth-field input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  transition: opacity 0.3s ease;
}

.auth-field input:focus::placeholder {
  opacity: 0.75;
}

.auth-field .input-prefix + input[name="handle"] {
  padding-left: 2.5rem;
}

.phone-wrap {
  gap: 0.5rem;
}

.phone-select {
  position: relative;
  flex: 0 0 auto;
}

.phone-code-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 1.1rem 0.75rem 1.1rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.35s ease, background-color 0.35s ease;
}

.phone-code-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.phone-code-btn[aria-expanded="true"] {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.07);
}

.phone-code-value {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1;
}

.country-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex: 0 0 auto;
  display: block;
}

.phone-code-chevron {
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}

.phone-code-btn[aria-expanded="true"] .phone-code-chevron {
  transform: rotate(180deg);
}

.phone-code-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 30;
  width: 250px;
  max-width: 80vw;
  padding: 0.5rem;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.phone-code-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

.phone-code-search {
  padding-bottom: 0.4rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.phone-code-search input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.25s ease;
}

.phone-code-search input:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

.phone-code-search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.phone-code-list {
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

.phone-code-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  background: none;
  border: none;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.phone-code-option:hover,
.phone-code-option.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.country-name {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.country-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-code-option .code {
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

.phone-code-option:hover .code,
.phone-code-option.active .code {
  color: rgba(255, 255, 255, 0.8);
}

.phone-code-empty {
  padding: 0.75rem 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  font-style: italic;
}

.phone-wrap input[type="tel"] {
  flex: 1;
  min-width: 0;
}

.phone-wrap input[type="tel"].invalid {
  border-color: #ff4d4d;
  background-color: rgba(255, 77, 77, 0.06);
}

.phone-wrap input[type="tel"].invalid:focus {
  border-color: #ff4d4d;
  box-shadow:
    0 0 0 4px rgba(255, 77, 77, 0.1),
    0 0 20px rgba(255, 77, 77, 0.05);
}

.handle-check {
  position: absolute;
  right: 48px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
  pointer-events: none;
}

.handle-check.valid {
  opacity: 1;
  transform: scale(1);
}

.handle-check.invalid {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff4d4d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 1;
  transform: scale(1);
}

.handle-hint {
  font-size: 0.75rem;
  font-family: "Poppins", sans-serif;
  color: rgba(255, 255, 255, 0.4);
  min-height: 1.2rem;
  transition: color 0.3s ease;
}

.handle-hint.available {
  color: #ffffff;
}

.handle-hint.taken {
  color: #ff4d4d;
}

.field-hint {
  font-size: 0.75rem;
  font-family: "Poppins", sans-serif;
  color: rgba(255, 255, 255, 0.45);
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.25s ease, margin 0.25s ease;
}

.field-hint.visible {
  max-height: 2rem;
  opacity: 1;
  margin-top: 0.1rem;
}

.field-hint:not(:empty) {
  color: #ff4d4d;
}

.auth-toggle-visibility {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 10px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-toggle-visibility:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.auth-toggle-visibility .eye-closed {
  display: none;
}

.auth-toggle-visibility.visible .eye-open {
  display: none;
}

.auth-toggle-visibility.visible .eye-closed {
  display: block;
}

.password-strength {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.strength-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  background: #ff4d4d;
  border-radius: 2px;
  transition: width 0.1s ease-out, background 0.1s ease;
  box-shadow: 0 0 10px currentColor;
}

.strength-text {
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.auth-terms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  line-height: 1.5;
}

.auth-terms input {
  width: 18px;
  height: 18px;
  margin-top: 0;
  accent-color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  position: relative;
}

.auth-terms input:checked {
  background: #ffffff;
  border-color: #ffffff;
}

.auth-terms input:checked::after {
  content: '✔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  line-height: 1;
  color: #000000;
}

.auth-terms-label {
  cursor: pointer;
  display: inline;
  user-select: none;
}

.auth-terms a {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.auth-terms a:hover {
  color: #ffffff;
}

.auth-switch {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 0.25rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.auth-switch-btn {
  background: none;
  border: none;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth-switch-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

.auth-forgot-field {
  grid-column: 1 / -1;
  text-align: right;
  margin-top: 0.25rem;
}

.auth-forgot {
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.auth-forgot:hover {
  color: #fff;
}

.magnetic-btn {
  position: relative;
  justify-self: center;
  margin-top: 1.5rem;
  padding: 10px 2rem;
  background: transparent;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid #fff;
  border-radius: 20px;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}

.magnetic-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
}

.magnetic-btn:active {
  transform: scale(0.98);
}

.magnetic-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.magnetic-btn:disabled:hover {
  background: transparent;
  border-color: #fff;
}

.auth-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
  animation: successReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes successReveal {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.success-check-wrap {
  position: relative;
  margin-top: 1rem;
}

.success-check {
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.6));
}

.success-circle {
  stroke: #ffffff;
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: circleDraw 0.6s ease-out 0.2s forwards;
}

.success-check-path {
  stroke: #ffffff;
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
  animation: checkDraw 0.4s ease-out 0.6s forwards;
}

@keyframes circleDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

.auth-success h2 {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  color: #fff;
  margin-top: 0.5rem;
  animation: textPop 0.5s ease-out 0.8s both;
}

.auth-success p {
  color: rgba(255, 255, 255, 0.6);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  animation: textPop 0.5s ease-out 1s both;
}

@keyframes textPop {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-success .magnetic-btn {
  animation: textPop 0.5s ease-out 1.2s both;
}

/* ===== MEDIA QUERIES ===== */

/* --- Mobile: ≤768px --- */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    min-height: 4rem;
  }

  .nav-logo {
    gap: 0.45rem;
  }

  .logo-word {
    font-size: 1.4rem;
    letter-spacing: 0.12em;
  }

  .logo-mark svg {
    width: 22px;
    height: 22px;
  }

  /* Hamburger */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    z-index: 1002;
    padding: 8px;
  }

  .hamburger span {
    width: 28px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-14px) scaleX(0);
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  html.menu-open,
  body.menu-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .menu-logo {
    display: flex;
    position: absolute;
    top: 1.3125rem;
    left: 2rem;
    z-index: 1;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1001;
    background: #0a0a0a;
    clip-path: circle(0% at calc(100% - 2.5rem) 2rem);
    visibility: hidden;
    transition:
      clip-path 0.8s cubic-bezier(0.65, 0, 0.35, 1),
      visibility 0s 0.8s;
    overflow: hidden;
  }

  .nav-menu.active {
    clip-path: circle(150% at calc(100% - 2.5rem) 2rem);
    visibility: visible;
    transition:
      clip-path 0.8s cubic-bezier(0.65, 0, 0.35, 1),
      visibility 0s 0s;
  }

  .nav-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 20% 80%, rgba(99, 60, 255, 0.12) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 20%, rgba(255, 60, 120, 0.08) 0%, transparent 50%);
    animation: bgPulse 6s ease-in-out infinite alternate;
    pointer-events: none;
  }

  @keyframes bgPulse {
    0%   { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1;   transform: scale(1.05); }
  }

  .nav-item {
    opacity: 0;
    transition:
      opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-item:nth-child(odd)  { transform: translateX(-60px) rotate(-2deg); }
  .nav-item:nth-child(even) { transform: translateX(60px)  rotate(2deg); }

  .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.3s; }
  .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.42s; }
  .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.54s; }
  .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.66s; }
  .nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.78s; }
  .nav-menu.active .nav-item:nth-child(6) { transition-delay: 0.9s; }

  .nav-menu.active .nav-item {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }

  .nav-link {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    color: #fff;
    position: relative;
  }

  .nav-menu .nav-actions {
    width: min(320px, 78vw);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    justify-content: center;
    gap: 1.5rem;
  }

  .nav-menu .nav-icon-btn {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-menu .nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.14);
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  /* Hero */
  .hero {
    min-height: 100svh;
    height: auto;
    margin-top: -4rem;
    padding-top: calc(4rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
  }

  .hero-text {
    position: relative;
    inset: auto;
    top: auto;
    z-index: 3;
    order: 1;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    margin: clamp(3.5rem, 6svh, 4.25rem) 0 0;
    padding: 0 1.25rem;
    font-size: clamp(2.5rem, min(17vw, 15svh), 6rem);
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    opacity: 1;
    text-shadow:
      0 0 0.18em rgba(255, 255, 255, 0.3),
      0 0 0.55em rgba(255, 255, 255, 0.14);
    animation:
      heroFadeDown 1s ease-out both,
      heroLighten 4.5s ease-in-out 1s infinite;
  }

  .hero-image {
    position: relative;
    z-index: 1;
    order: 2;
    flex: 1 1 auto;
    width: min(82%, 25rem);
    min-height: 0;
    margin-top: clamp(0.35rem, 1.5svh, 1rem);
    margin-bottom: 0.25rem;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-image::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: min(80vw, 22rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.09) 0%,
      rgba(255, 255, 255, 0.035) 45%,
      transparent 72%
    );
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  .hero-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(48svh, 52vh);
    min-height: 0;
    object-fit: contain;
    object-position: center bottom;
  }

  .btn-order {
    position: relative;
    z-index: 3;
    order: 3;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(20rem, 100% - 2.5rem);
    min-height: 3rem;
    margin: clamp(0.5rem, 1.75svh, 1.25rem) auto 0;
    padding: 0.85rem 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    border-radius: 999px;
  }

  .brand-strip {
    margin-top: 6.75rem;
  }

  /* Products */
  .products {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
    padding: 3rem 1rem 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .card {
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
    scroll-snap-align: center;
  }

  /* Map */
  .map-wrapper {
    grid-template-columns: 1fr;
  }

  #map {
    height: 250px;
  }

  .hours-card {
    padding: 24px 20px;
  }

  /* Search */
  .search-content {
    width: 100%;
    padding: 1.25rem;
  }

  .search-box {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .search-field {
    flex: 1 0 100%;
  }

  .search-submit {
    width: 100%;
    padding: 0.85rem 1.5rem;
  }

  .search-results {
    max-height: 55vh;
  }

  .search-result-desc {
    display: none;
  }

  /* Auth */
  .auth-card {
    width: min(440px, 94vw);
    padding: 1.75rem 1.5rem;
  }

  .auth-form.active {
    grid-template-columns: 1fr;
  }
}

/* --- Mobile: ≤480px --- */
@media (max-width: 480px) {
  .logo-word {
    font-size: 1.4rem;
    letter-spacing: 0.1em;
  }

  .logo-mark svg {
    width: 20px;
    height: 20px;
  }

  .nav-logo {
    gap: 0.4rem;
  }

  .logo-word {
    font-size: 1.4rem;
    letter-spacing: 0.08em;
  }

  .logo-mark svg {
    width: 18px;
    height: 18px;
  }

  .hero-text {
    padding: 0 0.75rem;
  }

  .btn-order {
    width: min(18rem, 100% - 2rem);
    min-height: 2.875rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .auth-modal {
    padding: 1rem;
  }

  .auth-card {
    padding: 1.75rem 1.25rem;
    width: 94vw;
    border-radius: 20px;
  }

  .magnetic-btn {
    padding: 0.85rem 2rem;
    font-size: 0.85rem;
  }
}

/* --- Mobile: ≤360px --- */
@media (max-width: 360px) {
  .nav-logo {
    gap: 0.4rem;
  }

  .logo-word {
    font-size: 1.4rem;
    letter-spacing: 0.08em;
  }

  .logo-mark svg {
    width: 18px;
    height: 18px;
  }
}

/* --- Desktop: ≥769px --- */
@media (min-width: 769px) {
  .hero {
    justify-content: flex-start;
    min-height: auto;
    padding-top: 9vh;
    padding-bottom: 0;
  }

  .hero-image {
    margin-top: calc(1.02 * clamp(4.5rem, 15vw, 30rem) + 3.5rem);
  }

  .brand-strip {
    margin-top: 8rem;
  }
}

/* --- Portrait tablets (iPad 768–1024) --- */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
  .products {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
    padding: 3rem 1rem 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .card {
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
    scroll-snap-align: center;
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .nav-menu,
  .nav-item,
  .nav-menu::before,
  .logo-mark,
  .logo-word,
  .hero-img,
  .hero-text,
  .brand-track,
  .brand-strip,
  .map-section,
  .mesh-blob,
  .blob-1,
  .blob-2,
  .blob-3,
  .auth-form.active,
  .success-circle,
  .success-check-path,
  .auth-success,
  .auth-success h2,
  .auth-success p,
  .auth-success .magnetic-btn,
  .btn-order::after {
    transition: none !important;
    animation: none !important;
  }

  .nav-logo:hover .logo-mark {
    transform: none;
  }

  .hero-img {
    animation: slideUp 1.2s ease-out both;
  }

  .hero-text {
    animation: none;
    text-shadow:
      0 0 0.18em rgba(255, 255, 255, 0.3),
      0 0 0.55em rgba(255, 255, 255, 0.14);
  }

  .brand-track {
    animation: none;
  }

  .brand-strip {
    overflow-x: auto;
  }

  .map-section {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .auth-form.active {
    animation: none;
  }

  .success-circle,
  .success-check-path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .auth-success,
  .auth-success h2,
  .auth-success p,
  .auth-success .magnetic-btn {
    animation: none;
  }

  .btn-order::after {
    animation: none;
    opacity: 0;
  }
}