/* =========================================
   Glaura Feed — Pinterest-style
   Mobile-first with desktop sidebar
   ========================================= */

/* --- Layout --- */
.feed-content {
  min-height: 100vh;
  padding-bottom: 64px;
}

/* --- Mobile Header --- */
.feed-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 12px 10px;
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.feed-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feed-header .feed-search {
  flex: 0 0 auto;
  width: 100%;
}

.feed-logo {
  flex-shrink: 0;
  display: flex;
}

.feed-logo img { height: 28px; width: auto; }

.feed-page-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

/* --- Pro CTA Button --- */
.feed-pro-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 24px;
  background: #E50050;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}

.feed-pro-btn:hover { opacity: 0.88; color: #fff; }

/* --- Search --- */
.feed-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 12px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feed-search:focus-within {
  border-color: var(--color-text);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12);
}

.feed-search-icon { flex-shrink: 0; color: var(--color-text-secondary); }

.feed-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
}

.feed-search-input::placeholder { color: var(--color-text-secondary); font-weight: 400; }

.feed-search-clear {
  display: none;
  width: 28px;
  height: 28px;
  border: none;
  background: var(--color-border);
  border-radius: 50%;
  color: var(--color-bg);
  font-size: 14px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.feed-search-clear.visible { display: flex; }

/* Desktop search (hidden on mobile) */
.feed-desktop-search { display: none; }

/* --- Category Pills --- */
.feed-pills {
  display: flex;
  gap: 6px;
  padding: 4px 12px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.feed-pills::-webkit-scrollbar { display: none; }

.feed-pill {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  min-height: 36px;
}

.feed-pill:active { transform: scale(0.95); }
.feed-pill.active { background: var(--color-text); color: var(--color-bg); }

/* --- Featured Salons --- */
.featured-salons-section {
  padding: 4px 12px 20px;
}

.featured-salons-section__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.featured-salons-section__eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a14a67;
}

.featured-salons-section__heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.featured-salons-section__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 700;
  color: var(--color-text);
}

.featured-salons-section__subtitle {
  margin: 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text-tertiary);
}

.featured-salons-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.featured-salons-rail::-webkit-scrollbar { display: none; }

.featured-salon-card {
  flex: 0 0 min(76vw, 272px);
  display: block;
  color: var(--color-text);
  text-decoration: none;
  scroll-snap-align: start;
}

.featured-salon-card__media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #f7eff2 0%, #f1efef 100%);
  box-shadow: 0 14px 30px rgba(36, 19, 24, 0.08);
}

.featured-salon-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.04) 0%, rgba(17, 17, 17, 0.22) 100%);
  pointer-events: none;
}

.featured-salon-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-salon-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #7b2d3e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.featured-salon-card__body {
  padding: 12px 2px 0;
}

.featured-salon-card__name {
  font-size: 18px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--color-text);
}

.featured-salon-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--color-text-tertiary);
}

/* ===================================
   Video-first spotlight
   =================================== */
.feed-spotlight-section {
  padding: 6px 12px 26px;
}

.feed-spotlight-intro {
  margin-bottom: 14px;
}

.feed-spotlight-intro__eyebrow,
.feed-spotlight__eyebrow {
  margin: 0 0 5px;
  color: var(--color-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feed-spotlight-intro__title {
  margin: 0;
  max-width: 720px;
  font-size: clamp(25px, 7.4vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.feed-spotlight-intro__subtitle {
  margin: 8px 0 0;
  color: var(--color-text-secondary);
  font-size: 13px;
}

.feed-spotlight {
  overflow: hidden;
  border: 1px solid #eee8ea;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(38, 20, 27, 0.09);
}

.feed-spotlight__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #171214;
  color: #fff;
  text-align: left;
}

.feed-spotlight__media img,
.feed-spotlight__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-spotlight__media video {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feed-spotlight__media video.playing { opacity: 1; }

.feed-spotlight__media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(10, 7, 8, 0.06), transparent 55%, rgba(10, 7, 8, 0.42));
  pointer-events: none;
}

.feed-spotlight__video-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(15, 10, 12, 0.48);
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.03em;
  backdrop-filter: blur(12px);
}

.feed-spotlight__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: rgba(12, 8, 9, 0.32);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.feed-spotlight__play svg { width: 28px; height: 28px; margin-left: 3px; }
.feed-spotlight__media:hover .feed-spotlight__play { transform: translate(-50%, -50%) scale(1.06); }
.feed-spotlight__media:has(video.playing) .feed-spotlight__play { opacity: 0; }

.feed-spotlight__content {
  padding: 22px 20px 20px;
}

.feed-spotlight__title {
  margin: 0;
  font-size: clamp(24px, 7vw, 34px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.feed-spotlight__provider {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 7px;
  margin-top: 10px;
  color: var(--color-text-secondary);
  font-size: 12.5px;
  font-weight: 650;
}

.feed-spotlight__rating { color: var(--color-text); }
.feed-spotlight__rating small { color: var(--color-text-tertiary); font-weight: 500; }
.feed-spotlight__distance::before { content: '·'; margin-right: 7px; }

.feed-spotlight__caption {
  display: -webkit-box;
  margin: 15px 0 0;
  overflow: hidden;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feed-spotlight__facts {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.feed-spotlight__facts span {
  padding: 7px 11px;
  border-radius: 999px;
  background: #f7f4f5;
  font-size: 12px;
  font-weight: 750;
}

.feed-spotlight__slot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: #13875a;
  font-size: 12px;
  font-weight: 750;
}

.feed-spotlight__slot span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1e9e6a;
  box-shadow: 0 0 0 4px rgba(30, 158, 106, 0.14);
}

.feed-spotlight__actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 21px;
}

.feed-spotlight__book,
.feed-spotlight__watch {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.feed-spotlight__book { border: 1px solid var(--color-accent); background: var(--color-accent); color: #fff; }
.feed-spotlight__book:hover { background: var(--color-accent-hover); color: #fff; }
.feed-spotlight__watch { border: 1px solid var(--color-border); background: #fff; color: var(--color-text); }

.feed-spotlight__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 14px;
  color: var(--color-text-tertiary);
  font-size: 10.5px;
}

.feed-spotlight__trust span::before { content: '✓'; margin-right: 5px; color: #15865a; font-weight: 800; }

/* --- Video Grid --- */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 8px 20px;
}

.feed-grid-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--color-bg);
  border: 1px solid #eee9eb;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(34, 21, 26, 0.06);
}

.feed-grid-item:active { opacity: 0.85; }

/* Entrance animation */
.feed-grid-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.feed-grid-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.feed-grid-item--skeleton {
  pointer-events: none;
  background: transparent;
  box-shadow: none;
}

.feed-grid-item--skeleton,
.feed-grid-item--skeleton.visible {
  opacity: 1;
  transform: none;
}

.feed-grid-item--skeleton .feed-card-thumb--skeleton {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.03));
  overflow: hidden;
}

.feed-grid-item--skeleton-tall .feed-skeleton-media { aspect-ratio: 4 / 5; }
.feed-grid-item--skeleton-wide .feed-skeleton-media { aspect-ratio: 3 / 4; }

.feed-skeleton-media {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(229, 229, 229, 0) 0%, rgba(229, 229, 229, 0.6) 50%, rgba(229, 229, 229, 0) 100%),
    linear-gradient(135deg, #ececec 0%, #f5f5f5 100%);
  background-size: 200% 100%, 100% 100%;
  animation: feed-shimmer 1.2s ease-in-out infinite;
}

.feed-card-info--skeleton {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px 2px;
  min-height: 34px;
}

.feed-skeleton-line {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ececec 0%, #f5f5f5 100%);
}

.feed-skeleton-line::after,
.feed-skeleton-media::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: feed-shimmer-slide 1.2s ease-in-out infinite;
}

.feed-skeleton-line--avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  flex-shrink: 0;
}

.feed-skeleton-line--name {
  width: 58%;
  height: 12px;
  border-radius: 999px;
}

@keyframes feed-shimmer {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 200% 0, 0 0; }
}

@keyframes feed-shimmer-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.feed-card-thumb {
  position: relative;
  width: 100%;
  background: var(--color-surface); /* fallback when thumbnail fails to load */
}

.feed-card-thumb img,
.feed-card-thumb video {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 9 / 16;
}

/* All feed videos keep one cinematic ratio. This lets people compare real
   results without the old masonry layout changing scale from card to card. */
.feed-grid-item:nth-child(3n+2) .feed-card-thumb img,
.feed-grid-item:nth-child(3n+2) .feed-card-thumb video,
.feed-grid-item:nth-child(3n+3) .feed-card-thumb img,
.feed-grid-item:nth-child(3n+3) .feed-card-thumb video {
  aspect-ratio: 9 / 16;
}

.feed-card-thumb video {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.feed-grid-item:hover .feed-card-thumb video.playing,
.feed-grid-item.autoplay .feed-card-thumb video.playing {
  display: block;
}

.feed-card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.feed-card-play svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

.feed-grid-item:hover .feed-card-play,
.feed-grid-item.autoplay .feed-card-play {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
}

/* --- Loading skeleton retains this layout --- */
.feed-card-info {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px 9px;
}

/* --- Card body: the booking bridge (title, salon, rating, distance, price, CTA) --- */
.feed-card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 10px 11px;
}

.feed-card-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card-salon {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.feed-card-salon__avatar {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-surface);
}

/* Name + verified tick group; grows so the meta (rating/distance) pins right
   while the tick stays hugged to the (ellipsized) name. */
.feed-card-salon__id {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}

.feed-card-salon__name {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Blue verified tick shared across feed card, dispo rail and overlay. */
.feed-verified-tick {
  flex: none;
  vertical-align: text-bottom;
}

.dispo-card__salon .feed-verified-tick {
  margin-left: 3px;
}

/* Rating + distance sit on the same row as the salon name, pinned right. */
.feed-card-meta {
  flex: none;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px 10px;
  margin-left: auto;
  padding-left: 8px;
  font-size: 11.5px;
  color: var(--color-text-secondary);
}

.feed-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  color: var(--color-text);
}

.feed-card-rating svg { width: 13px; height: 13px; color: #f5a623; }
.feed-card-rating__count { font-weight: 500; color: var(--color-text-tertiary); }

.feed-card-distance { display: inline-flex; align-items: center; gap: 3px; }
.feed-card-distance svg { width: 12px; height: 12px; color: var(--color-text-tertiary); }

.feed-card-slot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #1e9e6a;
}

.feed-card-slot__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1e9e6a;
  box-shadow: 0 0 0 3px rgba(30, 158, 106, 0.16);
}

.feed-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.feed-card-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.feed-card-price small {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-tertiary);
}

.feed-card-book {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.feed-card-book:hover { background: var(--color-accent-hover); }
.feed-card-book:active { transform: scale(0.96); }

/* --- States --- */
.feed-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: 14px;
  gap: 12px;
}

.feed-spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid var(--color-border);
  border-top-color: var(--color-text);
  border-radius: 50%;
  animation: feed-spin 0.7s linear infinite;
}

.feed-spinner--sm { width: 20px; height: 20px; border-width: 2px; }

@keyframes feed-spin { to { transform: rotate(360deg); } }

.feed-btn-retry {
  padding: 10px 24px;
  background: var(--color-text);
  color: var(--color-bg);
  border: none;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
}

.feed-sentinel {
  display: flex;
  justify-content: center;
  padding: 20px 0 40px;
}

.feed-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 12px 28px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  background: #fff;
  color: #1c1c1c;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.feed-load-more:hover {
  background: #faf0f3;
  border-color: #E50050;
  color: #E50050;
}

.feed-load-more:disabled {
  opacity: 0.6;
  cursor: default;
}

/* --- Search Overlay --- */
.ai-search-welcome {
  margin: 2px 0 18px;
  padding: 18px;
  border: 1px solid rgba(225, 29, 72, 0.12);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff8fa 0%, #fff 55%, #f8f3ff 100%);
}

.ai-search-welcome__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-search-welcome p {
  max-width: 560px;
  margin: 8px 0 13px;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.ai-search-examples {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.ai-search-examples::-webkit-scrollbar { display: none; }

.ai-search-examples button,
.ai-intent-chips button {
  flex: none;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #eadfe3;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.ai-search-examples button:hover,
.ai-intent-chips button:hover {
  border-color: rgba(225, 29, 72, 0.35);
  color: var(--color-accent);
}

.ai-intent-summary {
  padding: 12px 16px 4px;
}

.ai-intent-summary__label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ai-intent-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.ai-intent-chips::-webkit-scrollbar { display: none; }

.ai-intent-chips button::after {
  content: '×';
  margin-left: 7px;
  color: var(--color-text-tertiary);
}

.search-overlay.ai-search-loading .search-overlay-header::after {
  content: '';
  position: absolute;
  right: 16px;
  bottom: -2px;
  width: 38px;
  height: 2px;
  border-radius: 99px;
  background: var(--color-accent);
  animation: ai-search-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes ai-search-pulse {
  from { opacity: 0.25; transform: translateX(-32px); }
  to { opacity: 1; transform: translateX(0); }
}

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 200;
  overflow-y: auto;
}

.search-overlay.active { display: block; }

.search-overlay-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 1;
  border-bottom: 1px solid var(--color-border-light);
}

.search-overlay-back {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  flex-shrink: 0;
}

/* Search sections */
.search-section {
  padding: 12px 16px 0;
}

.search-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.search-section-clear {
  border: none;
  background: none;
  color: var(--color-text-tertiary);
  font-size: 12px;
  cursor: pointer;
}

/* Recent searches */
.search-recent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.search-recent-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  border: none;
  font-family: var(--font);
  font-size: 13px;
  color: var(--color-text);
  cursor: pointer;
}

.search-recent-item:hover {
  background: var(--color-border);
}

.search-recent-item svg {
  width: 14px;
  height: 14px;
  color: var(--color-text-tertiary);
}

/* Suggestions */
.search-suggestions-group {
  padding-bottom: 4px;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
  font-size: 14px;
  color: var(--color-text);
}

.search-suggestion-item:hover {
  background: var(--color-surface);
}

.search-suggestion-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-text-tertiary);
}

.search-suggestion-icon img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.search-suggestion-text {
  flex: 1;
  min-width: 0;
}

.search-suggestion-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestion-type {
  font-size: 12px;
  color: var(--color-text-tertiary);
}

/* Salon results */
.search-salon-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.search-salon-list::-webkit-scrollbar { display: none; }

.search-salon-card {
  flex-shrink: 0;
  width: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  text-decoration: none;
  color: var(--color-text);
}

.search-salon-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.search-salon-card-info {
  padding: 8px;
}

.search-salon-card-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-salon-card-service {
  margin-top: 3px;
  color: var(--color-accent);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-salon-card-rating {
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

.search-overlay-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
}

/* ===================================
   Mobile Bottom Nav
   =================================== */
.feed-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-light);
  padding: 4px 0;
  padding-bottom: max(4px, var(--safe-bottom));
  z-index: 150;
}

.feed-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 20px;
  min-height: 44px;
  border: none;
  background: none;
  color: var(--color-text-tertiary);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s;
}

.feed-nav-item span {
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
}

.feed-nav-item.active { color: var(--color-text); }

/* Language switcher inside bottom nav — override column stacking */
.feed-nav-lang { flex-direction: row; padding: 0; gap: 0; }
.feed-nav-lang .language-btn {
  width: auto;
  height: 44px;
  padding: 8px 16px;
  gap: 0;
}
.feed-nav-lang .language-name { display: none; }
.feed-nav-lang .language-btn i { display: none; }
.feed-nav-lang .lang-dropdown-menu {
  bottom: 100%;
  top: auto;
  right: 0;
  margin-bottom: 6px;
  min-width: 100px;
}

.feed-nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================
   Desktop Sidebar (hidden on mobile)
   =================================== */
.sidebar { display: none; }

@media (min-width: 768px) {
  /* Show sidebar, hide mobile nav + header */
  .sidebar { display: flex; }
  .feed-nav { display: none; }
  .feed-header { display: none; }
  .feed-desktop-search { display: block; }

  /* Sidebar */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 56px;
    background: var(--color-bg);
    border-right: 1px solid var(--color-border-light);
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    z-index: 100;
  }

  .sidebar-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .sidebar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 4px;
  }

  /* Compact sidebar language switcher: icon only, no name */
  .sidebar-bottom .language-btn .language-name { display: none; }
  .sidebar-bottom .language-btn i { display: none; }
  .sidebar-bottom .language-btn {
    width: 40px;
    height: 40px;
    padding: 8px;
    justify-content: center;
    border-radius: var(--radius-md);
  }
  .sidebar-bottom .lang-dropdown-menu {
    left: 100%;
    right: auto;
    top: auto;
    bottom: 0;
    margin-left: 8px;
    min-width: 120px;
  }

  .sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
  }

  .sidebar-logo img { height: 26px; width: auto; }

  .sidebar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: none;
    background: none;
    color: var(--color-text-tertiary);
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.15s;
    width: 40px;
    height: 40px;
  }

  .sidebar-item span { display: none; }
  .sidebar-item:hover { background: var(--color-surface); color: var(--color-text); }
  .sidebar-item.active { color: var(--color-text); }

  .sidebar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Main content pushed right */
  .feed-content {
    margin-left: 56px;
    padding-bottom: 40px;
  }

  /* Desktop search bar — search centered, pro button pinned right */
  .feed-desktop-search {
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 99;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }

  .feed-pro-btn { padding: 8px 16px; font-size: 13px; }

  .feed-desktop-search .feed-pro-btn {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
  }

  .feed-desktop-search .feed-search {
    max-width: min(480px, calc(100% - 300px));
    flex: 1;
    margin: 0;
  }

  .feed-spotlight-section {
    padding: 12px 24px 36px;
  }

  .feed-spotlight-intro {
    max-width: 1180px;
    margin: 0 auto 18px;
  }

  .feed-spotlight-intro__title { font-size: clamp(34px, 4vw, 56px); }
  .feed-spotlight-intro__subtitle { font-size: 15px; }

  .feed-spotlight {
    display: grid;
    grid-template-columns: minmax(300px, 0.92fr) minmax(330px, 1.08fr);
    min-height: 540px;
    max-width: 1180px;
    margin: 0 auto;
    border-radius: 30px;
  }

  .feed-spotlight__media { height: 100%; aspect-ratio: auto; }
  .feed-spotlight__content { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 5vw, 76px); }
  .feed-spotlight__title { font-size: clamp(36px, 4vw, 58px); }
  .feed-spotlight__caption { max-width: 520px; font-size: 14px; }
  .feed-spotlight__actions { flex-direction: row; }
  .feed-spotlight__book, .feed-spotlight__watch { min-width: 172px; padding: 0 22px; }


  /* Grid adjustments */
  .feed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 0 16px 40px;
  }

  .feed-grid-item {
    border-radius: 18px;
  }

  .feed-grid-item:hover { opacity: 0.9; }

  .feed-card-body { gap: 6px; padding: 11px 12px 13px; }
  .feed-card-title { font-size: 14px; }
  .feed-card-salon__name,
  .feed-card-meta { font-size: 12px; }
  .feed-card-price { font-size: 16px; }
  .feed-card-book { font-size: 13px; padding: 8px 16px; }

  .feed-pills {
    padding: 4px 24px 12px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .featured-salons-section {
    padding: 4px 24px 24px;
  }

  .featured-salons-section__header {
    gap: 10px;
    margin-bottom: 16px;
  }

  .featured-salons-section__title {
    font-size: 30px;
  }

  .featured-salons-section__subtitle {
    font-size: 15px;
  }

  .featured-salon-card {
    flex-basis: 288px;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .featured-salon-card:hover {
    transform: translateY(-3px);
    opacity: 0.96;
  }

  /* Search overlay pushed right of sidebar */
  .search-overlay { left: 56px; }
}

@media (min-width: 1024px) {
  .feed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 40px;
  }

  .feed-desktop-search .feed-search { max-width: min(560px, calc(100% - 300px)); }
  .feed-card-thumb img,
  .feed-card-thumb video,
  .feed-grid-item:nth-child(3n+2) .feed-card-thumb img,
  .feed-grid-item:nth-child(3n+2) .feed-card-thumb video,
  .feed-grid-item:nth-child(3n+3) .feed-card-thumb img,
  .feed-grid-item:nth-child(3n+3) .feed-card-thumb video { aspect-ratio: 4 / 5; }
  .featured-salon-card { flex-basis: 312px; }
}

@media (min-width: 1440px) {
  .feed-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1440px; }
}

/* --- App download CTA card in feed --- */
.feed-app-banner {
  break-inside: avoid;
  margin-bottom: 12px;
  overflow: hidden;
  background: transparent;
  cursor: default;
}

.app-banner-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.app-banner-panel {
  position: relative;
  width: 100%;
  min-height: 122px;
  padding: 11px 14px 13px;
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 252, 253, 0.96) 55%, rgba(255, 238, 245, 0.92) 100%);
  border: 1px solid rgba(229, 0, 80, 0.08);
  box-shadow: 0 12px 24px rgba(28, 21, 24, 0.10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.app-banner-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: rgba(17, 17, 17, 0.52);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  z-index: 1;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.app-banner-close:hover {
  color: rgba(17, 17, 17, 0.82);
  background: rgba(17, 17, 17, 0.06);
}

.app-banner-close svg {
  width: 18px;
  height: 18px;
}
.app-banner-badge {
  align-self: flex-start;
  max-width: calc(100% - 30px);
  min-height: 22px;
  padding: 4px 9px 3px;
  border-radius: 999px;
  background: rgba(229, 0, 80, 0.06);
  border: 1px solid rgba(229, 0, 80, 0.08);
  color: #cf2c61;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.app-banner-copy {
  min-width: 0;
  padding-right: 16px;
  margin-top: 7px;
}
.app-banner-title {
  max-width: 100%;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 0.96;
  color: #1b1718;
  margin: 0 0 6px;
  letter-spacing: 0;
}
.app-banner-title-dot { color: #e50050; }
.app-banner-sub {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  color: rgba(17, 17, 17, 0.48);
  margin: 0;
}
.app-banner-download {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  max-width: 100%;
  margin-top: 10px;
  padding: 0 16px;
  background: #d92757;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(229, 0, 80, 0.22);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.app-banner-download:hover {
  background: #c8164a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(229, 0, 80, 0.28);
}

.app-banner-download__icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
}

.app-banner-download__icons svg {
  width: 13px;
  height: 13px;
}

/* ===================================
   Location Header Bar (mobile only)
   =================================== */
.feed-location-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.feed-location-bar__pin {
  flex-shrink: 0;
  color: var(--color-accent);
}

.feed-location-bar__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feed-location-bar__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-location-bar__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================================
   Trust Strip
   =================================== */
.trust-strip {
  text-align: center;
  font-size: 11.5px;
  color: var(--color-text-tertiary);
  padding: 0 16px 12px;
  line-height: 1.7;
}

.trust-strip__star {
  color: #f5a623;
}

.trust-strip__sep {
  margin: 0 4px;
  opacity: 0.45;
}

/* ===================================
   Disponible Aujourd'hui Rail
   =================================== */
.dispo-rail-section {
  padding: 4px 12px 16px;
}

.dispo-rail-section__header {
  margin-bottom: 10px;
}

.dispo-rail-section__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}

.dispo-rail-section__subtitle {
  margin: 3px 0 0;
  font-size: 11.5px;
  color: var(--color-text-tertiary);
}

.dispo-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.dispo-rail::-webkit-scrollbar { display: none; }

.dispo-card {
  flex: 0 0 148px;
  width: 148px;
  min-width: 0; /* allow the nowrap title to ellipsis instead of stretching the card */
  display: block;
  color: var(--color-text);
  text-decoration: none;
  scroll-snap-align: start;
}

.dispo-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-surface);
}

.dispo-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dispo-card__play-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.56);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.dispo-card__body {
  padding: 7px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dispo-card__title {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text);
}

.dispo-card__salon {
  font-size: 11px;
  color: var(--color-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dispo-card__slot {
  font-size: 10.5px;
  font-weight: 700;
  color: #1e9e6a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-discover-head {
  padding: 6px 12px 10px;
}

.feed-discover-head__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.feed-discover-head__subtitle {
  margin: 4px 0 0;
  color: var(--color-text-tertiary);
  font-size: 12px;
}

/* Desktop adjustments for new elements */
@media (min-width: 768px) {
  .feed-location-bar { display: none; }
  .trust-strip { padding: 0 24px 12px; }
  .dispo-rail-section { padding: 4px 24px 20px; }
  .feed-discover-head { padding: 8px 24px 12px; }
  .feed-discover-head__title { font-size: 26px; }
  .feed-discover-head__subtitle { font-size: 13px; }
}

@media (max-width: 479px) {
  .feed-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-inline: 12px;
  }

  .feed-grid-item {
    border-radius: 20px;
  }

  .feed-card-body {
    gap: 7px;
    padding: 12px 14px 15px;
  }

  .feed-card-title { font-size: 16px; }
  .feed-card-salon__name, .feed-card-meta { font-size: 12.5px; }
  .feed-card-price { font-size: 18px; }
  .feed-card-book { min-height: 38px; padding-inline: 18px; }

  .feed-app-banner {
    margin-bottom: 8px;
  }

  .app-banner-card {
    min-height: 0;
    padding: 0;
    border-radius: 8px;
  }

  .app-banner-panel {
    min-height: 108px;
    padding: 9px 10px 10px;
    border-radius: 8px;
  }

  .app-banner-close {
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
  }

  .app-banner-badge {
    min-height: 18px;
    padding: 3px 7px 2px;
    font-size: 9px;
  }

  .app-banner-copy {
    padding-right: 12px;
    margin-top: 6px;
  }

  .app-banner-title {
    font-size: 19px;
    line-height: 0.98;
    margin-bottom: 5px;
  }

  .app-banner-sub {
    font-size: 10.5px;
  }

  .app-banner-download {
    min-height: 29px;
    margin-top: 8px;
    padding: 0 12px;
    gap: 6px;
    font-size: 11px;
  }

  .app-banner-download__icons svg {
    width: 11px;
    height: 11px;
  }
}
