/* --------------------------------------------------------------
   Import the theme token set & Google Fonts
   - Plus Jakarta Sans : body / UI    (modern geometric humanist)
   - Space Grotesk     : display      (technical-modern, fluid)
   - JetBrains Mono    : micro-accent (digits, badges, prices)
   -------------------------------------------------------------- */
@import url('themes.css');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&family=Space+Grotesk:wght@300..700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------
   Base page styling — Plus Jakarta Sans (UI) + Space Grotesk (display)
   -------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.012em;
  font-feature-settings: "ss01", "cv11", "ss02";
  font-optical-sizing: auto;
}

/* html holds the solid theme color so the document chrome (scrollbars,
   over-scroll, etc.) always reads correctly even if a child element
   makes its own background transparent. */
html {
  background: var(--bg-body);
  transition: background-color 0.35s var(--ease-liquid);
}

/* body is transparent so the mesh gradient (body::before) and noise
   overlay (body::after) show through, giving the page a sense of life
   and depth without sacrificing legibility. */
body {
  background: transparent;
}

button,
input,
textarea,
select {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "cv11";
}

h1,
h2,
h3,
h4,
h5,
h6,
.heading,
.modal-title,
.toast,
[class*="font-heading"] {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--text-display);
  transition: font-weight 0.35s var(--ease-liquid), letter-spacing 0.35s var(--ease-liquid);
}

/* On hover, headings gain a touch of weight — feels alive */
h1.heading:hover,
h2.heading:hover,
h3.heading:hover,
.heading:hover {
  font-weight: 700;
  letter-spacing: -0.045em;
}

/* Numeric micro-accent — for prices, OTP digits, badges */
.font-mono,
code,
kbd,
.otp-input,
.stat-card .stat-value,
[data-numeric] {
  font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
  font-feature-settings: "tnum", "ss01";
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------
   Fullscreen background blobs layer
   -------------------------------------------------------------- */
#bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

#bg-blobs .blob {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(72px) saturate(120%);
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  opacity: 0.95;
}

#bg-blobs .b1 {
  left: -12%;
  top: -8%;
  background: radial-gradient(circle at 30% 30%, var(--orb-1), transparent 40%);
  animation: blob-anim-1 9s infinite alternate cubic-bezier(.42, 0, .58, 1);
  opacity: 0.32;
  mix-blend-mode: screen;
}

.dark #bg-blobs .b1 {
  opacity: 0.42;
}

#bg-blobs .b2 {
  right: -10%;
  top: 10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 20% 30%, var(--orb-2), transparent 45%);
  animation: blob-anim-2 11s infinite alternate cubic-bezier(.42, 0, .58, 1);
  opacity: 0.30;
  mix-blend-mode: screen;
}

.dark #bg-blobs .b2 {
  opacity: 0.40;
}

#bg-blobs .b3 {
  left: 20%;
  bottom: -12%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at 40% 50%, var(--orb-3), transparent 40%);
  animation: blob-anim-3 14s infinite alternate cubic-bezier(.42, 0, .58, 1);
  opacity: 0.28;
  mix-blend-mode: screen;
}

.dark #bg-blobs .b3 {
  opacity: 0.38;
}

#bg-blobs .b4 {
  right: 18%;
  bottom: 8%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at 50% 50%, var(--orb-4), transparent 45%);
  animation: blob-anim-4 13s infinite alternate cubic-bezier(.42, 0, .58, 1);
  opacity: 0.26;
  mix-blend-mode: screen;
}

.dark #bg-blobs .b4 {
  opacity: 0.36;
}

@keyframes blob-anim-1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(18%, -14%, 0) scale(1.18);
  }
}

@keyframes blob-anim-2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(-16%, 18%, 0) scale(1.14);
  }
}

@keyframes blob-anim-3 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(10%, -16%, 0) scale(1.10);
  }
}

@keyframes blob-anim-4 {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate3d(-12%, 8%, 0) scale(1.12) rotate(10deg);
  }
  100% {
    transform: translate3d(14%, -10%, 0) scale(1.06) rotate(-12deg);
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  #bg-blobs .blob {
    animation: none;
    filter: blur(48px);
  }
}

/* --------------------------------------------------------------
   Surface elements – cards, nav bars, bottom navigation
   Glass-like translucency + soft gradient edge highlight so cards
   look layered on top of the new mesh background.
   -------------------------------------------------------------- */
.surface {
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
  border-radius: 1rem;
  position: relative;
  isolation: isolate;
  transition: border-color 0.35s var(--ease-liquid),
              box-shadow 0.45s var(--ease-liquid),
              background-color 0.35s var(--ease-liquid);
}

/* Top-edge highlight — pseudo adds a subtle inner-light line */
.surface::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--hero-bg) 28%, transparent) 0%,
    color-mix(in srgb, var(--hero-bg) 0%, transparent) 30%,
    transparent 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  opacity: 0.85;
}

/* Light mode – soft ambient shadow; Dark mode – soft glow */
:not(.dark) .surface {
  box-shadow: 0 6px 18px -8px rgba(60, 30, 90, 0.10),
              0 2px 6px -1px rgba(60, 30, 90, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dark .surface {
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.55),
              inset 0 1px 0 rgba(167, 139, 250, 0.08);
}

/* Make sure the top-edge highlight doesn't leak into the dark theme too bright */
.dark .surface::before {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent-tertiary) 30%, transparent) 0%,
    transparent 30%);
}

/* Ensure dropdowns and popups are not clipped by ancestors */
#desktop-logged-in,
#desktop-auth-section,
nav {
  overflow: visible;
}

/* --------------------------------------------------------------
   Hero widget
   -------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--hero-bg) 0%, var(--accent-secondary) 100%);
  color: #fff;
}

/* --------------------------------------------------------------
   Mobile App Layout – Home page fits exactly one screen
   -------------------------------------------------------------- */
@media (max-width: 768px) {

  /* Lock ONLY the home page to one screen — sub-pages scroll normally */
  body.mobile-app-layout {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    height: 100vh;
    overflow: hidden;
    padding-bottom: 0;
  }

  /* Top nav – compact */
  body.mobile-app-layout>nav:first-of-type {
    flex-shrink: 0;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  /* Main content – starts just below nav, gallery pins to bottom */
  body.mobile-app-layout .app-main-content {
    flex: 1 1 0% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
    padding: 0.4rem 1rem 0 !important;
    gap: 0.75rem !important;
  }

  /* Hero header – compact */
  body.mobile-app-layout header {
    flex-shrink: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    gap: 0.15rem !important;
    text-align: center !important;
  }

  body.mobile-app-layout header h1 {
    font-size: 1.6rem !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
  }

  body.mobile-app-layout header p {
    font-size: 0.75rem !important;
    line-height: 1.45 !important;
    margin: 0 !important;
    color: var(--text-primary) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* Service grid – compact */
  body.mobile-app-layout #services-section {
    flex-shrink: 0;
  }

  body.mobile-app-layout #services-section>div:first-child {
    display: none !important;
  }

  /* ── Gallery strip – pinned just above the fixed bottom nav ── */
  body.mobile-app-layout #gallery-section {
    flex-shrink: 0;
    margin: 0 !important;
    /* keep enough clearance for the fixed bottom nav but avoid empty space */
    padding-bottom: 0.5rem;
    /* reset previous negative nudge so there's no gap below the gallery */
    margin-top: 0 !important;
    background: var(--bg-body);
  }

  /* Show a small label above the strip */
  body.mobile-app-layout #gallery-section>div:first-child {
    display: flex !important;
    margin-bottom: 0.4rem !important;
    padding: 0 0.9rem !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
  }

  body.mobile-app-layout #gallery-section>div:first-child h2 {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    color: var(--text-primary) !important;
  }

  body.mobile-app-layout #gallery-section>div:first-child p {
    display: none !important;
  }

  body.mobile-app-layout .marquee-container {
    height: 220px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.mobile-app-layout .marquee-track {
    gap: 0.5rem !important;
    padding: 0 0.9rem !important;
  }

  body.mobile-app-layout .marquee-item {
    width: 300px !important;
    height: 150px !important;
    border-radius: 0.65rem !important;
  }

  body.mobile-app-layout .marquee-img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
  }

  body.mobile-app-layout .marquee-label {
    padding: 1.5rem 0.5rem 0.35rem !important;
    font-size: 0.6rem !important;
    letter-spacing: 0 !important;
  }

  /* Service card grid – 3 columns, tight */
  body.mobile-app-layout .service-card {
    border-radius: 0.875rem !important;
    padding: 1rem 0.6rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
  }

  body.mobile-app-layout .service-icon-wrapper {
    padding: 0.8rem !important;
    border-radius: 1rem !important;
    margin-bottom: 0 !important;
  }

  body.mobile-app-layout .service-icon-wrapper i,
  body.mobile-app-layout .service-icon-wrapper svg {
    width: 32px !important;
    height: 32px !important;
  }

  body.mobile-app-layout .service-card span {
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-align: center !important;
    line-height: 1.2 !important;
  }

  body.mobile-app-layout .service-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  body.mobile-app-layout .service-card:active {
    transform: scale(0.94) !important;
  }
}

/* --------------------------------------------------------------
   Mobile account menu styling
   -------------------------------------------------------------- */
#mobile-account-menu {
  display: none;
  z-index: 60;
}

#mobile-account-menu.visible {
  display: block;
}

#mobile-account-menu .theme-toggle {
  width: 100%;
  justify-content: flex-start;
}

@media (max-width: 440px) {
  #mobile-account-menu {
    right: 0.5rem;
    left: auto;
    transform: none;
  }
}

/* --------------------------------------------------------------
   Badge / primary action
   -------------------------------------------------------------- */
.badge-new {
  background: var(--badge-bg);
  color: #fff;
}

/* --------------------------------------------------------------
   Bottom navigation bar
   -------------------------------------------------------------- */
.bottom-nav {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

/* --------------------------------------------------------------
   Theme toggle button & icon animation
   -------------------------------------------------------------- */
.theme-toggle {
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  position: relative;
  cursor: pointer;
}

.theme-toggle:hover {
  transform: scale(1.08) rotate(12deg);
}

.theme-toggle:active {
  transform: scale(.92);
}

.theme-toggle i {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
  transform-origin: center;
}

.dark .theme-icon {
  transform: rotate(180deg);
}

/* --------------------------------------------------------------
   Scrollbar hidden for carousel
   -------------------------------------------------------------- */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* --------------------------------------------------------------
   Support Modal & Quick View Modal
   -------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.4) 100%);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid color-mix(in srgb, var(--border-color) 60%, transparent);
  border-radius: 1.5rem;
  box-shadow:
    0 30px 70px -20px rgba(60, 30, 90, 0.45),
    0 12px 25px -8px rgba(60, 30, 90, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-primary);
  max-height: min(90vh, 800px);
  overflow: auto;
}

.dark .modal-content {
  box-shadow:
    0 30px 70px -20px rgba(0, 0, 0, 0.75),
    0 0 0 1px color-mix(in srgb, var(--accent-tertiary) 18%, transparent),
    inset 0 1px 0 rgba(167, 139, 250, 0.12);
}

.modal-content:not([class*=" max-w-"]):not([class^="max-w-"]) {
  max-width: 90%;
}

.modal-content:not([class*=" w-"]):not([class^="w-"]) {
  width: 500px;
}

.modal-content:not([class*=" p-"]):not([class^="p-"]) {
  padding: 2rem;
}

@media (max-width: 640px) {
  .modal-content {
    width: 92% !important;
    max-width: 92% !important;
    padding: 1.25rem !important;
  }
}

#details-modal .modal-content {
  display: flex !important;
  flex-direction: column !important;
  height: 90vh !important;
  max-height: 90vh !important;
  width: 95% !important;
  max-width: 48rem !important;
  padding: 0 !important;
  overflow: hidden !important;
}

@media (min-width: 768px) {
  #details-modal .modal-content {
    flex-direction: row !important;
    height: 600px !important;
    max-height: 600px !important;
  }
}

#details-modal .modal-content>div:first-child {
  height: 250px !important;
  width: 100% !important;
  flex-shrink: 0 !important;
}

#details-modal .modal-content>div:last-child {
  height: auto !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

@media (min-width: 768px) {
  #details-modal .modal-content>div:first-child {
    height: 100% !important;
    width: 50% !important;
  }

  #details-modal .modal-content>div:last-child {
    height: 100% !important;
    width: 50% !important;
  }
}

.modal-overlay.active .modal-content {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 9999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background-color: var(--border-color);
  color: var(--text-primary);
}

.modal-body {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-info-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--badge-bg);
}

.modal-info-text {
  flex: 1;
}

/* --------------------------------------------------------------
   Modern custom buttons — gradient, glow, and tactile spring
   -------------------------------------------------------------- */
.btn-primary {
  background: linear-gradient(135deg, var(--hero-bg) 0%, var(--accent-secondary) 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #fff;
  font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--hero-bg) 50%, transparent);
  border-radius: 0.85rem;
  letter-spacing: -0.005em;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 6px 16px -4px color-mix(in srgb, var(--hero-bg) 45%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.35s var(--ease-spring),
              box-shadow 0.4s var(--ease-liquid),
              background-position 0.6s var(--ease-liquid),
              filter 0.25s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.28), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-liquid);
  pointer-events: none;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background-position: 100% 50%;
  filter: saturate(1.1) brightness(1.06);
  box-shadow:
    0 14px 28px -8px color-mix(in srgb, var(--hero-bg) 55%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(1px) scale(0.985);
  transition-duration: 0.1s;
}

.btn-primary:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--hero-bg) 60%, white);
  outline-offset: 3px;
}

.btn-secondary {
  background: color-mix(in srgb, var(--bg-card) 80%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  border-radius: 0.85rem;
  letter-spacing: -0.005em;
  transition: all 0.25s var(--ease-liquid);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-secondary:hover {
  background: color-mix(in srgb, var(--bg-muted) 70%, transparent);
  border-color: color-mix(in srgb, var(--hero-bg) 30%, var(--border-color));
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--hero-bg) 25%, transparent);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.985);
  transition-duration: 0.1s;
}

/* --------------------------------------------------------------
   Service card spring animation
   -------------------------------------------------------------- */
.service-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.3s ease;
  cursor: pointer;
  position: relative;
  isolation: isolate;
}

/* Sweeping highlight on hover — feels "alive" without being noisy */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg,
    transparent 30%,
    color-mix(in srgb, var(--hero-bg) 12%, transparent) 50%,
    transparent 70%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-liquid);
  pointer-events: none;
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: color-mix(in srgb, var(--hero-bg) 60%, var(--border-color));
  box-shadow: 0 18px 35px -12px color-mix(in srgb, var(--hero-bg) 35%, transparent);
}

.service-card:hover::after {
  opacity: 1;
}

.dark .service-card:hover {
  box-shadow: 0 18px 35px -12px rgba(0, 0, 0, 0.6),
              0 0 0 1px color-mix(in srgb, var(--accent-tertiary) 20%, transparent);
}

/* Service Card hover micro-animations */
.service-icon-wrapper {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
}

.service-card:hover .service-icon-wrapper {
  transform: scale(1.12) rotate(6deg);
}

.service-card:active .service-icon-wrapper {
  transform: scale(0.95);
}

/* --------------------------------------------------------------
   Marquee / gallery (desktop only)
   -------------------------------------------------------------- */
.marquee-container {
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 1.25rem;
  animation: marquee 28s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  position: relative;
  width: 260px;
  height: 180px;
  border-radius: 1rem;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.dark .marquee-item {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.marquee-item:hover {
  transform: scale(1.03);
}

.marquee-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.marquee-item:hover .marquee-img {
  transform: scale(1.08);
}

.marquee-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
  padding: 2.5rem 1rem 0.85rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.marquee-label::after {
  content: '→';
  font-size: 1rem;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.marquee-item:hover .marquee-label::after {
  opacity: 1;
  transform: translateX(0);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 0.625rem));
  }
}

/* --------------------------------------------------------------
   Interactive Toast Notification
   -------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.3s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
}

.toast.active {
  transform: translateY(0);
  opacity: 1;
}

.dark .toast {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------
   View-Transition fallback
   -------------------------------------------------------------- */
html.no-view-transitions body {
  transition: background-color .2s ease, color .2s ease;
}

/* Description list styles */
.description-list {
  margin: 0.5rem 0 0 1.2rem;
  padding-left: 0;
}
.description-list li {
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

/* Auth gate modal polish */
#auth-gate-modal .modal-content {
  border: 1.5px solid color-mix(in srgb, var(--hero-bg) 30%, var(--border-color));
  background: var(--bg-card);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.3);
}

.dark #auth-gate-modal .modal-content {
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

#auth-gate-modal .modal-content {
  animation: auth-gate-in 0.4s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes auth-gate-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ============================================================
   BOLDER / LOUDER — global polish
   - Animated gradient headings
   - Animated underline accents
   - Spring-press buttons
   - Faster mesh drift
   - Stagger-fade service cards
   - Pop-in avatars
   ============================================================ */

/* Animated gradient text — applied to key headings */
.grad-text {
  background: var(--gradient-accent);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: grad-shift 6s linear infinite;
  display: inline-block;
}

.grad-text:hover {
  animation-duration: 3s;
}

@keyframes grad-shift {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

/* Animated underline accent (inline span) */
.grad-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.grad-underline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-accent);
  background-size: 200% 100%;
  animation: grad-shift 4s linear infinite;
  transform-origin: left;
}

/* Spring-press on the .btn-primary / .btn-secondary stack */
.btn-primary,
.btn-secondary,
.btn-spring {
  transition:
    transform 0.35s cubic-bezier(.34, 1.56, .64, 1),
    box-shadow 0.3s ease,
    filter 0.2s ease,
    background-color 0.2s ease;
}

.btn-primary:active {
  transform: scale(0.95);
}

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

/* Spring icon nudge inside the sign-up button */
#btn-signup-desktop i {
  transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1);
}

#btn-signup-desktop:hover i {
  transform: translate(2px, -2px) rotate(8deg);
}

/* Faster mesh drift */
#bg-blobs .b1 {
  animation-duration: 12s;
}

#bg-blobs .b2 {
  animation-duration: 14s;
}

#bg-blobs .b3 {
  animation-duration: 18s;
}

@keyframes blob-anim-1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(14%, -12%, 0) scale(1.10);
  }
}

@keyframes blob-anim-2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(-12%, 14%, 0) scale(1.08);
  }
}

@keyframes blob-anim-3 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(8%, -14%, 0) scale(1.06);
  }
}

/* Stagger-fade service cards */
.service-card {
  animation: card-pop 0.55s cubic-bezier(.34, 1.56, .64, 1) both;
}

.service-card:nth-child(1) {
  animation-delay: 0.05s;
}

.service-card:nth-child(2) {
  animation-delay: 0.12s;
}

.service-card:nth-child(3) {
  animation-delay: 0.19s;
}

.service-card:nth-child(4) {
  animation-delay: 0.26s;
}

.service-card:nth-child(5) {
  animation-delay: 0.33s;
}

.service-card:nth-child(6) {
  animation-delay: 0.40s;
}

@keyframes card-pop {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Icon spin/wiggle on service-card hover (Tailwind group variant) */
.service-card .service-icon-wrapper {
  transition: transform 0.4s cubic-bezier(.34, 1.56, .64, 1), background-color 0.2s ease;
}

.service-card:hover .service-icon-wrapper {
  transform: scale(1.12) rotate(8deg);
}

/* Avatar in navbar (logged-in state) */
.avatar-pop {
  transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1);
}

.avatar-pop:hover {
  transform: scale(1.10) rotate(-4deg);
}

#nav-avatar-button:hover #user-avatar-desktop {
  transform: scale(1.10) rotate(-4deg);
}

/* Profile dropdown card lift
   IMPORTANT: position, z-index, transform-origin must stay intact
   so the dropdown anchors top-right of the avatar and isn't clipped. */
#nav-profile-menu {
  position: absolute;
  z-index: 99999;
  pointer-events: auto;
  animation: profile-menu-in 0.28s cubic-bezier(.34, 1.56, .64, 1);
  transform-origin: top right;
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
  box-shadow:
    0 24px 50px -16px rgba(60, 30, 90, 0.35),
    0 8px 18px -8px rgba(60, 30, 90, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.dark #nav-profile-menu {
  box-shadow:
    0 24px 50px -16px rgba(0, 0, 0, 0.7),
    0 0 0 1px color-mix(in srgb, var(--accent-tertiary) 14%, transparent);
}

@keyframes profile-menu-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-6px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Bigger, louder nav-avatar button */
#nav-avatar-button {
  position: relative;
}

#nav-avatar-button::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  background: var(--gradient-accent);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

#nav-avatar-button:hover::after {
  opacity: 0.35;
}

/* Gradient border for the bell notification dot */
#desktop-logged-in>button .animate-pulse {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hero-bg) 30%, transparent);
}

/* Service card lift on tap */
@media (prefers-reduced-motion: no-preference) {
  .service-card:active .service-icon-wrapper {
    transform: scale(0.95);
  }
}

/* ============================================================
   LIQUID ANIMATION KIT
   - .liquid-card: water-on-surface lift on hover
   - .liquid-btn:  radial wash on press (mx/my driven from JS)
   - .enter:       staggered child fade-in (8 children)
   - .aurora:      morphing background blob
   - .liquid-shimmer: text gradient sweep
   - .water-line:  animated bottom-border (used on auth-side)
   ============================================================ */

@keyframes liquid-rise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes liquid-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

@keyframes liquid-shimmer {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

@keyframes liquid-aurora {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }

  33% {
    transform: translate3d(8%, -4%, 0) scale(1.1) rotate(8deg);
  }

  66% {
    transform: translate3d(-4%, 6%, 0) scale(0.96) rotate(-6deg);
  }

  100% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
}

@keyframes liquid-burst {
  0% {
    transform: scale(0.4);
    opacity: 0.7;
  }

  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@keyframes liquid-waterline {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

@keyframes liquid-weight-pulse {
  0% {
    font-variation-settings: "wght" 700;
  }

  40% {
    font-variation-settings: "wght" 900;
  }

  100% {
    font-variation-settings: "wght" 800;
  }
}

@keyframes liquid-bounce {

  0%,
  100% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.25);
  }

  70% {
    transform: scale(0.92);
  }
}

@keyframes liquid-tab {
  0% {
    border-radius: 9999px;
  }

  50% {
    border-radius: 22px 60px 22px 60px / 60px 22px 60px 22px;
  }

  100% {
    border-radius: 9999px;
  }
}

@keyframes liquid-wave {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- Cards (any .surface becomes water-on-surface) --- */
.liquid-card {
  transition:
    transform 0.5s var(--ease-liquid),
    box-shadow 0.5s var(--ease-liquid),
    border-color 0.3s ease;
  will-change: transform;
}

.liquid-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elev-2);
}

.liquid-card:active {
  transform: translateY(-1px) scale(0.998);
  transition-duration: 0.12s;
}

.dark .liquid-card:hover {
  box-shadow: var(--shadow-elev-3);
}

/* --- Buttons (radial wash on press) --- */
.liquid-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.liquid-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
      rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 60%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-liquid);
  pointer-events: none;
  z-index: 0;
}

.liquid-btn:active::after {
  opacity: 1;
  transition: none;
}

.liquid-btn>* {
  position: relative;
  z-index: 1;
}

/* --- Staggered page enter --- */
.enter>* {
  animation: liquid-fade 0.55s var(--ease-liquid) both;
}

.enter>*:nth-child(1) {
  animation-delay: 0.04s;
}

.enter>*:nth-child(2) {
  animation-delay: 0.08s;
}

.enter>*:nth-child(3) {
  animation-delay: 0.12s;
}

.enter>*:nth-child(4) {
  animation-delay: 0.16s;
}

.enter>*:nth-child(5) {
  animation-delay: 0.20s;
}

.enter>*:nth-child(6) {
  animation-delay: 0.24s;
}

.enter>*:nth-child(7) {
  animation-delay: 0.28s;
}

.enter>*:nth-child(8) {
  animation-delay: 0.32s;
}

.enter>*:nth-child(9) {
  animation-delay: 0.36s;
}

.enter>*:nth-child(10) {
  animation-delay: 0.40s;
}

.enter>*:nth-child(11) {
  animation-delay: 0.44s;
}

.enter>*:nth-child(12) {
  animation-delay: 0.48s;
}

.enter .heading {
  animation: liquid-fade 0.6s var(--ease-liquid) both,
    liquid-weight-pulse 0.9s var(--ease-liquid) both;
}

/* --- Aurora (used by login page) --- */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px) saturate(140%);
  will-change: transform;
  pointer-events: none;
  mix-blend-mode: screen;
}

.dark .aurora {
  mix-blend-mode: lighten;
}

.aurora.a1 {
  animation: liquid-aurora 12s ease-in-out infinite;
}

.aurora.a2 {
  animation: liquid-aurora 14s ease-in-out infinite reverse;
}

.aurora.a3 {
  animation: liquid-aurora 10s ease-in-out infinite;
}

/* --- Tilt (data-tilt) --- */
[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.3s var(--ease-liquid);
}

/* --- Water line (animated bottom border) --- */
.water-line {
  position: relative;
  overflow: hidden;
}

.water-line::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--hero-bg) 30%, var(--accent-secondary) 50%, var(--badge-bg) 70%, transparent 100%);
  background-size: 200% 100%;
  animation: liquid-waterline 4s linear infinite;
}

/* --- Badge bounce (when unread count changes) --- */
.liquid-bounce {
  animation: liquid-bounce 0.45s var(--ease-spring) both;
}

/* --- Reduced motion: keep transitions but kill liquid/aurora --- */
@media (prefers-reduced-motion: reduce) {

  .aurora,
  #bg-blobs .blob,
  .grad-text,
  .water-line::after,
  .enter>*,
  .enter .heading,
  .liquid-bounce {
    animation: none !important;
  }

  .liquid-card,
  .liquid-btn {
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .liquid-card:hover {
    transform: none;
  }

  [data-tilt] {
    transform: none !important;
  }
}

/* ============================================================
   NOTIFICATION BELL + SLIDE-IN PANEL
   ============================================================ */

#bell-button {
  position: relative;
  padding: 0.5rem;
  border-radius: 9999px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  transition: border-color 0.3s var(--ease-liquid), transform 0.2s var(--ease-liquid);
}

#bell-button:hover {
  border-color: var(--hero-bg);
  transform: scale(1.05);
}

#bell-button:active {
  transform: scale(0.95);
}

#bell-button .bell-icon {
  color: var(--text-muted);
}

#bell-button:hover .bell-icon {
  color: var(--hero-bg);
}

#bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--hero-bg);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  border-radius: 9999px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--bg-card);
  letter-spacing: 0;
}

#bell-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: var(--hero-bg);
  border-radius: 9999px;
  box-shadow: 0 0 0 2px var(--bg-card);
}

/* Backdrop — keep z-index/opacity/transform behaviour intact */
#notif-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-liquid);
}

#notif-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* Slide-in panel — z-index/transform preserved to avoid animation glitches */
#notifications-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  height: 100vh;
  width: 100%;
  max-width: 420px;
  z-index: 95;
  background: color-mix(in srgb, var(--bg-card) 90%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-left: 1px solid color-mix(in srgb, var(--border-color) 60%, transparent);
  box-shadow: -20px 0 50px -10px rgba(60, 30, 90, 0.25);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-liquid);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#notifications-panel.open {
  transform: translateX(0);
}

.notif-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.notif-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
  color: var(--text-display);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notif-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem 0;
  overflow-x: auto;
  flex-shrink: 0;
}

.notif-tab {
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s var(--ease-liquid), color 0.25s var(--ease-liquid);
}
.notif-tab:hover {
  color: var(--text-primary);
  background: var(--bg-muted);
}

.notif-tab.is-active {
  background: color-mix(in srgb, var(--hero-bg) 14%, transparent);
  color: var(--text-primary);
  border-color: color-mix(in srgb, var(--hero-bg) 30%, transparent);
}

.notif-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.5rem 0.75rem 1rem;
}

.notif-item {
  position: relative;
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0.75rem;
  border-radius: 0.85rem;
  cursor: pointer;
  transition: background 0.25s var(--ease-liquid), transform 0.25s var(--ease-liquid);
  margin-bottom: 0.25rem;
}

.notif-item:hover {
  background: var(--bg-muted);
  transform: translateX(2px);
}

.notif-item.is-unread {
  background: color-mix(in srgb, var(--hero-bg) 4%, transparent);
}

.notif-item.is-unread::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--hero-bg);
  border-radius: 0 4px 4px 0;
}

.notif-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-body {
  flex: 1 1 auto;
  min-width: 0;
}

.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.notif-kind {
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.notif-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.notif-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.notif-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.notif-dot {
  position: absolute;
  top: 1rem;
  right: 0.5rem;
  width: 8px;
  height: 8px;
  background: var(--hero-bg);
  border-radius: 9999px;
}

.notif-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.notif-footer {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
  background: var(--bg-body);
}

.notif-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--bg-muted);
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.2s var(--ease-liquid), transform 0.2s var(--ease-liquid);
}

.notif-footer a:hover {
  background: var(--hero-bg);
  color: #fff;
}

.notif-footer a:active {
  transform: scale(0.97);
}

/* ---------------------------------------------------------------
   Dynamic Listing Cards — shared across hostels, halls, rentals,
   and selling spaces pages.
   --------------------------------------------------------------- */
.listing-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .listing-grid { grid-template-columns: repeat(3, 1fr); }
}

.listing-card {
  border-radius: 1.15rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-spring),
              box-shadow  0.35s var(--ease-liquid);
}

.listing-card:hover {
  transform: translateY(-4px);
}

/* ── Badges ─────────────────────────────────────────────────── */
.listing-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
}

.listing-badge--grade {
  background: rgba(255,255,255,0.85);
  color: #1a1a1a;
}

.listing-badge--gender.listing-badge--girls {
  background: rgba(244, 114, 182, 0.85);
  color: #fff;
}

.listing-badge--gender.listing-badge--boys {
  background: rgba(96, 165, 250, 0.85);
  color: #fff;
}

.listing-badge--gender.listing-badge--mixed {
  background: rgba(167, 139, 250, 0.85);
  color: #fff;
}

.listing-badge--gender.listing-badge--any {
  background: rgba(52, 211, 153, 0.85);
  color: #fff;
}

.listing-badge--tier.listing-badge--premium {
  background: rgba(251, 191, 36, 0.9);
  color: #78350f;
}

.listing-badge--tier.listing-badge--moderate {
  background: rgba(167, 139, 250, 0.85);
  color: #fff;
}

.listing-badge--tier.listing-badge--affordable {
  background: rgba(52, 211, 153, 0.85);
  color: #064e3b;
}

.listing-badge--type {
  background: rgba(0,0,0,0.45);
  color: #fff;
}

/* ── Page header ─────────────────────────────────────────────── */
.listing-page-header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  max-width: 42rem;
  margin: 0 auto;
}

.listing-page-header h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}

.listing-page-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── Line-clamp for long descriptions ───────────────────────── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}