/* ==========================================================================
   IsItLit Discover Layout & Camera View Optimization
   - Ultra-minimal overlay (less camera info, 90%+ view visibility)
   - Video-like playing aesthetic: live beacon, animated equalizer, sound badge
   - Snap-locked smooth slide navigation (touch & desktop)
   - Tap-to-hide overlay for 100% unobstructed full-screen viewing
   ========================================================================== */

/* 1. Feed Scrolling & Snapping Engine */
.feed {
  scroll-behavior: smooth !important;
  scroll-snap-type: y mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain !important;
  touch-action: pan-y !important;
}

.post {
  scroll-snap-align: start !important;
  scroll-snap-stop: always !important;
  cursor: pointer;
  position: relative;
}

/* 2. Soft Bottom Vignette (Leaves 85%+ of the camera unobstructed) */
.post:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 12%, transparent 22%) !important;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* 3. Top Video Status & Audio HUD */
.camera-top-bar {
  position: absolute;
  z-index: 6;
  top: 72px;
  left: max(14px, env(safe-area-inset-left));
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.camera-top-bar > * {
  pointer-events: auto;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(14, 14, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: white;
  user-select: none;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  animation: pulse-beacon 1.5s infinite;
  transition: transform 0.2s ease;
}

.public-camera-post .live-dot {
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

@keyframes pulse-beacon {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Animated Equalizer Bars */
.equalizer-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 9px;
  margin-left: 2px;
}

.equalizer-bars i {
  width: 2px;
  background: var(--paper);
  border-radius: 1px;
  animation: eq-anim 0.7s ease-in-out infinite alternate;
}

.equalizer-bars i:nth-child(1) { height: 4px; animation-delay: 0.1s; }
.equalizer-bars i:nth-child(2) { height: 9px; animation-delay: 0.3s; }
.equalizer-bars i:nth-child(3) { height: 6px; animation-delay: 0.2s; }

@keyframes eq-anim {
  0% { height: 2px; }
  100% { height: 9px; }
}

/* Sound Button in Top Bar */
.sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(14, 14, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  color: white;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.sound-btn:hover {
  background: rgba(30, 30, 42, 0.88);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.04);
}

.sound-btn.has-sound {
  border-color: rgba(182, 243, 107, 0.4);
  color: #d6efb9;
}

.sound-btn.unmuted {
  background: rgba(36, 60, 24, 0.8);
  border-color: var(--lime);
  color: var(--lime);
}

/* 4. Minimalist Bottom Overlay (Title, City & Commerce Bar stacked cleanly) */
.minimal-overlay {
  position: absolute;
  z-index: 6;
  left: max(14px, env(safe-area-inset-left)) !important;
  right: 68px !important;
  bottom: calc(52px + env(safe-area-inset-bottom)) !important;
  max-width: min(440px, calc(100% - 76px)) !important;
  pointer-events: none;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.minimal-overlay > * {
  pointer-events: auto;
}

.video-commerce-bar {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  margin-bottom: 2px !important;
  pointer-events: auto !important;
}

.video-commerce-bar::-webkit-scrollbar {
  display: none !important;
}

.camera-title {
  font: 600 clamp(16px, 3.2vw, 20px) "Space Grotesk", sans-serif !important;
  letter-spacing: -0.3px !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-place {
  font-size: 11.5px !important;
  color: #cfccd5 !important;
  line-height: 1.25 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 5. Streamlined Side Actions */
.side-actions {
  right: 12px !important;
  bottom: calc(74px + env(safe-area-inset-bottom)) !important;
  gap: 10px !important;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.side-actions a,
.side-actions button {
  width: 36px !important;
  height: 36px !important;
  font-size: 15px !important;
  background: rgba(14, 14, 20, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(10px) !important;
  cursor: pointer;
}

.side-actions small {
  font-size: 7.5px !important;
  margin-top: 2px !important;
}

/* 6. Living Motion on Snapshots (Ambient drift so photos don't look frozen) */
@keyframes camera-drift {
  0% { transform: scale(1.0) translate(0, 0); }
  50% { transform: scale(1.03) translate(-0.4%, -0.4%); }
  100% { transform: scale(1.0) translate(0, 0); }
}

.public-camera-post img {
  animation: camera-drift 24s ease-in-out infinite alternate;
  will-change: transform;
}

/* 7. Info Drawer (Only displayed when user clicks ℹ) */
.camera-info-drawer {
  position: absolute;
  z-index: 20;
  left: 12px;
  right: 12px;
  bottom: calc(74px + env(safe-area-inset-bottom));
  background: rgba(18, 18, 26, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  border-radius: 14px;
  padding: 13px 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  animation: slide-up-drawer 0.2s ease-out;
}

@keyframes slide-up-drawer {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.close-drawer-btn {
  background: none;
  border: none;
  color: #a09da8;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.close-drawer-btn:hover {
  color: white;
}

.drawer-body p {
  margin: 3px 0;
  font-size: 10.5px;
  color: #cfccd5;
}

.drawer-body a {
  color: var(--orange);
  text-decoration: none;
}

.drawer-body a:hover {
  text-decoration: underline;
}

/* 8. Clean View Mode (Tap video anywhere to hide all overlays) */
.post.clean-view .camera-top-bar,
.post.clean-view .minimal-overlay,
.post.clean-view .side-actions,
.post.clean-view:after {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(6px);
}

/* 9. Floating Toast Notification */
.feed-toast {
  position: fixed;
  z-index: 40;
  top: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(20, 20, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f5f3ef;
  font-size: 10.5px;
  padding: 6px 14px;
  border-radius: 99px;
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.feed-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 10. Modern 3-Column Social Marketer Desktop Layout */
.discover-shell {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 1080px) {
  .discover-shell {
    padding: 76px 20px 16px !important;
    gap: 24px !important;
    max-width: 1360px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    height: 100vh !important;
    box-sizing: border-box !important;
  }

  .marketer-sidebar {
    display: flex !important;
    flex-direction: column;
    width: 290px;
    height: calc(100vh - 94px) !important;
    flex-shrink: 0;
    overflow-y: auto;
    scrollbar-width: none;
    gap: 12px;
    padding-bottom: 16px;
  }
  .marketer-sidebar::-webkit-scrollbar { display: none; }

  .feed-stage {
    width: 420px !important;
    max-width: 420px !important;
    height: calc(100vh - 94px) !important;
    position: relative !important;
    flex-shrink: 0 !important;
    display: block !important;
    margin: 0 auto !important;
  }

  .intel-sidebar {
    display: flex !important;
    flex-direction: column;
    width: 320px;
    height: calc(100vh - 94px) !important;
    flex-shrink: 0;
    overflow-y: auto;
    scrollbar-width: none;
    gap: 12px;
    padding-bottom: 16px;
  }
  .intel-sidebar::-webkit-scrollbar { display: none; }

  .feed {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scroll-snap-type: y mandatory !important;
    padding: 0 !important;
    border-radius: 22px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
  }

  .post {
    height: 100% !important;
    min-height: 100% !important;
    width: 100% !important;
    scroll-snap-align: start !important;
    border-radius: 22px !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .feed-nav-controls {
    position: absolute !important;
    bottom: 14px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 25 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  #feedEmpty {
    position: absolute !important;
    inset: 0 !important;
    z-index: 30 !important;
    background: #101016 !important;
    border-radius: 22px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #feedEmpty.hidden {
    display: none !important;
  }

  .bottom-nav {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1079px) {
  .discover-shell {
    padding: 76px 16px 20px !important;
    gap: 20px !important;
    justify-content: center !important;
    height: 100vh !important;
  }

  .marketer-sidebar {
    display: none !important;
  }

  .feed-stage {
    width: 410px !important;
    height: calc(100vh - 96px) !important;
    position: relative !important;
    flex-shrink: 0 !important;
    display: block !important;
  }

  .intel-sidebar {
    display: flex !important;
    flex-direction: column;
    width: 310px;
    height: calc(100vh - 96px) !important;
    flex-shrink: 0;
    overflow-y: auto;
    scrollbar-width: none;
    gap: 12px;
  }

  .feed {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scroll-snap-type: y mandatory !important;
    padding: 0 !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
  }

  .post {
    height: 100% !important;
    min-height: 100% !important;
    width: 100% !important;
    border-radius: 20px !important;
  }

  #feedEmpty {
    position: absolute !important;
    inset: 0 !important;
    z-index: 30 !important;
    background: #101016 !important;
    border-radius: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #feedEmpty.hidden {
    display: none !important;
  }

  .feed-nav-controls {
    position: absolute !important;
    bottom: 14px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 25 !important;
    display: flex !important;
    align-items: center !important;
  }

  .bottom-nav {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .marketer-sidebar, .intel-sidebar {
    display: none !important;
  }

  .feed-stage {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    display: block !important;
  }

  .feed {
    width: 100% !important;
    height: 100% !important;
    overflow-y: auto !important;
    scroll-snap-type: y mandatory !important;
    padding: 0 !important;
  }

  .post {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    border-radius: 0 !important;
  }

  #feedEmpty {
    position: absolute !important;
    inset: 0 !important;
    z-index: 30 !important;
    background: #101016 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #feedEmpty.hidden {
    display: none !important;
  }

  .desktop-only-inline {
    display: none !important;
  }
}

/* 11. Slide Navigation Controls */
.feed-nav-controls {
  position: fixed;
  z-index: 25;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 800px) {
  .feed-nav-controls {
    bottom: 82px;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 799px) {
  .feed-nav-controls {
    right: 12px;
    top: 114px;
    flex-direction: column;
    gap: 5px;
  }
}

.feed-nav-btn {
  pointer-events: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(14, 14, 20, 0.75);
  backdrop-filter: blur(14px);
  color: white;
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s, border-color 0.18s;
  user-select: none;
}

.feed-nav-btn:hover {
  background: rgba(38, 38, 54, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.08);
}

.feed-nav-btn:active {
  transform: scale(0.94);
}

.feed-nav-btn:disabled {
  opacity: 0.25;
  pointer-events: none;
}

.feed-counter {
  pointer-events: auto;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(12, 12, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  color: #cfccd5;
  user-select: none;
}

/* ==========================================================================
   12. Snapchat-Style Snap Map World Engine
   ========================================================================== */

/* World View Canvas and Container */
.world-view {
  background: radial-gradient(circle at 50% 50%, #15112e 0%, #0d0a1c 45%, #05040a 100%) !important;
  position: relative;
  overflow: hidden;
}

#globe {
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

#globe:active {
  cursor: grabbing;
}

/* Snap Map Region Quick-Fly Chips */
.snap-map-regions {
  position: absolute;
  z-index: 15;
  top: 72px;
  left: 0;
  right: 0;
  padding: 0 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
}

.snap-map-regions::-webkit-scrollbar {
  display: none;
}

.snap-region-chip {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(16, 14, 26, 0.75);
  backdrop-filter: blur(14px);
  color: #cfccd5;
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.snap-region-chip:hover {
  background: rgba(36, 32, 58, 0.88);
  border-color: rgba(255, 255, 255, 0.35);
  color: white;
  transform: translateY(-1px);
}

.snap-region-chip.active {
  background: white !important;
  color: #0b0b10 !important;
  border-color: white !important;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.4);
}

/* World Copy overlay: repositioned and minimal */
.world-copy {
  position: absolute;
  left: 20px !important;
  top: 120px !important;
  pointer-events: none;
  z-index: 10;
}

.world-copy span {
  font-size: 8.5px !important;
  letter-spacing: 1.8px !important;
  color: var(--lime) !important;
  font-weight: 700;
}

.world-copy h1 {
  font: 700 clamp(22px, 4vw, 36px) "Space Grotesk", sans-serif !important;
  letter-spacing: -1px !important;
  margin: 4px 0 !important;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.world-copy p {
  font-size: 10px !important;
  color: #9f9baa !important;
  margin: 0;
}

/* Locate Me Button */
.locate {
  position: absolute;
  right: 18px !important;
  bottom: 84px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 99px !important;
  background: rgba(18, 16, 28, 0.8) !important;
  backdrop-filter: blur(12px) !important;
  color: white !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 8px 14px !important;
  z-index: 15;
  cursor: pointer;
  transition: all 0.2s ease;
}

.locate:hover {
  background: rgba(36, 32, 58, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: scale(1.04);
}

/* Zoom controls */
.zoom {
  position: absolute;
  right: 18px !important;
  top: 120px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(16, 14, 26, 0.78) !important;
  backdrop-filter: blur(12px) !important;
  z-index: 15;
}

.zoom button {
  width: 36px !important;
  height: 36px !important;
  font-size: 18px !important;
  color: white !important;
  cursor: pointer;
}

.zoom button:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* Snapchat Floating Story Card Popover */
.snap-story-card {
  position: absolute;
  z-index: 25;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  width: min(340px, calc(100% - 32px));
  background: rgba(14, 12, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(140, 108, 255, 0.2);
  backdrop-filter: blur(20px);
  animation: snap-card-pop 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes snap-card-pop {
  from { opacity: 0; transform: translateX(-50%) scale(0.92) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) scale(1.0) translateY(0); }
}

.snap-card-close {
  position: absolute;
  z-index: 10;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.15s;
}

.snap-card-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.snap-card-media {
  width: 100%;
  height: 155px;
  position: relative;
  background: #08080e;
  overflow: hidden;
}

.snap-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.snap-story-card:hover .snap-card-media img {
  transform: scale(1.04);
}

.snap-card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--orange);
  color: white;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.snap-card-tag i {
  width: 5px;
  height: 5px;
  background: white;
  border-radius: 50%;
  animation: pulse-beacon 1.2s infinite;
}

.snap-card-type {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #cfccd5;
  font-size: 8px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.snap-card-content {
  padding: 12px 14px 14px;
}

.snap-card-content h3 {
  font: 700 15px "Space Grotesk", sans-serif;
  margin: 0 0 2px;
  color: white;
  line-height: 1.2;
}

.snap-card-place {
  font-size: 11px;
  color: #c4c1ca;
  margin-bottom: 4px;
}

.snap-card-meta {
  font-size: 9.5px;
  color: var(--lime);
  font-weight: 600;
  margin-bottom: 11px;
}

.snap-card-watch-btn {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #ff5f38, #ff3b20);
  color: white;
  font: 700 12px "Space Grotesk", sans-serif;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 95, 56, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.snap-card-watch-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 95, 56, 0.55);
}

.snap-card-watch-btn:active {
  transform: scale(0.97);
}

.play-icon {
  font-size: 11px;
}

/* Snap Story Card Affiliate Buttons Grid */
.snap-card-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 4px;
}

.snap-card-actions-grid .snap-card-watch-btn {
  grid-column: span 2;
}

.snap-card-aff-btn {
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(22, 20, 32, 0.85);
  backdrop-filter: blur(8px);
  color: white;
  font: 600 10px "Space Grotesk", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.18s, border-color 0.18s;
}

.snap-card-aff-btn:hover {
  transform: translateY(-1px);
  background: rgba(38, 34, 58, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
}

.snap-card-aff-btn.uber-btn {
  color: #00e699;
  border-color: rgba(0, 230, 153, 0.3);
}

.snap-card-aff-btn.booking-btn {
  color: #70b4ff;
  border-color: rgba(112, 180, 255, 0.3);
}

/* ==========================================================================
   13. Top Header Actions & Marketer Bar
   ========================================================================== */
.top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.top-perks-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(18, 16, 26, 0.85);
  backdrop-filter: blur(12px);
  color: white;
  border-radius: 99px;
  padding: 8px 14px;
  font: 700 11.5px "Space Grotesk", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.top-perks-btn:hover {
  background: rgba(36, 32, 54, 0.95);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-1px);
}

.top-sponsor-btn {
  border: none;
  background: linear-gradient(135deg, #ff5f38, #8c6cff);
  color: white;
  border-radius: 99px;
  padding: 8px 14px;
  font: 700 11.5px "Space Grotesk", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 95, 56, 0.35);
  transition: all 0.2s ease;
}

.top-sponsor-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(255, 95, 56, 0.5);
}

/* ==========================================================================
   14. Sidebars: Social Marketer Hub (Left) & Live Intel (Right)
   ========================================================================== */
.sidebar-box {
  background: rgba(14, 13, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.pulse-card {
  background: radial-gradient(circle at top right, rgba(140, 108, 255, 0.15), rgba(14, 13, 22, 0.85));
  border-color: rgba(140, 108, 255, 0.25);
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.live-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e699;
  box-shadow: 0 0 8px #00e699;
  animation: pulse-beacon 1.4s infinite;
}

.marketer-tag {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #c4c0d0;
}

.pulse-card h3 {
  font: 700 17px "Space Grotesk", sans-serif;
  margin: 0 0 5px;
  color: white;
}

.pulse-card p {
  font-size: 11.5px;
  color: #9c98a6;
  margin: 0;
  line-height: 1.4;
}

.box-title {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--orange);
  margin-bottom: 12px;
}

/* Trending Hub Pills */
.hub-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hub-pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(22, 20, 32, 0.6);
  color: #cfccd5;
  border-radius: 99px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hub-pill:hover {
  background: rgba(40, 36, 60, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.hub-pill.active {
  background: white;
  color: #0b0b10;
  border-color: white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Affiliate Perks List */
.affiliate-perks-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(22, 20, 32, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.perk-item:hover {
  background: rgba(30, 27, 44, 0.85);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.perk-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

.perk-info {
  flex: 1;
  min-width: 0;
}

.perk-info strong {
  display: block;
  font-size: 11.5px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.perk-info small {
  display: block;
  font-size: 9.5px;
  color: #9b98a5;
  margin-top: 1px;
}

.copy-code {
  background: rgba(255, 95, 56, 0.2);
  color: #ff9d85;
  border: 1px solid rgba(255, 95, 56, 0.4);
  padding: 1px 4px;
  border-radius: 4px;
  font-family: monospace;
  cursor: pointer;
}

.perk-cta {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(35, 32, 50, 0.85);
  color: white;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.perk-cta:hover {
  background: var(--orange);
  border-color: var(--orange);
}

/* Sponsor Promo Box */
.sponsor-promo-box {
  background: linear-gradient(145deg, rgba(32, 22, 54, 0.85), rgba(18, 14, 28, 0.9));
  border: 1px solid rgba(140, 108, 255, 0.3);
}

.sponsor-badge {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--lime);
  margin-bottom: 7px;
}

.sponsor-promo-box h4 {
  font: 700 13.5px "Space Grotesk", sans-serif;
  margin: 0 0 6px;
  color: white;
  line-height: 1.3;
}

.sponsor-promo-box p {
  font-size: 11px;
  color: #9e9ba7;
  margin: 0 0 12px;
  line-height: 1.4;
}

.sponsor-promo-btn {
  width: 100%;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #8c6cff, #ff5f38);
  color: white;
  font: 700 11.5px "Space Grotesk", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(140, 108, 255, 0.35);
  transition: all 0.2s ease;
}

.sponsor-promo-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(140, 108, 255, 0.5);
}

/* Right Sidebar: Venue Spotlight */
.venue-spotlight-card h2 {
  font: 700 20px "Space Grotesk", sans-serif;
  margin: 8px 0 3px;
  color: white;
  line-height: 1.2;
}

.spotlight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spotlight-category {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--orange);
  background: rgba(255, 95, 56, 0.14);
  padding: 3px 7px;
  border-radius: 4px;
}

.spotlight-live-tag {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #00e699;
  display: flex;
  align-items: center;
  gap: 4px;
}

.intel-place {
  font-size: 12px;
  color: #b0adb7;
  margin: 0 0 14px;
}

/* Crowd Energy Level Meter */
.crowd-meter-card {
  background: rgba(22, 20, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.meter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.meter-head span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #8c8896;
}

.meter-head strong {
  font-size: 11px;
  color: #ff9d85;
}

.meter-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff8b70, #ff4e26, #ff2a00);
  box-shadow: 0 0 10px rgba(255, 95, 56, 0.6);
  transition: width 0.4s ease;
}

/* 1-Click Affiliate Action Stack */
.affiliate-action-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.aff-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(24, 21, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  transition: all 0.18s ease;
}

.aff-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(36, 32, 54, 0.95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.aff-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.aff-btn-content {
  flex: 1;
  min-width: 0;
}

.aff-btn-content strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.aff-btn-content small {
  display: block;
  font-size: 9.5px;
  color: #a4a0ad;
  margin-top: 1px;
}

.aff-arrow {
  font-size: 12px;
  color: #a4a0ad;
  transition: transform 0.15s;
}

.aff-btn:hover .aff-arrow {
  transform: translateX(2px) translateY(-2px);
  color: white;
}

.aff-btn.uber-btn {
  border-color: rgba(0, 230, 153, 0.3);
}

.aff-btn.uber-btn strong {
  color: #00e699;
}

.aff-btn.booking-btn {
  border-color: rgba(112, 180, 255, 0.3);
}

.aff-btn.booking-btn strong {
  color: #70b4ff;
}

.aff-btn.tickets-btn {
  border-color: rgba(255, 140, 200, 0.3);
}

.aff-btn.tickets-btn strong {
  color: #ff8cc8;
}

.aff-btn.table-btn {
  border-color: rgba(255, 200, 80, 0.3);
}

.aff-btn.table-btn strong {
  color: #ffc850;
}

.official-partner-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(140, 108, 255, 0.12);
  border: 1px solid rgba(140, 108, 255, 0.25);
  margin-bottom: 12px;
}

.partner-flame {
  font-size: 16px;
}

.official-partner-banner strong {
  display: block;
  font-size: 11px;
  color: white;
}

.official-partner-banner small {
  display: block;
  font-size: 9px;
  color: #a9a6b5;
}

.claim-venue-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #8c8996;
  padding-top: 4px;
}

.claim-link {
  background: none;
  border: none;
  color: var(--orange);
  font: 700 11px "Space Grotesk", sans-serif;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

/* ==========================================================================
   15. In-Stream Floating Commerce Bar (TikTok Shop Style)
   ========================================================================== */

.commerce-pill {
  flex-shrink: 0;
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(14, 12, 22, 0.85);
  backdrop-filter: blur(12px);
  color: white;
  font-size: 10px;
  cursor: pointer;
  transition: transform 0.15s, background 0.18s, border-color 0.18s;
  text-decoration: none;
  user-select: none;
}

.commerce-pill:hover {
  transform: translateY(-1px);
  background: rgba(30, 26, 48, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
}

.commerce-pill b {
  font-weight: 700;
}

.commerce-pill small {
  font-size: 8.5px;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 95, 56, 0.25);
  color: #ff8b70;
  font-weight: 700;
}

.commerce-pill.uber-pill {
  border-color: rgba(0, 230, 153, 0.35);
}

.commerce-pill.booking-pill {
  border-color: rgba(112, 180, 255, 0.35);
}

.commerce-pill.deals-pill {
  background: linear-gradient(135deg, rgba(255, 95, 56, 0.25), rgba(140, 108, 255, 0.25));
  border-color: rgba(255, 95, 56, 0.5);
}

/* ==========================================================================
   16. Modals: Deals Sheet & Sponsor Lead Application
   ========================================================================== */
.deals-sheet,
.sponsor-modal {
  width: min(580px, calc(100% - 24px));
  max-width: none;
  margin: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: #100e1c;
  color: white;
  padding: 0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.deals-sheet::backdrop,
.sponsor-modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.deals-modal-content,
.sponsor-modal-content {
  padding: 16px 24px 28px;
  max-height: 85vh;
  overflow-y: auto;
}

.close-sheet-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s;
}

.close-sheet-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.deals-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.deal-card {
  border-radius: 16px;
  background: rgba(22, 20, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.deal-badge {
  background: rgba(255, 95, 56, 0.18);
  color: #ff9178;
  font: 800 8.5px "Space Grotesk", sans-serif;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-bottom: 1px solid rgba(255, 95, 56, 0.25);
}

.deal-body {
  padding: 14px;
}

.deal-title-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.deal-icon {
  font-size: 24px;
}

.deal-title-row h3 {
  font: 700 15px "Space Grotesk", sans-serif;
  margin: 0 0 3px;
  color: white;
}

.deal-title-row p {
  font-size: 11px;
  color: #9d99a7;
  margin: 0;
  line-height: 1.35;
}

.promo-code-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.promo-code-box span {
  font-size: 9px;
  color: #8c8996;
  font-weight: 700;
}

.promo-code-box .code-val {
  font-size: 13px;
  color: var(--lime);
  font-family: monospace;
  font-weight: 700;
  letter-spacing: 1.5px;
  flex: 1;
}

.copy-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.copy-btn:hover {
  background: white;
  color: #0b0b10;
}

.deal-action-btn {
  display: block;
  text-align: center;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  color: white;
  font: 700 12px "Space Grotesk", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.deal-action-btn:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.deal-action-btn.uber {
  background: #00b074;
}

.deal-action-btn.booking {
  background: #006ce4;
}

.deal-action-btn.events {
  background: #f05537;
}

.deal-action-btn.gear {
  background: #ff9900;
  color: #111;
}

/* Sponsor Modal Tiers */
.sponsor-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.tier-card {
  position: relative;
  cursor: pointer;
}

.tier-card input {
  position: absolute;
  opacity: 0;
}

.tier-card-inner {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(22, 20, 34, 0.7);
  border-radius: 14px;
  padding: 14px 12px;
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tier-card input:checked + .tier-card-inner {
  border-color: var(--orange);
  background: rgba(36, 26, 48, 0.95);
  box-shadow: 0 0 16px rgba(255, 95, 56, 0.35);
}

.tier-popular-tag {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 1px;
  background: var(--orange);
  color: white;
  padding: 2px 6px;
  border-radius: 99px;
  align-self: flex-start;
  margin-bottom: 6px;
}

.tier-name {
  font: 800 10.5px "Space Grotesk", sans-serif;
  letter-spacing: 0.8px;
  color: #c5c2cf;
  margin-bottom: 4px;
}

.tier-price {
  font: 700 22px "Space Grotesk", sans-serif;
  color: white;
  margin-bottom: 10px;
}

.tier-price span {
  font-size: 11px;
  color: #8c8896;
  font-weight: 400;
}

.tier-card-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 10px;
  color: #a8a5b2;
  line-height: 1.5;
}

.tier-card-inner li {
  margin-bottom: 3px;
}

/* Sponsor Form */
.sponsor-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.sponsor-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  color: #b0adb8;
}

.sponsor-form input,
.sponsor-form select,
.sponsor-form textarea {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: rgba(14, 12, 22, 0.85);
  color: white;
  padding: 9px 12px;
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s;
}

.sponsor-form input:focus,
.sponsor-form select:focus,
.sponsor-form textarea:focus {
  border-color: var(--orange);
}

.submit-sponsor-btn {
  height: 44px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #ff5f38, #8c6cff);
  color: white;
  font: 700 13px "Space Grotesk", sans-serif;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 4px 18px rgba(255, 95, 56, 0.4);
  transition: all 0.2s ease;
}

.submit-sponsor-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 95, 56, 0.55);
}

