/* ============================================================
   CRESCENT — Main Stylesheet
   ============================================================ */

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

/* DESIGN TOKENS */
:root {
  --bg:          #080808;
  --bg1:         #0f0f0f;
  --bg2:         #161616;
  --bg3:         #1e1e1e;
  --bg4:         #252525;
  --border:      #2a2a2a;
  --border2:     #333;
  --text:        #f0f0f0;
  --text2:       #aaa;
  --text3:       #666;
  --mint:        #4fffb0;
  --mint-dim:    #1a5c3d;
  --maroon:      #8b1a1a;
  --maroon-light:#ff4444;
  --honey:       #f0a500;
  --honey-dim:   #5c3d00;
  --pink:        #ff6b8a;
  --pink2:       #ff3d6b;
  --love:        linear-gradient(135deg, #ff6b8a, #ff3d6b, #c0392b);
  --love2:       linear-gradient(135deg, #ff6b8a, #ff3d6b);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Radii & motion */
  --r:          12px;
  --r2:          8px;
  --transition:  all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Alias for pure background (used in gradients/overlays) */
  --bg0: #080808;
}

/* BASE */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }

button { font-family: var(--font-body); }

/* SCROLLBAR */
::-webkit-scrollbar        { width: 4px; height: 4px; }
::-webkit-scrollbar-track  { background: var(--bg1); }
::-webkit-scrollbar-thumb  { background: var(--border2); border-radius: 2px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* PAGES */
.page {
  display: none;
  padding-top: 60px;
  min-height: 100vh;
}
.page.active { display: block; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1.5rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.logo-icon {
  width: 28px; height: 28px;
  background: var(--love2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.logo-icon svg { width: 16px; height: 16px; fill: white; display: block; }
.logo-icon img { width: 20px; height: 20px; object-fit: contain; display: block; }
.auth-logo .logo-icon img { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  background: none;
  border: none;
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: var(--r2);
  cursor: pointer;
  transition: var(--transition);
}
.nav-link:hover  { color: var(--text); background: var(--bg2); }
.nav-link.active { color: var(--mint); }

.nav-btn {
  background: var(--love2);
  border: none;
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: var(--r2);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.nav-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1.5px solid var(--border2);
  cursor: pointer;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  font-size: 12px;
  transition: var(--transition);
  position: relative;
}
.nav-avatar:hover { border-color: var(--pink); }
.nav-avatar > img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.nav-avatar > i.fa-user { font-size: 11px; }

/* DM image attach button hover (replaces removed inline onmouseover/onmouseout) */
#dm-img-btn:hover { border-color: var(--pink) !important; color: var(--pink) !important; }

/* Anchor resets — allow <a> elements to be used in place of <button> for navigation */
a.nav-logo { text-decoration: none; color: var(--text); }
a.nav-link  { text-decoration: none; display: inline-block; }
a.nav-btn   { text-decoration: none; }
a.btn-primary, a.btn-ghost { text-decoration: none; }
/* Footer links: hover handled via CSS instead of inline onmouseover/onmouseout */
.footer-link { color: var(--text2); text-decoration: none; transition: color .2s; }
.footer-link:hover { color: var(--text) !important; }

/* ============================================================
   LANDING — HERO
   ============================================================ */
.hero {
  padding: 120px 2rem 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255,107,138,0.12), transparent);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.75rem;
  color: var(--text2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--mint);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: var(--love);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero > p {
  font-size: 1.1rem;
  color: var(--text2);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--love2);
  border: none;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: var(--r);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,61,107,0.25);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 13px 28px;
  border-radius: var(--r);
  cursor: pointer;
  transition: var(--transition);
}
.btn-ghost:hover { border-color: var(--text3); background: var(--bg2); }

/* HERO VISUAL CARDS */
.hero-visual {
  max-width: 900px;
  margin: 5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  padding: 0 1rem;
}
.hv-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  text-align: left;
  transition: var(--transition);
}
.hv-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.hv-icon {
  width: 40px; height: 40px;
  border-radius: var(--r2);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.hv-icon.pink  { background: rgba(255,107,138,0.12); color: var(--pink); }
.hv-icon.mint  { background: rgba(79,255,176,0.10);  color: var(--mint); }
.hv-icon.honey { background: rgba(240,165,0,0.10);   color: var(--honey); }
.hv-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }
.hv-card p  { font-size: 0.8rem;  color: var(--text2); line-height: 1.6; }

/* ============================================================
   LANDING — SECTIONS
   ============================================================ */
.section {
  padding: 80px 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  font-weight: 600;
  margin-bottom: 1rem;
}
.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  max-width: 500px;
}
.section > p {
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 3rem;
}

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
}
.feature-item {
  background: var(--bg);
  padding: 2rem;
  transition: var(--transition);
}
.feature-item:hover { background: var(--bg1); }
.feature-item i    { font-size: 1.3rem; color: var(--pink2); margin-bottom: 1rem; display: block; }
.feature-item h4   { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-item p    { font-size: 0.82rem; color: var(--text2); line-height: 1.65; }

/* DIVIDER */
.divider { height: 1px; background: var(--border); margin: 0 2rem; }

/* STEPS */
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.step { text-align: center; }
.step-num {
  width: 36px; height: 36px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--pink);
  margin: 0 auto 1rem;
}
.step h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.4rem; }
.step p  { font-size: 0.8rem; color: var(--text2); }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text3);
  font-size: 0.78rem;
}

/* ============================================================
   AUTH
   ============================================================ */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
}
.auth-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.auth-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2rem;
}
.auth-logo .logo-icon { width: 36px; height: 36px; }
.auth-card h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.auth-card > p {
  color: var(--text2);
  font-size: 0.88rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.discord-btn {
  width: 100%;
  background: #5865F2;
  border: none;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px;
  border-radius: var(--r2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  margin-bottom: 1rem;
}
.discord-btn:hover { background: #4752c4; transform: translateY(-1px); }

/* FORMS */
.form-group  { text-align: left; margin-bottom: 1rem; }
.form-label  { display: block; font-size: 0.78rem; color: var(--text2); margin-bottom: 6px; font-weight: 500; }
.form-input  {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}
.form-input:focus        { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,61,107,0.1); }
.form-input::placeholder { color: var(--text3); }
.select-input {
  -webkit-appearance: none;
  appearance: none;
}
.textarea-input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  resize: vertical;
  min-height: 100px;
}
.textarea-input:focus { border-color: var(--pink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-btn {
  width: 100%;
  background: var(--love2);
  border: none;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px;
  border-radius: var(--r2);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
}
.form-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 60px;
}

.sidebar {
  width: 220px;
  background: var(--bg1);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  position: fixed;
  top: 60px; bottom: 0; left: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sidebar-section  { padding: 0 1rem; margin-bottom: 0.5rem; }
.sidebar-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  font-weight: 600;
  padding: 0 8px;
  margin-bottom: 0.4rem;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r2);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text2);
  transition: var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}
.sidebar-item:hover  { background: var(--bg2); color: var(--text); }
.sidebar-item.active { background: rgba(255,61,107,0.1); color: var(--pink); font-weight: 500; }
.sidebar-item i      { width: 18px; text-align: center; font-size: 0.85rem; }
.dash-content {
  margin-left: 220px;
  flex: 1;
  padding: 2rem;
}
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.dash-header h2   { font-size: 1.4rem; font-weight: 700; }
.dash-subheader   { color: var(--text2); font-size: 0.85rem; margin-top: 4px; }

/* PROFILE CARD */
.profile-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.profile-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
  text-align: center;
}
.profile-avatar-wrap { position: relative; display: inline-block; margin-bottom: 1rem; }
.profile-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--bg3);
  border: 3px solid var(--border2);
  object-fit: cover;
}
.profile-avatar-placeholder {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg3), var(--bg4));
  border: 3px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text3);
  margin: 0 auto;
}
.avatar-edit {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 26px; height: 26px;
  background: var(--love2);
  border-radius: 50%;
  border: 2px solid var(--bg1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.7rem;
  color: white;
  transition: var(--transition);
}
.avatar-edit:hover { transform: scale(1.1); }
.profile-name     { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 0.2rem; }
.profile-username { color: var(--text3); font-size: 0.8rem; margin-bottom: 1rem; font-family: var(--font-mono); }
.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79,255,176,0.1);
  color: var(--mint);
  border: 1px solid rgba(79,255,176,0.2);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.pstat         { background: var(--bg2); border-radius: var(--r2); padding: 0.8rem; text-align: center; }
.pstat-val     { font-size: 1.3rem; font-weight: 700; font-family: var(--font-display); }
.pstat-label   { font-size: 0.72rem; color: var(--text3); }

.profile-edit-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
}
.profile-edit-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.save-btn {
  background: var(--love2);
  border: none;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 24px;
  border-radius: var(--r2);
  cursor: pointer;
  transition: var(--transition);
}
.save-btn:hover { opacity: 0.85; }

/* STATS CARDS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.2rem;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--border2); }
.stat-num       { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; margin-bottom: 2px; }
.stat-num.mint  { color: var(--mint); }
.stat-num.pink  { color: var(--pink); }
.stat-num.honey { color: var(--honey); }
.stat-label     { font-size: 0.78rem; color: var(--text3); }

/* ============================================================
   MATCHING
   ============================================================ */
.match-prefs {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
  max-width: 460px;
  margin: 0 auto;
}
.match-prefs h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.4rem; }
.match-prefs p  { color: var(--text2); font-size: 0.85rem; margin-bottom: 2rem; }

.gender-opts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.gender-opt {
  background: var(--bg2);
  border: 1.5px solid var(--border2);
  border-radius: var(--r);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.gender-opt:hover          { border-color: var(--pink2); }
.gender-opt.selected       { border-color: var(--pink2); background: rgba(255,61,107,0.08); }
.gender-opt i              { font-size: 1.4rem; margin-bottom: 0.4rem; display: block; color: var(--text2); }
.gender-opt.selected i     { color: var(--pink2); }
.gender-opt span           { font-size: 0.8rem; font-weight: 600; }

.range-label { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; margin-bottom: 0.5rem; }
.range-val   { font-family: var(--font-mono); font-size: 0.82rem; color: var(--pink); font-weight: 500; }
.range-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--bg3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  background: var(--love2);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}
.range-slider::-moz-range-thumb {
  width: 16px; height: 16px;
  background: var(--love2);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.start-match-btn {
  width: 100%;
  background: var(--love);
  border: none;
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 16px;
  border-radius: var(--r);
  cursor: pointer;
  margin-top: 1.5rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.start-match-btn:hover { opacity: 0.88; transform: translateY(-2px); }

/* SWIPE CARD */
.swipe-container { display: flex; flex-direction: column; align-items: center; padding: 2rem; }
.swipe-header        { text-align: center; margin-bottom: 1.5rem; }
.swipe-header h2     { font-size: 1.2rem; font-weight: 700; }
.swipe-header p      { color: var(--text2); font-size: 0.82rem; }

.swipe-deck {
  position: relative;
  width: 340px; height: 480px;
  margin: 0 auto 1.5rem;
}
.swipe-card {
  position: absolute;
  inset: 0;
  background: var(--bg1);
  border: 1px solid var(--border2);
  border-radius: 20px;
  overflow: hidden;
  cursor: grab;
  transform-origin: 50% 100%;
  transition: transform 0.15s ease;
  display: flex;
  flex-direction: column;
  user-select: none;
}
.swipe-card.behind { transform: scale(0.95) translateY(12px); z-index: 0; filter: brightness(0.6); }
.swipe-card.front  { z-index: 1; }
.swipe-card.dragging { transition: none; cursor: grabbing; }

.swipe-card-img {
  flex: 1;
  background: linear-gradient(180deg, var(--bg3) 60%, var(--bg2));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.roblox-avatar             { width: 180px; height: auto; opacity: 0.9; image-rendering: pixelated; }
.roblox-avatar-placeholder {
  width: 120px; height: 140px;
  background: var(--bg3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--bg4);
}

.swipe-like-label,
.swipe-nope-label {
  position: absolute;
  top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 6px 16px;
  border-radius: var(--r2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s;
}
.swipe-like-label {
  left: 1.5rem;
  background: rgba(79,255,176,0.15);
  border: 2px solid var(--mint);
  color: var(--mint);
  transform: rotate(-15deg);
}
.swipe-nope-label {
  right: 1.5rem;
  background: rgba(139,26,26,0.15);
  border: 2px solid var(--maroon-light);
  color: var(--maroon-light);
  transform: rotate(15deg);
}

.swipe-card-info { padding: 1.25rem; border-top: 1px solid var(--border); }
.swipe-user-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.swipe-user-meta { color: var(--text2); font-size: 0.82rem; margin-top: 4px; display: flex; gap: 12px; }
.swipe-user-meta span { display: flex; align-items: center; gap: 5px; }

.swipe-actions { display: flex; gap: 1rem; justify-content: center; }
.swipe-btn {
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  transition: var(--transition);
  background: var(--bg1);
}
.swipe-btn.nope, .swipe-btn.pass  { border-color: var(--maroon-light); color: var(--maroon-light); }
.swipe-btn.like  { border-color: var(--mint);         color: var(--mint); }
.swipe-btn.super { border-color: var(--honey);        color: var(--honey); }
.swipe-btn:hover          { transform: scale(1.1); }
.swipe-btn.nope:hover, .swipe-btn.pass:hover  { background: rgba(139,26,26,0.1); }
.swipe-btn.like:hover  { background: rgba(79,255,176,0.08); }
.swipe-btn.super:hover { background: rgba(240,165,0,0.08); }

/* MATCH MODAL */
.match-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.match-modal {
  background: var(--bg1);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  width: 380px;
  animation: matchIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes matchIn {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
.match-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 0.4rem;
  background: var(--love);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.match-sub     { color: var(--text2); font-size: 0.88rem; margin-bottom: 2rem; }
.match-avatars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
}
.match-av {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--bg3);
  border: 3px solid var(--bg1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.match-av:first-child { margin-right: -15px; z-index: 1; }
.match-av:last-child  { margin-left: -15px;  z-index: 0; }
.match-heart {
  width: 32px; height: 32px;
  background: var(--love2);
  border-radius: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: white;
  border: 3px solid var(--bg1);
}
.match-modal .btn-primary { width: 100%; justify-content: center; margin-bottom: 0.75rem; border-radius: var(--r2); }
.match-modal .btn-ghost   { width: 100%; justify-content: center; border-radius: var(--r2); font-size: 0.85rem; }

/* ============================================================
   CHAT
   ============================================================ */
.chat-layout   { display: flex; height: calc(100vh - 60px); overflow: hidden; }
/* When chat is inside dash-layout (with sidebar), offset it */
.dash-layout .chat-layout { margin-left: 220px; height: 100%; }
@media (max-width: 900px) {
  .dash-layout .chat-layout { margin-left: 0; }
}
.chat-list {
  width: 300px;
  background: var(--bg1);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.chat-list-header {
  padding: 1.2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-list-header h3 { font-size: 1rem; font-weight: 700; }

.chat-search { position: relative; padding: 0.75rem; }
.chat-search input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 8px 12px 8px 34px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  outline: none;
}
.chat-search input::placeholder { color: var(--text3); }
.chat-search i {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 0.8rem;
}

.chat-rooms { flex: 1; overflow-y: auto; }
.chat-room-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.chat-room-item:hover,
.chat-room-item.active { background: var(--bg2); }

.chat-room-av {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text2);
  flex-shrink: 0;
  position: relative;
}
.chat-room-av.online::after {
  content: '';
  position: absolute;
  bottom: 1px; right: 1px;
  width: 9px; height: 9px;
  background: var(--mint);
  border-radius: 50%;
  border: 2px solid var(--bg1);
}

.chat-room-info   { flex: 1; min-width: 0; }
.chat-room-name   { font-size: 0.88rem; font-weight: 600; display: flex; justify-content: space-between; }
.chat-room-time   { font-size: 0.68rem; color: var(--text3); font-weight: 400; }
.chat-room-preview {
  font-size: 0.78rem;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.chat-room-badge {
  background: var(--pink2);
  color: white;
  border-radius: 100px;
  padding: 1px 6px;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 4px;
  font-family: var(--font-mono);
}

.chat-main { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg); overflow: hidden; }
.chat-top {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border2);
  box-shadow: 0 1px 8px rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg3);
  flex-shrink: 0;
  min-height: 62px;
  z-index: 10;
}
.chat-top-name { font-size: 1rem; font-weight: 700; color: var(--text); }
.chat-top-info    { flex: 1; }
.chat-top-name    { font-size: 0.95rem; font-weight: 700; }
.chat-top-status  { font-size: 0.75rem; display: flex; align-items: center; gap: 5px; }
.chat-top-actions { display: flex; gap: 4px; }
.chat-icon-btn {
  width: 34px; height: 34px;
  border-radius: var(--r2);
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  transition: var(--transition);
}
.chat-icon-btn:hover { background: var(--bg2); color: var(--text); }

.messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  padding-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 0;
}
.message       { display: flex; flex-direction: column; gap: 0; border-radius: 6px; padding: 2px 8px; margin: 0 -8px; transition: background .08s; }
.message:hover { background: rgba(255,255,255,0.035); }
.message-row   { display: flex; gap: 14px; align-items: flex-start; }
.message-row > div { align-items: flex-start; display: flex; flex-direction: column; }
.message-av {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  color: var(--text2);
}
.message-bubble {
  max-width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 2px 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
  word-break: break-word;
}
.message-meta { font-size: 0.65rem; color: var(--text3); margin-top: 1px; padding: 0; }
.message-timestamp { font-size: 0.68rem; color: var(--text3); font-weight: 400; margin-left: 6px; }

.typing-indicator { display: flex; align-items: center; gap: 10px; padding: 0.5rem; }
.typing-dots      { display: flex; gap: 4px; }
.typing-dot {
  width: 7px; height: 7px;
  background: var(--text3);
  border-radius: 50%;
  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: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg1);
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 10;
}
.chat-input-tools { display: flex; gap: 2px; margin-bottom: 0.5rem; }
.chat-tool-btn {
  width: 30px; height: 30px;
  border-radius: var(--r2);
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  transition: var(--transition);
}
.chat-tool-btn:hover { background: var(--bg2); color: var(--text2); }
.chat-input-row { display: flex; gap: 10px; align-items: flex-end; }
.chat-input {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  resize: none;
  max-height: 120px;
  transition: var(--transition);
  line-height: 1.5;
}
.chat-input:focus       { border-color: var(--pink); }
.chat-input::placeholder { color: var(--text3); }
.send-btn {
  width: 42px; height: 42px;
  background: var(--love2);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.send-btn:hover { opacity: 0.85; transform: scale(1.05); }

/* PUBLIC CHAT */
.public-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg1);
  flex-shrink: 0;
}
.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(139,26,26,0.2);
  border: 1px solid rgba(255,68,68,0.3);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--maroon-light);
}
.live-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--maroon-light);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
.rate-limit-banner {
  padding: 0.5rem 1.5rem;
  font-size: 0.72rem;
  color: var(--text3);
  background: rgba(240,165,0,0.05);
  border-top: 1px solid rgba(240,165,0,0.1);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.admin-table th {
  padding: 10px 14px;
  text-align: left;
  color: var(--text3);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: var(--bg2); }
.table-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-right: 8px;
  vertical-align: middle;
  color: var(--text2);
}
.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
}
.admin-badge.active  { background: rgba(79,255,176,0.1);  color: var(--mint);         border: 1px solid rgba(79,255,176,0.2); }
.admin-badge.banned  { background: rgba(139,26,26,0.2);   color: var(--maroon-light); border: 1px solid rgba(255,68,68,0.2); }
.admin-badge.warning { background: rgba(240,165,0,0.1);   color: var(--honey);        border: 1px solid rgba(240,165,0,0.2); }

.action-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 5px 12px;
  color: var(--text2);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.action-btn:hover { border-color: var(--border2); color: var(--text); }
.action-btn.danger { color: var(--maroon-light); border-color: rgba(255,68,68,0.3); }
.action-btn.danger:hover { background: rgba(139,26,26,0.1); }

.admin-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg2);
  border-radius: var(--r2);
  padding: 3px;
  margin-bottom: 1.5rem;
  width: fit-content;
}
.admin-tab {
  background: none;
  border: none;
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 0.83rem;
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}
.admin-tab.active { background: var(--bg1); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.3); }

/* UPLOADS / GAMES */
.upload-form-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.uploads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.upload-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.2rem;
  transition: var(--transition);
}
.upload-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.upload-card-icon {
  width: 44px; height: 44px;
  background: rgba(255,107,138,0.1);
  border-radius: var(--r2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--pink);
  margin-bottom: 0.8rem;
}
.upload-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.3rem; }
.upload-card p  { font-size: 0.78rem; color: var(--text2); margin-bottom: 0.8rem; line-height: 1.5; }
.upload-card-link {
  font-size: 0.75rem;
  color: var(--pink);
  font-family: var(--font-mono);
  display: block;
  margin-bottom: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-card-actions { display: flex; gap: 8px; }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 500;
  background: var(--bg1);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 320px;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.toast.success .toast-icon { color: var(--mint); }
.toast.error   .toast-icon { color: var(--maroon-light); }
.toast-icon { font-size: 1rem; flex-shrink: 0; }

/* ============================================================
   NOTIFICATION POPUP STACK (global, injected by nav.js)
   ============================================================ */
._notif-popup {
  position: fixed;
  bottom: calc(1.2rem + var(--stack-offset, 0px));
  right: 1.2rem;
  z-index: 9000;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-left: 3px solid currentColor;
  border-radius: var(--r);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 300px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  transform: translateX(calc(100% + 2rem));
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.4,0.64,1), opacity 0.3s ease, bottom 0.3s ease;
  user-select: none;
}
._notif-popup-show { transform: translateX(0); opacity: 1; }
._notif-popup-out  { transform: translateX(calc(100% + 2rem)); opacity: 0; }
._notif-popup-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
._notif-popup-body { flex: 1; min-width: 0; }
._notif-popup-title {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
._notif-popup-sub {
  font-size: 0.74rem;
  color: var(--text2);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
._notif-popup-close {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
}
._notif-popup-close:hover { color: var(--text2); }

/* ============================================================
   MISC HELPERS
   ============================================================ */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state i  { font-size: 2.5rem; color: var(--text3); margin-bottom: 1rem; display: block; }
.empty-state h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.empty-state p  { color: var(--text2); font-size: 0.83rem; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 0.72rem;
  color: var(--text2);
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text3);
  font-size: 0.75rem;
  margin: 1.5rem 0;
}
.section-divider::before,
.section-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ROBLOX TAG */
.roblox-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--r2);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text2);
}
.roblox-dot { width: 8px; height: 8px; background: #e63700; border-radius: 50%; }

/* SETTINGS TOGGLE */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.toggle-row-label-main { font-size: 0.88rem; font-weight: 500; }
.toggle-row-label-sub  { font-size: 0.78rem; color: var(--text2); }
.toggle {
  width: 40px; height: 22px;
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle.on  { background: var(--love2); }
.toggle.off { background: var(--bg3); border: 1px solid var(--border2); }
.toggle-thumb {
  position: absolute;
  top: 2px;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  transition: left 0.2s;
}
.toggle.on  .toggle-thumb { right: 2px; left: auto; }
.toggle.off .toggle-thumb { left: 2px; background: var(--text3); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero h1     { font-size: 2.5rem; }
  .hero-visual { grid-template-columns: 1fr; }
  .steps       { grid-template-columns: 1fr 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .form-row    { grid-template-columns: 1fr; }
  .sidebar     { display: none; }
  .dash-content { margin-left: 0; }
  .chat-list   { width: 100%; }
  .footer { flex-direction: column; gap: 0.75rem; text-align: center; }
}
/* ============================================================
   MOBILE & TABLET RESPONSIVE — v2
   ============================================================ */

/* Mobile bottom nav */
#mobile-back-bar { display: none; }
#chat-active { flex: 1; }
/* Single-panel mobile: mobile back bar replaces the in-chat header */
@media (max-width: 767px) {
  #chat-top { display: none !important; }
  #chat-active { padding-top: 54px; }
}
/* Account for mobile nav bar height on the chat page */
#chat-input-footer { padding-bottom: 60px; }
@media (max-width: 900px) {
  .chat-layout { height: calc(100% - 45px) !important; }
  #chat-input-footer { padding-bottom: 5px; }
}
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg1);
  border-top: 1px solid var(--border);
  z-index: 200;
  padding: 0.4rem 0 calc(0.4rem + env(safe-area-inset-bottom));
  justify-content: space-around;
}
.mobile-nav-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; background: none; border: none;
  color: var(--text3); font-size: 0.6rem; cursor: pointer;
  padding: 6px 12px; border-radius: var(--r2);
  font-family: var(--font-body); transition: var(--transition);
}
.mobile-nav-btn i { font-size: 1.2rem; }
.mobile-nav-btn.active { color: var(--pink); }

/* Chat responsive */
.chat-panel-visible .chat-list { display: flex; }
.chat-panel-visible .chat-main { display: none; }
.chat-main-visible .chat-list  { display: none; }
.chat-main-visible .chat-main  { display: flex; }

/* Leaderboard */
.leaderboard-list { display: flex; flex-direction: column; gap: 8px; }
.lb-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--r2);
}
.lb-rank { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text3); width: 24px; text-align: center; }
.lb-rank.gold   { color: #ffd700; font-weight: 700; }
.lb-rank.silver { color: #c0c0c0; font-weight: 700; }
.lb-rank.bronze { color: #cd7f32; font-weight: 700; }
.lb-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; background: var(--bg3);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.lb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lb-name  { font-size: 0.9rem; font-weight: 600; }
.lb-meta  { font-size: 0.75rem; color: var(--text2); }
.lb-likes { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: 0.85rem; color: var(--pink); font-weight: 600; }

/* Roblox verify modal */
.verify-step { display: none; }
.verify-step.active { display: block; }
.verify-code-box {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--r2); padding: 1rem;
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--mint); word-break: break-all;
  margin: 1rem 0; user-select: all;
}

/* Discord-style hover message toolbar */
.msg-actions-wrap {
  position:absolute;right:6px;top:50%;transform:translateY(-50%);
  display:flex;align-items:center;gap:2px;
  background:#1a1a1a;border:1px solid var(--border);
  border-radius:8px;padding:2px 4px;
  opacity:0;pointer-events:none;
  transition:opacity .12s;z-index:100;
}
.message { position:relative; }
.message:hover .msg-actions-wrap,
.message-wrap:hover .msg-actions-wrap { opacity:1;pointer-events:auto; }
.msg-menu-wrap { position:relative;display:inline-flex; }
.msg-menu-btn {
  background:none;border:none;cursor:pointer;padding:3px 6px;
  font-size:.75rem;color:var(--text3);border-radius:5px;
}
.msg-menu-btn:hover { background:var(--bg2);color:var(--text); }
.msg-dropdown {
  position:absolute;right:0;top:100%;background:#1a1a1a;
  border:1px solid var(--border);border-radius:9px;padding:4px;
  z-index:200;min-width:140px;box-shadow:0 4px 16px rgba(0,0,0,.6);
}
.msg-dropdown button {
  display:flex;align-items:center;gap:7px;width:100%;
  background:none;border:none;padding:6px 10px;border-radius:6px;
  cursor:pointer;font-size:.8rem;color:var(--text);font-family:inherit;
  white-space:nowrap;
}
.msg-dropdown button:hover { background:var(--bg2); }
.msg-dropdown button.danger { color:#ff6b6b; }
/* Reply preview inside a message — compact single line */
.reply-preview {
  display:flex;align-items:center;gap:5px;
  margin-bottom:4px;padding:2px 0;
  cursor:pointer;opacity:.82;transition:opacity .12s;
  width:100%;min-width:0;overflow:hidden;
}
.reply-preview:hover { opacity:1; }
.reply-bar-line { width:2px;height:14px;flex-shrink:0;border-radius:2px;background:var(--pink); }
.reply-av {
  width:16px;height:16px;border-radius:50%;
  background:rgba(255,61,107,.18);color:var(--pink);
  display:inline-flex;align-items:center;justify-content:center;
  font-size:7px;font-weight:700;flex-shrink:0;overflow:hidden;
}
.reply-av img { width:100%;height:100%;object-fit:cover;border-radius:50%; }
.reply-name { font-size:.71rem;font-weight:700;color:var(--pink);white-space:nowrap;flex-shrink:0; }
.reply-text { font-size:.71rem;color:var(--text3);overflow:hidden;white-space:nowrap;text-overflow:ellipsis; }
/* Reply bar above the chat input */
.reply-input-bar {
  display:none;align-items:center;gap:10px;padding:8px 14px;
  background:var(--bg2);border-top:1px solid var(--border);
  border-left:3px solid var(--pink);
}
.reply-input-bar.visible { display:flex; }
.reply-input-content { flex:1;min-width:0; }
.reply-input-who { font-size:.72rem;font-weight:600;color:var(--pink);display:flex;align-items:center;gap:5px;margin-bottom:2px; }
.reply-input-who strong { color:var(--text);font-weight:700; }
.reply-input-preview { font-size:.72rem;color:var(--text3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.reply-input-close { background:none;border:none;color:var(--text3);cursor:pointer;font-size:.9rem;padding:4px 6px;border-radius:4px;flex-shrink:0;line-height:1; }
.reply-input-close:hover { color:var(--text);background:var(--bg3); }
/* Keep old selectors alive for any pages not yet updated */
.reply-input-label { color:var(--text3);flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis; }
.reply-input-label strong { color:var(--pink); }

/* Admin chat controls */
.msg-admin-actions { display: none; }
.message-wrap { border-radius: 6px; padding: 2px 8px; margin: 0 -8px; transition: background .08s; }
.message-wrap:hover { background: rgba(255,255,255,0.035); }
.message-wrap:hover .msg-admin-actions { display: flex; }
.msg-delete-btn {
  background: none; border: none; color: var(--maroon-light);
  cursor: pointer; font-size: 0.75rem; padding: 2px 6px;
  border-radius: 4px; opacity: 0.7;
}
.msg-delete-btn:hover { opacity: 1; background: rgba(139,26,26,0.15); }
.ticket-msg-row { border-radius: 6px; padding: 3px 8px; margin: 0 -8px; transition: background .08s; }
.ticket-msg-row:hover { background: rgba(255,255,255,0.035); }
.admin-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.65rem; background: rgba(240,165,0,0.12);
  color: var(--honey); border: 1px solid rgba(240,165,0,0.25);
  border-radius: 10px; padding: 1px 6px; margin-left: 4px;
}
.superadmin-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.65rem; background: rgba(255,107,138,0.12);
  color: var(--pink); border: 1px solid rgba(255,107,138,0.25);
  border-radius: 10px; padding: 1px 6px; margin-left: 4px;
}

/* Roblox avatar img */
.roblox-thumb { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

@media (max-width: 900px) {
  .dash-layout { grid-template-columns: 1fr; }
  .sidebar { display: none !important; }
  .mobile-nav { display: flex; }
  .page { padding-bottom: 70px !important; }
  .dash-content { padding: 1rem; margin-left: 0 !important; }
}

/* Mobile sidebar overlay (admin/staff panels) */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 149;
}
.sidebar-overlay.open { display: block; }
@media (max-width: 900px) {
  .sidebar.mobile-open {
    display: flex !important;
    z-index: 150;
    animation: slideInLeft .2s ease;
  }
  @keyframes slideInLeft { from { transform: translateX(-100%); } to { transform: none; } }
  .adm-mobile-toggle {
    display: flex !important;
    background: none; border: none; color: var(--text2);
    font-size: 1.1rem; cursor: pointer; padding: 4px 8px;
    align-items: center; gap: 6px;
  }
}
.adm-mobile-toggle { display: none; }

@media (max-width: 768px) {
  .nav { padding: 0 1rem; height: 52px; }
  .nav-links { gap: 4px; }
  .nav-link { display: none; }
  .nav-avatar { display: flex; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 4rem 1rem 3rem; }
  .steps { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; position: relative; margin-left: 0 !important; }
  .chat-list { width: 100%; border-right: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .swipe-container { padding: 1rem; }
  .swipe-card { max-width: 100%; }
  .match-prefs { padding: 1.5rem 1rem; }
  .footer-content { flex-direction: column; gap: 0.75rem; text-align: center; }
  .toast { bottom: 80px; right: 1rem; left: 1rem; max-width: none; }
  ._notif-popup {
    bottom: auto;
    top: calc(1rem + var(--stack-offset, 0px));
    right: 1rem; left: 1rem;
    max-width: none;
    transition: transform 0.35s cubic-bezier(0.34,1.4,0.64,1), opacity 0.3s ease, top 0.3s ease;
  }
  ._notif-popup-show { transform: translateY(0); }
  ._notif-popup-out  { transform: translateY(calc(-100% - 2rem)); }
  ._notif-popup:not(._notif-popup-show):not(._notif-popup-out) { transform: translateY(calc(-100% - 2rem)); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .profile-card { padding: 1.5rem 1rem; }
}

/* ── Nav Avatar Dropdown ─────────────────────────────────────── */
.nav-menu-wrap { position: relative; }
.nav-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--bg1);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  z-index: 200;
  overflow: hidden;
  animation: menuFadeIn .15s ease;
}
@keyframes menuFadeIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
.nav-menu-header {
  padding: 0.85rem 1rem 0.65rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.nav-menu-name { font-weight: 700; color: var(--text); }
.nav-menu-role { font-size: 0.7rem; color: var(--text3); margin-top: 2px; }
.nav-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: var(--text2);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  transition: var(--transition);
  text-decoration: none;
  box-sizing: border-box;
}
.nav-menu-item:hover { background: var(--bg2); color: var(--text); }
.nav-menu-item.danger { color: var(--maroon-light); }
.nav-menu-item i { width: 16px; text-align: center; color: var(--text3); }
.nav-menu-item:hover i { color: inherit; }
.nav-menu-divider { height: 1px; background: var(--border); margin: 2px 0; }

/* ── Notification badge on nav ───────────────────────────────── */
.nav-notif-badge {
  position: absolute; top: -3px; right: -3px;
  width: 14px; height: 14px;
  background: var(--pink); color: #fff;
  border-radius: 50%; font-size: 0.55rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; border: 1.5px solid var(--bg0);
  pointer-events: none;
}

/* ── New badge tags (v4) ─────────────────────────────────────── */
.staff-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.65rem; background: rgba(79,255,176,0.12);
  color: var(--mint); border: 1px solid rgba(79,255,176,0.3);
  border-radius: 10px; padding: 1px 6px; margin-left: 4px;
}
.verified-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.65rem; background: rgba(59,158,255,0.12);
  color: #3b9eff; border: 1px solid rgba(59,158,255,0.3);
  border-radius: 10px; padding: 1px 6px; margin-left: 4px;
}
.lb-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.65rem; background: rgba(240,165,0,0.12);
  color: var(--honey); border: 1px solid rgba(240,165,0,0.25);
  border-radius: 10px; padding: 1px 6px; margin-left: 4px;
}
.gold-tag { background: rgba(255,215,0,0.15); color: #ffd700; border-color: rgba(255,215,0,0.3); }

/* ── Buyer / Premium badges ──────────────────────────────────── */
.buyer-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.65rem; background: rgba(100,220,120,0.12);
  color: #64dc78; border: 1px solid rgba(100,220,120,0.3);
  border-radius: 10px; padding: 1px 6px; margin-left: 4px;
}
.premium-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.65rem; background: rgba(255,200,0,0.15);
  color: #ffc800; border: 1px solid rgba(255,200,0,0.3);
  border-radius: 10px; padding: 1px 6px; margin-left: 4px;
}
.crown-overlay {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  font-size: 1.1rem; pointer-events: none; z-index: 2;
}

/* ── Status indicator dot ────────────────────────────────────── */
.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--bg0); flex-shrink: 0;
}
.status-dot.online  { background: var(--mint); }
.status-dot.away    { background: var(--honey); }
.status-dot.offline { background: var(--text3); }

/* ── Status text under username ──────────────────────────────── */
.status-text-line {
  font-size: 0.72rem; color: var(--text3); font-style: italic;
  margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Nav notif badge auto-width fix ─────────────────────────── */
.nav-notif-badge {
  min-width: 14px !important;
  width: auto !important;
  padding: 0 3px !important;
  border-radius: 8px !important;
}

/* ── Global chat gap fix ─────────────────────────────────────── */
.chat-layout .chat-main { border-left: 1px solid var(--border); }

/* ── Swipe card full avatar ──────────────────────────────────── */
.swipe-card-img { background: var(--bg0); }

/* ── Tag picker ──────────────────────────────────────────────── */
.tag-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag-btn {
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--text2);
  padding: 5px 13px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-body);
  transition: var(--transition);
}
.tag-btn:hover { border-color: var(--pink); color: var(--text); }
.tag-btn.equipped {
  background: rgba(255,61,107,.12);
  border-color: var(--pink);
  color: var(--pink);
  font-weight: 600;
}
.tag-counter { font-size: 0.75rem; color: var(--text3); margin-top: 6px; }

/* ── Premium page ────────────────────────────────────────────── */
.premium-gate {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 4rem 2rem; text-align: center;
  gap: 1rem;
}
.premium-gate i { font-size: 3rem; color: var(--honey); opacity: .8; }
.premium-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px,100%), 1fr));
  gap: 1.25rem;
  max-width: 900px;
}
.premium-card {
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem;
}
.premium-card h3 { margin-bottom: .75rem; font-size: 1rem; }
.premium-upload-area {
  border: 2px dashed var(--border2); border-radius: var(--r);
  padding: 1.5rem; text-align: center; cursor: pointer;
  transition: var(--transition); background: var(--bg2);
}
.premium-upload-area:hover { border-color: var(--honey); }
.premium-preview {
  width: 100%; max-height: 160px; object-fit: cover;
  border-radius: var(--r2); margin-top: .75rem;
  display: none;
}
.premium-avatar-preview {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; margin: .75rem auto 0; display: none;
}
