/* ============================================================
   FEED (reels-style) — full-screen vertical swipe of photo/video posts
   Parts built: #1 Header · #3 "Try On" FAB · #4 Post (photo + video)
   ============================================================ */

/* When the Feed tab is active the app's default header is hidden and the
   scroll area reclaims that space so the feed can run edge-to-edge. */
.view-feed .app-header { display: none; }
.view-feed .main-scroll {
  padding: 0;
  gap: 0;
  overflow: hidden;
  height: calc(844px - var(--status-bar-h) - var(--nav-height));
}
/* With the floating glass nav the reels run FULL-HEIGHT edge-to-edge and the
   glass bar floats over the media — no reserved strip, so no white gap above the
   bar. Media height + caption offset are governed by the .view-feed rules below. */

.feed {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

/* ---------- #1 Header (title + bell + search) ---------- */
.feed-top {
  flex: none;
  padding: 8px var(--space-5) 12px;
}
.feed-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}
.feed-top-actions { display: flex; align-items: center; gap: 8px; }

/* Points & Rewards card floating over the top of the feed (Figma 9501-18138) */
.feed-rewards {
  position: absolute;
  top: 116px; left: 16px; right: 16px;
  z-index: 40;
}
.feed-top-actions .appt-notif-btn svg { width: 20px; height: 20px; }
.feed-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-content-main);
  letter-spacing: -0.01em;
}
.feed-bell {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(252, 252, 252, 0.7);
  box-shadow: 0 0 16px rgba(102, 102, 102, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  color: var(--color-content-main);
}
.feed-bell svg { width: 22px; height: 22px; }
.feed-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--color-white-pure);
  box-shadow: 0 1px 3px rgba(113, 113, 113, 0.08);
}
.feed-search svg { width: 20px; height: 20px; color: #9a9aa2; flex: none; }
.feed-search input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-family);
  font-size: 15px;
  color: var(--color-content-main);
}
.feed-search input::placeholder { color: #9a9aa2; }

/* ---------- Pager: one post per screen, swipe up = next ---------- */
.feed-pager {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.feed-pager::-webkit-scrollbar { display: none; }

/* ---------- #4 Post ---------- */
.feed-post {
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 8px 8px 0;
}
.feed-card {
  position: relative;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #1a1a1e;
}
.feed-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feed-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 17%),
    linear-gradient(180deg, rgba(0,0,0,0) 62%, rgba(0,0,0,0.55) 92%);
}

/* ---------- Bottom cluster: [ left column | right rail ] + progress ---------- */
.feed-post-bottom {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 8px;
}
.feed-foot-row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
}
.feed-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Author row */
.feed-who { display: flex; align-items: center; gap: 12px; }
.feed-post-ava {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.feed-post-who { flex: 1; min-width: 0; }
.feed-post-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 20px;
}
.feed-post-loc {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 16px;
}
.feed-post-loc svg { width: 12px; height: 12px; flex: none; }
.feed-post-loc .dot {
  width: 2px; height: 2px; border-radius: 50%;
  background: currentColor; flex: none;
}
.feed-post-loc span { white-space: nowrap; }

/* Caption + inline read more */
.feed-cap {
  font-size: 14px;
  line-height: 20px;
  color: #fff;
  overflow: hidden;
}
.feed-cap b { font-weight: 600; cursor: pointer; }
.feed-more {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  color: #fff;
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
}

/* Book Now — full-width CTA in the left column */
.feed-book {
  width: 100%;
  padding: 10px 24px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  background: #b83af8;
  color: #fff;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ---------- Right rail: Try-On / Like / Save / Share ---------- */
.feed-rail {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.feed-rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-family);   /* buttons don't inherit the page font → set it or labels fall back to Arial */
}
.feed-rail-ico {
  width: 36px;
  height: 36px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 16px rgba(102, 102, 102, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    inset 0 16px 16px rgba(123, 113, 130, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.18s ease;
}
.feed-rail-ico svg { width: 20px; height: 20px; }
.feed-rail-btn:active .feed-rail-ico { transform: scale(0.9); }
.feed-rail-lbl {
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

/* Try-On gets the brand gradient glass */
.feed-tryon .feed-rail-ico {
  background: linear-gradient(136deg, #ffebbd 1%, #ffb89a 25%, #ef69d2 49%, #984df9 73%, #7d6cff 96%);
}

/* Like / Save active → filled (bold) white icon, matching the design */
.feed-like.liked .feed-rail-ico svg path { fill: currentColor; stroke: currentColor; }
.feed-save.saved .feed-rail-ico svg path { fill: currentColor; }
@keyframes feedPop { 0% { transform: scale(1); } 45% { transform: scale(1.28); } 100% { transform: scale(1); } }
.feed-like.liked .feed-rail-ico,
.feed-save.saved .feed-rail-ico { animation: feedPop 0.32s ease; }
@media (prefers-reduced-motion: reduce) {
  .feed-like.liked .feed-rail-ico,
  .feed-save.saved .feed-rail-ico { animation: none; }
}

/* ---------- Video: center play + time/volume row ---------- */
.feed-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    inset 0 16px 16px rgba(123, 113, 130, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.feed-play svg { width: 30px; height: 30px; margin-left: 2px; }
.feed-card.paused .feed-play { display: flex; }

/* time/volume row + progress grouped tightly (4px) per Figma; the group sits
   16px below the foot-row via .feed-post-bottom's gap */
.feed-vid-foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feed-vid-row {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.feed-card--video.paused .feed-vid-row { display: flex; }
.feed-vid-time {
  font-family: var(--font-family);
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  color: #fff;
}
.feed-mute {
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feed-mute svg { width: 16px; height: 16px; }
.feed-mute .ico-mute { display: none; }
.feed-mute.muted .ico-vol { display: none; }
.feed-mute.muted .ico-mute { display: block; }

/* ---------- Progress bar (bottom of the cluster) ---------- */
.feed-progress {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}
.feed-progress-fill {
  display: block;
  height: 100%;
  width: 30%;
  background: #fff;
  border-radius: 2px;
}
.feed-card--video .feed-progress-fill { width: 0; }

/* ---------- Ad post (sponsored salon): black card, contained banner, thumbnail strip, Learn More ---------- */
.feed-card--ad { background: #000; }
/* "Sponsored" tag next to the salon name */
.feed-ad-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 9px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}
.feed-ad-banner {
  position: absolute;
  top: calc(var(--status-bar-h) + 68px);
  left: 0;
  right: 0;
  height: 420px;
  overflow: hidden;
}
.feed-ad-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* subtle top+bottom fade so the banner seats into the black card */
.feed-ad-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 74%, rgba(0,0,0,0.5) 100%);
}
/* left column gets a wider gap (body block ↔ Learn More) */
.feed-ad-left { gap: 16px; }
.feed-ad-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* thumbnail strip — horizontal, first thumb ringed; right edge fades into the card */
.feed-ad-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 84%, transparent 100%);
}
.feed-ad-thumbs::-webkit-scrollbar { display: none; }
.feed-ad-thumb {
  flex: none;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  transition: border-color 0.18s ease;
}
.feed-ad-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.feed-ad-thumb.active { border-color: #fff; }

/* Learn More CTA — full-width, text left + chevron right (extends .feed-book) */
.feed-learn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 10px 24px;
}
.feed-learn svg { width: 20px; height: 20px; flex: none; }

/* ===== Nail Try-On sheet (opened from the Feed "Try On") ===== */
.tryon-sheet {
  background: var(--color-theme-surface); /* #f3f0f4 — theme surface, not the default sheet near-white */
  padding-bottom: calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
}

.tryon-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.tryon-title {
  font-size: 20px;
  line-height: 28px;
  font-weight: var(--font-weight-bold);
  color: var(--color-content-main);
}
.tryon-close {
  width: 36px;
  height: 36px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-content-main);
  box-shadow: 0 0 16px rgba(102, 102, 102, 0.15),
              inset 0 1px 2px rgba(255, 255, 255, 0.5),
              inset 0 16px 16px rgba(123, 113, 130, 0.1);
  cursor: pointer;
}
.tryon-close svg { width: 18px; height: 18px; }

.tryon-sub {
  margin-top: var(--space-2);
  font-size: 14px;
  line-height: 20px;
  color: var(--color-content-main);
  opacity: 0.7;
}

.tryon-opts {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-4);
}
.tryon-opt {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: 24px;
  border: none;
  border-radius: var(--radius-xl);
  background: var(--color-theme-sub-surface); /* #fcfcfc — white cards on the surface-tinted sheet */
  box-shadow: 0 1px 1px rgba(113, 113, 113, 0.1);
  cursor: pointer;
}
.tryon-opt-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
}
.tryon-opt-ic svg { width: 24px; height: 24px; }
.tryon-opt-ic--cam { background: #ffe1fb; color: #cf2fb8; }
.tryon-opt-ic--gal { background: #f3dbff; color: #a528e3; }
.tryon-opt-label {
  font-size: 16px;
  line-height: 24px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-content-main);
}

/* ===== Nail Try-On · Camera (full-screen) ===== */
.cam-screen {
  position: absolute;
  inset: 0;
  z-index: 70;
  background: #1b1c20;
  border-radius: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cam-screen.open { opacity: 1; pointer-events: auto; }

.cam-video,
.cam-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cam-video.mirror { transform: scaleX(-1); }

.cam-top,
.cam-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
}
.cam-top { justify-content: space-between; padding: 56px 16px 16px; }
.cam-bottom { justify-content: space-between; padding: 24px 0 40px; }

.cam-glass {
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 0 16px rgba(102, 102, 102, 0.15),
              inset 0 1px 2px rgba(255, 255, 255, 0.5),
              inset 0 16px 16px rgba(123, 113, 130, 0.1);
  cursor: pointer;
}
.cam-glass svg { width: 22px; height: 22px; }
.cam-glass.on { color: #ffd84d; }

.cam-side { flex: 1 0 0; display: flex; align-items: center; justify-content: center; }
.cam-thumb {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 99px;
  overflow: hidden;
  background: none;
  cursor: pointer;
}
.cam-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cam-shutter {
  width: 74px;
  height: 74px;
  flex: none;
  padding: 0;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cam-shutter span {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.1s;
}
.cam-shutter:active span { transform: scale(0.88); }

.cam-screen.flash::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #fff;
  animation: camFlash 0.18s ease-out;
}
@keyframes camFlash { from { opacity: 0.9; } to { opacity: 0; } }

/* Simulated iOS status bar over the dark camera → white time + icons */
.cam-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
}
.cam-status .time { color: #fff; }
.cam-status .status-icons svg { color: #fff; }

/* ===== Nail Try-On · Gallery picker (Recent) — dark ===== */
/* Flex column so the grid scrolls between a fixed header and a fixed home bar. */
.gal-screen {
  position: absolute;
  inset: 0;
  z-index: 70;
  background: #131117;
  border-radius: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.gal-screen.open { opacity: 1; pointer-events: auto; }
.gal-scroll { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* iOS status bar over the dark picker → white time + icons */
.gal-screen .status-bar { flex: none; background: #131117; }
.gal-screen .time { color: #fff; }
.gal-screen .status-icons svg { color: #fff; }

.gal-head {
  position: relative;          /* containing block for the centered title */
  flex: none;
  display: flex;
  align-items: center;
  padding: 8px 16px 12px;
  background: #131117;
}
.gal-back { color: #fff; }
.gal-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 18px;
  line-height: 26px;
  font-weight: var(--font-weight-semibold);
  color: #fff;
  pointer-events: none;
}
.gal-title svg { width: 20px; height: 20px; }

.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding-bottom: 12px;
}
.gal-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: none;
  margin: 0;
  background: #26232e;
  overflow: hidden;
  cursor: pointer;
}
.gal-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gal-cell:active img { filter: brightness(0.9); }

/* ===== Nail Try-On · Generating ===== */
/* Full-screen "AI is placing the look" step: dark plum-black gradient,
   breathing aura behind the photo card, glowing scan line, shimmer text,
   gradient progress bar with a leading glow dot, and a 10 s countdown. */
.gen-screen {
  position: absolute;
  inset: 0;
  z-index: 80;                 /* above the camera/gallery capture screens */
  border-radius: inherit;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(165, 40, 227, 0.26), transparent 60%),
    radial-gradient(110% 55% at 50% 115%, rgba(211, 122, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #17101f 0%, #0d0813 55%, #070409 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.gen-screen.open { opacity: 1; pointer-events: auto; }

/* Try-on loader (generate-loader component) — centered in the screen */
.gen-loader-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}
.gen-screen.open .gen-loader-wrap {
  animation: genEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes genEnter {
  from { opacity: 0; transform: translateY(14px) scale(0.965); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* iOS home-indicator pinned to the bottom (white on the dark generate screen) */
.gen-home {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  z-index: 2;
}
.gen-home .home-indicator-bar { background: #fff; opacity: 0.5; }

/* Underglow — a soft light glowing up from the bottom, sweeping left↔right
   and breathing, like a moving stage light beneath the scene. */
.gen-underglow {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: 0;
  height: 52%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(55% 100% at 50% 100%,
    rgba(206, 120, 255, 0.6), rgba(165, 40, 227, 0.22) 45%, transparent 72%);
  filter: blur(34px);
  animation: genUnderglow 5s ease-in-out infinite;
}
@keyframes genUnderglow {
  0%, 100% { transform: translateX(-10%) scaleY(0.9);  opacity: 0.8; }
  50%      { transform: translateX(10%)  scaleY(1.1);  opacity: 1; }
}

/* Cancel — full-width glass pill pinned to the bottom (like the app's other buttons) */
.gen-cancel {
  position: absolute;
  left: 16px; right: 16px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 2;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: background 0.15s;
}
.gen-cancel:hover { background: rgba(255, 255, 255, 0.18); }
.gen-cancel:active { background: rgba(255, 255, 255, 0.26); }

/* Floating brand-colored sparkles around the card (behind the content) */
.gen-sparkles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.gen-sparkles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d37aff;
  box-shadow: 0 0 8px 1px rgba(211, 122, 255, 0.8);
  opacity: 0;
  animation: genSpark 5s ease-in-out infinite;
}
.gen-sparkles span:nth-child(1) { left: 10%; top: 12%; }
.gen-sparkles span:nth-child(2) { left: 86%; top: 15%; width: 3px; height: 3px; background: #fff; box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.7); animation-delay: 1.1s; animation-duration: 6s; }
.gen-sparkles span:nth-child(3) { left: 22%; top: 8%;  width: 3px; height: 3px; animation-delay: 2.3s; animation-duration: 5.6s; }
.gen-sparkles span:nth-child(4) { left: 76%; top: 9%;  background: #b83af8; animation-delay: 3.4s; }
.gen-sparkles span:nth-child(5) { left: 8%;  top: 76%; background: #b83af8; animation-delay: 0.6s; animation-duration: 6.4s; }
.gen-sparkles span:nth-child(6) { left: 90%; top: 72%; animation-delay: 1.8s; }
.gen-sparkles span:nth-child(7) { left: 30%; top: 90%; width: 5px; height: 5px; animation-delay: 2.9s; animation-duration: 7s; }
.gen-sparkles span:nth-child(8) { left: 68%; top: 86%; width: 3px; height: 3px; background: #fff; box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.7); animation-delay: 4.1s; animation-duration: 5.4s; }
@keyframes genSpark {
  0%, 100% { opacity: 0; transform: translateY(6px) scale(0.6); }
  35%      { opacity: 0.9; }
  50%      { opacity: 1; transform: translateY(-8px) scale(1); }
  70%      { opacity: 0.4; }
}

/* Reduced motion — the loader animates its own scenes (see
   generate-loader.css); here we only quiet the ambient extras. */
@media (prefers-reduced-motion: reduce) {
  /* generate-loader handles its own scenes; just calm the decorative layers */
  .gen-sparkles { display: none; }
  .gen-underglow { animation: none; }
  .gen-screen.open .gen-loader-wrap { animation: none; }
}

/* ===== Nail Try-On · Result look (after Generate: AR result + adjust + book) ===== */
.look-screen {
  position: absolute;
  inset: 0;
  z-index: 80;
  border-radius: inherit;
  overflow: hidden;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.look-screen.open { opacity: 1; pointer-events: auto; }

/* Photo (AR result) */
/* Photo + controls scroll together; top buttons & foot stay fixed */
.look-scroll {
  position: relative;
  z-index: 1;                                  /* own stacking context BELOW .look-top (2), so scrolled content (incl. Look-from-Post) hides behind the header */
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.look-scroll::-webkit-scrollbar { display: none; }

.look-photo {
  position: relative;
  flex: none;
  aspect-ratio: 358 / 484;                    /* keep the design's photo height */
  margin: 104px 16px 0;                       /* same width as the glass panel below */
  border-radius: var(--radius-3xl);           /* fully-rounded card */
  overflow: hidden;
  background: #1a1a1e;
}
.look-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.look-status { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }

.look-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 56px 16px 8px;                      /* height aligns with the photo's top (104px) */
  background: #1f1f23;                          /* opaque header — hides content scrolling up behind it */
}
.look-top-actions { display: flex; align-items: center; gap: 16px; }

.look-glass {
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 0 16px rgba(102, 102, 102, 0.15),
              inset 0 1px 2px rgba(255, 255, 255, 0.5),
              inset 0 16px 16px rgba(123, 113, 130, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.look-glass svg { width: 20px; height: 20px; }
.look-glass.saved svg path { fill: currentColor; }   /* Save tapped → filled (bold) bookmark */
.look-glass.look-save.saved { background: rgba(184, 58, 248, 0.6); }   /* saved → purple-filled button */
.look-compare { position: absolute; right: 16px; bottom: 16px; z-index: 2; touch-action: none; }
.look-compare:active { background: rgba(255, 255, 255, 0.4); }

/* "Look from Post" reference thumbnail — floats top-right inside the photo card */
.look-post {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 104px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 4px 4px;
  border-radius: 16px;
  background: var(--color-on-primary, #fff);
  box-shadow: 0 1px 1px rgba(113, 113, 113, 0.1);
}
.look-post-label {
  font-size: 8px;
  line-height: 12px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-primary);
}
.look-post-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

/* "Before" tag shown while holding Compare */
.look-tag {
  position: absolute;
  top: 104px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 4px 12px;
  border-radius: 32px;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10px;
  line-height: 14px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
.look-screen.comparing .look-tag { opacity: 1; }

/* ===== Result-look controls — stacked glass panel (Length / Shape / Style / Quality), Figma 9496-9621 ===== */
.look-screen { background: #1f1f23; }             /* dark surface behind the photo card + panel */

/* iOS home-indicator at the bottom of the controls area */
.look-home { margin-top: -2px; padding: 4px 0 0; }

/* Glass panel sits below the photo on the dark surface; every control is visible at once */
.look-glasspanel {
  position: relative;
  z-index: 3;
  flex: none;
  margin: 16px 16px 0;
  padding: 12px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: var(--radius-3xl);
  background: rgba(184, 58, 248, 0.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Section = uppercase label (+ optional value) over a row/grid of chips */
.gt-sec { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.gt-sec-head { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.gt-sec-label,
.gt-sec-val {
  font-size: 10px;
  line-height: 14px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}
.gt-sec-label { opacity: 0.6; }
.gt-sec-val { text-align: right; }

/* Length row: full-width slider under the header */
.gt-sec--length .gt-range { width: 100%; flex: 0 0 auto; }

/* Chip grids — Shape (3 cols x 2 rows), Style & Quality (3 cols x 1 row).
   Each row reads left / center / right to match the design's space-between. */
.gt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));   /* truly equal columns */
  align-items: center;
  column-gap: 8px;
  row-gap: 12px;
  width: 100%;
}
.gt-grid .gt-chip { justify-self: stretch; }   /* every chip fills its column → equal width */

.gt-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  box-sizing: border-box;
  background: none;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-family);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}
.gt-chip-t { font-size: 14px; line-height: 20px; font-weight: var(--font-weight-regular); white-space: nowrap; }
.gt-chip-s { font-size: 12px; line-height: 16px; font-weight: var(--font-weight-regular); }
.gt-chip-ic { flex: none; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.gt-chip-ic img { display: block; width: auto; height: 20px; }   /* nail-shape icon */
.gt-chip-ic svg { width: 24px; height: 24px; display: block; }
.gt-chip.active { background: rgba(252, 252, 252, 0.1); border-color: var(--color-primary); }
.gt-chip:active { transform: scale(0.96); }

/* Length range slider — dark pill track, 5 step dots, white knob */
.gt-range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  min-width: 0;
  height: 30px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.gt-range::-webkit-slider-runnable-track {
  height: 14px;
  border-radius: 99px;
  background:
    radial-gradient(circle at 10px 50%,              rgba(255,255,255,.6) 0 2.6px, transparent 3.2px) no-repeat,
    radial-gradient(circle at 30% 50%,               rgba(255,255,255,.6) 0 2.6px, transparent 3.2px) no-repeat,
    radial-gradient(circle at 50% 50%,               rgba(255,255,255,.6) 0 2.6px, transparent 3.2px) no-repeat,
    radial-gradient(circle at 70% 50%,               rgba(255,255,255,.6) 0 2.6px, transparent 3.2px) no-repeat,
    radial-gradient(circle at calc(100% - 10px) 50%, rgba(255,255,255,.6) 0 2.6px, transparent 3.2px) no-repeat,
    linear-gradient(#b83af8, #b83af8) left / var(--fill, 50%) 100% no-repeat,   /* purple fill up to the knob */
    rgba(255, 255, 255, 0.18);
}
.gt-range::-moz-range-progress { height: 14px; border-radius: 99px; background: #b83af8; }
.gt-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; height: 24px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.gt-range::-moz-range-track { height: 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.18); }
.gt-range::-moz-range-thumb { width: 24px; height: 24px; border: none; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }

/* Disclaimer + Regenerate / Book actions — on the dark surface, below the glass panel */
.look-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px calc(8px + env(safe-area-inset-bottom, 0px));
}
.look-actions { display: flex; gap: 12px; }
.look-btn {
  flex: 1 0 0;
  height: 48px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.look-btn--ghost { background: var(--color-on-primary); color: #b83af8; }
.look-btn--primary { background: #b83af8; color: #fff; }
.look-note { display: flex; align-items: center; justify-content: center; gap: 4px; }
.look-note .icon { width: 16px; height: 16px; flex: none; filter: brightness(0) invert(1); opacity: 0.55; }
.look-note span { font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, 0.6); }

/* ============================================================
   Try-On flow · dark mode (experimental) + home indicators + loader info card.
   Grouped in one block so it's easy to review or revert. Covers the Nail
   Try-On sheet, the camera/gallery home bars, the result-look panel, and the
   nail-info card on the generating screen.
   ============================================================ */

/* — Home indicators on the camera + gallery (white bars on dark) — */
.gal-home { flex: none; }
.cam-home {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
}
.cam-home .home-indicator-bar,
.gal-home .home-indicator-bar { background: #fff; opacity: 0.5; }

/* — Nail Try-On sheet (Take Photo / Gallery) — dark — */
.tryon-sheet { background: #17151d; }
.tryon-sheet .sheet-handle { background: rgba(255, 255, 255, 0.22); }
.tryon-title { color: #fff; }
.tryon-close { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: none; }
.tryon-sub { color: rgba(255, 255, 255, 0.65); opacity: 1; }
.tryon-opt {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.tryon-opt-label { color: #fff; }
/* home-indicator below the two buttons → white bar + breathing room to the edge */
.tryon-sheet { padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); }
.tryon-sheet .home-indicator { padding-top: 24px; }
.tryon-sheet .home-indicator-bar { background: #fff; opacity: 0.5; }
/* press feedback on the two option cards */
.tryon-opt { transition: transform 0.12s ease, background 0.15s ease; }
.tryon-opt:active { transform: scale(0.97); background: rgba(255, 255, 255, 0.1); }

/* — Result-look screen — dark surface — */
.look-home .home-indicator-bar { background: #fff; opacity: 0.5; }   /* white bar on the dark surface */

/* — Nail-info card (the look from the post) — shared by the Try-On sheet and
     the generating screen; populated by renderNailInfo() — */
.nail-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
/* Large square thumb — tall enough to cover the (author + address) text block. */
.nail-info-thumb {
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 14px;
  object-fit: cover;
}
.nail-info-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nail-info-name { font-size: 15px; line-height: 20px; font-weight: var(--font-weight-semibold); color: #fff; }
.nail-info-meta { font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, 0.6); }
/* On the generating screen: a compact "Look from Post" reference card, top-right (matches the result screen). */
.gen-info {
  position: absolute;
  top: calc(var(--status-bar-h) + 12px);
  right: 16px;
  left: auto;
  z-index: 3;
  width: 104px;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 8px 4px 4px;
  border-radius: 16px;
  background: var(--color-on-primary, #fff);
  border: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 1px 1px rgba(113, 113, 113, 0.1);
}
.gen-post-label {
  font-size: 8px;
  line-height: 12px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-primary);
}
.gen-info .nail-info-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
}

/* — Look screen · kebab menu (Save / Download / Share) — */
.look-top-actions { position: relative; }
.look-menu {
  position: absolute;
  top: 48px;
  right: 0;
  min-width: 168px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(20, 18, 26, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 4;
}
.look-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.look-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px 9px 12px;
  border: none;
  background: none;
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease;
}
.look-menu-item:hover { background: rgba(255, 255, 255, 0.1); }
.look-menu-item:active { background: rgba(255, 255, 255, 0.16); }
.look-menu-item img.icon,
.look-menu-item svg { width: 20px; height: 20px; flex: none; }
.look-menu-item.look-save.saved svg path { fill: currentColor; }   /* filled bookmark when saved */

/* — Look panel · option-change feedback (keeps the panel from feeling static) — */
.gt-chip.active { animation: lookPop 0.22s ease; }
@keyframes lookPop {
  0%   { transform: scale(0.92); }
  55%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.look-img-pulse { animation: lookImgPulse 0.45s ease; }
@keyframes lookImgPulse {
  0%   { transform: scale(1);     filter: brightness(1); }
  40%  { transform: scale(1.015); filter: brightness(1.06); }
  100% { transform: scale(1);     filter: brightness(1); }
}
.look-bump { animation: lookValBump 0.28s ease; }
@keyframes lookValBump {
  0%   { transform: translateY(2px); opacity: 0.5; }
  100% { transform: none;            opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .gt-chip.active,
  .look-img-pulse, .look-bump { animation: none; }
}

/* ============================================================
   FEED SEARCH — salons / styles / locations of the feed posts
   ============================================================ */
.fsr-overlay {
  position: absolute;
  inset: 0;
  height: 100%;                /* flex abs-pos box won't stretch on top/bottom:0 alone */
  z-index: 85;                 /* above the glass nav (30) */
  background: #fff;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.fsr-overlay.open { opacity: 1; pointer-events: auto; transform: none; }

.fsr-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(var(--status-bar-h) + 8px) 16px 12px;
  border-bottom: 1px solid var(--color-border-weak);
}
.fsr-back {
  flex: none;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: none; padding: 0; cursor: pointer;
  color: var(--color-content-main);
}
.fsr-back svg { width: 22px; height: 22px; }
.fsr-input-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  background: var(--neutral-10);
}
.fsr-input-ic { flex: none; width: 18px; height: 18px; color: var(--neutral-50); }
.fsr-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: none;
  outline: none;
  font-family: var(--font-family);
  font-size: 15px;
  color: var(--color-content-main);
}
.fsr-input::placeholder { color: var(--neutral-50); }
.fsr-clear {
  flex: none;
  width: 20px; height: 20px;
  border: none; background: none; padding: 0; cursor: pointer;
  color: var(--color-content-main);
}
.fsr-clear svg { width: 20px; height: 20px; display: block; }

.fsr-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 24px;
}
.fsr-sec {
  padding: 12px 16px 6px;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--neutral-50);
}

/* Row — salon suggestion or a matching post */
.fsr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 16px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-family);
}
.fsr-row:active { background: var(--neutral-10); }
.fsr-thumb {
  position: relative;
  flex: none;
  width: 52px; height: 52px;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--neutral-10);
}
.fsr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fsr-thumb--salon { border-radius: 50%; }
.fsr-play {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.18);
}
.fsr-play svg { width: 20px; height: 20px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)); }
.fsr-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fsr-salon {
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-content-main);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fsr-sub {
  font-size: 13px;
  color: var(--neutral-50);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fsr-loc {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--neutral-50);
}
.fsr-loc svg { width: 12px; height: 12px; flex: none; }
.fsr-arw { flex: none; width: 18px; height: 18px; color: var(--neutral-20); }

/* Popular-style quick chips */
.fsr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 16px 8px;
}
.fsr-chip {
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-full);
  background: none;
  padding: 7px 14px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--color-content-main);
  cursor: pointer;
}
.fsr-chip:active { background: var(--neutral-10); }

/* Highlight the matched span in a salon/style result */
.fsr-hl { color: var(--color-primary); font-weight: var(--font-weight-semibold); }

/* Empty state */
.fsr-empty {
  padding: 48px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fsr-empty p { font-size: 15px; color: var(--color-content-main); }
.fsr-empty span { font-size: 13px; color: var(--neutral-50); }

/* ============================================================
   S4 · TikTok-style FULL-SCREEN feed  (Feed tab only)
   - reels fill the whole phone edge-to-edge on a black backdrop
   - header + status bar overlay the media (white)
   - bottom nav goes dark on Feed; other tabs stay light
   ============================================================ */
#app.view-feed .main-scroll {
  position: absolute;
  inset: 0;                 /* fill the whole phone: media runs behind status bar + nav */
  height: auto;
  padding: 0;
  background: #000;
  overflow: hidden;
}
#app.view-feed .feed { background: #000; }
#app.view-feed .feed-post { padding: 0; }                 /* no gutter → edge-to-edge */
#app.view-feed .feed-card { border-radius: 0; background: #000; }   /* no rounded card */

/* Feed header overlays the media — top:44 + padding-top:12 = title at 56px from
   the phone edge, matching .appt-header (padding-top:56) on the other pages */
#app.view-feed .feed-top {
  position: absolute;
  top: var(--status-bar-h);
  left: 0; right: 0;
  z-index: 6;
  padding: 12px var(--space-5) 12px;
  background: none;
}
#app.view-feed .feed-top .appt-title { color: #fff; }   /* the "Feeds" title */
#app.view-feed .feed-top-actions .appt-notif-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}
/* white glyphs — the search svg (currentColor, forced dark by appointment.css) + bell img */
#app.view-feed .feed-top-actions .appt-notif-btn svg { color: #fff; }
#app.view-feed .feed-top-actions .appt-notif-btn img { filter: brightness(0) invert(1); }

/* Stronger top+bottom scrim so overlaid white UI stays legible on bright reels */
#app.view-feed .feed-scrim {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.18) 20%, rgba(0,0,0,0) 32%),
    linear-gradient(180deg, rgba(0,0,0,0) 56%, rgba(0,0,0,0.62) 94%);
}

/* Bottom cluster (author + caption + rail + progress) lifts above the nav */
#app.view-feed .feed-post-bottom { bottom: calc(var(--nav-height) + 16px); }

/* Status bar over the reel → white, transparent (media shows through) */
#app.view-feed .status-bar { background: none; }
#app.view-feed .status-bar .time { color: #fff; }
#app.view-feed .status-bar .status-icons .icon { filter: brightness(0) invert(1); }

/* ---- Feed: dark glass bottom nav (Figma 9398-13373) ---- */
#app.nav-glass.view-feed .bottom-nav { background: none; }   /* keep the gutter clear */
#app.nav-glass.view-feed .nav-items {
  background: rgba(101, 101, 101, 0.20);        /* dark-tinted glass */
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 0.22),   /* faint top rim */
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.14); /* glass edge */
}
#app.nav-glass.view-feed .nav-item.active {
  background: rgba(255, 255, 255, 0.20);         /* white active pill */
}
/* All nav glyphs → white on the dark Feed bar: the inactive outlines AND the
   active fill icon (now a single-tone silhouette, so the filter recolours it
   cleanly to white with its interior detail kept as cut-outs). Avatar untouched. */
#app.view-feed .nav-icon .icon-default,
#app.view-feed .nav-item.active .icon-active { filter: brightness(0) invert(1); }
#app.view-feed .home-indicator-bar { background: #fff; }
