/**
 * Hero Profiles Stream Component Styles — In The Cards (nthecards.com)
 * Logged-In Dater Profiles Discovery Homepage
 * - Full 100% Width edge-to-edge stream (no artificial cutoff)
 * - 15% Subtle architectural shadows
 * - Invisible scrollbar (no scroll bar under stream)
 * - Individual customizable personality color themes with subtle living aura animation
 * - Stream View (RTL) & Responsive Grid View with Mobile Micro Cards
 * - Real-time Online status beacons and card click to view profile
 */

:root {
  --stream-black: #090d16;
  --stream-card-bg: #ffffff;
  --stream-text-main: #090d16;
  --stream-text-muted: #64748b;
  --stream-accent-emerald: #10b981;
  --stream-accent-cyan: #38bdf8;
  --stream-accent-violet: #8b5cf6;
  --stream-accent-rose: #f43f5e;
  --stream-border-dark: 1.75px solid #090d16;
  --stream-pill-radius: 9999px;
  --stream-card-radius: 24px;
}

/* ==========================================================================
   1. STREAM ROOT & HEADER (FULL-WIDTH READY)
   ========================================================================== */
.hero-profiles-stream-root {
  width: 100%;
  position: relative;
  background: #ffffff;
  color: var(--stream-text-main);
  padding: 1.5rem 0 3.5rem; /* No horizontal container clipping */
  box-sizing: border-box;
  overflow-x: hidden;
}

.profiles-stream-header {
  max-width: 1440px;
  margin: 0 auto 1.5rem;
  padding: 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.profiles-stream-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.profiles-stream-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profiles-stream-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--stream-black);
  margin: 0;
  line-height: 1.1;
}

.profiles-stream-subtitle {
  font-size: 0.95rem;
  color: var(--stream-text-muted);
  font-weight: 500;
  margin: 0;
}

/* ==========================================================================
   2. PREFERENCES BAR & TUNING DRAWER
   ========================================================================== */
.profiles-preferences-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: #f8fafc;
  border: var(--stream-border-dark);
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(9, 13, 22, 0.03);
}

.preferences-chips-cluster {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pref-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  margin-right: 0.25rem;
}

.pref-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--stream-black);
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  padding: 0.3rem 0.85rem;
  border-radius: var(--stream-pill-radius);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pref-chip.active {
  background: #090d16;
  border-color: #090d16;
  color: #ffffff;
}

.pref-chip-verified {
  border-color: #38bdf8;
  color: #0284c7;
  background: rgba(56, 189, 248, 0.08);
}

.preferences-action-cluster {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.pref-tune-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--stream-black);
  border: var(--stream-border-dark);
  padding: 0.45rem 1.15rem;
  border-radius: var(--stream-pill-radius);
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 2px 6px rgba(9, 13, 22, 0.08);
}

.pref-tune-btn:hover {
  transform: translateY(-1px);
  background: #1e293b;
}

.pref-tune-btn svg {
  width: 14px;
  height: 14px;
}

.pref-tune-btn.is-tuning {
  background: #3b82f6;
  border-color: #3b82f6;
}

.pref-match-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: var(--stream-pill-radius);
}

/* Inline Tuning Drawer */
.preferences-tuning-drawer {
  display: none;
  background: #ffffff;
  border: var(--stream-border-dark);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 12px 32px -8px rgba(9, 13, 22, 0.08);
  animation: drawerSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.preferences-tuning-drawer.is-open {
  display: block;
}

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

.tuning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.tuning-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tuning-group-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stream-text-muted);
}

.tuning-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tuning-pill-btn {
  background: #f1f5f9;
  border: 1.5px solid transparent;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: var(--stream-pill-radius);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tuning-pill-btn:hover {
  background: #e2e8f0;
  color: var(--stream-black);
}

.tuning-pill-btn.active {
  background: var(--stream-black);
  border-color: var(--stream-black);
  color: #ffffff;
}

.tuning-pill-btn .tuning-theme-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
  box-shadow: 0 0 6px currentColor;
}


.tuning-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tuning-reset-btn {
  background: none;
  border: none;
  color: var(--stream-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.25rem 0.5rem;
}

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

.tuning-done-btn {
  background: var(--stream-black);
  color: #ffffff;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 1.4rem;
  border-radius: var(--stream-pill-radius);
  cursor: pointer;
}

/* ==========================================================================
   3. STREAM & GRID VIEW CONTROLS
   ========================================================================== */
.profiles-stream-nav-bar {
  max-width: 1440px;
  margin: 0 auto 1.25rem;
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Segmented View Switcher (Stream vs Grid) */
.stream-view-toggle-pills {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--stream-pill-radius);
  padding: 3px;
  gap: 3px;
}

.stream-view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: none;
  padding: 0.35rem 0.95rem;
  border-radius: var(--stream-pill-radius);
  cursor: pointer;
  transition: all 0.15s ease;
}

.stream-view-toggle-btn.active {
  background: var(--stream-black);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(9, 13, 22, 0.15);
}

.stream-view-toggle-btn svg {
  width: 14px;
  height: 14px;
}

.stream-nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stream-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: var(--stream-border-dark);
  color: var(--stream-black);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 4px rgba(9, 13, 22, 0.04);
}

.stream-nav-btn:hover:not(:disabled) {
  background: var(--stream-black);
  color: #ffffff;
  transform: translateY(-1px);
}

.stream-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stream-nav-btn svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   4. 100% FULL-WIDTH STREAM VIEWPORT (NO ARTIFICIAL CUT-OFF)
   ========================================================================== */
.profiles-stream-viewport {
  width: 100%;
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  padding: 1rem 1.75rem 2.5rem; /* Natural padding at track extremities */
  box-sizing: border-box;
  scroll-behavior: smooth;
  direction: rtl; /* RIGHT-TO-LEFT STREAM DIRECTION */

  /* Invisible Scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.profiles-stream-viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.profiles-stream-track {
  display: inline-flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 0 0.5rem;
  direction: ltr; /* Internal card text remains LTR */
}

/* ==========================================================================
   5. TACTILE 3D STREAM CARD (15% SUBTLE SHADOWS & CUSTOM THEMES)
   ========================================================================== */
.stream-card-chassis {
  width: 336px;
  min-width: 336px;
  height: 504px;
  position: relative;
  perspective: 1600px;
  user-select: none;
  cursor: pointer; /* Click opens profile view */
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.stream-flippable-chassis {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.62s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stream-flippable-chassis.is-flipped {
  transform: rotateY(180deg);
}

/* Faces */
.stream-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--stream-card-radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.stream-face-front {
  z-index: 2;
  transform: rotateY(0deg);
}

.stream-face-back {
  z-index: 1;
  transform: rotateY(180deg);
  background: #ffffff;
  border: var(--stream-border-dark);
  box-shadow: 0 10px 25px rgba(9, 13, 22, 0.08);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.stream-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: var(--stream-card-radius);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

/* 15% SUBTLE ARCHITECTURAL SHADOW (Reduced from previous heavy shadows) */
.stream-card-shadow-back {
  position: absolute;
  inset: 0;
  border-radius: var(--stream-card-radius);
  box-shadow:
    0 2px 5px rgba(9, 13, 22, 0.03),
    0 5px 12px rgba(9, 13, 22, 0.04),
    0 12px 24px -6px rgba(9, 13, 22, 0.05);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ==========================================================================
   GILDED 3D GOLD EDGES (12 Extrusion Slices with Metallic Shading)
   ========================================================================== */
.stream-extrusion-layers {
  position: absolute;
  inset: 0;
  border-radius: var(--stream-card-radius);
  pointer-events: none;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.stream-slice {
  position: absolute;
  inset: 0;
  border-radius: var(--stream-card-radius);
  border: 1.5px solid #d4af37;
  background: #c59b27;
  pointer-events: none;
  opacity: 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-sizing: border-box;
}

/* Gilded Gold Slices: From luminous 24K highlight to rich burnished antique gold */
.stream-slice-1  { transform: translateZ(-1px);   background: #f7df8b; border-color: #faeab3; }
.stream-slice-2  { transform: translateZ(-2px);   background: #f2d577; border-color: #f7e098; }
.stream-slice-3  { transform: translateZ(-3px);   background: #eccb64; border-color: #f4d67d; }
.stream-slice-4  { transform: translateZ(-4.2px); background: #e5c151; border-color: #f0cc63; }
.stream-slice-5  { transform: translateZ(-5.4px); background: #deb73e; border-color: #ecc24a; }
.stream-slice-6  { transform: translateZ(-6.6px); background: #d6ad2c; border-color: #e6b732; }
.stream-slice-7  { transform: translateZ(-7.8px); background: #cda31b; border-color: #dfad1d; }
.stream-slice-8  { transform: translateZ(-9px);   background: #c4990e; border-color: #d7a20c; }
.stream-slice-9  { transform: translateZ(-10.2px);background: #ba8f05; border-color: #ce9804; }
.stream-slice-10 { transform: translateZ(-11.5px);background: #af8500; border-color: #c48e00; }
.stream-slice-11 { transform: translateZ(-12.8px);background: #a47b00; border-color: #b98300; }
.stream-slice-12 {
  transform: translateZ(-14px);
  background: #997100;
  border-color: #ae7900;
  box-shadow: 0 0 2px rgba(212, 175, 55, 0.7), 0 0 10px rgba(212, 175, 55, 0.35);
}

/* Main Card Body with Dynamic Individual Personality Color */
.stream-card-body {
  position: absolute;
  inset: 0;
  border-radius: var(--stream-card-radius);
  border: var(--stream-border-dark);
  background: var(--card-theme-bg, #090d16);
  transform-style: preserve-3d;
  transform: translateZ(0);
}

.stream-photo-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--stream-card-radius);
  overflow: hidden;
  transform: translateZ(0);
}

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

.stream-specular-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.04) 35%,
    rgba(255, 255, 255, 0) 60%
  );
  pointer-events: none;
}

/* ==========================================================================
   3D LIFTED CARD ELEMENTS (Floating on distinct Z-planes with Parallax)
   ========================================================================== */

/* 1. Online Status Beacon (Closer to card, No Shadow) */
.stream-card-online-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(9, 13, 22, 0.78);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: var(--stream-pill-radius);
  z-index: 30;
  pointer-events: none;
  transform: translateZ(8px);
  transform-style: preserve-3d;
  box-shadow: none;
  filter: none;
  transition: transform 0.08s ease-out;
}

.online-beacon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stream-accent-emerald);
  animation: beaconPulse 2s ease-in-out infinite;
}

.online-beacon-dot.recent {
  background: #38bdf8;
}

.online-beacon-dot.today {
  background: #94a3b8;
}

@keyframes beaconPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

.online-status-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   SUBTLE LIVING ANIMATED TEXT BACKGROUND (Seamless 0% Fade, No Fine Line)
   ========================================================================== */
.stream-aurora-footer {
  position: absolute;
  bottom: -1px;
  left: -1px;
  right: -1px;
  width: calc(100% + 2px);
  height: 290px;
  pointer-events: none;
  border-bottom-left-radius: var(--stream-card-radius);
  border-bottom-right-radius: var(--stream-card-radius);
  overflow: hidden;
  transform: translateZ(0);
  transform-style: preserve-3d;

  /* GUARANTEED FADE TO 0%: Eliminates sharp lines across subject torso */
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.01) 15%,
    rgba(0, 0, 0, 0.18) 32%,
    rgba(0, 0, 0, 0.58) 55%,
    rgba(0, 0, 0, 0.92) 75%,
    #000000 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.01) 15%,
    rgba(0, 0, 0, 0.18) 32%,
    rgba(0, 0, 0, 0.58) 55%,
    rgba(0, 0, 0, 0.92) 75%,
    #000000 100%
  );
}

/* Layer 1: Atmospheric Breathing Light Pool (Low placement) */
.stream-aurora-glow-orb {
  position: absolute;
  bottom: -40px;
  left: -20px;
  right: -20px;
  height: 180px;
  background: var(--card-theme-curtain);
  opacity: 0.65;
  filter: blur(36px);
  mix-blend-mode: screen;
  animation: auraBreathing 8s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes auraBreathing {
  0% {
    transform: scale(0.95) translateY(4px);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.08) translateY(-4px);
    opacity: 0.8;
  }
  100% {
    transform: scale(0.98) translateY(2px);
    opacity: 0.55;
  }
}

/* Layer 2: Shimmering Ambient Curtains (Low placement, Horizontal Drift) */
.stream-aurora-curtains {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  display: flex;
  opacity: 0.55;
  mix-blend-mode: screen;
}

.stream-curtain-ambient {
  flex: 1;
  height: 100%;
  filter: blur(28px);
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(var(--card-theme-glow-rgb, 16, 185, 129), 0.4) 0%, transparent 70%);
  animation: auraCurtainWave 10s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes auraCurtainWave {
  0% {
    transform: translateX(-15px) scaleX(0.95);
    opacity: 0.45;
  }
  50% {
    transform: translateX(18px) scaleX(1.08);
    opacity: 0.75;
  }
  100% {
    transform: translateX(-8px) scaleX(1);
    opacity: 0.5;
  }
}

/* Layer 3: Living Deep Fluid Gradient (Horizontal Drift Only) */
.stream-aurora-scrim {
  position: absolute;
  inset: 0;
  background: var(--card-theme-scrim);
  background-size: 200% 100%;
  animation: livingDarkGradientDrift 12s ease-in-out infinite alternate;
  will-change: background-position, filter;
}

@keyframes livingDarkGradientDrift {
  0% {
    background-position: 0% 0%;
    filter: brightness(0.98) saturate(1.05);
  }
  50% {
    background-position: 100% 0%;
    filter: brightness(1.1) saturate(1.18);
  }
  100% {
    background-position: 45% 0%;
    filter: brightness(1) saturate(1.08);
  }
}

/* Layer 4: Deep Black Contrast Anchor for Guaranteed WCAG AAA Legibility */
.stream-aurora-contrast-anchor {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9, 13, 22, 0) 0%,
    rgba(9, 13, 22, 0) 24%,
    rgba(9, 13, 22, 0.38) 50%,
    rgba(9, 13, 22, 0.82) 74%,
    rgba(5, 8, 14, 0.98) 100%
  );
  pointer-events: none;
}

/* ==========================================================================
   CARD INFORMATION & UNIFIED TEXT HEIGHT (Closer to Card, No Shadows)
   ========================================================================== */
.stream-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 168px; /* Standardized height across all cards for identical vertical alignment */
  padding: 0 1.25rem 1.15rem;
  color: #ffffff;
  z-index: 25;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform-style: preserve-3d;
  box-sizing: border-box;
}

/* 1. Dater Name & Age Row (Same Height Z=8px, No Shadow, Fixed 30px Row) */
.stream-card-name-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  height: 30px;
  line-height: 30px;
  margin-bottom: 0.15rem;
  transform: translateZ(8px);
  transform-style: preserve-3d;
  text-shadow: none;
  transition: transform 0.08s ease-out;
}

.stream-card-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.stream-card-age {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

/* Verified Badge (Flat on Name Row, No Heavy Glow) */
.stream-card-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: none;
  transform: none;
  align-self: center;
}

.stream-card-verified svg {
  width: 10px;
  height: 10px;
}

/* 2. Tagline / Vocation (Same Height Z=8px, No Shadow, Fixed 18px Height) */
.stream-card-tagline {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--card-theme-tag, #38bdf8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  height: 18px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateZ(8px);
  transform-style: preserve-3d;
  text-shadow: none;
  transition: transform 0.08s ease-out;
}

/* 3. Bio Preview Text (Same Height Z=8px, No Shadow, Fixed 38px 2-Line Height) */
.stream-card-bio {
  font-size: 0.8rem;
  line-height: 19px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0.25rem 0 0.5rem;
  height: 38px; /* Fixed 2-line height ensures identical action row positioning */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transform: translateZ(8px);
  transform-style: preserve-3d;
  text-shadow: none;
  transition: transform 0.08s ease-out;
}

/* 4. Action Cluster Row (Same Height Z=8px, Fixed 40px Height) */
.stream-card-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  height: 40px;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  transform: translateZ(8px);
  transform-style: preserve-3d;
  transition: transform 0.08s ease-out;
}

.stream-click-hint {
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.02em;
  text-shadow: none;
}

.stream-action-icons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.stream-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  cursor: pointer;
  box-shadow: none;
  transform: none;
  transition: all 0.15s ease, transform 0.08s ease-out;
}

.stream-icon-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
  box-shadow: none;
}

.stream-icon-btn.is-liked {
  background: #f43f5e;
  border-color: #f43f5e;
  color: #ffffff;
  box-shadow: none;
}

.stream-icon-btn svg {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   6. GRID VIEW & MOBILE MICRO CARDS
   ========================================================================== */
.profiles-grid-view {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 1.75rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  justify-items: center;
}

/* Mobile Micro Card (For 2-column mobile grid view) */
.stream-micro-card {
  display: none; /* Desktop uses standard full card */
  width: 100%;
  height: 250px;
  border-radius: 18px;
  border: var(--stream-border-dark);
  background: #090d16;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(9, 13, 22, 0.04);
  transition: transform 0.15s ease;
}

.stream-micro-card:hover {
  transform: translateY(-2px);
}

.micro-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.micro-card-scrim {
  position: absolute;
  inset: 0;
  background: var(--card-theme-scrim, linear-gradient(
    to bottom,
    rgba(9, 13, 22, 0) 0%,
    rgba(9, 13, 22, 0.55) 45%,
    rgba(9, 13, 22, 0.96) 100%
  ));
}

.micro-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.85rem 0.75rem;
  color: #ffffff;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.micro-card-name-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.micro-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.micro-card-age {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.micro-card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--card-theme-tag, #38bdf8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.micro-card-online {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.64rem;
  font-weight: 700;
  color: #34d399;
  margin-top: 0.15rem;
}

/* ==========================================================================
   7. SAVED DECK FLOATING TOAST NOTIFICATION
   ========================================================================== */
.stream-deck-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--stream-black);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--stream-pill-radius);
  padding: 0.75rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

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

.stream-toast-heart {
  font-size: 1.2rem;
}

.stream-toast-text {
  display: flex;
  flex-direction: column;
}

.stream-toast-title {
  font-size: 0.82rem;
  font-weight: 800;
}

.stream-toast-sub {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* ==========================================================================
   8. MOBILE OPTIMIZATION
   ========================================================================== */
@media (max-width: 768px) {
  .hero-profiles-stream-root {
    padding: 1rem 0 2.5rem;
  }

  .profiles-stream-header {
    padding: 0 1rem;
  }

  .profiles-stream-nav-bar {
    padding: 0 1rem;
  }

  .profiles-stream-title {
    font-size: 1.75rem;
  }

  /* Stream cards on mobile */
  .stream-card-chassis {
    width: 285px;
    min-width: 285px;
    height: 440px;
  }

  .profiles-stream-viewport {
    padding: 0.75rem 1rem 2rem;
  }

  .preferences-chips-cluster {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.25rem;
  }

  /* Mobile Grid View Switches to 2-Column Micro Cards */
  .profiles-grid-view {
    padding: 0.75rem 1rem 2rem;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .profiles-grid-view .stream-card-chassis {
    display: none; /* Hide large desktop card */
  }

  .profiles-grid-view .stream-micro-card {
    display: block; /* Show sleek mobile micro card */
  }
}
