/* ==========================================================================
   Hero Event Cards — In The Cards (nthecards.com)
   Aesthetic: Architectural Dark Lines, Wide Ovals, Tactile Depth, Rich Imagery
   40% Image / 60% Details (Desktop), Rebuilt Mobile (Image Top / Details Under)
   Custom UI Scrollbar, White Space 3D Mini Profile Cards, Northwest Indiana
   ========================================================================== */

:root {
  --hero-black: #090d16;
  --hero-border: 1.5px solid var(--hero-black);
  --hero-radius-card: 12px;
  --hero-radius-pill: 9999px;
  --hero-bg-card: #ffffff;
  --hero-text-primary: #090d16;
  --hero-text-secondary: #475569;
  --hero-text-muted: #64748b;
  --hero-accent-emerald: #10b981;
  --hero-accent-blue: #3b82f6;
  --hero-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Desktop Equal Height Standard */
  --hero-card-height-desktop: 580px;
}

/* ==========================================================================
   Hero Section Container
   ========================================================================== */
.hero-events-section {
  width: 100%;
  padding: 0.75rem 2rem 2.25rem;
  font-family: var(--hero-font);
  color: var(--hero-text-primary);
  user-select: none;
  box-sizing: border-box;
}

/* Header bar above hero card: Location & Pagination Indicators */
.hero-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding: 0 0.25rem;
}

/* Clean Location Header without Pill (City, State Zip) */
.hero-location-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-location-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hero-accent-emerald);
  box-shadow: 0 0 7px var(--hero-accent-emerald);
  animation: heroPulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes heroPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-location-text {
  font-family: var(--hero-font);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--hero-black);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Animated Top Bar Counter */
.hero-pagination-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hero-text-muted);
}

.hero-counter-roller {
  position: relative;
  overflow: hidden;
  height: 1.25em;
  min-width: 1.6em;
  display: inline-block;
  vertical-align: middle;
}

.hero-counter-num {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25em;
  color: var(--hero-black);
}

.hero-counter-num.hero-counter-exit-next {
  animation: counterExitUp 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}
.hero-counter-num.hero-counter-enter-next {
  position: absolute;
  top: 0;
  left: 0;
  animation: counterEnterUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-counter-num.hero-counter-exit-prev {
  animation: counterExitDown 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}
.hero-counter-num.hero-counter-enter-prev {
  position: absolute;
  top: 0;
  left: 0;
  animation: counterEnterDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes counterExitUp {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-100%); opacity: 0; }
}
@keyframes counterEnterUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes counterExitDown {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(100%); opacity: 0; }
}
@keyframes counterEnterDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   The Large Hero Event Card — DESKTOP: 40% IMAGE / 60% DETAILS
   ========================================================================== */
.hero-event-card {
  width: 100%;
  height: var(--hero-card-height-desktop);
  min-height: var(--hero-card-height-desktop);
  max-height: var(--hero-card-height-desktop);
  background: var(--hero-bg-card);
  border: var(--hero-border);
  border-radius: var(--hero-radius-card);
  box-shadow: 0 16px 44px -12px rgba(9, 13, 22, 0.1),
              0 2px 8px rgba(9, 13, 22, 0.04);
  display: grid;
  grid-template-columns: 40% 60%;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

/* ==========================================================================
   Left Column: 40% Visual Showcase Viewport
   ========================================================================== */
.hero-visual-pane {
  position: relative;
  overflow: hidden;
  background: #090d16;
  height: 100%;
  min-height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.hero-visual-slide {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
}

.hero-event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.hero-event-card:hover .hero-event-img {
  transform: scale(1.03);
}

/* Subtle gradient scrim over image for badge legibility */
.hero-visual-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 13, 22, 0.45) 0%,
    rgba(9, 13, 22, 0.05) 40%,
    rgba(9, 13, 22, 0.72) 100%
  );
  pointer-events: none;
}

/* Floating Badges Over Image — Wrap Cleanly, Never Disappear */
.hero-visual-top-bar {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  z-index: 2;
}

.hero-tag-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.hero-category-badge {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--hero-black);
  border-radius: var(--hero-radius-pill);
  padding: 0.28rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hero-black);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.hero-price-badge {
  background: var(--hero-black);
  border: 1.5px solid var(--hero-black);
  border-radius: var(--hero-radius-pill);
  padding: 0.28rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.hero-partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--hero-black);
  border-radius: var(--hero-radius-pill);
  padding: 0.28rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hero-black);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.hero-verified-icon {
  width: 14px;
  height: 14px;
  fill: #3b82f6;
  flex-shrink: 0;
}

/* Gallery Thumbnails Strip (Bottom Left of Visual) */
.hero-visual-bottom-bar {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.hero-gallery-thumbs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-gallery-thumb-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.15s ease;
  flex-shrink: 0;
}

.hero-gallery-thumb-btn:hover {
  transform: scale(1.08);
}

.hero-gallery-thumb-btn.active {
  border: 2px solid #3b82f6;
  transform: scale(1.05);
}

.hero-gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Visual Slide Transitions */
.hero-visual-slide.hero-visual-exit-next {
  animation: visualExitNext 0.36s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  z-index: 1;
}
.hero-visual-slide.hero-visual-enter-next {
  animation: visualEnterNext 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 2;
}
.hero-visual-slide.hero-visual-exit-prev {
  animation: visualExitPrev 0.36s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  z-index: 1;
}
.hero-visual-slide.hero-visual-enter-prev {
  animation: visualEnterPrev 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 2;
}

@keyframes visualExitNext {
  0% { transform: translateX(0) scale(1); opacity: 1; }
  100% { transform: translateX(-28%) scale(1.04); opacity: 0; }
}
@keyframes visualEnterNext {
  0% { transform: translateX(30%) scale(1.05); opacity: 0; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes visualExitPrev {
  0% { transform: translateX(0) scale(1); opacity: 1; }
  100% { transform: translateX(28%) scale(1.04); opacity: 0; }
}
@keyframes visualEnterPrev {
  0% { transform: translateX(-30%) scale(1.05); opacity: 0; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

/* ==========================================================================
   Right Column: 60% Details & Intelligence Viewport
   ========================================================================== */
.hero-content-pane {
  padding: 1.75rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}

.hero-content-viewport {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-content-slide {
  grid-area: 1 / 1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  will-change: transform, opacity;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-slide-main-info {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Date & Capacity Row */
.hero-date-capacity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}

.hero-schedule-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(9, 13, 22, 0.04);
  border: 1px solid rgba(9, 13, 22, 0.1);
  border-radius: var(--hero-radius-pill);
  padding: 0.26rem 0.8rem;
  font-size: clamp(0.72rem, 0.9vw, 0.78rem);
  font-weight: 700;
  color: var(--hero-text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-schedule-pill svg {
  width: 14px;
  height: 14px;
  stroke: var(--hero-black);
  stroke-width: 2;
}

.hero-spots-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: clamp(0.7rem, 0.85vw, 0.75rem);
  font-weight: 700;
  color: #d97706;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--hero-radius-pill);
  padding: 0.24rem 0.7rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Event Title — Natural Wrapping (Up to 2 lines) */
.hero-title {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--hero-black);
  margin-bottom: 0.35rem;
  word-break: break-word;
}

/* Venue & Neighborhood Location */
.hero-venue-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: clamp(0.8rem, 1vw, 0.86rem);
  font-weight: 600;
  color: var(--hero-text-secondary);
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}

.hero-venue-location svg {
  width: 14px;
  height: 14px;
  stroke: var(--hero-black);
  stroke-width: 1.85;
  flex-shrink: 0;
}

/* Prominent Price & Description Flow */
.hero-description-container {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  margin-bottom: 0.55rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.hero-prominent-price-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.42rem;
  background: var(--hero-black);
  color: #ffffff;
  border: 1.5px solid var(--hero-black);
  border-radius: var(--hero-radius-pill);
  padding: 0.24rem 0.78rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 3px rgba(9, 13, 22, 0.12);
}

.hero-price-badge-icon {
  width: 13px;
  height: 13px;
  stroke: #10b981;
  stroke-width: 2.2;
  flex-shrink: 0;
}

.hero-prominent-price-badge .hero-price-val {
  color: #ffffff;
  font-weight: 800;
}

.hero-prominent-price-badge .hero-price-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
}

.hero-prominent-price-badge .hero-price-term {
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Tagline / Descriptive Text — Natural Wrapping with Custom UI Scrollbar */
.hero-tagline-scrollable,
.hero-tagline {
  font-size: clamp(0.84rem, 1vw, 0.9rem);
  line-height: 1.45;
  color: var(--hero-text-secondary);
  margin-bottom: 0.55rem;
  max-height: 3.8em;
  overflow-y: auto;
  padding-right: 0.4rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #3b82f6 rgba(9, 13, 22, 0.05);
}

/* Custom UI Scrollbar */
.hero-tagline-scrollable::-webkit-scrollbar,
.hero-tagline::-webkit-scrollbar {
  width: 4px;
}

.hero-tagline-scrollable::-webkit-scrollbar-track,
.hero-tagline::-webkit-scrollbar-track {
  background: rgba(9, 13, 22, 0.04);
  border-radius: 9999px;
}

.hero-tagline-scrollable::-webkit-scrollbar-thumb,
.hero-tagline::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6 0%, #10b981 100%);
  border-radius: 9999px;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.35);
}

.hero-tagline-scrollable::-webkit-scrollbar-thumb:hover,
.hero-tagline::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2563eb 0%, #059669 100%);
}

/* Perks Row — Natural Wrapping Pills */
.hero-perks-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-perk-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  background: #f8fafc;
  border: 1px solid rgba(9, 13, 22, 0.1);
  border-radius: var(--hero-radius-pill);
  padding: 0.2rem 0.6rem;
  font-size: clamp(0.68rem, 0.8vw, 0.73rem);
  font-weight: 600;
  color: #334155;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  flex-shrink: 0;
  will-change: transform, opacity;
}

.hero-perk-chip::before {
  content: "•";
  color: var(--hero-accent-emerald);
  font-weight: 900;
  font-size: 0.85rem;
}

/* ==========================================================================
   ZONE: WHO'S INTERESTED — WHITE SPACE 3D MINI PROFILE CARDS
   ========================================================================== */
.hero-interested-section {
  border-top: 1px solid rgba(9, 13, 22, 0.08);
  padding-top: 0.55rem;
  margin-bottom: 0.4rem;
  position: relative;
}

.hero-interested-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.hero-interested-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.hero-interested-title {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hero-text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-interested-count-badge {
  background: rgba(9, 13, 22, 0.06);
  border-radius: var(--hero-radius-pill);
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--hero-black);
  transition: all 0.2s ease;
}

/* Status Pill when Filters are Active */
.hero-filter-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f0fdf4;
  border: 1.5px solid #10b981;
  border-radius: var(--hero-radius-pill);
  padding: 0.12rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #065f46;
  letter-spacing: 0.01em;
  animation: filterPulseIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-filter-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: heroPulse 1.8s infinite ease-in-out;
}

.hero-filter-quick-clear-btn {
  background: transparent;
  border: none;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0 0 0 0.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: transform 0.15s ease, color 0.15s ease;
}

.hero-filter-quick-clear-btn:hover {
  color: #ef4444;
  transform: scale(1.2);
}

/* Filter Trigger Button in Header */
.hero-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.28rem 0.78rem;
  border: 1.5px solid var(--hero-black);
  border-radius: var(--hero-radius-pill);
  background: #ffffff;
  color: var(--hero-black);
  font-family: var(--hero-font);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(9, 13, 22, 0.06);
  user-select: none;
  flex-shrink: 0;
}

.hero-filter-btn:hover {
  background: #090d16;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(9, 13, 22, 0.18);
}

.hero-filter-btn:active {
  transform: translateY(0) scale(0.98);
}

.hero-filter-btn.is-active {
  background: #090d16;
  color: #ffffff;
  border-color: #090d16;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.hero-filter-gear-svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.hero-filter-btn:hover .hero-filter-gear-svg {
  transform: rotate(45deg);
}

.hero-filter-btn.is-active .hero-filter-gear-svg {
  stroke: #10b981;
}

.hero-filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #10b981;
  color: #090d16;
  border-radius: var(--hero-radius-pill);
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  line-height: 1;
}

/* Attendees Empty State (When 0 profiles match active filter) */
.hero-attendees-empty-state {
  width: 100%;
  min-height: 155px;
  border: 1.5px dashed rgba(9, 13, 22, 0.2);
  border-radius: 16px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  text-align: center;
  gap: 0.65rem;
  animation: filterFadeIn 0.25s ease-out;
}

.empty-state-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(9, 13, 22, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hero-text-muted);
}

.empty-state-icon svg {
  width: 18px;
  height: 18px;
}

.empty-state-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 360px;
}

.empty-state-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--hero-black);
}

.empty-state-desc {
  font-size: 0.74rem;
  color: var(--hero-text-muted);
  line-height: 1.35;
}

.empty-state-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.empty-state-adjust-btn {
  padding: 0.32rem 0.85rem;
  border-radius: var(--hero-radius-pill);
  border: 1.5px solid var(--hero-black);
  background: var(--hero-black);
  color: #ffffff;
  font-family: var(--hero-font);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.empty-state-adjust-btn:hover {
  background: #27272a;
  transform: translateY(-1px);
}

.empty-state-reset-btn {
  padding: 0.32rem 0.85rem;
  border-radius: var(--hero-radius-pill);
  border: 1.5px solid rgba(9, 13, 22, 0.2);
  background: #ffffff;
  color: var(--hero-text-secondary);
  font-family: var(--hero-font);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.empty-state-reset-btn:hover {
  border-color: var(--hero-black);
  color: var(--hero-black);
}

/* ==========================================================================
   GLOBAL FILTER PREFERENCES MODAL
   ========================================================================== */
.hero-filter-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(9, 13, 22, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  animation: filterModalFadeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes filterModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-filter-modal-backdrop.closing {
  animation: filterModalFadeOut 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes filterModalFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.hero-filter-modal-chassis {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border: 2px solid var(--hero-black);
  border-radius: 20px;
  box-shadow: 0 25px 60px -10px rgba(9, 13, 22, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(0.95) translateY(10px);
  animation: filterChassisIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes filterChassisIn {
  to { transform: scale(1) translateY(0); }
}

.hero-filter-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.4rem 1.5rem 1rem;
  border-bottom: 1.5px solid rgba(9, 13, 22, 0.08);
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.hero-filter-modal-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-filter-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hero-black);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-filter-modal-title svg {
  width: 20px;
  height: 20px;
  stroke: #10b981;
}

.hero-filter-modal-sub {
  font-size: 0.78rem;
  color: var(--hero-text-muted);
  line-height: 1.35;
}

.hero-filter-modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(9, 13, 22, 0.15);
  background: #ffffff;
  color: var(--hero-black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  margin-top: -0.2rem;
}

.hero-filter-modal-close-btn:hover {
  background: var(--hero-black);
  color: #ffffff;
  border-color: var(--hero-black);
}

.hero-filter-modal-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  overflow-y: auto;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

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

.filter-group-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hero-text-muted);
}

.filter-group-val-hint {
  font-size: 0.72rem;
  font-weight: 700;
  color: #3b82f6;
}

.filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.filter-pill-btn {
  padding: 0.35rem 0.8rem;
  border: 1.5px solid rgba(9, 13, 22, 0.15);
  border-radius: var(--hero-radius-pill);
  background: #ffffff;
  color: #334155;
  font-family: var(--hero-font);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.filter-pill-btn:hover {
  border-color: var(--hero-black);
  color: var(--hero-black);
  transform: translateY(-1px);
}

.filter-pill-btn.is-active {
  background: var(--hero-black);
  color: #ffffff;
  border-color: var(--hero-black);
  box-shadow: 0 2px 6px rgba(9, 13, 22, 0.15);
}

/* Age Range Slider & Manual Controls */
.filter-age-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid rgba(9, 13, 22, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.filter-age-slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-age-slider {
  flex: 1;
  accent-color: #10b981;
  height: 5px;
  cursor: pointer;
}

.filter-age-inputs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.filter-age-input-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--hero-text-muted);
}

.filter-age-input {
  width: 58px;
  padding: 0.28rem 0.45rem;
  border: 1.5px solid rgba(9, 13, 22, 0.2);
  border-radius: 8px;
  font-family: var(--hero-font);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hero-black);
  text-align: center;
}

.filter-age-input:focus {
  border-color: #3b82f6;
  outline: none;
}

/* Verification Toggle Switch */
.filter-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid rgba(9, 13, 22, 0.08);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
}

.filter-toggle-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.filter-toggle-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hero-black);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-toggle-desc {
  font-size: 0.7rem;
  color: var(--hero-text-muted);
}

.filter-toggle-switch {
  width: 40px;
  height: 22px;
  border-radius: 9999px;
  background: #cbd5e1;
  border: 1.5px solid #94a3b8;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.filter-toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.filter-toggle-switch.is-on {
  background: #10b981;
  border-color: #059669;
}

.filter-toggle-switch.is-on::after {
  transform: translateX(18px);
}

/* Live Match Counter Strip */
.filter-match-live-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0fdf4;
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.filter-match-live-text {
  font-size: 0.76rem;
  font-weight: 700;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.filter-match-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* Modal Action Footer */
.hero-filter-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.4rem;
  border-top: 1.5px solid rgba(9, 13, 22, 0.08);
  position: sticky;
  bottom: 0;
  background: #ffffff;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.filter-reset-btn {
  padding: 0.45rem 0.95rem;
  border: 1.5px solid rgba(9, 13, 22, 0.2);
  border-radius: var(--hero-radius-pill);
  background: transparent;
  color: var(--hero-text-muted);
  font-family: var(--hero-font);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-reset-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.filter-apply-btn {
  padding: 0.5rem 1.35rem;
  border: 1.5px solid var(--hero-black);
  border-radius: var(--hero-radius-pill);
  background: var(--hero-black);
  color: #ffffff;
  font-family: var(--hero-font);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 8px rgba(9, 13, 22, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-apply-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(16, 185, 129, 0.25);
}

.filter-apply-btn:active {
  transform: translateY(0);
}

@keyframes filterPulseIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes filterFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-attendees-tray-wrapper {
  position: relative;
  min-height: 185px;
  border-radius: 16px;
  overflow: visible;
}

/* Horizontal Scroll Row for 3D Mini Profile Cards */
.hero-attendees-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.45rem 0.5rem 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: #3b82f6 rgba(9, 13, 22, 0.04);
  -webkit-overflow-scrolling: touch;
}

.hero-attendees-row::-webkit-scrollbar {
  height: 5px;
}

.hero-attendees-row::-webkit-scrollbar-track {
  background: rgba(9, 13, 22, 0.04);
  border-radius: 9999px;
}

.hero-attendees-row::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
  border-radius: 9999px;
}

/* White Space Style Mini 3D Profile Card (Tactile Real-Time Inward Push) */
.hero-profile-card-mini,
.hero-attendees-row .hero-profile-card-mini {
  width: 120px;
  height: 162px;
  border-radius: 15px;
  border: 1.5px solid var(--hero-black);
  background: #090d16;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  box-shadow: 0 1.5px 3.5px rgba(9, 13, 22, 0.08),
              0 0.5px 1.5px rgba(9, 13, 22, 0.04) !important;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform, box-shadow;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

/* Mini Profile Card Animate Forward on Click */
.hero-profile-card-mini.card-popping-forward {
  animation: miniCardPopForward 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  z-index: 50 !important;
}

@keyframes miniCardPopForward {
  0% {
    transform: perspective(600px) translateZ(0) scale(1);
    box-shadow: 0 1.5px 3.5px rgba(9, 13, 22, 0.08) !important;
  }
  50% {
    transform: perspective(600px) translateZ(45px) scale(1.12);
    box-shadow: 0 12px 24px rgba(9, 13, 22, 0.25) !important;
  }
  100% {
    transform: perspective(600px) translateZ(30px) scale(1.06);
    box-shadow: 0 8px 18px rgba(9, 13, 22, 0.18) !important;
  }
}

/* Ensure all mini card descendants pass pointer events directly to the card button */
.hero-profile-card-mini * {
  pointer-events: none !important;
}

.hero-profile-card-mini:focus-visible {
  outline: 2px solid var(--hero-accent-blue);
  outline-offset: 2px;
}

/* Photo Layer */
.mini-card-photo-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mini-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.mini-card-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 45%
  );
  pointer-events: none;
}

/* Living Aurora / Dark Scrim Gradient Footer (Softened to Luxury Ambient Glow) */
.mini-card-aurora {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38%;
  pointer-events: none;
  overflow: hidden;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.mini-aurora-curtain {
  position: absolute;
  inset: -6px;
  filter: blur(10px);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.22;
}

.mini-curtain-emerald {
  background: radial-gradient(
    ellipse 85% 65% at 20% 90%,
    rgba(0, 245, 160, 0.3) 0%,
    transparent 70%
  );
  animation: miniAuroraEmerald 12s ease-in-out infinite alternate;
}

.mini-curtain-violet {
  background: radial-gradient(
    ellipse 85% 65% at 80% 90%,
    rgba(139, 92, 246, 0.25) 0%,
    transparent 70%
  );
  animation: miniAuroraViolet 15s ease-in-out infinite alternate;
}

.mini-curtain-cyan {
  background: radial-gradient(
    ellipse 75% 55% at 50% 85%,
    rgba(56, 189, 248, 0.25) 0%,
    transparent 70%
  );
  animation: miniAuroraCyan 10s ease-in-out infinite alternate;
}

@keyframes miniAuroraEmerald {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4px, -3px) scale(1.05); }
  100% { transform: translate(-3px, 2px) scale(0.97); }
}

@keyframes miniAuroraViolet {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4px, -2px) scale(1.04); }
  100% { transform: translate(3px, 3px) scale(0.98); }
}

@keyframes miniAuroraCyan {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2px, -4px) scale(1.06); }
  100% { transform: translate(-2px, 2px) scale(0.96); }
}

.mini-card-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(9, 13, 22, 0.32) 68%,
    rgba(9, 13, 22, 0.94) 96%
  );
}

/* Profile Info Typography Floating Above Scrim */
.mini-card-info {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  right: 0.65rem;
  text-align: left;
  z-index: 2;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.mini-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  margin-bottom: 0.15rem;
}

.mini-card-name {
  font-size: 0.74rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.mini-card-verified {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.mini-card-verified svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mini-card-tag {
  font-size: 0.63rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.mini-card-loc {
  font-size: 0.58rem;
  font-weight: 700;
  color: #38bdf8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

/* Blurry Lock Conversion Overlay (Signed Out) */
.hero-interest-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.04);
}

.hero-lock-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--hero-black);
  border: 1.5px solid var(--hero-black);
  border-radius: var(--hero-radius-pill);
  padding: 0.45rem 1.15rem;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(9, 13, 22, 0.25);
  transition: transform 0.2s ease, background 0.15s ease;
  white-space: nowrap;
}

.hero-lock-cta-btn:hover {
  transform: scale(1.04);
  background: #1e293b;
}

.hero-lock-cta-btn svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  stroke-width: 2;
}

/* ==========================================================================
   Content Slide Internal Exit & Enter Animations
   ========================================================================== */
.hero-content-slide.hero-content-exit-next {
  animation: contentExitNext 0.28s cubic-bezier(0.4, 0, 1, 1) forwards;
  z-index: 1;
  pointer-events: none;
}
.hero-content-slide.hero-content-exit-prev {
  animation: contentExitPrev 0.28s cubic-bezier(0.4, 0, 1, 1) forwards;
  z-index: 1;
  pointer-events: none;
}

@keyframes contentExitNext {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(-24px); opacity: 0; }
}
@keyframes contentExitPrev {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(24px); opacity: 0; }
}

.hero-content-slide.hero-content-enter-next {
  z-index: 2;
}
.hero-content-slide.hero-content-enter-prev {
  z-index: 2;
}

/* Staggered Sub-Element Choreography (Forward / Next) */
.hero-content-slide.hero-content-enter-next .hero-date-capacity-row {
  animation: childFadeSlideInNext 0.36s cubic-bezier(0.16, 1, 0.3, 1) 10ms both;
}
.hero-content-slide.hero-content-enter-next .hero-title {
  animation: childFadeSlideInNext 0.4s cubic-bezier(0.16, 1, 0.3, 1) 40ms both;
}
.hero-content-slide.hero-content-enter-next .hero-venue-location {
  animation: childFadeSlideInNext 0.38s cubic-bezier(0.16, 1, 0.3, 1) 70ms both;
}
.hero-content-slide.hero-content-enter-next .hero-tagline-scrollable {
  animation: childFadeSlideInNext 0.4s cubic-bezier(0.16, 1, 0.3, 1) 100ms both;
}
.hero-content-slide.hero-content-enter-next .hero-perk-chip {
  animation: childFadeSlideInNext 0.36s cubic-bezier(0.16, 1, 0.3, 1) calc(125ms + var(--perk-i, 0) * 30ms) both;
}
.hero-content-slide.hero-content-enter-next .hero-interested-section {
  animation: childFadeSlideInNext 0.42s cubic-bezier(0.16, 1, 0.3, 1) 160ms both;
}
.hero-content-slide.hero-content-enter-next .hero-profile-card-mini {
  animation: cardPopInNext 0.44s cubic-bezier(0.175, 0.885, 0.32, 1.25) calc(185ms + var(--dater-i, 0) * 45ms) both;
}

/* Staggered Sub-Element Choreography (Backward / Prev) */
.hero-content-slide.hero-content-enter-prev .hero-date-capacity-row {
  animation: childFadeSlideInPrev 0.36s cubic-bezier(0.16, 1, 0.3, 1) 10ms both;
}
.hero-content-slide.hero-content-enter-prev .hero-title {
  animation: childFadeSlideInPrev 0.4s cubic-bezier(0.16, 1, 0.3, 1) 40ms both;
}
.hero-content-slide.hero-content-enter-prev .hero-venue-location {
  animation: childFadeSlideInPrev 0.38s cubic-bezier(0.16, 1, 0.3, 1) 70ms both;
}
.hero-content-slide.hero-content-enter-prev .hero-tagline-scrollable {
  animation: childFadeSlideInPrev 0.4s cubic-bezier(0.16, 1, 0.3, 1) 100ms both;
}
.hero-content-slide.hero-content-enter-prev .hero-perk-chip {
  animation: childFadeSlideInPrev 0.36s cubic-bezier(0.16, 1, 0.3, 1) calc(125ms + var(--perk-i, 0) * 30ms) both;
}
.hero-content-slide.hero-content-enter-prev .hero-interested-section {
  animation: childFadeSlideInPrev 0.42s cubic-bezier(0.16, 1, 0.3, 1) 160ms both;
}
.hero-content-slide.hero-content-enter-prev .hero-profile-card-mini {
  animation: cardPopInPrev 0.44s cubic-bezier(0.175, 0.885, 0.32, 1.25) calc(185ms + var(--dater-i, 0) * 45ms) both;
}

@keyframes childFadeSlideInNext {
  0% { transform: translateX(24px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes childFadeSlideInPrev {
  0% { transform: translateX(-24px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes cardPopInNext {
  0% { transform: translateX(28px) scale(0.92); opacity: 0; }
  70% { transform: translateX(-2px) scale(1.02); opacity: 1; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes cardPopInPrev {
  0% { transform: translateX(-28px) scale(0.92); opacity: 0; }
  70% { transform: translateX(2px) scale(1.02); opacity: 1; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

/* ==========================================================================
   Bottom Action Bar & Slider Controls (Persistent Solid Controls)
   ========================================================================== */
.hero-action-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.hero-cta-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Large RSVP / Signal Interest Button */
.hero-rsvp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--hero-black);
  border: var(--hero-border);
  border-radius: var(--hero-radius-pill);
  padding: 0.55rem 1.4rem;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(9, 13, 22, 0.16);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s ease,
              background-color 0.3s ease,
              border-color 0.3s ease;
  white-space: nowrap;
}

.hero-rsvp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(9, 13, 22, 0.22);
  background: #1e293b;
}

.hero-rsvp-btn.interested {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.hero-rsvp-btn.interested:hover {
  background: #059669;
  border-color: #059669;
}

.hero-rsvp-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero-rsvp-icon-wrap svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.3;
  display: block;
}

.hero-rsvp-btn.spin-anim .hero-rsvp-icon-wrap svg {
  animation: rsvpCheckSpin 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes rsvpCheckSpin {
  0% {
    transform: rotate(0deg) scale(0.75);
  }
  50% {
    transform: rotate(190deg) scale(1.25);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* Secondary Circle Buttons (Save, Share) */
.hero-circle-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: var(--hero-border);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 3px rgba(9, 13, 22, 0.05);
  transition: transform 0.2s ease, background 0.15s ease;
  flex-shrink: 0;
}

.hero-circle-action-btn:hover {
  transform: scale(1.06);
  background: rgba(9, 13, 22, 0.04);
}

.hero-circle-action-btn svg {
  width: 17px;
  height: 17px;
  stroke: var(--hero-black);
  stroke-width: 1.85;
}

/* Slider Pagination Arrows */
.hero-nav-cluster {
  display: flex;
  align-items: center;
  gap: 0.38rem;
}

.hero-nav-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: var(--hero-border);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 3px rgba(9, 13, 22, 0.05);
  transition: transform 0.2s ease, background 0.15s ease, opacity 0.2s ease;
  flex-shrink: 0;
}

.hero-nav-arrow-btn:hover:not(:disabled) {
  transform: scale(1.06);
  background: rgba(9, 13, 22, 0.04);
}

.hero-nav-arrow-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  transform: none;
}

.hero-nav-arrow-btn svg {
  width: 17px;
  height: 17px;
  stroke: var(--hero-black);
  stroke-width: 2;
}

/* ==========================================================================
/* ==========================================================================
   REBUILT MOBILE LAYOUT — IMAGE TOP, DETAILS UNDER, 100% RESPONSIVE
   ========================================================================== */

/* 1. Real Device Mobile Screens (Up to 768px) */
@media (max-width: 768px) {
  .hero-events-section {
    padding: 0.5rem 0.5rem 1.75rem;
  }

  .hero-event-card {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    border-radius: 10px;
    overflow: visible !important;
  }

  /* Image Top Banner */
  .hero-visual-pane {
    width: 100% !important;
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
    border-bottom: 1.5px solid var(--hero-black);
    order: 1 !important;
  }

  .hero-visual-top-bar {
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
  }

  .hero-category-badge,
  .hero-price-badge,
  .hero-partner-badge {
    padding: 0.22rem 0.6rem;
    font-size: 0.68rem;
  }

  .hero-visual-bottom-bar {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
  }

  .hero-gallery-thumb-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  /* Details Under Image */
  .hero-content-pane {
    width: 100% !important;
    padding: 1.25rem 1rem 1.25rem !important;
    height: auto !important;
    overflow: visible !important;
    order: 2 !important;
    border-bottom-left-radius: 9px;
    border-bottom-right-radius: 9px;
  }

  .hero-content-viewport {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 1fr !important;
    position: relative;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-content-slide {
    grid-area: 1 / 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    overflow: visible !important;
    gap: 0.5rem;
  }

  .hero-slide-main-info {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-date-capacity-row {
    margin-bottom: 0.35rem;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    box-sizing: border-box !important;
  }

  .hero-schedule-pill {
    font-size: 0.72rem;
    padding: 0.22rem 0.65rem;
    max-width: 100%;
  }

  .hero-spots-pill {
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
  }

  .hero-title {
    font-size: 1.35rem;
    margin-bottom: 0.3rem;
    line-height: 1.22;
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
  }

  .hero-venue-location {
    font-size: 0.78rem;
    margin-bottom: 0.4rem;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .hero-tagline-scrollable {
    font-size: 0.82rem;
    max-height: 4.5em;
    margin-bottom: 0.5rem;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    white-space: normal !important;
  }

  .hero-perks-wrap {
    margin-bottom: 0.55rem;
    gap: 0.35rem;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    box-sizing: border-box !important;
  }

  .hero-perk-chip {
    font-size: 0.68rem;
    padding: 0.2rem 0.55rem;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    max-width: 100% !important;
  }

  /* Mini Profile Cards on Mobile */
  .hero-interested-section {
    padding-top: 0.5rem;
    margin-bottom: 0.55rem;
  }

  .hero-attendees-tray-wrapper {
    min-height: 165px;
    overflow: visible;
  }

  .hero-attendees-row {
    padding: 0.4rem 0.35rem 0.7rem;
    gap: 0.75rem;
  }

  .hero-profile-card-mini {
    width: 110px;
    height: 150px;
    border-radius: 13px;
  }

  .mini-card-name {
    font-size: 0.72rem;
  }

  .mini-card-tag {
    font-size: 0.62rem;
  }

  .mini-card-loc {
    font-size: 0.56rem;
  }

  /* Action Footer on Mobile */
  .hero-action-footer {
    padding-top: 0.5rem;
    flex-wrap: nowrap;
    gap: 0.4rem;
  }

  .hero-rsvp-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    flex: 1;
    justify-content: center;
  }

  .hero-circle-action-btn,
  .hero-nav-arrow-btn {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .hero-circle-action-btn svg,
  .hero-nav-arrow-btn svg {
    width: 15px;
    height: 15px;
  }
}

/* 2. UI Workshop Mobile Canvas Preset (.size-mobile) */
.size-mobile .hero-events-section {
  padding: 0.5rem 0.5rem 1.75rem;
}

.size-mobile .hero-event-card {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  border-radius: 10px;
  overflow: visible !important;
}

.size-mobile .hero-visual-pane {
  width: 100% !important;
  height: 250px !important;
  min-height: 250px !important;
  max-height: 250px !important;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
  border-bottom: 1.5px solid var(--hero-black);
  order: 1 !important;
}

.size-mobile .hero-visual-top-bar {
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
}

.size-mobile .hero-category-badge,
.size-mobile .hero-price-badge,
.size-mobile .hero-partner-badge {
  padding: 0.22rem 0.6rem;
  font-size: 0.68rem;
}

.size-mobile .hero-visual-bottom-bar {
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
}

.size-mobile .hero-gallery-thumb-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.size-mobile .hero-content-pane {
  width: 100% !important;
  padding: 1.25rem 1rem 1.25rem !important;
  height: auto !important;
  overflow: visible !important;
  order: 2 !important;
  border-bottom-left-radius: 9px;
  border-bottom-right-radius: 9px;
}

.size-mobile .hero-content-viewport {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 1fr !important;
  position: relative;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.size-mobile .hero-content-slide {
  grid-area: 1 / 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  overflow: visible !important;
  gap: 0.5rem;
}

.size-mobile .hero-slide-main-info {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.size-mobile .hero-date-capacity-row {
  margin-bottom: 0.35rem;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 0.35rem !important;
  box-sizing: border-box !important;
}

.size-mobile .hero-schedule-pill {
  font-size: 0.72rem;
  padding: 0.22rem 0.65rem;
  max-width: 100%;
}

.size-mobile .hero-spots-pill {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
}

.size-mobile .hero-title {
  font-size: 1.35rem;
  line-height: 1.22;
  min-width: 0;
  max-width: 100%;
  word-break: break-word;
}

.size-mobile .hero-venue-location {
  font-size: 0.78rem;
  margin-bottom: 0.4rem;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

.size-mobile .hero-tagline-scrollable {
  font-size: 0.82rem;
  max-height: 4.5em;
  margin-bottom: 0.5rem;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  white-space: normal !important;
}

.size-mobile .hero-perks-wrap {
  margin-bottom: 0.55rem;
  gap: 0.35rem;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  box-sizing: border-box !important;
}

.size-mobile .hero-perk-chip {
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  max-width: 100% !important;
}

.size-mobile .hero-attendees-tray-wrapper {
  min-height: 165px;
  overflow: visible;
}

.size-mobile .hero-attendees-row {
  padding: 0.4rem 0.35rem 0.7rem;
  gap: 0.75rem;
}

.size-mobile .hero-profile-card-mini {
  width: 110px;
  height: 150px;
  border-radius: 13px;
}

.size-mobile .hero-action-footer {
  padding-top: 0.5rem;
  flex-wrap: nowrap;
  gap: 0.4rem;
}

.size-mobile .hero-rsvp-btn {
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  flex: 1;
  justify-content: center;
}

.size-mobile .hero-circle-action-btn,
.size-mobile .hero-nav-arrow-btn {
  width: 38px;
  height: 38px;
}

/* ==========================================================================
   TABLET ADAPTATION — Top Image / Under Details
   ========================================================================== */

/* 1. Real Device Tablet Screens */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-events-section {
    padding: 0.75rem 1.25rem 2rem;
  }

  .hero-event-card {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    border-radius: 10px;
    overflow: visible !important;
  }

  .hero-visual-pane {
    width: 100% !important;
    height: 270px !important;
    min-height: 270px !important;
    max-height: 270px !important;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 1.5px solid var(--hero-black);
    order: 1 !important;
  }

  .hero-content-pane {
    width: 100% !important;
    padding: 1.5rem 1.5rem 1.35rem !important;
    height: auto !important;
    overflow: visible !important;
    order: 2 !important;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .hero-content-viewport {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 1fr !important;
    position: relative;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-content-slide {
    grid-area: 1 / 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    overflow: visible !important;
  }

  .hero-title {
    font-size: 1.45rem;
  }

  .hero-tagline-scrollable {
    max-height: 5em;
  }

  .hero-profile-card-mini {
    width: 114px;
    height: 155px;
  }
}

/* 2. UI Workshop Tablet Canvas Preset (.size-tablet) */
.size-tablet .hero-events-section {
  padding: 0.75rem 1.25rem 2rem;
}

.size-tablet .hero-event-card {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  border-radius: 10px;
  overflow: visible !important;
}

.size-tablet .hero-visual-pane {
  width: 100% !important;
  height: 270px !important;
  min-height: 270px !important;
  max-height: 270px !important;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom: 1.5px solid var(--hero-black);
  order: 1 !important;
}

.size-tablet .hero-content-pane {
  width: 100% !important;
  padding: 1.5rem 1.5rem 1.35rem !important;
  height: auto !important;
  overflow: visible !important;
  order: 2 !important;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.size-tablet .hero-content-viewport {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 1fr !important;
  position: relative;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.size-tablet .hero-content-slide {
  grid-area: 1 / 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  overflow: visible !important;
}

.size-tablet .hero-title {
  font-size: 1.45rem;
}

.size-tablet .hero-tagline-scrollable {
  max-height: 5em;
}

.size-tablet .hero-profile-card-mini {
  width: 114px;
  height: 155px;
}

/* ==========================================================================
   WHITE SPACE INTERACTIVE UI: FULL TACTILE EXPANDED PROFILE CARD MODAL
   ========================================================================== */
.profile-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: modalBackdropFadeIn 0.22s ease-out forwards;
}

@keyframes modalBackdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.profile-modal-backdrop.closing {
  animation: modalBackdropFadeOut 0.2s ease-in forwards;
  pointer-events: none;
}

@keyframes modalBackdropFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* 3D Physical Card Chassis */
.profile-modal-chassis {
  background: transparent;
  width: 100%;
  max-width: 480px;
  height: 760px;
  max-height: 92vh;
  max-height: 92dvh;
  position: relative;
  perspective: 1400px;
  -webkit-perspective: 1400px;
  animation: modalChassisSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  font-family: var(--hero-font);
  color: var(--hero-black);
  border-radius: 26px;
}

.profile-modal-backdrop.closing .profile-modal-chassis {
  animation: modalChassisSlideDown 0.2s ease-in forwards;
}

.modal-card-face-front::-webkit-scrollbar,
.profile-modal-chassis::-webkit-scrollbar {
  width: 5px;
}
.modal-card-face-front::-webkit-scrollbar-track,
.profile-modal-chassis::-webkit-scrollbar-track {
  background: transparent;
}
.modal-card-face-front::-webkit-scrollbar-thumb,
.profile-modal-chassis::-webkit-scrollbar-thumb {
  background: rgba(9, 13, 22, 0.16);
  border-radius: 9999px;
}
.modal-card-face-front::-webkit-scrollbar-thumb:hover,
.profile-modal-chassis::-webkit-scrollbar-thumb:hover {
  background: rgba(9, 13, 22, 0.35);
}

@keyframes modalChassisSlideUp {
  0% { transform: scale(0.88) translateY(18px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

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

/* Sticky Header Floating Over Photo */
.profile-sticky-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.profile-sticky-controls > * {
  pointer-events: auto;
}

/* Glass Close Button */
.profile-mode-exit-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.15s ease;
  margin-left: auto;
}

.profile-mode-exit-btn:hover {
  transform: scale(1.08);
  background: rgba(15, 23, 42, 0.9);
}

.profile-mode-exit-btn svg {
  width: 17px;
  height: 17px;
  stroke: #ffffff;
  stroke-width: 2.2;
}

/* Liquid Glass Radial Cascade Menu System */
.radial-menu-system {
  position: relative;
}

.center-glass-trigger {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease;
}

.center-glass-trigger:hover {
  transform: scale(1.08);
  background: rgba(15, 23, 42, 0.9);
}

.center-glass-trigger svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  stroke-width: 2.2;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.radial-menu-system.is-open .center-glass-trigger svg {
  transform: rotate(45deg);
}

.radial-items {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
}

.radial-menu-system.is-open .radial-items {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.radial-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.4rem 0.8rem;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.15s ease;
  white-space: nowrap;
}

.radial-btn:hover {
  transform: translateX(3px) scale(1.04);
  background: rgba(15, 23, 42, 0.98);
}

.radial-btn svg {
  width: 14px;
  height: 14px;
  stroke: #38bdf8;
  stroke-width: 2;
}

/* Modal Hero Photo with Aurora Footer */
.profile-modal-hero {
  position: relative;
  width: 100%;
  height: 500px;
  max-height: 68vh;
  background: #090c13;
  overflow: hidden;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  border-bottom: 2px solid var(--hero-black);
  box-shadow: 0 8px 24px -4px rgba(9, 13, 22, 0.12);
}

.profile-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.profile-modal-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 45%);
  pointer-events: none;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

/* Living Aurora Animated Footer */
.profile-modal-aurora {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  pointer-events: none;
  overflow: hidden;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

.modal-aurora-curtain {
  position: absolute;
  inset: -10px;
  filter: blur(16px);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.35;
}

.modal-curtain-emerald {
  background: radial-gradient(ellipse 85% 65% at 20% 90%, rgba(0, 245, 160, 0.45) 0%, transparent 70%);
  animation: miniAuroraEmerald 12s ease-in-out infinite alternate;
}

.modal-curtain-violet {
  background: radial-gradient(ellipse 85% 65% at 80% 90%, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
  animation: miniAuroraViolet 15s ease-in-out infinite alternate;
}

.modal-curtain-cyan {
  background: radial-gradient(ellipse 75% 55% at 50% 85%, rgba(56, 189, 248, 0.35) 0%, transparent 70%);
  animation: miniAuroraCyan 10s ease-in-out infinite alternate;
}

.profile-modal-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(9, 13, 22, 0.28) 62%,
    rgba(9, 13, 22, 0.94) 92%
  );
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

/* Profile Details Typography Over Hero */
.profile-modal-header-info {
  position: absolute;
  bottom: 1.35rem;
  left: 1.35rem;
  right: 1.35rem;
  color: #ffffff;
  z-index: 10;
}

.profile-modal-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}

.profile-modal-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.profile-modal-age {
  font-size: 1.3rem;
  font-weight: 500;
  opacity: 0.9;
  color: #ffffff;
}

.profile-modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
  flex-shrink: 0;
}

.profile-modal-badge svg {
  width: 10px;
  height: 10px;
}

.profile-modal-sub-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 0.25rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.profile-modal-sub-meta .meta-dot {
  color: rgba(255, 255, 255, 0.4);
}

.profile-modal-sub-meta .meta-loc {
  color: #cbd5e1;
}

.profile-modal-quote {
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  margin: 0;
}

/* Unboxed Editorial Body (White Space Style) */
.profile-modal-editorial {
  padding: 1.5rem 1.4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.editorial-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hero-text-muted);
  margin-bottom: 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(9, 13, 22, 0.08);
}

/* Open Demographics Key Details Grid */
.editorial-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.meta-item {
  background: #f8fafc;
  border: 1px solid rgba(9, 13, 22, 0.08);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.meta-item:hover {
  border-color: rgba(9, 13, 22, 0.2);
  box-shadow: 0 2px 6px rgba(9, 13, 22, 0.04);
}

.meta-label {
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.meta-value {
  font-size: 0.84rem;
  font-weight: 700;
  color: #090d16;
  line-height: 1.35;
  word-break: break-word;
}

/* Story / About Text */
.editorial-headline-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0284c7;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.22rem 0.65rem;
  border-radius: var(--hero-radius-pill);
  margin-bottom: 0.65rem;
}

.editorial-bio-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--hero-text-secondary);
  margin: 0;
}

/* Upcoming Experiences & Events inside Profile (Event-First Platform) */
.modal-events-section .editorial-section-header {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(9, 13, 22, 0.08);
}

.modal-events-section .editorial-section-title {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.editorial-section-sub {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
}

.modal-attending-events-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.modal-event-card {
  display: flex;
  gap: 0.85rem;
  background: #ffffff;
  border: 1.5px solid var(--hero-black);
  border-radius: 16px;
  padding: 0.65rem;
  box-shadow: 0 2px 8px rgba(9, 13, 22, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.modal-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(9, 13, 22, 0.1);
}

.modal-event-card-thumb {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(9, 13, 22, 0.15);
}

.modal-event-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-event-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.modal-event-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.modal-event-badge {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0284c7;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: var(--hero-radius-pill);
}

.modal-event-price {
  font-size: 0.68rem;
  font-weight: 800;
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: var(--hero-radius-pill);
}

.modal-event-card-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #090d16;
  margin: 0.2rem 0 0.15rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-event-card-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-event-card-location svg {
  flex-shrink: 0;
  stroke: #64748b;
}

.modal-event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(9, 13, 22, 0.08);
}

.modal-event-attendee-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #090d16;
}

.modal-attendee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.modal-event-rsvp-btn {
  background: #090d16;
  color: #ffffff;
  border: 1px solid #090d16;
  border-radius: var(--hero-radius-pill);
  padding: 0.22rem 0.68rem;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-event-rsvp-btn:hover {
  background: #1e293b;
  transform: translateX(2px);
}

.modal-empty-events-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #f8fafc;
  border: 1px solid rgba(9, 13, 22, 0.08);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.modal-empty-events-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.modal-empty-events-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #090d16;
  margin-bottom: 0.2rem;
}

.modal-empty-events-text p {
  font-size: 0.76rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* In Their Words Prompts */
.editorial-prompts-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.editorial-prompt-item {
  background: rgba(9, 13, 22, 0.02);
  border: 1.5px solid rgba(9, 13, 22, 0.1);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.editorial-prompt-q {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hero-accent-blue);
  margin-bottom: 0.3rem;
}

.editorial-prompt-a {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--hero-black);
  font-weight: 600;
  margin: 0;
}

/* Visual Moments Photo Grid */
.editorial-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.editorial-photo-item {
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--hero-black);
  box-shadow: 0 2px 6px rgba(9, 13, 22, 0.1);
}

.editorial-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.editorial-photo-item:hover .editorial-photo-img {
  transform: scale(1.06);
}

/* Interests Tags Flow */
.interests-tags-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.interest-tag {
  background: #ffffff;
  border: 1.5px solid var(--hero-black);
  border-radius: var(--hero-radius-pill);
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hero-black);
  transition: transform 0.15s ease, background 0.15s ease;
}

.interest-tag:hover {
  transform: translateY(-1px);
  background: #f8fafc;
}

/* Trust & Verification Badges */
.trust-verification-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid rgba(9, 13, 22, 0.08);
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
}

.trust-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 13px;
  height: 13px;
}

.trust-text {
  display: flex;
  flex-direction: column;
}

.trust-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: #090d16;
}

.trust-desc {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
}

/* Sticky Floating Bottom Action Bar */
.profile-modal-actions {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.4rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(9, 13, 22, 0.08);
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
  margin: 1rem -1.4rem -2rem;
  z-index: 30;
  box-shadow: 0 -4px 16px rgba(9, 13, 22, 0.05);
}

.profile-modal-connect-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--hero-black);
  border: 1.5px solid var(--hero-black);
  border-radius: var(--hero-radius-pill);
  padding: 0.75rem 1.4rem;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(9, 13, 22, 0.2);
  transition: transform 0.18s ease, background 0.15s ease, box-shadow 0.18s ease;
}

.profile-modal-connect-btn:hover {
  transform: translateY(-2px);
  background: #1e293b;
  box-shadow: 0 6px 18px rgba(9, 13, 22, 0.28);
}

.profile-modal-connect-btn.is-connected {
  background: #059669;
  border-color: #059669;
}

.profile-modal-icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--hero-black);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(9, 13, 22, 0.08);
  transition: transform 0.18s ease, background 0.15s ease;
  flex-shrink: 0;
}

.profile-modal-icon-btn:hover {
  transform: scale(1.08);
  background: rgba(9, 13, 22, 0.04);
}

.profile-modal-icon-btn svg {
  width: 19px;
  height: 19px;
  stroke: var(--hero-black);
  stroke-width: 1.85;
}

@media (max-width: 640px) {
  .profile-modal-hero {
    height: 440px;
    max-height: 62vh;
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
  }
  .profile-modal-header-info {
    bottom: 1.1rem;
    left: 1.1rem;
    right: 1.1rem;
  }
}

/* ==========================================================================
   Hero Profile Modal — 3D Tactile Card Flipper & Dual Faces
   (Front: Editorial Profile; Back: Photos Gallery & Messenger)
   ========================================================================== */

.modal-card-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.62s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-card-flipper.is-flipping-to-back {
  animation: heroModalFlipToBack 0.62s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.modal-card-flipper.is-flipped {
  transform: rotateY(180deg);
}

.modal-card-flipper.is-flipping-to-front {
  animation: heroModalFlipToFront 0.62s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes heroModalFlipToBack {
  0% {
    transform: translateZ(0) rotateY(0deg) scale(1);
  }
  32% {
    transform: translateZ(-110px) rotateY(0deg) scale(0.94);
  }
  78% {
    transform: translateZ(-110px) rotateY(180deg) scale(0.94);
  }
  100% {
    transform: translateZ(0) rotateY(180deg) scale(1);
  }
}

@keyframes heroModalFlipToFront {
  0% {
    transform: translateZ(0) rotateY(180deg) scale(1);
  }
  32% {
    transform: translateZ(-110px) rotateY(180deg) scale(0.94);
  }
  78% {
    transform: translateZ(-110px) rotateY(0deg) scale(0.94);
  }
  100% {
    transform: translateZ(0) rotateY(0deg) scale(1);
  }
}

/* Dual Faces */
.modal-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  border: 2px solid var(--hero-black);
  box-shadow: 0 30px 70px -15px rgba(9, 13, 22, 0.48),
              0 6px 20px -4px rgba(9, 13, 22, 0.2);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.modal-card-face-front {
  background: #ffffff;
  z-index: 2;
  transform: rotateY(0deg);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(9, 13, 22, 0.16) transparent;
  display: block;
  border-radius: 26px;
}

.modal-card-flipper.is-flipped .modal-card-face-front {
  display: none !important;
  pointer-events: none !important;
}

.modal-card-face-back {
  background: #090c13;
  color: #ffffff;
  z-index: 1;
  transform: rotateY(180deg);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.modal-card-flipper.is-flipped .modal-card-face-back,
.modal-card-flipper.is-flipping-to-back .modal-card-face-back,
.modal-card-flipper.is-flipping-to-front .modal-card-face-back {
  display: flex !important;
}

/* ==========================================================================
   Back Face Navigation Header
   ========================================================================== */
.modal-back-header {
  height: 54px;
  background: rgba(9, 13, 22, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.12);
  padding: 0 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  z-index: 40;
  flex-shrink: 0;
}

.modal-back-flip-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: #ffffff;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.modal-back-flip-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.modal-back-flip-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateX(-2px);
}

.modal-back-nav-pills {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: 9999px;
  border: 1.2px solid rgba(255, 255, 255, 0.12);
}

.modal-back-tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  padding: 4px 11px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.modal-back-tab-btn svg {
  width: 13px;
  height: 13px;
}

.modal-back-tab-btn:hover {
  color: #ffffff;
}

.modal-back-tab-btn.is-active {
  background: #ffffff;
  color: #090d16;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.modal-back-tab-btn.is-active svg {
  stroke: #090d16;
}

.modal-back-tab-count {
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(9, 13, 22, 0.15);
  color: inherit;
  padding: 1px 5px;
  border-radius: 9999px;
}

.modal-back-tab-btn:not(.is-active) .modal-back-tab-count {
  background: rgba(255, 255, 255, 0.14);
}

.modal-back-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.modal-back-like-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.2px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  padding: 0;
}

.modal-back-like-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.modal-back-like-btn:hover {
  transform: scale(1.08);
  border-color: rgba(244, 63, 94, 0.6);
  color: #f43f5e;
}

.modal-back-like-btn.is-liked {
  background: rgba(244, 63, 94, 0.18);
  border-color: #f43f5e;
  color: #f43f5e;
}

.modal-back-like-btn.is-liked svg,
.radial-btn.is-liked svg {
  fill: #f43f5e;
  stroke: #f43f5e;
  animation: modalHeartPulse 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalHeartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Back Face Panels */
.modal-back-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ==========================================================================
   Panel 1: Photos Gallery View
   ========================================================================== */
.modal-back-panel-photos {
  background: #000000;
}

.modal-gallery-viewport {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
  background: #090c13;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.modal-gallery-counter-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(9, 13, 22, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.2px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  z-index: 20;
  letter-spacing: 0.5px;
}

.modal-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(9, 13, 22, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.2px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
  padding: 0;
}

.modal-gallery-arrow svg {
  width: 18px;
  height: 18px;
}

.modal-gallery-prev {
  left: 12px;
}

.modal-gallery-next {
  right: 12px;
}

.modal-gallery-arrow:hover {
  background: rgba(9, 13, 22, 0.92);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.modal-gallery-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.modal-gallery-aurora-scrim {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 14px 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 13, 22, 0.8) 60%, rgba(9, 13, 22, 0.96) 100%);
  z-index: 10;
  pointer-events: none;
}

.modal-gallery-caption {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.modal-gallery-dock {
  height: 76px;
  background: rgba(9, 13, 22, 0.98);
  border-top: 1.5px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  overflow-x: auto;
  flex-shrink: 0;
}

.modal-gallery-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: transparent;
  flex-shrink: 0;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-gallery-thumb:hover {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.6);
}

.modal-gallery-thumb.is-active {
  border-color: #38bdf8;
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.65);
}

/* ==========================================================================
   Panel 2: Messenger / Chat View
   ========================================================================== */
.modal-back-panel-message {
  background: #090c13;
}

.modal-chat-context-bar {
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1.2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.modal-chat-context-user {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.modal-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #38bdf8;
  flex-shrink: 0;
}

.modal-chat-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-chat-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
}

.modal-chat-status-beacon {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #34d399;
}

.modal-chat-status-beacon .beacon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* Media Sharing Toggle Pill (Per-Chat, Disabled by Default) */
.modal-chat-media-permission-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.chat-media-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.28rem 0.6rem 0.28rem 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1.2px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  cursor: pointer;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.chat-media-toggle-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #f1f5f9;
}

.chat-media-toggle-pill.is-user-active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.chat-media-toggle-pill.is-mutual {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.media-toggle-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-toggle-icon-wrap svg {
  stroke: currentColor;
}

.media-toggle-switch-track {
  width: 26px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.chat-media-toggle-pill.is-user-active .media-toggle-switch-track {
  background: #10b981;
}

.media-toggle-switch-thumb {
  position: absolute;
  top: 1.5px;
  left: 1.5px;
  width: 11px;
  height: 11px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.chat-media-toggle-pill.is-user-active .media-toggle-switch-thumb {
  transform: translateX(12px);
}

/* Media Sharing Consent & Status Bar */
.chat-media-consent-bar {
  padding: 0.42rem 0.9rem;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.chat-media-consent-bar.state-disabled {
  background: rgba(15, 23, 42, 0.7);
  color: #94a3b8;
}

.chat-media-consent-bar.state-waiting {
  background: rgba(245, 158, 11, 0.12);
  border-bottom-color: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.chat-media-consent-bar.state-mutual {
  background: rgba(16, 185, 129, 0.14);
  border-bottom-color: rgba(16, 185, 129, 0.28);
  color: #34d399;
}

.consent-bar-content {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consent-lock-icon {
  font-size: 0.82rem;
  flex-shrink: 0;
}

.consent-bar-text {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consent-action-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 9999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.consent-action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.03);
}

.consent-badge-mutual {
  background: #059669;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.16rem 0.45rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

/* Shake highlight on consent bar when locked */
@keyframes consentBarShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.chat-media-consent-bar.shake {
  animation: consentBarShake 0.4s ease;
  border-color: #f59e0b !important;
}

.modal-chat-stream {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.modal-chat-stream::-webkit-scrollbar {
  width: 4px;
}
.modal-chat-stream::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
}

.modal-chat-bubble {
  max-width: 82%;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.4;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: bubblePopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bubblePopIn {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-bubble-incoming {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  border: 1.2px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  border-bottom-left-radius: 3px;
}

.modal-bubble-outgoing {
  align-self: flex-end;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 1.2px solid rgba(59, 130, 246, 0.4);
  color: #ffffff;
  border-bottom-right-radius: 3px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.32);
}

.modal-bubble-time {
  font-size: 0.64rem;
  opacity: 0.65;
  align-self: flex-end;
}

.modal-quick-replies {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.85rem;
  overflow-x: auto;
  background: rgba(9, 13, 22, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  scrollbar-width: none;
}

.modal-quick-replies::-webkit-scrollbar {
  display: none;
}

.modal-quick-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.modal-quick-chip:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

.modal-chat-composer {
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(9, 13, 22, 0.98);
  border-top: 1.5px solid rgba(255, 255, 255, 0.1);
  position: relative;
  flex-shrink: 0;
}

.modal-chat-radial-system {
  position: relative;
}

.modal-chat-radial-trigger {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  flex-shrink: 0;
}

.modal-chat-radial-trigger:hover,
.modal-chat-radial-system.is-open .modal-chat-radial-trigger {
  background: #ffffff;
  color: #090d16;
  border-color: #ffffff;
  transform: scale(1.08);
}

.modal-chat-reaction-palette {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  background: rgba(9, 13, 22, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: 0.65rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 50;
  width: 220px;
}

.modal-chat-radial-system.is-open .modal-chat-reaction-palette {
  display: flex;
  animation: bubblePopIn 0.18s ease forwards;
}

.reaction-palette-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

.reaction-emojis-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reaction-emoji-btn {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 3px;
  border-radius: 6px;
  transition: transform 0.15s ease;
}

.reaction-emoji-btn:hover {
  transform: scale(1.3);
  background: rgba(255, 255, 255, 0.1);
}

.modal-chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 0.55rem 1rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.modal-chat-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.modal-chat-input:focus {
  border-color: #38bdf8;
  background: rgba(255, 255, 255, 0.12);
}

.modal-chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #38bdf8;
  border: 1.5px solid #38bdf8;
  color: #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  padding: 0;
}

.modal-chat-send-btn svg {
  width: 16px;
  height: 16px;
}

.modal-chat-send-btn:hover {
  background: #7dd3fc;
  border-color: #7dd3fc;
  transform: scale(1.08);
}

.modal-chat-send-btn:active {
  transform: scale(0.95);
}

/* Media / Photo Attachment Composer Control */
.modal-chat-photo-attach-wrap {
  position: relative;
}

.modal-chat-photo-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  flex-shrink: 0;
  position: relative;
}

.modal-chat-photo-btn.is-locked {
  opacity: 0.65;
}

.modal-chat-photo-btn.is-locked:hover {
  opacity: 1;
  border-color: #f59e0b;
  color: #fbbf24;
}

.modal-chat-photo-btn.is-unlocked {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #34d399;
}

.modal-chat-photo-btn.is-unlocked:hover {
  background: #10b981;
  color: #090d16;
  transform: scale(1.08);
}

.photo-btn-lock-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f59e0b;
  color: #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #090c13;
  pointer-events: none;
}

/* Photo Selection Palette Tray */
.modal-chat-photo-palette {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  background: rgba(9, 13, 22, 0.96);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: 0.75rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 55;
  width: 250px;
}

.modal-chat-photo-palette.is-open {
  display: flex;
  animation: bubblePopIn 0.18s ease forwards;
}

.photo-palette-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

.photo-palette-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 3px;
  transition: color 0.15s ease;
}

.photo-palette-close-btn:hover {
  color: #ffffff;
}

.photo-palette-upload-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.photo-palette-upload-row:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.photo-presets-heading {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-top: 3px;
}

.photo-presets-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.photo-preset-chip {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  background: #1e293b;
  padding: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.photo-preset-chip:hover {
  transform: scale(1.08);
  border-color: #38bdf8;
}

.photo-preset-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Staged Media Preview above Composer */
.modal-chat-staged-media {
  padding: 0.5rem 0.85rem;
  background: rgba(9, 13, 22, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.staged-media-thumb-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid #38bdf8;
  flex-shrink: 0;
}

.staged-media-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staged-media-remove-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(9, 13, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.staged-media-caption-hint {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Media Messages in Chat Stream */
.modal-chat-bubble.modal-bubble-media {
  padding: 0.35rem 0.35rem 0.45rem !important;
  max-width: 78%;
}

.modal-chat-bubble.modal-bubble-media.modal-bubble-outgoing {
  background: #0284c7 !important;
}

.modal-chat-bubble.modal-bubble-media.modal-bubble-incoming {
  background: rgba(255, 255, 255, 0.1) !important;
}

.modal-bubble-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  max-width: 210px;
  max-height: 210px;
  cursor: zoom-in;
  background: #090c13;
}

.modal-bubble-image {
  width: 100%;
  height: 100%;
  max-height: 210px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: transform 0.25s ease;
}

.modal-bubble-image-wrap:hover .modal-bubble-image {
  transform: scale(1.03);
}

.modal-bubble-media-caption {
  display: block;
  padding: 0.35rem 0.5rem 0.15rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #ffffff;
  word-break: break-word;
}

/* System Notice in Chat Stream */
.modal-chat-system-notice {
  align-self: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.32rem 0.8rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0.25rem 0;
  text-align: center;
  animation: fadeIn 0.2s ease-out;
}

.modal-chat-system-notice.is-unlocked {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-visual-slide,
  .hero-content-slide,
  .hero-date-capacity-row,
  .hero-title,
  .hero-venue-location,
  .hero-tagline-scrollable,
  .hero-perk-chip,
  .hero-interested-section,
  .hero-profile-card-mini,
  .hero-counter-num,
  .hero-visual-top-bar,
  .hero-visual-bottom-bar,
  .profile-modal-chassis,
  .modal-card-flipper {
    animation: none !important;
    transition: opacity 0.15s ease !important;
  }
}
