:root {
  --deep-navy: #080c24;
  --sapphire: #0f1b4a;
  --royal-blue: #162464;
  --crimson: #8b1a2b;
  --ruby: #a82035;
  --rose: #c0394b;
  --gold: #c9a84c;
  --gold-light: #dfc278;
  --champagne: #f0e4c8;
  --cream: #faf7f0;
  --pure-white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg-card: rgba(15, 20, 50, 0.55);
  --card-border-glow: rgba(200, 160, 70, 0.25);
  --text-primary: #f0ece6;
  --text-secondary: #c5bfb3;
  --text-muted: #8a857a;
  --love-pink: #ff6b8a;
  --shadow-gold: 0 0 40px rgba(200, 155, 60, 0.15);
  --shadow-crimson: 0 0 30px rgba(180, 30, 50, 0.2);
  --shadow-sapphire: 0 0 35px rgba(30, 50, 140, 0.25);
  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-card: 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--deep-navy);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  letter-spacing: 0.01em;
  cursor: default;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  /* selection-color: var(--champagne);
            selection-background: rgba(180, 30, 50, 0.4); */
}

::selection {
  color: var(--champagne);
  background: rgba(180, 30, 50, 0.4);
}

/* ── Animated Background ─────────────────────── */
.bg-orbit {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orbit::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -20%;
  width: 140%;
  height: 160%;
  background:
    radial-gradient(
      ellipse at 28% 22%,
      rgba(25, 40, 120, 0.35) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 72% 65%,
      rgba(160, 25, 40, 0.28) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(200, 160, 60, 0.06) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse at 85% 15%,
      rgba(20, 35, 100, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 15% 80%,
      rgba(140, 20, 35, 0.22) 0%,
      transparent 50%
    );
  animation: bgPulse 12s ease-in-out infinite;
}

@keyframes bgPulse {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1) rotate(0deg);
  }
  33% {
    opacity: 1;
    transform: scale(1.04) rotate(0.3deg);
  }
  66% {
    opacity: 0.9;
    transform: scale(0.97) rotate(-0.2deg);
  }
}

/* ── Floating Particles ─────────────────────── */
.particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: floatUp linear infinite;
  opacity: 0;
}

.particle.diamond {
  border-radius: 2px;
  transform: rotate(45deg);
}

@keyframes floatUp {
  0% {
    transform: translateY(105vh) scale(0) rotate(0deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  40% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    transform: translateY(-15vh) scale(1.4) rotate(180deg);
    opacity: 0;
  }
}
/* ─── Global Skeleton Loading ─────────────────── */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(200, 160, 60, 0.10) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: 8px;
}

/* Skeleton message card (messages.html) */
.skeleton-card {
  background: var(--glass-card, rgba(15,20,50,0.55));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 20px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skeleton-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(200, 160, 60, 0.12) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
}

.skeleton-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
}

.skeleton-line.name { width: 45%; height: 14px; }
.skeleton-line.preview { width: 80%; }
.skeleton-line.time { width: 25%; height: 9px; }

/* ─── Discover Card Skeleton ─────────────────── */
.skeleton-profile-card {
  background: var(--glass-bg-card, rgba(15,20,50,0.55));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.skeleton-image {
  width: 100%;
  height: 360px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(200, 160, 60, 0.10) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
}

@media (max-width: 1024px) {
  .skeleton-image { height: 270px; }
}
@media (max-width: 768px) {
  .skeleton-image { height: 240px; }
}
@media (max-width: 480px) {
  .skeleton-image { height: 180px; }
}

.skeleton-body {
  padding: 1.4rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skeleton-status-blob {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 80px;
  height: 24px;
  border-radius: 50px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(200, 160, 60, 0.12) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
}

/* ─── Discover Carousel Circle Skeleton ──────── */
.skeleton-people-circle {
  flex: 0 0 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.skeleton-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(200, 160, 60, 0.12) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
}

.skeleton-people-name {
  width: 55px;
  height: 10px;
  border-radius: 5px;
}

.skeleton-people-age {
  width: 35px;
  height: 8px;
  border-radius: 4px;
}

/* ─── Optional fade-in for real content ──────── */
.fade-in-content {
  animation: fadeInContent 0.4s ease-out;
}
@keyframes fadeInContent {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Official Verification Badge (blue check) ── */
.official-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.2rem;
  margin-bottom: 5px;
  width: 15px;
  height: 15px;
  background: #3498db;
  border-radius: 50%;
  color: white;
  font-size: 0.7rem;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(52, 152, 219, 0.4);
}

/* For smaller screens, adjust size */
@media (max-width: 480px) {
  .official-badge {
    width: 12px;
    height: 12px;
    font-size: 0.5rem;
  }
}

/* Alternative: if you want a pure crown icon without zigzag, use this simpler badge */
.official-badge i {
  font-size: inherit;
  line-height: 1;
}

/* ── Main Wrapper ──────────────────────────── */
.main-wrapper {
  position: relative;
  z-index: 2;
}

/* ── Sidebar ─────────────────────────────── */
.sidebar {
  width: 270px;
  height: 100vh;
  background: rgba(8, 12, 36, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  position: fixed;
  top: 0;
  overflow-y: auto;
  bottom: 0;
  left: 0;
  z-index: 950;
  transition: transform 0.3s;
}
.sidebar::-webkit-scrollbar {
  width: 1px;
  background-color: var(--deep-navy);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1rem;
}
.sidebar-brand i {
  font-size: 1.8rem;
  color: var(--gold-light);
}
.sidebar-brand span {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--gold-light),
    var(--champagne),
    var(--gold)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0 0.3rem;
}
.sidebar-cta {
  background: linear-gradient(135deg, var(--crimson), var(--ruby));
  color: var(--pure-white);
  border: none;
  padding: 10px 26px;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 50px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.35s var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(180, 30, 45, 0.35);
  white-space: nowrap;
}
.sidebar-links {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 1rem;
  list-style: none;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  background: rgba(200, 160, 60, 0.08);
  color: var(--champagne);
  border-left-color: var(--gold);
}
.sidebar nav a i {
  width: 20px;
  text-align: center;
}
.sidebar-badge {
  margin-left: auto;
  background: #ff6b4a;
  color: white;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
}
.sidebar-footer {
  padding: 0.5rem 0.7rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 0;
  margin-bottom: 0;
}
.sidebar-footer button {
  width: 100%;
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: var(--danger);
  padding: 7px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.sidebar-footer button:hover {
  background: rgba(231, 76, 60, 0.3);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 1rem;
  text-decoration: none;
  color: var(--text-primary);
}

.sidebar-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson), var(--royal-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold-light);
  box-shadow: 0 0 25px rgba(180, 40, 55, 0.4);
  position: relative;
  animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconGlow {
  0%,
  100% {
    box-shadow:
      0 0 25px rgba(180, 40, 55, 0.4),
      0 0 50px rgba(20, 40, 120, 0.2);
  }
  50% {
    box-shadow:
      0 0 40px rgba(200, 50, 65, 0.6),
      0 0 70px rgba(25, 50, 140, 0.35);
  }
}

.sidebar-brand-text {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(
    135deg,
    var(--gold-light),
    var(--champagne),
    var(--gold)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navigation ────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 36, 0.7);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 2rem;
  transition: all 0.4s var(--transition-smooth);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson), var(--royal-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold-light);
  box-shadow: 0 0 25px rgba(180, 40, 55, 0.4);
  position: relative;
  animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconGlow {
  0%,
  100% {
    box-shadow:
      0 0 25px rgba(180, 40, 55, 0.4),
      0 0 50px rgba(20, 40, 120, 0.2);
  }
  50% {
    box-shadow:
      0 0 40px rgba(200, 50, 65, 0.6),
      0 0 70px rgba(25, 50, 140, 0.35);
  }
}

.nav-brand-text {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(
    135deg,
    var(--gold-light),
    var(--champagne),
    var(--gold)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.35s var(--transition-smooth);
}
.nav-links a:hover {
  color: var(--champagne);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--crimson), var(--ruby));
  color: var(--pure-white);
  border: none;
  padding: 10px 26px;
  border-radius: 50px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.35s var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(180, 30, 45, 0.35);
  white-space: nowrap;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 40, 55, 0.5);
  background: linear-gradient(135deg, #a01e30, #c03040);
}

/* ── Logged‑in Avatar & Dropdown ─────────── */
.nav-profile {
  position: relative;
  cursor: pointer;
}
.nav-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--gold-light);
  box-shadow: 0 0 20px rgba(200, 160, 60, 0.4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  background: #1a1e35;
}
.nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-avatar:hover {
  box-shadow: 0 0 30px rgba(200, 160, 60, 0.8);
  transform: scale(1.05);
}
.dropdown-menu {
  position: absolute;
  top: 55px;
  right: 0;
  background: rgba(15, 20, 50, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 0.8rem;
  width: 180px;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 200;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}
.dropdown-menu.show {
  display: flex;
}
.dropdown-menu a,
.dropdown-menu button {
  background: none;
  border: none;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: 0.2s;
  text-align: left;
  width: 100%;
}
.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--champagne);
}
.mobile-setup {
  display: none;
  gap: 1px;
  list-style: none;
  justify-content: center;
  align-items: center;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ── Hero Section ──────────────────────────── */
.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: rgba(200, 160, 60, 0.1);
  border: 1px solid rgba(200, 160, 60, 0.3);
  color: var(--gold-light);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s var(--transition-smooth);
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
  animation: fadeInUp 0.9s var(--transition-smooth);
  background: linear-gradient(180deg, #ffffff 0%, #e8dfd0 40%, #c9a84c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(200, 155, 50, 0.3));
}

.hero-subtitle {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2rem;
  animation: fadeInUp 1s var(--transition-smooth);
  letter-spacing: 0.03em;
}

.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 1rem;
  animation: fadeIn 1.2s var(--transition-smooth);
}
.hero-ornament .line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-ornament .diamond-icon {
  color: var(--gold-light);
  font-size: 0.8rem;
  animation: diamondSpin 6s linear infinite;
}
@keyframes diamondSpin {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.3);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ── Stats Bar ─────────────────────────────── */
.stats-bar {
  max-width: 1100px;
  margin: 1rem auto 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 1.8rem 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeInUp 1.1s var(--transition-smooth);
}
.stat-item {
  text-align: center;
}
.stat-value {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.03em;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Filter Section ────────────────────────── */
.filter-section {
  max-width: 1400px;
  margin: 0 auto 2.5rem;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  animation: fadeInUp 1.2s var(--transition-smooth);
}
.filter-chip {
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.35s var(--transition-smooth);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}
.filter-chip:hover,
.filter-chip.active {
  background: rgba(180, 30, 45, 0.3);
  border-color: rgba(200, 150, 60, 0.5);
  color: var(--champagne);
  box-shadow: 0 0 25px rgba(180, 35, 50, 0.3);
  transform: translateY(-2px);
}
.filter-chip.active {
  background: linear-gradient(
    135deg,
    rgba(160, 25, 40, 0.5),
    rgba(20, 40, 110, 0.4)
  );
  border-color: var(--gold);
  color: var(--pure-white);
  font-weight: 600;
}

#searchInput:focus {
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(200, 160, 60, 0.2);
}

/* ── Card Grid ─────────────────────────────── */
.card-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}

/* ── Profile Card ──────────────────────────── */
.profile-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--glass-bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
  transition: all 0.5s var(--transition-card);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  /* Intersection Observer initial state */
  opacity: 0;
  transform: translateY(70px) scale(0.92);
  will-change: transform, opacity;
}

.profile-card.card-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.profile-card:hover {
  transform: translateY(-10px) scale(1.025);
  border-color: var(--card-border-glow);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    var(--shadow-gold),
    0 0 0 1px rgba(200, 155, 60, 0.3) inset;
  z-index: 10;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  padding: 1.5px;
  background: linear-gradient(
    160deg,
    rgba(200, 160, 70, 0.5) 0%,
    rgba(180, 30, 50, 0.35) 30%,
    rgba(20, 45, 130, 0.4) 60%,
    rgba(200, 160, 70, 0.3) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.5s;
  z-index: 1;
}
.profile-card:hover::before {
  opacity: 1;
  background: linear-gradient(
    160deg,
    rgba(220, 180, 80, 0.8) 0%,
    rgba(200, 40, 55, 0.6) 30%,
    rgba(30, 55, 150, 0.6) 60%,
    rgba(220, 180, 80, 0.5) 100%
  );
}

/* Card shimmer on hover */
.profile-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 0;
}
.profile-card:hover::after {
  opacity: 1;
  animation: shimmer 1.8s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(3%, 3%);
  }
}

/* ── People You May Know (horizontal scroll) ── */
.people-row {
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}
.people-circle {
  flex: 0 0 80px;
  text-align: center;
  scroll-snap-align: start;
  position: relative;
  cursor: pointer;
}

/* Hide scrollbar on horizontal carousels */
.people-row {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
}
.people-row::-webkit-scrollbar {
  display: none; /* Chrome / Safari / Opera */
}
.people-circle img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-light);
  margin-bottom: 0.3rem;
}
.people-circle .online-dot {
  position: absolute;
  bottom: 12px;
  right: 6px;
  width: 14px;
  height: 14px;
  background: #4cfa7c;
  border-radius: 50%;
  border: 2px solid #080c24;
}
.people-name {
  font-size: 0.7rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.people-age {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.people-row {
  max-width: 100vw;               /* never exceed the viewport */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.people-row::-webkit-scrollbar {
  height: 4px;
}
.people-row::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}
.people-circle {
  flex-shrink: 0;                 /* don't let circles shrink */
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  z-index: 2;
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-smooth);
  filter: brightness(0.95) contrast(1.05);
}
.profile-card:hover .card-image {
  transform: scale(1.07);
  filter: brightness(1.05) contrast(1.08);
}

/* Status badge */
.status-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.status-dot.online {
  background: #4cfa7c;
  box-shadow: 0 0 12px #4cfa7c;
}
.status-dot.recent {
  background: #f0a840;
  box-shadow: 0 0 10px #f0a840;
}
.status-dot.offline {
  background: #7a756e;
  box-shadow: 0 0 6px #7a756e;
  animation: none;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 8px currentColor;
  }
  50% {
    box-shadow:
      0 0 20px currentColor,
      0 0 35px currentColor;
  }
}

/* Verified Crown */
.verified-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(200, 155, 50, 0.85);
  color: #1a1a0a;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  z-index: 5;
  box-shadow: 0 0 20px rgba(200, 160, 40, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

/* Card body */
.card-body {
  padding: 1.4rem 1.3rem 1.5rem;
  position: relative;
  z-index: 2;
}
.card-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.card-name {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--pure-white);
  letter-spacing: 0.03em;
}
.card-age {
  background: rgba(200, 155, 60, 0.2);
  color: var(--gold-light);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid rgba(200, 155, 60, 0.3);
}
.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.card-location i {
  color: var(--rose);
  font-size: 0.7rem;
}
.card-last-seen {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-distance {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-phone-wrapper .phone-dropdown {
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
}
.phone-option:hover {
  background: rgba(200,160,60,0.1);
  color: var(--champagne) !important;
}
.card-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: "Inter", monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--champagne);
  letter-spacing: 0.04em;
  transition: all 0.35s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.card-phone i {
  color: var(--gold-light);
  font-size: 0.8rem;
}
.card-phone:hover {
  background: rgba(200, 155, 60, 0.1);
  border-color: rgba(200, 155, 60, 0.4);
  box-shadow: 0 0 20px rgba(200, 150, 40, 0.15);
}
.card-phone .copy-hint {
  position: absolute;
  right: 12px;
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  letter-spacing: 0.03em;
}
.card-phone:hover .copy-hint {
  opacity: 1;
}
.card-admire {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}
.btn-primary {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--crimson), var(--royal-blue));
  border: none;
  border-radius: 14px;
  color: white;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(180, 30, 45, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 40, 55, 0.5);
}

.btn-admire {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 6px 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  margin-bottom: 5px;
}
.btn-admire i {
  color: var(--love-pink);
}
.btn-admire:hover:not(:disabled) {
  background: rgba(255, 107, 138, 0.2);
  border-color: var(--love-pink);
  color: white;
}
.btn-admire:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  background: rgba(255, 107, 138, 0.15);
  color: var(--love-pink);
  border-color: rgba(255, 107, 138, 0.5);
}
.admirer-count {
  color: var(--love-pink);
  font-weight: 600;
}

.card-interactions {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  z-index: 10;
}
.interaction-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition:
    transform 0.2s,
    color 0.2s;
}
.interaction-btn i {
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
}
.interaction-btn:hover {
  transform: scale(1.15);
}
.interaction-btn .count {
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
}
.interaction-btn .fa-heart {
  color: var(--love-pink);
}
.interaction-btn .fa-bookmark {
  color: var(--gold-light);
}

.footer {
  background: rgba(8, 12, 36, 0.85);
  backdrop-filter: blur(25px);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 2rem 1.5rem;
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto 3rem;
}
.footer-col h4 {
  font-family: "Playfair Display", serif;
  color: var(--gold-light);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.03em;
}
.footer-col p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}
.footer-col ul li a:hover {
  color: var(--gold-light);
}
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.footer-social a {
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: color 0.3s;
}
.footer-social a:hover {
  color: var(--gold-light);
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.newsletter-form input {
  flex: 1;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  color: white;
  outline: none;
  font-size: 0.8rem;
}
.newsletter-form input:focus {
  border-color: var(--gold);
}
.newsletter-form button {
  background: linear-gradient(135deg, var(--crimson), var(--royal-blue));
  border: none;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: 0.3s;
  white-space: nowrap;
}
.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 40, 55, 0.4);
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer-bottom span {
  color: var(--gold-light);
  font-weight: 600;
}

/* ── Toast Notification ────────────────────── */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(20, 30, 60, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--gold);
  color: var(--champagne);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  z-index: 999;
  transition: transform 0.4s var(--transition-bounce);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.5),
    var(--shadow-gold);
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.4rem;
  }
  .card-image-wrapper {
    height: 270px;
  }
  .stats-bar {
    gap: 1.8rem;
    padding: 1.4rem 1.5rem;
  }
  .stat-value {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-profile {
    display: none !important;
  }
  .mobile-setup {
    display: flex;
  }
  .nav-hamburger {
    display: block;
  }
  .nav-inner {
    height: 58px;
  }
  .nav-brand-text {
    font-size: 1.2rem;
  }
  .nav-brand-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .hero {
    padding: 2.5rem 1.2rem 2rem;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    padding: 0 1rem 3rem;
  }
  .card-image-wrapper {
    height: 240px;
  }
  .card-body {
    padding: 1rem 1rem 1.2rem;
  }
  .card-name {
    font-size: 1.15rem;
  }
  .stats-bar {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    margin: 1rem 1rem 2rem;
  }
  .filter-section {
    padding: 0 1rem;
    gap: 8px;
  }
  .filter-chip {
    padding: 8px 16px;
    font-size: 0.75rem;
  }
  .newsletter-form button {
    padding: 0.4rem 0.6rem;
    border-radius: 20px;
    font-weight: 400;
    font-size: 0.5rem;
    gap: 0.2rem;
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    padding: 0 0.6rem 2rem;
  }
  .card-image-wrapper {
    height: 180px;
  }
  .card-body {
    padding: 0.7rem 0.7rem 0.9rem;
  }
  .card-name {
    font-size: 0.95rem;
  }
  .card-age {
    font-size: 0.68rem;
    padding: 3px 8px;
  }
  .card-phone {
    font-size: 0.7rem;
    padding: 7px 10px;
    gap: 4px;
  }
  .card-location,
  .card-last-seen {
    font-size: 0.68rem;
  }
  .status-badge {
    font-size: 0.62rem;
    padding: 4px 10px;
    top: 8px;
    right: 8px;
  }
  .verified-badge {
    top: 8px;
    left: 8px;
    width: 22px;
    height: 22px;
    font-size: 0.6rem;
  }
  .hero-title {
    font-size: 1.7rem;
  }
  .nav-cta {
    padding: 8px 16px;
    font-size: 0.72rem;
  }
}

/* Notification Bell */
.notification-bell {
  position: relative;
  cursor: pointer;
  margin-right: 1rem;
  font-size: 1.3rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}
.notification-bell:hover {
  color: var(--champagne);
}
.notification-bell .badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--ruby);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(180, 30, 45, 0.6);
}
.notif-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  width: 320px;
  max-height: 400px;
  overflow-y: scroll;
  background: rgba(15, 20, 50, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--gold);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  padding: 1rem;
  display: none;
  z-index: 300;
}

.notif-dropdown::-webkit-scrollbar {
  width: 2px;
  background-color: pink;
  border-radius: 10px;
}
.notif-dropdown::-webkit-scrollbar-thumb {
  width: 3px;
  background-color: rgba(15, 20, 50, 0.95);
}
.notif-dropdown::-webkit-scrollbar-track {
  background-color: gold;
}
.notif-dropdown.show {
  display: block;
}
.mobile-notif-dropdown {
  position: absolute;
  top: 40px;
  width: 320px;
  right: -5rem;
  /* left: 2rem; */
  max-height: 400px;
  overflow-y: scroll;
  background: rgba(15, 20, 50, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--gold);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  padding: 1rem;
  display: none;
  z-index: 300;
}
.mobile-notif-dropdown::-webkit-scrollbar {
  width: 2px;
  background-color: pink;
  border-radius: 10px;
}
.mobile-notif-dropdown::-webkit-scrollbar-thumb {
  width: 3px;
  background-color: rgba(15, 20, 50, 0.95);
}
.mobile-notif-dropdown::-webkit-scrollbar-track {
  background-color: gold;
}
.mobile-notif-dropdown.show {
  display: block;
}
.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}
.notif-header h4 {
  color: var(--gold-light);
  font-family: "Playfair Display", serif;
  font-size: 1rem;
}
.notif-header button {
  background: none;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: 0.2s;
}
.notif-header button:hover {
  border-color: var(--gold);
  color: var(--champagne);
}
.notif-item {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item .notif-title {
  color: var(--champagne);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.notif-item .notif-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.notif-item .mark-read {
  background: none;
  border: none;
  color: var(--gold-light);
  cursor: pointer;
  font-size: 0.7rem;
  margin-left: 0.5rem;
}

.invisible {
  display: none !important;
}

/* Footer Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-content {
  background: var(--glass-card);
  border: 1px solid var(--gold);
  border-radius: 24px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.modal-header h3 {
  font-family: "Playfair Display", serif;
  color: var(--gold-light);
  font-size: 1.4rem;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--gold-light);
}
.modal-body p,
.modal-body li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.modal-body ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}
.modal-body input,
.modal-body textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: white;
  outline: none;
  margin-bottom: 1rem;
  font-family: "Inter", sans-serif;
}
.modal-body textarea {
  resize: vertical;
}
.modal-body button {
  background: linear-gradient(135deg, var(--crimson), var(--royal-blue));
  border: none;
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
}

/* ── Progress Bar Animations ───────────────── */
@keyframes shimmerBar {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

#progressBar {
  background: linear-gradient(
    90deg,
    var(--gold) 0%,
    #f0e4c8 30%,
    var(--gold-light) 50%,
    #f0e4c8 70%,
    var(--gold) 100%
  );
  background-size: 200% 100%;
  animation: shimmerBar 3s linear infinite;
}

.pulse-bar {
  animation: pulseBar 0.6s ease-in-out;
}

@keyframes pulseBar {
  0%,
  100% {
    transform: scaleY(1);
    box-shadow: 0 0 10px var(--gold);
  }
  50% {
    transform: scaleY(1.4);
    box-shadow: 0 0 30px var(--gold-light);
  }
}

/* Confetti */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -20px;
  animation: confettiFall 2.5s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(105vh) rotate(720deg);
    opacity: 0;
  }
}

/* ── Mobile Bottom Navigation ─────────────────── */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(8, 12, 36, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: none;   /* hidden on desktop */
    justify-content: space-around;
    align-items: center;
    z-index: 800;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 70px;   /* prevent content overlap */
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    transition: color 0.3s;
    padding: 4px 8px;
}

.bottom-nav-item i {
    font-size: 1.2rem;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--gold-light);
}

.bottom-nav-add {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--crimson), var(--gold));
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(200, 40, 55, 0.6);
    transition: 0.3s;
    margin-top: -30px;   /* raised center button */
}

.bottom-nav-add:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(200, 40, 55, 0.9);
}

.bottom-nav-item {
    position: relative;
}

.nav-badge {
    position: absolute;
    top: -4px;
    right: 6px;
    background: var(--ruby, #a82035);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 0 8px rgba(180,30,45,0.6);
}

/* ── Create Status Modal ─────────────────────── */
.create-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.create-modal-overlay.show {
    display: flex;
}

.create-modal {
    background: rgba(15, 20, 50, 0.95);
    border: 1px solid var(--gold);
    border-radius: 24px;
    padding: 2rem;
    width: 90%;
    max-width: 350px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.create-modal h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.btn-close {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.install-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #080c24;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(200, 160, 60, 0.5);
    display: none;               /* hidden by default */
    transition: opacity 0.3s;
}
.install-btn:hover {
    transform: translateY(-2px);
}

.install-btn.show {
    display: block;
}

.stories-row {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
  border-radius: 16px;
  margin: 1rem 0;
}
.stories-row::-webkit-scrollbar {
  display: none;
}
.story-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.story-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  position: relative;
  border: 3px solid #555;
}
.story-avatar.unviewed {
  border-color: #f5a623;
  box-shadow: 0 0 0 2px #f5a623;
}
#story-views-container {
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}
.add-story-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #f5a623;
  color: #000;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  border: 2px solid #1a1a2e;
}
.story-name {
  font-size: 12px;
  margin-top: 4px;
  color: #ccc;
  white-space: nowrap;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes pulse {
  0% { opacity:0.6; }
  50% { opacity:1; }
  100% { opacity:0.6; }
}
/* ─── Tar TV Preview Row ─────────────────────── */
.tv-preview-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.tv-preview-row::-webkit-scrollbar { display: none; }

.tv-preview-item {
  position: relative;
  flex: 0 0 150px;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--glass-border);
}
.tv-preview-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(200, 160, 60, 0.25);
}
.tv-preview-item:active { transform: scale(0.97); }

.tv-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.tv-preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.7rem 0.7rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  color: #fff;
  font-size: 0.75rem;
  pointer-events: none;
}
.tv-preview-title {
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.2;
  margin-bottom: 0.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tv-preview-author {
  color: var(--gold-light);
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tv-preview-crown {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 0.75rem;
  border: 1px solid rgba(200, 160, 60, 0.4);
}

.tv-preview-see-more {
  flex: 0 0 150px;
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  background: rgba(200, 160, 60, 0.08);
  border: 1px dashed rgba(200, 160, 60, 0.4);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  scroll-snap-align: start;
  transition: 0.25s;
  gap: 0.4rem;
}
.tv-preview-see-more:hover {
  background: rgba(200, 160, 60, 0.15);
  border-color: var(--gold);
}
.tv-preview-see-more i { font-size: 1.4rem; }

/* Skeleton variant */
.tv-preview-skeleton {
  flex: 0 0 150px;
  height: 220px;
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(200, 160, 60, 0.10) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
  scroll-snap-align: start;
}

/* Section heading helper */
.tv-preview-heading {
  font-family: 'Playfair Display', serif;
  color: var(--gold-light);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}