/* ============================================================
   KNOTTED APP — Matching Engine UI
   Design language: dark, warm accent, premium dating feel
   ============================================================ */

:root {
  --black: #090909;
  --deep: #0f0f0f;
  --surface: #181818;
  --surface-hover: #202020;
  --border: #252525;
  --border-light: #303030;
  --muted: #6b6b6b;
  --text: #dcdcdc;
  --text-secondary: #929292;
  --white: #f2f0ed;
  --accent: #c85540;
  --accent-hover: #d96850;
  --accent-glow: rgba(200, 85, 64, 0.18);
  --accent-dim: rgba(200, 85, 64, 0.07);
  --warm: #d4a574;
  --green: #5ee89c;
  --green-dim: rgba(94, 232, 156, 0.12);
  --yellow: #f5c542;
  --yellow-dim: rgba(245, 197, 66, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.45);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 24px rgba(200, 85, 64, 0.12);
}

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  max-width: 100vw;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   LAYOUT
   ============================================================ */

#app {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

.app-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

.app-container.wide {
  max-width: 900px;
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* ============================================================
   TOP NAV
   ============================================================ */

.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.app-nav .logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.app-nav .logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--accent); background: var(--accent-dim); }

.nav-link.logout {
  color: var(--muted);
  font-size: 0.8rem;
}

.nav-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1;
}

/* ============================================================
   AUTH VIEW
   ============================================================ */

.auth-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
}

.auth-card .logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 8px;
}

.auth-card .logo span { color: var(--accent); }

.auth-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.auth-toggle {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
}

.auth-toggle button {
  flex: 1;
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  color: var(--muted);
}

.auth-toggle button.active {
  background: var(--accent);
  color: var(--white);
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-sm);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-error {
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 6px;
}

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

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  width: 100%;
  box-shadow: 0 2px 8px rgba(200, 85, 64, 0.2);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200, 85, 64, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(200, 85, 64, 0.2);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

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

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
}

.btn-ghost:hover { color: var(--text); background: var(--surface); }

.btn-large {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.3rem;
}

/* ============================================================
   SETUP WIZARD
   ============================================================ */

.setup-view {
  padding: 40px 0 80px;
}

.setup-header {
  text-align: center;
  margin-bottom: 40px;
}

.setup-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.setup-header p {
  color: var(--muted);
  margin-top: 8px;
}

.setup-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
}

.setup-progress .step {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.setup-progress .step.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(200, 85, 64, 0.3);
}
.setup-progress .step.done { background: var(--green); }

.setup-step {
  display: none;
}

.setup-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.setup-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.setup-actions .btn { flex: 1; }

/* Role Selection Cards */
.role-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.role-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.role-card:hover {
  border-color: var(--border-light);
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.role-card.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: var(--shadow-glow);
}

.role-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.role-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.role-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ============================================================
   KINK SELECTION
   ============================================================ */

.kink-category-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 24px 0 12px;
  font-weight: 500;
}

.kink-category-label:first-child { margin-top: 0; }

.kink-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kink-chip {
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.kink-chip:hover {
  border-color: var(--border-light);
  color: var(--text);
  transform: translateY(-1px);
}

.kink-chip.curious {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.3);
  color: var(--yellow);
}

.kink-chip.into_it {
  background: rgba(200, 85, 61, 0.08);
  border-color: rgba(200, 85, 61, 0.3);
  color: var(--accent);
}

.kink-chip.love_it {
  background: rgba(200, 85, 61, 0.15);
  border-color: rgba(200, 85, 61, 0.5);
  color: var(--accent-hover);
}

.kink-chip.must_have {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.kink-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--deep);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.kink-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
}

.kink-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.kink-legend-dot.curious { background: var(--yellow); }
.kink-legend-dot.into_it { background: var(--accent); opacity: 0.6; }
.kink-legend-dot.love_it { background: var(--accent); }
.kink-legend-dot.must_have { background: var(--accent); box-shadow: 0 0 6px var(--accent); }

/* Multi-select checkboxes */
.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-chip {
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.checkbox-chip:hover {
  border-color: var(--border-light);
  color: var(--text);
  transform: translateY(-1px);
}

.checkbox-chip.selected {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(200, 85, 64, 0.1);
}

/* ============================================================
   BROWSE VIEW — Profile Cards
   ============================================================ */

.browse-view {
  padding: 20px 0 80px;
}

.browse-empty {
  text-align: center;
  padding: 80px 20px;
}

.browse-empty .icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.browse-empty h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 8px;
}

.browse-empty p {
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto;
}

.profile-card {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: cardAppear 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
}

@keyframes cardAppear {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.profile-card-header {
  padding: 32px 28px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.profile-card-info h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.profile-card-meta {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.meta-tag {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--surface);
  padding: 3px 10px;
  border-radius: 12px;
}

.meta-tag.role {
  color: var(--accent);
  background: var(--accent-dim);
  font-weight: 500;
  text-transform: capitalize;
}

/* Match Score Ring */
.score-ring {
  width: 72px;
  height: 72px;
  position: relative;
  flex-shrink: 0;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring .bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 4;
}

.score-ring .progress {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}

.score-ring .score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.score-ring .score-label {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  white-space: nowrap;
}

.profile-card-bio {
  padding: 0 28px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Match Reasons */
.match-reasons {
  padding: 0 28px 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.reason-tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  background: var(--green-dim);
  color: var(--green);
  border-radius: 12px;
  font-weight: 500;
}

/* Shared Kinks Section */
.shared-kinks {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
}

.shared-kinks-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.shared-kinks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shared-kink-tag {
  font-size: 0.8rem;
  padding: 4px 12px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 12px;
}

/* All Kinks (expandable) */
.all-kinks {
  padding: 12px 28px 16px;
  border-top: 1px solid var(--border);
}

.all-kinks-toggle {
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 4px 0;
  transition: var(--transition);
}

.all-kinks-toggle:hover { color: var(--text); }

.all-kinks-list {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.all-kinks-list.show { display: flex; }

.all-kink-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  background: var(--surface);
  color: var(--text-secondary);
  border-radius: 12px;
}

/* Profile Details Grid */
.profile-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}

.profile-detail {
  background: var(--deep);
  padding: 14px 20px;
}

.profile-detail-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 4px;
}

.profile-detail-value {
  font-size: 0.9rem;
  color: var(--text);
  text-transform: capitalize;
}

/* Liked You Indicator */
.liked-you-card {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15), var(--shadow-md);
}
.liked-you-banner {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.1));
  color: var(--accent);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

/* Action Buttons */
.browse-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 28px;
  border-top: 1px solid var(--border);
}

.action-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.action-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.action-btn:active { transform: scale(0.95); }

.action-btn.pass-btn:hover {
  border-color: var(--muted);
  background: var(--surface-hover);
}

.action-btn.like-btn {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.action-btn.like-btn:hover {
  background: var(--accent);
  transform: scale(1.15);
  box-shadow: var(--shadow-glow);
}

.action-btn.like-btn:active { transform: scale(1.0); }

/* ============================================================
   MATCHES VIEW
   ============================================================ */

.matches-view {
  padding: 20px 0 80px;
}

.matches-header {
  margin-bottom: 24px;
}

.matches-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}

.matches-header p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.matches-grid {
  display: grid;
  gap: 12px;
}

.match-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.match-card:hover {
  border-color: var(--border-light);
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.match-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}

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

.match-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}

.match-info-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

.match-score-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   MATCH ANIMATION
   ============================================================ */

.match-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(8px);
}

.match-overlay-content {
  text-align: center;
  animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.match-overlay h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  text-shadow: 0 0 40px rgba(200, 85, 64, 0.3);
}

.match-overlay p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.match-overlay-content .btn {
  display: block;
  width: 100%;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   PROFILE VIEW (OWN)
   ============================================================ */

.profile-view {
  padding: 20px 0 80px;
}

.profile-section {
  margin-bottom: 32px;
}

.profile-section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}

/* ============================================================
   LOADING & UTILITY
   ============================================================ */

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: var(--muted);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden { display: none !important; }

.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ============================================================
   PROFILE PHOTOS & BLUR
   ============================================================ */

.profile-photo-container {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  background: var(--surface);
}

.profile-photo-container img.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.profile-photo-container.blurred img.profile-photo {
  filter: blur(20px) brightness(0.7);
  transform: scale(1.05);
}

.photo-blur-badge {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(8px);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.profile-photo-preview {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Match card photo */
.match-avatar-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.blurred-avatar {
  overflow: hidden;
  position: relative;
}

.blurred-avatar .blurred-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) brightness(0.7);
  transform: scale(1.2);
  position: absolute;
  top: 0;
  left: 0;
}

/* ============================================================
   PRIVACY SETTINGS
   ============================================================ */

.privacy-settings-section {
  margin-bottom: 32px;
}

.privacy-card {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.privacy-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  min-height: 56px;
}

.privacy-toggle-row:last-child {
  border-bottom: none;
}

.privacy-toggle-info {
  flex: 1;
  min-width: 0;
  margin-right: 16px;
}

.privacy-toggle-label {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.privacy-toggle-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  cursor: pointer;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-light);
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
  border-radius: 28px;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--accent);
  box-shadow: 0 0 12px rgba(200, 85, 64, 0.25);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
  background-color: var(--white);
}

/* Privacy select dropdown */
.privacy-select {
  padding: 8px 30px 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  flex-shrink: 0;
}

.privacy-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.privacy-footer-note {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 12px;
  text-align: center;
  font-style: italic;
}

/* ============================================================
   VIEWS PAGE
   ============================================================ */

.views-view {
  padding: 20px 0 80px;
}

.views-header {
  margin-bottom: 24px;
}

.views-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}

.views-header p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.views-grid {
  display: grid;
  gap: 12px;
}

.view-time {
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 640px) {
  .role-cards {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .profile-card-header {
    flex-direction: column-reverse;
    gap: 16px;
  }

  .score-ring {
    align-self: flex-end;
  }

  .profile-details {
    grid-template-columns: 1fr;
  }

  .kink-legend {
    gap: 10px;
  }

  .browse-actions {
    padding: 20px;
  }

  .action-btn {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
  }

  .profile-photo-container {
    height: 220px;
  }

  .privacy-toggle-row {
    padding: 14px 16px;
    min-height: 52px;
  }

  .privacy-toggle-label {
    font-size: 0.9rem;
  }

  .privacy-toggle-desc {
    font-size: 0.75rem;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  /* Ensure no horizontal scroll */
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Smaller avatars and containers for small screens */
  .conv-avatar, .conv-avatar-img {
    width: 42px;
    height: 42px;
  }

  .match-avatar {
    width: 46px;
    height: 46px;
    font-size: 1rem;
  }

  /* Profile card better mobile layout */
  .profile-card-bio {
    padding: 0 20px 16px;
    font-size: 0.9rem;
  }

  .match-reasons {
    padding: 0 20px 12px;
  }

  .shared-kinks {
    padding: 12px 20px;
  }

  .all-kinks {
    padding: 10px 20px 14px;
  }

  /* Auth card more padding on mobile */
  .auth-card {
    padding: 28px 24px;
  }

  /* Match overlay text fits */
  .match-overlay h1 {
    font-size: 2.2rem;
  }

  /* Chat messages wider on mobile */
  .chat-msg {
    max-width: 88%;
  }

  /* Modal smaller padding on mobile */
  .modal-box {
    padding: 20px;
  }

  /* Photo gallery tighter spacing */
  .photo-gallery {
    gap: 6px;
  }

  /* Toggle smaller desc text */
  .privacy-toggle-desc {
    display: none;
  }
}

/* Small phones (iPhone SE, 375px) */
@media (max-width: 390px) {
  .app-container {
    padding: 0 14px;
  }

  .profile-card-header {
    padding: 24px 18px 16px;
  }

  .profile-card-info h2 {
    font-size: 1.5rem;
  }

  .score-ring {
    width: 60px;
    height: 60px;
  }

  .score-ring .score-text {
    font-size: 0.95rem;
  }

  .browse-actions {
    gap: 12px;
    padding: 16px;
  }

  .action-btn {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }

  .profile-photo-container {
    height: 200px;
  }

  .profile-details {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 24px 18px;
  }

  .conversation-item {
    padding: 14px 16px;
    gap: 12px;
  }

  .conv-avatar, .conv-avatar-img {
    width: 40px;
    height: 40px;
  }

  .chat-header {
    padding: 12px 14px;
  }

  .chat-input-area {
    padding: 10px 12px;
  }

  .chat-bubble {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .setup-header h1 {
    font-size: 1.6rem;
  }

  .match-overlay h1 {
    font-size: 1.8rem;
  }

  .modal-box {
    padding: 16px;
    max-width: calc(100vw - 32px);
  }
}

/* ============================================================
   MESSAGING
   ============================================================ */

/* Small outline button (used in match cards) */
.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  width: auto;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  transition: all var(--transition);
}

.btn-outline:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(200, 85, 64, 0.15);
}

/* Match card actions row */
.match-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ---- MESSAGES VIEW (conversation list) ---- */

.messages-view {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 0 40px;
}

.messages-header {
  margin-bottom: 24px;
}

.messages-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}

.messages-header p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.conversations-list {
  display: grid;
  gap: 8px;
}

.conversation-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.conversation-item:hover {
  border-color: var(--border-light);
  background: var(--surface);
  transform: translateX(2px);
}

.conversation-item.unread {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: inset 3px 0 0 var(--accent);
}

.conv-avatar,
.conv-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.conv-avatar {
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
}

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

.conv-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.conv-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-time {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.conv-preview {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 8px;
}

.conv-preview em {
  color: var(--accent);
  font-style: normal;
  font-size: 0.8rem;
}

.unread-badge {
  background: var(--accent);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(200, 85, 64, 0.4);
}

/* ---- CHAT VIEW ---- */

.chat-view {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 72px); /* subtract nav height */
  max-width: 640px;
  margin: 0 auto;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--deep);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.btn-back {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-back:hover {
  background: var(--accent-dim);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-header-avatar-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

.chat-header-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
}

.chat-header-role {
  font-size: 0.78rem;
  color: var(--muted);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: auto;
  padding: 40px 20px;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 75%;
}

.chat-msg.mine {
  align-items: flex-end;
  align-self: flex-end;
}

.chat-msg.theirs {
  align-items: flex-start;
  align-self: flex-start;
}

.chat-bubble {
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 0.93rem;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-wrap;
}

.chat-msg.mine .chat-bubble {
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(200, 85, 64, 0.2);
}

.chat-msg.theirs .chat-bubble {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.chat-msg-time {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 3px;
  padding: 0 4px;
}

.chat-input-area {
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  background: var(--deep);
  flex-shrink: 0;
}

#chat-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 10px 14px;
  font-size: 0.93rem;
  font-family: inherit;
  resize: none;
  min-height: 42px;
  max-height: 120px;
  line-height: 1.5;
  transition: border-color var(--transition);
}

.chat-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.chat-send-btn {
  width: auto;
  padding: 10px 20px;
  flex-shrink: 0;
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .chat-view {
    height: calc(100vh - 60px);
  }

  .chat-msg {
    max-width: 88%;
  }

  .match-card-actions {
    flex-direction: row;
    align-items: center;
  }
}

/* ============================================================
   SAFETY ACTIONS (Block / Report)
   ============================================================ */

.safety-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 4px;
}

.safety-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  font-family: inherit;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.safety-btn:hover {
  color: var(--text-secondary);
  background: var(--surface-hover);
}

.safety-btn-report:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
}

.safety-sep {
  color: var(--border-light);
  font-size: 13px;
  user-select: none;
}

/* ============================================================
   MODALS
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  backdrop-filter: blur(6px);
  animation: modalFadeIn 0.2s ease;
}

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

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: modalSlideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-box-lg {
  max-width: 480px;
}

.modal-box h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.modal-box p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.btn-danger:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

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

/* Report reason radios */
.report-reasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.report-reason-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
}

.report-reason-label:hover {
  border-color: var(--border-light);
  background: var(--surface-hover);
}

.report-reason-label input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.report-reason-label input[type="radio"]:checked + span {
  color: var(--white);
}

.report-details-wrap {
  margin-top: 4px;
}

.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-textarea {
  width: 100%;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  resize: vertical;
  transition: border-color var(--transition);
}

.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */

.knotted-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  max-width: calc(100vw - 48px);
  text-align: center;
  backdrop-filter: blur(12px);
}

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

.knotted-toast.knotted-toast-error {
  border-color: rgba(248, 113, 113, 0.4);
  color: #f87171;
}

/* ============================================================
   PHOTO GALLERY
   ============================================================ */

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.photo-thumb-wrap {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.photo-thumb-wrap:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
}

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

.photo-primary-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(200, 85, 64, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.photo-thumb-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 4px;
  padding: 6px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.photo-thumb-wrap:hover .photo-thumb-actions {
  opacity: 1;
}

.photo-action-btn {
  flex: 1;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.photo-action-btn:hover {
  background: rgba(255,255,255,0.3);
}

.photo-delete-btn:hover {
  background: rgba(239, 68, 68, 0.6);
}

.photo-add-btn {
  aspect-ratio: 1;
  border: 2px dashed var(--border-light);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  color: var(--muted);
  text-decoration: none;
}

.photo-add-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

.photo-add-icon {
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.photo-add-label {
  font-size: 11px;
  font-weight: 500;
}

.photo-upload-status {
  font-size: 13px;
  padding: 8px 0;
  color: var(--muted);
}

.photo-upload-status.photo-upload-error {
  color: #f87171;
}

.photo-upload-status.hidden {
  display: none;
}

@media (max-width: 480px) {
  .photo-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

/* ============================================================
   DANGER ZONE — Account Deletion
   ============================================================ */

.danger-zone-section {
  margin-top: 8px;
}

.danger-zone-label {
  color: #f87171 !important;
}

.danger-zone-card {
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.danger-zone-info {
  flex: 1;
}

.danger-zone-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 4px;
}

.danger-zone-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Delete Account Modal */
.delete-account-modal-box {
  text-align: center;
}

.delete-modal-icon {
  font-size: 40px;
  margin-bottom: 12px;
  line-height: 1;
}

.delete-modal-warning {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.delete-confirm-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--deep);
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: monospace;
  letter-spacing: 2px;
  text-align: center;
  outline: none;
  margin: 12px 0 4px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.delete-confirm-input:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

#delete-confirm-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .danger-zone-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   PREMIUM UPGRADE SECTION
   ============================================================ */

.premium-section {
  margin-top: 8px;
}

.premium-card {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(200, 85, 64, 0.06) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.premium-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.premium-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.premium-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.premium-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.premium-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.premium-plan-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 16px;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  position: relative;
  text-align: center;
}

.premium-plan-btn:hover {
  border-color: var(--accent);
  background: rgba(200, 85, 64, 0.06);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.premium-plan-best {
  border-color: var(--accent);
  background: rgba(200, 85, 64, 0.04);
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
}

.plan-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.plan-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}

.plan-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}

.boost-link {
  display: block;
  text-align: center;
  color: var(--warm);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--deep);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.boost-link:hover {
  background: rgba(212, 165, 116, 0.06);
  border-color: var(--warm);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .premium-plans {
    grid-template-columns: 1fr;
  }
  .premium-card {
    padding: 20px;
  }
}

/* ============================================================
   ONBOARDING — 6-STEP WIZARD ADDITIONS
   ============================================================ */

/* Bio prompt examples */
.setup-bio-prompts {
  margin-bottom: 12px;
}

.setup-bio-examples {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
}

.setup-bio-examples li {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.setup-bio-examples li:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* Photo step header */
.setup-photo-header {
  margin-bottom: 16px;
}

.setup-photo-stat {
  font-size: 0.9rem;
  font-weight: 500;
}

.setup-photo-stat.has-photos {
  font-weight: 600;
}

/* Ensure setup-actions stacks on mobile for photo skip */
.setup-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  align-items: flex-start;
}

.setup-actions > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Step label in header */
.setup-header p.text-muted {
  margin-top: 4px;
}

/* Privacy step in onboarding — uses same privacy-toggle-row styles,
   but add a wrapper for spacing */
#step-6 .privacy-toggle-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#step-6 .privacy-toggle-row:last-of-type {
  margin-bottom: 0;
}

/* Make bio textarea auto-resize feel */
#setup-bio {
  resize: vertical;
  min-height: 100px;
}

@media (max-width: 480px) {
  .setup-bio-examples {
    font-size: 0.78rem;
  }
}

/* ============================================================
   PHOTO UPLOAD HERO (onboarding step 5 empty state)
   ============================================================ */
.photo-upload-hero {
  text-align: center;
  padding: 24px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.photo-upload-hero-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.photo-upload-hero-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.photo-upload-hero-subtitle {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  max-width: 280px;
}

.photo-upload-hero-subtitle strong {
  color: var(--accent);
}

.photo-upload-stats {
  display: flex;
  gap: 0;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 4px 0;
  width: 100%;
  max-width: 320px;
  justify-content: space-around;
}

.photo-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.photo-stat-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.photo-stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.photo-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

.photo-upload-cta {
  margin-top: 4px;
  min-width: 180px;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   BROWSE PAGE PHOTO NUDGE BANNER
   ============================================================ */
.browse-photo-nudge {
  background: linear-gradient(135deg, rgba(var(--accent-rgb, 180,100,80), 0.15), rgba(var(--warm-rgb, 200,150,80), 0.1));
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  animation: nudgeFadeIn 0.4s ease;
}

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

.browse-photo-nudge-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}

.browse-photo-nudge-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.browse-photo-nudge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 120px;
}

.browse-photo-nudge-text strong {
  font-size: 0.88rem;
  color: var(--text);
}

.browse-photo-nudge-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.browse-photo-nudge-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 4px;
  line-height: 1;
  flex-shrink: 0;
  position: absolute;
  top: 8px;
  right: 10px;
}

.browse-photo-nudge-close:hover {
  color: var(--text);
}

@media (max-width: 400px) {
  .browse-photo-nudge-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ============================================================
   PROFILE COMPLETENESS BAR
   ============================================================ */
.completeness-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
}

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

.completeness-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.completeness-label strong {
  color: var(--accent);
}

.completeness-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 4px;
  line-height: 1;
  transition: color var(--transition);
}

.completeness-close:hover {
  color: var(--text);
}

.completeness-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.completeness-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  border-radius: 3px;
  transition: width 0.4s ease;
}

.completeness-missing-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.completeness-missing-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
}

.completeness-missing-item span:first-child {
  font-size: 0.9rem;
}

/* ============================================================
   MATCH OVERLAY PHOTO PROMPT
   ============================================================ */
.match-photo-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(200, 85, 64, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 0.85rem;
  color: var(--text);
}

.match-photo-prompt span:first-child {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.match-photo-prompt span:last-child {
  flex: 1;
}

.match-photo-prompt strong {
  color: var(--accent);
}

/* ============================================================
   PROFILE PAGE PHOTO EMPTY STATE
   ============================================================ */
.photo-section-empty-state {
  border: 2px dashed var(--accent) !important;
  background: rgba(var(--accent-rgb, 180,100,80), 0.05) !important;
}

.photo-empty-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px 8px;
  gap: 10px;
}

.photo-empty-icon {
  font-size: 2.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

.photo-empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.photo-empty-desc {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 280px;
  margin: 0;
}

.photo-empty-desc strong {
  color: var(--accent);
}

.photo-empty-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.photo-stat-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: var(--text);
  white-space: nowrap;
}

.photo-upload-cta-btn {
  min-width: 200px;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   PHOTO PREVIEW MODAL
   ============================================================ */
.photo-preview-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.photo-preview-modal-overlay.visible {
  opacity: 1;
}

.photo-preview-modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 380px;
  width: 100%;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.2s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.photo-preview-modal-overlay.visible .photo-preview-modal-box {
  transform: scale(1);
}

.photo-preview-modal-header {
  padding: 16px 16px 8px;
  text-align: center;
}

.photo-preview-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.photo-preview-modal-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #000;
}

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

.photo-preview-modal-actions {
  display: flex;
  gap: 10px;
  padding: 14px 16px 16px;
}

.photo-preview-modal-actions .btn {
  flex: 1;
}

/* Skip photo warning text */
.skip-photo-warning {
  font-size: 0.75rem;
  color: var(--accent);
  text-align: center;
  margin: 0;
  padding: 2px 0;
}

/* Shake animation for skip button */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

/* ============================================================
   PREMIUM / SUBSCRIPTION STYLES
   ============================================================ */

/* Premium card on profile page */
.premium-card {
  background: linear-gradient(135deg, var(--surface) 0%, #1a1218 100%);
  border: 1px solid rgba(200, 85, 64, 0.25);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 0 32px rgba(200, 85, 64, 0.06);
}

.premium-active {
  border-color: rgba(94, 232, 156, 0.25);
  box-shadow: 0 0 24px rgba(94, 232, 156, 0.05);
}

.premium-card-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.premium-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.premium-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}

.premium-subtitle {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.premium-features-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
  padding-top: 4px;
}

.premium-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text);
}

.pf-check {
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.premium-upgrade-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: background var(--transition);
  letter-spacing: 0.01em;
}

.premium-upgrade-btn:hover {
  background: var(--accent-hover);
}

.premium-cancel-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 8px;
}

.premium-limit-banner {
  background: rgba(200, 85, 64, 0.1);
  border: 1px solid rgba(200, 85, 64, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.84rem;
  color: var(--text);
  margin-bottom: 14px;
}

/* Premium modal */
.premium-modal-box {
  text-align: center;
  max-width: 380px;
}

.premium-modal-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  line-height: 1;
}

.premium-modal-reason {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 8px 0 16px;
  line-height: 1.5;
}

.premium-modal-features {
  text-align: left;
  margin-bottom: 16px;
  background: var(--surface-hover);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Likes nav badge (locked/teaser style) */
.nav-likes-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 85, 64, 0.15);
  color: var(--accent);
  border: 1px solid rgba(200, 85, 64, 0.3);
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 5px;
  margin-left: 4px;
  line-height: 1.4;
  vertical-align: middle;
}

/* Who liked me view */
.likes-view {
  padding-top: 24px;
  padding-bottom: 80px;
}

.likes-header {
  margin-bottom: 20px;
}

.likes-header h1 {
  font-size: 1.55rem;
  font-weight: 700;
}

.likes-header p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.premium-badge {
  font-size: 0.65rem;
  background: rgba(94, 232, 156, 0.12);
  color: var(--green);
  border: 1px solid rgba(94, 232, 156, 0.2);
  border-radius: 8px;
  padding: 2px 7px;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Paywall teaser */
.likes-paywall {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 8px 0;
}

.likes-paywall-blur {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  filter: blur(0);
  position: relative;
  overflow: hidden;
}

.likes-count-teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.likes-count-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.likes-count-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.likes-count-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.likes-blur-profiles {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.likes-blur-avatar {
  width: 52px;
  height: 52px;
}

.likes-blur-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--border-light), var(--surface-hover));
  filter: blur(5px);
  opacity: 0.8;
}

.likes-paywall-cta {
  width: 100%;
  background: linear-gradient(135deg, var(--surface) 0%, #1a1218 100%);
  border: 1px solid rgba(200, 85, 64, 0.2);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

.likes-paywall-cta h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 10px 0 8px;
}

.likes-paywall-cta p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Likes card */
.likes-card {
  cursor: default;
}

/* Chat limit banner */
.chat-limit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(200, 85, 64, 0.08);
  border-top: 1px solid rgba(200, 85, 64, 0.15);
  padding: 10px 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.chat-limit-banner .btn-sm {
  font-size: 0.78rem;
  padding: 6px 12px;
  white-space: nowrap;
}

/* Premium success view */
.premium-success-view {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 0;
}

.premium-success-content {
  text-align: center;
  max-width: 380px;
  width: 100%;
}

.premium-success-icon {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 16px;
}

.premium-success-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.premium-success-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.premium-success-features {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

/* ============================================================
   NOTIFICATION BELL & DROPDOWN
   ============================================================ */

.notif-wrapper {
  position: relative;
}

.notif-bell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.notif-bell-btn:hover { color: var(--text); background: var(--surface); }
.notif-bell-btn.active { color: var(--accent); background: var(--accent-dim); }

.nav-notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  pointer-events: none;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  overflow: hidden;
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.notif-mark-all {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  font-weight: 500;
}

.notif-mark-all:hover { color: var(--accent-hover); }

.notif-list {
  max-height: 380px;
  overflow-y: auto;
}

.notif-list::-webkit-scrollbar { width: 4px; }
.notif-list::-webkit-scrollbar-track { background: transparent; }
.notif-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--surface-hover); }

.notif-item.unread {
  background: rgba(200, 85, 64, 0.05);
}

.notif-item.read { opacity: 0.65; }

.notif-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-hover);
  border-radius: 50%;
}

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

.notif-message {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 3px;
}

.notif-time {
  font-size: 0.72rem;
  color: var(--muted);
}

.notif-dot {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.notif-empty {
  padding: 28px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
