/* WinDate — World-Class Dating App CSS */
:root {
  --primary: #ff3b6b;
  --primary-dark: #d4234f;
  --secondary: #ff8c42;
  --gold: #ffd700;
  --diamond: #a8edea;
  --purple: #7c3aed;
  --dark: #0d0d1a;
  --dark2: #14142b;
  --dark3: #1e1e3f;
  --card: #1a1a2e;
  --card2: #16213e;
  --text: #f8f8ff;
  --text-dim: #8888aa;
  --border: rgba(255,255,255,0.08);
  --glass: rgba(255,255,255,0.05);
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
  --radius: 20px;
  --radius-sm: 12px;
  --gradient: linear-gradient(135deg, #ff3b6b, #ff8c42);
  --gradient2: linear-gradient(135deg, #7c3aed, #ff3b6b);
  --gradient3: linear-gradient(135deg, #0d0d1a, #14142b);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { line-height: 1.6; color: var(--text-dim); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }

/* ── Gradient text ── */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px; font-size: 1rem; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap; text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,59,107,0.4); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--gradient); color: #fff; }
.btn-secondary { background: var(--glass); color: var(--text); border: 1px solid var(--border); backdrop-filter: blur(10px); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); box-shadow: none; }
.btn-gold { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #000; }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { padding: 18px 40px; font-size: 1.125rem; }
.btn-full { width: 100%; }
.btn-icon { padding: 12px; border-radius: 50%; }

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.glass-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 24px;
}

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-size: 0.875rem; font-weight: 500; color: var(--text-dim); }
.form-input {
  width: 100%; padding: 14px 18px; background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 1rem; transition: border-color 0.3s;
  outline: none; appearance: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,59,107,0.15); }
.form-input::placeholder { color: var(--text-dim); }
select.form-input option { background: var(--dark3); }
textarea.form-input { resize: vertical; min-height: 100px; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px;
  border-radius: 50px; font-size: 0.75rem; font-weight: 600;
}
.badge-primary { background: rgba(255,59,107,0.2); color: var(--primary); }
.badge-gold { background: rgba(255,215,0,0.2); color: var(--gold); }
.badge-green { background: rgba(34,197,94,0.2); color: #22c55e; }
.badge-purple { background: rgba(124,58,237,0.2); color: #a78bfa; }
.badge-blue { background: rgba(59,130,246,0.2); color: #60a5fa; }

/* ── Navigation ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 24px;
  background: rgba(13,13,26,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-brand { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 800; }
.navbar-brand .logo-icon { width: 40px; height: 40px; background: var(--gradient); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.navbar-nav { display: flex; align-items: center; gap: 8px; }
.nav-link { padding: 8px 16px; border-radius: 8px; color: var(--text-dim); font-size: 0.9rem; font-weight: 500; transition: all 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--glass); }

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 100px 24px 60px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,59,107,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(124,58,237,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 50% 100%, rgba(255,140,66,0.1) 0%, transparent 60%);
}
.hero-content { text-align: center; max-width: 800px; position: relative; z-index: 1; }
.hero-tagline { font-size: 0.9rem; letter-spacing: 3px; text-transform: uppercase; color: var(--primary); font-weight: 600; margin-bottom: 16px; }
.hero-title { margin-bottom: 24px; }
.hero-sub { font-size: 1.2rem; color: var(--text-dim); max-width: 550px; margin: 0 auto 40px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 2rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-stat-label { font-size: 0.875rem; color: var(--text-dim); }

/* ── Floating cards on hero ── */
.hero-cards {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  display: none;
}
@media (min-width: 1100px) { .hero-cards { display: block; } }
.float-card {
  width: 200px; background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}
.float-card:nth-child(2) { animation-delay: 1.5s; margin-left: 30px; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── Swipe Interface ── */
.discover-tabs-wrap { padding: 0; text-align: center; }
/* On desktop, pull discover flush to top by negating main-content padding */
#viewDiscover { margin: -24px -24px 0; }
#viewDiscover .discover-tabs-wrap { padding: 16px 0 0; }
.swipe-container {
  width: 100%; max-width: 420px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 16px 16px;
}
.card-stack { position: relative; width: 100%; height: 560px; margin-bottom: 24px; }
.profile-card {
  position: absolute; width: 100%; height: 100%;
  background: var(--card2); border-radius: 24px;
  overflow: hidden; cursor: grab; user-select: none;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transition: box-shadow 0.3s;
  will-change: transform;
}
.profile-card:active { cursor: grabbing; }
.profile-card.swipe-left { animation: swipeLeft 0.5s forwards; }
.profile-card.swipe-right { animation: swipeRight 0.5s forwards; }
@keyframes swipeLeft  { to { transform: translateX(-150%) rotate(-25deg); opacity: 0; } }
@keyframes swipeRight { to { transform: translateX(150%) rotate(25deg); opacity: 0; } }

.profile-img {
  width: 100%; height: 70%; object-fit: cover; display: block;
  background: var(--dark3);
}
.profile-img-placeholder {
  width: 100%; height: 70%;
  background: linear-gradient(135deg, var(--dark3), var(--dark2));
  display: flex; align-items: center; justify-content: center; font-size: 4rem;
}
.profile-card-info { padding: 16px; position: relative; }
.profile-card-name { font-size: 1.5rem; font-weight: 700; }
.profile-card-meta { font-size: 0.875rem; color: var(--text-dim); margin-top: 4px; }
.profile-card-badges { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.compatibility-badge {
  position: absolute; top: -20px; right: 16px;
  background: var(--gradient); color: #fff; border-radius: 50px;
  padding: 4px 14px; font-size: 0.8rem; font-weight: 700;
  box-shadow: 0 4px 15px rgba(255,59,107,0.4);
}

/* Like/Nope overlays */
.swipe-overlay {
  position: absolute; top: 24px; padding: 8px 20px; border-radius: 8px;
  font-size: 1.5rem; font-weight: 800; letter-spacing: 2px; opacity: 0;
  pointer-events: none; border: 3px solid;
}
.swipe-overlay.like { left: 16px; color: #22c55e; border-color: #22c55e; transform: rotate(-20deg); }
.swipe-overlay.nope { right: 16px; color: var(--primary); border-color: var(--primary); transform: rotate(20deg); }
.swipe-overlay.superlike { left: 50%; transform: translateX(-50%); color: #3b82f6; border-color: #3b82f6; }

/* Action buttons */
.action-btns {
  display: flex; align-items: center; justify-content: center; gap: 20px;
}
.action-btn {
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.action-btn:hover { transform: scale(1.15); }
.action-btn.nope { background: #1e1e3f; color: var(--primary); border: 2px solid var(--primary); }
.action-btn.undo { background: #1e1e3f; color: #fbbf24; width: 48px; height: 48px; font-size: 1.1rem; }
.action-btn.superlike { background: #1e1e3f; color: #3b82f6; border: 2px solid #3b82f6; width: 52px; height: 52px; }
.action-btn.like { background: var(--gradient); color: #fff; width: 68px; height: 68px; font-size: 1.6rem; box-shadow: 0 10px 30px rgba(255,59,107,0.5); }
.action-btn.boost { background: #1e1e3f; color: #a855f7; border: 2px solid #a855f7; width: 48px; height: 48px; font-size: 1.1rem; }

/* ── Match Modal ── */
.match-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.match-modal.show { opacity: 1; pointer-events: all; }
.match-modal-content {
  text-align: center; padding: 48px 32px; max-width: 400px;
  animation: matchPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes matchPop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.match-hearts { font-size: 4rem; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.match-avatars { display: flex; justify-content: center; gap: -20px; margin: 24px 0; }
.match-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--primary); object-fit: cover; }
.match-avatar:nth-child(2) { margin-left: -20px; border-color: var(--secondary); }

/* ── Chat ── */
.chat-container {
  display: flex; flex-direction: column; height: calc(100vh - 140px);
  max-width: 700px; margin: 0 auto;
}
.chat-header {
  padding: 16px; background: var(--card); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px; border-radius: var(--radius) var(--radius) 0 0;
  flex-shrink: 0;
}
.chat-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--dark3); }
.online-dot { width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid var(--card); }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--dark2);
}
.message-bubble {
  max-width: 70%; padding: 12px 16px; border-radius: 18px;
  position: relative; word-break: break-word; font-size: 0.95rem;
}
.message-bubble.sent {
  align-self: flex-end; background: var(--gradient); color: #fff;
  border-bottom-right-radius: 4px;
}
.message-bubble.received {
  align-self: flex-start; background: var(--card);
  border-bottom-left-radius: 4px;
}
.message-time { font-size: 0.7rem; opacity: 0.6; margin-top: 4px; }
.message-reaction { position: absolute; bottom: -8px; right: 8px; font-size: 0.9rem; background: var(--dark3); border-radius: 50px; padding: 2px 6px; }
.typing-indicator { align-self: flex-start; background: var(--card); padding: 12px 16px; border-radius: 18px; }
.typing-dots { display: flex; gap: 4px; }
.typing-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); animation: typingBounce 1.2s infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
.chat-input-area {
  padding: 16px; background: var(--card); border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  border-radius: 0 0 var(--radius) var(--radius); flex-shrink: 0;
}
.chat-input {
  flex: 1; background: var(--dark3); border: 1px solid var(--border);
  border-radius: 50px; padding: 12px 20px; color: var(--text); font-size: 0.95rem;
  outline: none;
}
.chat-input:focus { border-color: var(--primary); }

/* ── Matches List ── */
.matches-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.match-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px; display: flex; align-items: center; gap: 16px; cursor: pointer;
  transition: all 0.2s; position: relative;
}
.match-card:hover { background: var(--card2); transform: translateX(4px); }
.match-card-avatar { position: relative; flex-shrink: 0; }
.match-card-avatar img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--dark3); }
.match-card-info { flex: 1; min-width: 0; }
.match-card-name { font-weight: 600; margin-bottom: 4px; }
.match-card-last { font-size: 0.8rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--primary); color: #fff; width: 20px; height: 20px;
  border-radius: 50%; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ── Profile View ── */
.profile-view { max-width: 600px; margin: 0 auto; }
.profile-photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 280px 140px; gap: 4px; border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.profile-photos img { width: 100%; height: 100%; object-fit: cover; }
.profile-photos img:first-child { grid-row: span 2; }
.profile-photos .add-photo { background: var(--dark3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; color: var(--text-dim); font-size: 0.8rem; transition: background 0.2s; }
.profile-photos .add-photo:hover { background: var(--dark2); color: var(--primary); }

/* ── Gifts Store ── */
.gifts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.gift-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px 12px; text-align: center; cursor: pointer; transition: all 0.3s;
}
.gift-item:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(255,59,107,0.2); }
.gift-item.selected { border-color: var(--primary); background: rgba(255,59,107,0.08); }
.gift-emoji { font-size: 2.5rem; margin-bottom: 8px; }
.gift-name { font-size: 0.875rem; font-weight: 600; margin-bottom: 4px; }
.gift-price { font-size: 0.8rem; color: var(--gold); font-weight: 600; }

/* ── Premium / Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.pricing-card {
  background: var(--card2); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px; text-align: center; position: relative; transition: all 0.3s;
}
.pricing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pricing-card.popular { border-color: var(--primary); }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #fff; padding: 4px 20px; border-radius: 50px; font-size: 0.75rem; font-weight: 700;
}
.pricing-icon { font-size: 2.5rem; margin-bottom: 12px; }
.pricing-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.pricing-price { font-size: 3rem; font-weight: 800; }
.pricing-price span { font-size: 1rem; color: var(--text-dim); font-weight: 400; }
.pricing-features { list-style: none; margin: 24px 0; text-align: left; }
.pricing-features li { padding: 8px 0; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.pricing-features li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; }

/* ── Bottom Nav (Mobile) ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(20,20,43,0.95); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 16px; cursor: pointer; color: var(--text-dim);
  transition: color 0.2s; border-radius: 12px; position: relative;
}
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item .icon { font-size: 1.3rem; }
.bottom-nav-item .label { font-size: 0.65rem; font-weight: 600; }
.bottom-nav-badge {
  position: absolute; top: 4px; right: 8px;
  background: var(--primary); color: #fff; width: 18px; height: 18px;
  border-radius: 50%; font-size: 0.6rem; display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ── Header tabs ── */
.tab-bar { display: flex; gap: 4px; background: var(--dark3); border-radius: 50px; padding: 4px; }
.tab-btn { padding: 8px 20px; border-radius: 50px; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: all 0.2s; color: var(--text-dim); background: transparent; border: none; }
.tab-btn.active { background: var(--gradient); color: #fff; }

/* ── Section header ── */
.section-header { text-align: center; padding: 80px 24px 48px; }
.section-tag { font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase; color: var(--primary); font-weight: 600; margin-bottom: 12px; }

/* ── Features grid ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; padding: 0 24px 80px; max-width: 1200px; margin: 0 auto; }
.feature-card { padding: 32px; }
.feature-icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,59,107,0.15); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.feature-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }

/* ── Toast ── */
.toast-container { position: fixed; top: 80px; right: 24px; z-index: 99999; display: flex; flex-direction: column; gap: 12px; }
.toast {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 20px; min-width: 280px; max-width: 380px;
  box-shadow: var(--shadow); animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex; align-items: center; gap: 12px;
}
.toast.success { border-left: 4px solid #22c55e; }
.toast.error { border-left: 4px solid var(--primary); }
.toast.info { border-left: 4px solid #3b82f6; }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Loader ── */
.loader { display: inline-block; width: 40px; height: 40px; }
.loader::after { content: ''; display: block; width: 30px; height: 30px; margin: 8px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--primary); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay { position: fixed; inset: 0; background: var(--dark); z-index: 99998; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; max-width: 500px; width: 100%;
  animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh; overflow-y: auto;
}
@keyframes modalIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-close { background: none; border: none; color: var(--text-dim); font-size: 1.5rem; cursor: pointer; padding: 4px; }

/* ── App layout ── */
.app-layout { display: flex; min-height: 100vh; padding-top: 64px; }
.sidebar {
  width: 280px; flex-shrink: 0; padding: 24px 16px;
  border-right: 1px solid var(--border); position: sticky; top: 64px;
  height: calc(100vh - 64px); overflow-y: auto; background: var(--dark2);
}
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-radius: var(--radius-sm); cursor: pointer; color: var(--text-dim);
  transition: all 0.2s; font-size: 0.9rem; font-weight: 500;
}
.sidebar-item:hover, .sidebar-item.active { background: rgba(255,59,107,0.1); color: var(--primary); }
.sidebar-item .icon { font-size: 1.1rem; width: 20px; text-align: center; }
.main-content { flex: 1; padding: 24px; min-height: calc(100vh - 64px); overflow-y: auto; }
@media (max-width: 768px) {
  .sidebar { display: none; }
  .app-layout { padding-bottom: 70px; }
  .main-content { padding: 16px; }
}

/* ── Profile photo with online indicator ── */
.avatar { position: relative; display: inline-block; }
.avatar img { border-radius: 50%; object-fit: cover; background: var(--dark3); display: block; }
.avatar .status { position: absolute; bottom: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--card); }
.avatar .status.online { background: #22c55e; }
.avatar .status.offline { background: var(--text-dim); }

/* ── Video call ── */
.video-call {
  position: fixed; inset: 0; z-index: 9999;
  background: #000; display: flex; flex-direction: column;
}
.video-remote { flex: 1; object-fit: cover; width: 100%; }
.video-local { position: absolute; top: 20px; right: 20px; width: 120px; height: 180px; object-fit: cover; border-radius: 12px; border: 2px solid #fff; }
.video-controls { padding: 24px; display: flex; justify-content: center; gap: 24px; }
.video-btn { width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer; font-size: 1.3rem; }
.video-btn.end { background: #ef4444; color: #fff; }
.video-btn.mute, .video-btn.cam { background: rgba(255,255,255,0.1); color: #fff; }

/* ── Profile cards on landing ── */
.profile-card-preview {
  width: 160px; background: var(--card2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  animation: float 4s ease-in-out infinite;
}
.profile-card-preview img { width: 100%; height: 180px; object-fit: cover; }
.profile-card-preview .info { padding: 10px; }
.profile-card-preview .name { font-size: 0.9rem; font-weight: 700; }
.profile-card-preview .detail { font-size: 0.75rem; color: var(--text-dim); }

/* ── Animations ── */
.fade-in { animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.slide-up { animation: slideUp 0.4s ease forwards; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ── Confetti / Match animation ── */
.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 9998; }

/* ── Range input ── */
input[type=range] { -webkit-appearance: none; width: 100%; height: 4px; background: var(--dark3); border-radius: 2px; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); cursor: pointer; }

/* ── Toggle switch ── */
.toggle { position: relative; width: 50px; height: 26px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: var(--dark3); border-radius: 26px; cursor: pointer; transition: 0.3s;
}
.toggle-slider:before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
.toggle input:checked + .toggle-slider { background: var(--primary); }
.toggle input:checked + .toggle-slider:before { transform: translateX(24px); }

/* ── Gradient border cards ── */
.gradient-border {
  position: relative; border-radius: var(--radius); background: var(--card);
}
.gradient-border::before {
  content: ''; position: absolute; inset: -1px; border-radius: calc(var(--radius) + 1px);
  background: var(--gradient); z-index: -1;
}

/* ── Progress bar ── */
.progress { background: var(--dark3); border-radius: 50px; height: 8px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--gradient); border-radius: 50px; transition: width 0.5s ease; }

/* ── Stars rating ── */
.stars { display: flex; gap: 4px; }
.star { font-size: 1.2rem; cursor: pointer; color: var(--text-dim); transition: color 0.2s; }
.star.active, .star:hover { color: var(--gold); }

/* ── Map/heatmap placeholder ── */
.heat-map { width: 100%; height: 300px; background: var(--dark3); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--text-dim); position: relative; overflow: hidden; }
.heat-dot { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255,59,107,0.6), transparent); animation: heatPulse 2s ease-in-out infinite; }
@keyframes heatPulse { 0%,100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.3); opacity: 0.3; } }

/* ── Admin sidebar ── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; background: var(--dark2); border-right: 1px solid var(--border);
  padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; flex-shrink: 0;
}
.admin-content { flex: 1; padding: 32px; overflow-y: auto; background: var(--dark); }
.stat-card {
  background: var(--card2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 24px; text-align: center;
}
.stat-card .stat-num { font-size: 2.5rem; font-weight: 800; }
.stat-card .stat-label { font-size: 0.875rem; color: var(--text-dim); margin-top: 4px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
th { color: var(--text-dim); font-weight: 600; background: var(--dark3); }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .navbar { padding: 12px 16px; }
  .navbar-nav .btn { display: none; }
  .hero-cards { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; padding: 0 16px 60px; }
  .admin-sidebar { display: none; }
  .admin-content { padding: 16px; }

  /* ── Fullscreen mobile discover ── */
  .main-content { padding: 0 !important; }
  #viewDiscover { margin: 0 !important; }
  #viewDiscover.active {
    display: flex !important;
    flex-direction: column;
    height: calc(100dvh - 64px - env(safe-area-inset-bottom, 0px) - 70px);
    overflow: hidden;
  }
  #viewDiscover .discover-tabs-wrap {
    flex-shrink: 0;
    padding: 4px 12px 2px !important;
    text-align: center;
  }
  #swipeMode {
    flex: 1; min-height: 0;
    display: flex; flex-direction: column;
    padding: 0 10px 6px;
    overflow: hidden;
  }
  .card-stack {
    flex: 1 !important;
    height: auto !important;
    min-height: 0;
    margin-bottom: 10px;
  }
  .action-btns { flex-shrink: 0; gap: 14px; }
  .action-btn { width: 54px; height: 54px; font-size: 1.3rem; }
  .action-btn.like { width: 62px; height: 62px; font-size: 1.5rem; }
  .action-btn.superlike { width: 50px; height: 50px; }
  .action-btn.undo, .action-btn.boost { width: 44px; height: 44px; font-size: 1rem; }
  .discover-filter-bar { display: none; }
  #gridMode { padding: 12px; }
  /* Other views get padding back */
  #viewMatches, #viewLikedMe, #viewPremium,
  #viewGifts, #viewEvents, #viewReferral, #viewNotifications,
  #viewJournal, #viewChallenges, #viewNearby, #viewStories,
  #viewSafety, #viewTopPicks, #viewHotDates {
    padding: 14px !important;
  }
  /* Profile: hero goes edge-to-edge, body gets padding */
  #viewProfile { padding: 0 !important; overflow-y: auto; }
  .profile-body { padding: 12px !important; max-width: 100% !important; }
}
@media (min-width: 769px) { .bottom-nav { display: none; } }

/* ── Hot Dates feature ── */
.date-post {
  background: var(--card); border-radius: 16px;
  padding: 16px; margin-bottom: 14px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.date-post:hover { border-color: var(--primary); transform: translateY(-2px); }
.date-post-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.date-post-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--dark3); flex-shrink: 0; }
.date-post-name { font-weight: 700; font-size: 0.95rem; }
.date-post-sub { font-size: 0.78rem; color: var(--text-dim); margin-top: 2px; }
.date-post-vibe { font-size: 0.9rem; margin-bottom: 10px; line-height: 1.5; }
.date-post-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.date-tag { background: var(--dark3); border-radius: 50px; padding: 4px 12px; font-size: 0.75rem; color: var(--text-dim); }
.date-tag.hot { background: rgba(255,45,85,0.12); color: var(--primary); border: 1px solid rgba(255,45,85,0.25); }
.date-bid-bar { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.bid-count { font-size: 0.8rem; color: var(--text-dim); }

/* ── AI suggestion bubble ── */
.ai-suggestion {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(255,45,85,0.1));
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 16px; padding: 12px 16px; margin: 8px 0;
  font-size: 0.85rem; display: flex; align-items: flex-start; gap: 10px;
  animation: fadeIn 0.4s ease;
}
.ai-suggestion .ai-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.ai-suggestion .ai-text { flex: 1; line-height: 1.5; }
.ai-suggestion .ai-cta { font-size: 0.78rem; color: var(--primary); font-weight: 700; margin-top: 4px; cursor: pointer; text-decoration: underline; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
