/* ============================================================
   Florty — Main Stylesheet
   Dark neon glassmorphism design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg:          #090a0d;
  --bg2:         #0e1014;
  --card:        #111318;
  --card2:       #161920;
  --border:      #1f2330;
  --border2:     #292e3e;

  --pink:        #ff6b2b;
  --pink-dim:    rgba(255,107,43,.15);
  --purple:      #ff9500;
  --cyan:        #00e5ff;
  --cyan-dim:    rgba(0,229,255,.12);

  --gradient:    linear-gradient(135deg, #ff6b2b, #ff9500);
  --gradient2:   linear-gradient(135deg, #ff9500, #00e5ff);

  --text:        #e8eaf0;
  --text-muted:  #8892b0;
  --text-dim:    #4a5568;

  --radius:      16px;
  --radius-sm:   10px;
  --radius-xs:   6px;
  --shadow:      0 8px 32px rgba(0,0,0,.5);
  --shadow-glow: 0 0 30px rgba(255,107,43,.2);
  --transition:  all .2s ease;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: 14px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--pink); }

/* ── Typography ────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted  { color: var(--text-muted); }
.text-pink   { color: var(--pink); }
.text-cyan   { color: var(--cyan); }
.text-sm     { font-size: .875rem; }
.text-xs     { font-size: .75rem; }

/* ── Layout ────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.flex-1 { flex: 1; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── Components ─────────────────────────────────────────── */

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { border-color: var(--border2); }
.card-glow:hover {
  border-color: rgba(255,107,43,.4);
  box-shadow: 0 0 24px rgba(255,107,43,.1);
}
.card-body { padding: 20px; }
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Glass */
.glass {
  background: rgba(14,18,32,.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .875rem;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,107,43,.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(255,107,43,.45);
}
.btn-secondary {
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { border-color: var(--pink); color: var(--pink); }
.btn-outline {
  background: transparent;
  color: var(--pink);
  border: 1px solid var(--pink);
}
.btn-outline:hover { background: var(--pink-dim); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}
.btn-ghost:hover { background: var(--card2); color: var(--text); }
.btn-danger { background: rgba(239,68,68,.15); color: #ef4444; border: 1px solid rgba(239,68,68,.3); }
.btn-danger:hover { background: rgba(239,68,68,.25); }
.btn-sm { padding: 7px 14px; font-size: .8rem; border-radius: var(--radius-xs); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius); }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 50%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.btn-block { width: 100%; }

/* Inputs */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .875rem; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.form-control {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  color: var(--text);
  font-size: .9rem;
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255,107,43,.15);
}
.form-control::placeholder { color: var(--text-dim); }
.form-control.has-icon { padding-left: 44px; }
.input-group { position: relative; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.badge-pink   { background: rgba(255,107,43,.15); color: var(--pink); border: 1px solid rgba(255,107,43,.3); }
.badge-purple { background: rgba(255,149,0,.2); color: #ffb347; border: 1px solid rgba(255,149,0,.3); }
.badge-cyan   { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(0,245,255,.3); }
.badge-green  { background: rgba(16,185,129,.15); color: #10b981; border: 1px solid rgba(16,185,129,.3); }
.badge-red    { background: rgba(239,68,68,.15); color: #ef4444; border: 1px solid rgba(239,68,68,.3); }
.badge-gray   { background: rgba(107,114,128,.15); color: #9ca3af; border: 1px solid rgba(107,114,128,.3); }
.badge-gold   { background: rgba(245,158,11,.15); color: #f59e0b; border: 1px solid rgba(245,158,11,.3); }

/* Avatars */
.avatar {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-sm  { width: 32px; height: 32px; }
.avatar-md  { width: 48px; height: 48px; }
.avatar-lg  { width: 72px; height: 72px; }
.avatar-xl  { width: 96px; height: 96px; }
.avatar-2xl { width: 128px; height: 128px; }
.avatar-ring { border: 3px solid var(--card); box-shadow: 0 0 0 2px var(--pink); }

/* Online dot */
.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--card);
  flex-shrink: 0;
}
.status-dot.online   { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.status-dot.recently { background: #f59e0b; }
.status-dot.offline  { background: var(--border2); }

/* Tags / interest chips */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  font-size: .8rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.tag:hover, .tag.active {
  background: var(--pink-dim);
  border-color: var(--pink);
  color: var(--pink);
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Divider */
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.divider-text {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-dim); font-size: .85rem;
}
.divider-text::before, .divider-text::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Alerts / Flash */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.alert-success { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); color: #6ee7b7; }
.alert-error   { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.alert-info    { background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.3); color: #93c5fd; }
.alert-warning { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3); color: #fcd34d; }

/* Spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border2);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

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

/* ── Navigation ─────────────────────────────────────────── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,11,20,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-brand img { height: 32px; width: auto; }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.navbar-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.navbar-nav a:hover, .navbar-nav a.active { color: var(--text); background: var(--card2); }
.navbar-nav a.active { color: var(--pink); }
.navbar-actions { display: flex; align-items: center; gap: 8px; }
.nav-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--pink);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.nav-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  background: var(--card2);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.nav-icon-btn:hover { color: var(--text); border-color: var(--border2); }

/* Mobile bottom nav */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(13,16,32,.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}
.mobile-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px;
  color: var(--text-muted);
  font-size: .65rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.mobile-nav-item:hover, .mobile-nav-item.active { color: var(--pink); }

/* ── Page wrapper ───────────────────────────────────────── */
.page-wrapper {
  min-height: calc(100vh - 60px);
  padding-bottom: 80px;
}
.page-header { padding: 32px 0 24px; }
.page-title { font-size: 1.5rem; font-weight: 700; }
.page-subtitle { color: var(--text-muted); font-size: .9rem; margin-top: 4px; }

/* ── Sidebar layout ─────────────────────────────────────── */
.with-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
  padding-top: 24px;
}
.sidebar { position: sticky; top: 80px; }
.sidebar-card { margin-bottom: 16px; }

/* ── Landing Page ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(255,107,43,.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 20% 60%, rgba(255,149,0,.08) 0%, transparent 70%),
    var(--bg);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,43,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,43,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,107,43,.1);
  border: 1px solid rgba(255,107,43,.3);
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--pink);
  margin-bottom: 24px;
}
.hero h1 { line-height: 1.1; margin-bottom: 20px; }
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-num { font-size: 1.8rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-stat-label { font-size: .8rem; color: var(--text-muted); }

/* Floating profile cards (landing) */
.hero-profiles {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.float-card {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  box-shadow: var(--shadow);
  animation: floatUp 6s ease-in-out infinite;
}
@keyframes floatUp { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* ── Profile card (discover grid) ──────────────────────── */
.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.profile-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,107,43,.4);
  box-shadow: 0 12px 40px rgba(0,0,0,.4), 0 0 20px rgba(255,107,43,.1);
}
.profile-card-cover {
  height: 100px;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}
.profile-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-card-avatar {
  position: absolute;
  bottom: -28px;
  left: 16px;
  border: 3px solid var(--card);
}
.profile-card-body { padding: 36px 16px 16px; }
.profile-card-name { font-weight: 700; font-size: 1rem; }
.profile-card-meta { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.profile-card-bio  { font-size: .825rem; color: var(--text-muted); margin-top: 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.profile-card-tags { margin-top: 10px; }
.profile-card-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

/* ── Full profile page ──────────────────────────────────── */
.profile-banner {
  height: 220px;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}
.profile-banner img { width: 100%; height: 100%; object-fit: cover; }
.profile-banner-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,11,20,.8), transparent); }
.profile-info {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: -60px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.profile-avatar-wrap { position: relative; }
.profile-detail-card { padding: 24px; }
.profile-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: .8rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.profile-social a:hover { border-color: var(--pink); color: var(--pink); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
  position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }

/* ── Chat / Messages ────────────────────────────────────── */
.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 60px);
  overflow: hidden;
}
.chat-sidebar {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-list { overflow-y: auto; flex: 1; }
.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}
.chat-item:hover, .chat-item.active { background: var(--card2); }
.chat-item.active { border-left: 2px solid var(--pink); }
.chat-item-info { flex: 1; min-width: 0; }
.chat-item-name { font-weight: 600; font-size: .9rem; }
.chat-item-preview { font-size: .8rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.chat-item-time { font-size: .7rem; color: var(--text-dim); }
.chat-unread {
  min-width: 18px; height: 18px;
  background: var(--pink);
  border-radius: 9px;
  font-size: .65rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.chat-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-header {
  height: 60px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 14px;
  flex-shrink: 0;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg-bubble {
  max-width: 70%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.msg-bubble.mine { align-self: flex-end; align-items: flex-end; }
.msg-bubble.theirs { align-self: flex-start; align-items: flex-start; }
.msg-text {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: .875rem;
  line-height: 1.5;
  word-break: break-word;
}
.msg-bubble.mine .msg-text {
  background: var(--gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-bubble.theirs .msg-text {
  background: var(--card2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.msg-time { font-size: .68rem; color: var(--text-dim); padding: 0 4px; }
.msg-img { max-width: 220px; border-radius: var(--radius-sm); cursor: pointer; }
.chat-input-area {
  border-top: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
  background: var(--bg2);
}
.chat-input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 10px 16px;
  max-height: 120px;
  overflow-y: auto;
  resize: none;
  line-height: 1.5;
  font-size: .875rem;
}
.chat-input:focus { border-color: var(--pink); }

/* ── Admin ──────────────────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}
.admin-sidebar-logo {
  padding: 0 8px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.admin-nav-group { margin-bottom: 20px; }
.admin-nav-label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); padding: 0 8px; margin-bottom: 6px; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-xs);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}
.admin-nav-item:hover { background: var(--card); color: var(--text); }
.admin-nav-item.active { background: var(--pink-dim); color: var(--pink); }
.admin-main { background: var(--bg); }
.admin-topbar {
  height: 56px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
  background: var(--bg2);
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-content { padding: 24px; }
.admin-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-stat-num { font-size: 1.6rem; font-weight: 800; }
.admin-stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }

/* Table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  padding: 10px 14px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  background: var(--card2);
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 12px 14px;
  font-size: .875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(255,255,255,.02); }

/* ── Utilities ──────────────────────────────────────────── */
.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 4px; }
.mt-2  { margin-top: 8px; }
.mt-3  { margin-top: 12px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.p-0   { padding: 0; }
.p-4   { padding: 16px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.font-bold   { font-weight: 700; }
.font-semibold { font-weight: 600; }
.rounded-full { border-radius: 9999px; }
.opacity-0 { opacity: 0; }
.cursor-pointer { cursor: pointer; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Dropdown menu ──────────────────────────────────────── */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s;
  z-index: 200;
}
.dropdown-menu.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: .875rem;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
}
.dropdown-item:hover { background: var(--card2); color: var(--text); }
.dropdown-item.danger:hover { color: #ef4444; background: rgba(239,68,68,.1); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.95);
  transition: transform .25s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ── Toast ──────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  pointer-events: all;
  animation: slideIn .3s ease;
  max-width: 340px;
}
@keyframes slideIn { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }
.toast-success { background: rgba(16,185,129,.15); border: 1px solid rgba(16,185,129,.4); color: #6ee7b7; }
.toast-error   { background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.4); color: #fca5a5; }
.toast-info    { background: var(--card); border: 1px solid var(--border2); color: var(--text); }

/* ── Cookie banner ──────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(13,16,32,.97);
  border-top: 1px solid var(--border2);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 150;
  flex-wrap: wrap;
}

/* ── Auth pages ─────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 60% 60% at 20% 20%, rgba(255,107,43,.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(255,149,0,.06) 0%, transparent 60%),
    var(--bg);
}
.auth-card { width: 100%; max-width: 440px; }
.auth-logo { text-align: center; margin-bottom: 32px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; }
  .chat-sidebar.active { display: flex; position: fixed; inset: 0; z-index: 100; background: var(--bg); }
}
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .mobile-nav { display: block; }
  .page-wrapper { padding-bottom: 80px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-profiles { display: none; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .profile-info { flex-direction: column; align-items: flex-start; margin-top: -40px; }
  .container { padding: 0 16px; }
}
@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   GAMING PLATFORM COMPONENTS
   ══════════════════════════════════════════════════════════ */

/* ── Live Badge ─────────────────────────────────────────── */
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}
@keyframes live-ring {
  0%   { transform: scale(1);   opacity: .6; }
  100% { transform: scale(1.8); opacity: 0; }
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.5);
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 800;
  color: #f87171;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.live-dot {
  position: relative;
  width: 7px; height: 7px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse-live 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid #ef4444;
  animation: live-ring 1.4s ease-out infinite;
}

/* ── Live Creator Strip ─────────────────────────────────── */
.live-section {
  margin-bottom: 20px;
}
.live-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.live-section-header h3 {
  font-size: 1rem;
  font-weight: 700;
}
.live-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.live-scroll::-webkit-scrollbar { display: none; }
.live-creator-card {
  flex-shrink: 0;
  width: 160px;
  background: var(--card);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: block;
}
.live-creator-card:hover {
  border-color: rgba(239,68,68,.7);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239,68,68,.15);
}
.live-creator-thumb {
  width: 100%;
  height: 90px;
  background: linear-gradient(135deg, #1a0d0d, #0d0d0d);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-creator-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
}
.live-creator-thumb .avatar-centered {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #ef4444;
  object-fit: cover;
}
.live-creator-thumb .live-badge {
  position: absolute;
  top: 6px;
  left: 6px;
}
.live-creator-info {
  padding: 8px 10px;
}
.live-creator-name {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-creator-meta {
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Dashboard Layout ───────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}
.dashboard-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-image: radial-gradient(ellipse 80% 120% at 100% 50%, rgba(255,107,43,.06) 0%, transparent 70%);
}
.dashboard-welcome h1 {
  font-size: 1.3rem;
  font-weight: 800;
}
.dashboard-welcome p {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── XP / Level ─────────────────────────────────────────── */
.xp-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 160px;
}
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--gradient);
  color: #fff;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .5px;
}
.xp-bar-wrap {
  width: 160px;
  height: 5px;
  background: var(--border2);
  border-radius: 3px;
  overflow: hidden;
}
.xp-bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 3px;
  transition: width .6s ease;
}
.xp-label {
  font-size: .7rem;
  color: var(--text-dim);
}

/* ── Post Card ──────────────────────────────────────────── */
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: var(--transition);
}
.post-card:hover { border-color: var(--border2); }
.post-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.post-card-author {
  flex: 1;
  min-width: 0;
}
.post-card-name {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text);
}
.post-card-time {
  font-size: .72rem;
  color: var(--text-dim);
  margin-top: 1px;
}
.post-card-body {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}
.post-card-game-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: rgba(255,107,43,.1);
  border: 1px solid rgba(255,107,43,.25);
  border-radius: 20px;
  font-size: .72rem;
  color: var(--pink);
  font-weight: 600;
  margin-bottom: 10px;
}
.post-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.post-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  transition: var(--transition);
}
.post-action-btn:hover {
  background: var(--card2);
  border-color: var(--border);
  color: var(--text);
}
.post-action-btn.liked {
  color: var(--pink);
  background: var(--pink-dim);
  border-color: rgba(255,107,43,.3);
}

/* ── Post Create ────────────────────────────────────────── */
.post-create-card {
  padding: 16px 20px;
  margin-bottom: 16px;
}
.post-create-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.post-create-input-fake {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 10px 18px;
  font-size: .875rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition);
}
.post-create-input-fake:hover {
  border-color: var(--pink);
  color: var(--text-muted);
}

/* ── Creator Suggestion Card ────────────────────────────── */
.creator-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.creator-scroll::-webkit-scrollbar { display: none; }
.creator-mini-card {
  flex-shrink: 0;
  width: 130px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: var(--transition);
}
.creator-mini-card:hover {
  border-color: var(--pink);
  transform: translateY(-2px);
}
.creator-mini-card .avatar { margin: 0 auto 8px; }
.creator-mini-name {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.creator-mini-meta {
  font-size: .68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Online Now Sidebar Widget ──────────────────────────── */
.online-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.online-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: var(--transition);
  color: var(--text);
}
.online-item:hover { background: var(--card2); }
.online-item-name {
  font-size: .82rem;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.online-item-tag {
  font-size: .68rem;
  color: var(--text-dim);
}

/* ── Streak Widget ──────────────────────────────────────── */
.streak-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255,107,43,.08), rgba(255,149,0,.04));
  border: 1px solid rgba(255,107,43,.2);
  border-radius: var(--radius-sm);
}
.streak-fire { font-size: 1.6rem; line-height: 1; }
.streak-num  { font-size: 1.4rem; font-weight: 900; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.streak-label { font-size: .72rem; color: var(--text-muted); }

/* ── Section Header ─────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-head h3 {
  font-size: .95rem;
  font-weight: 700;
}

/* ── Stat Mini Card ─────────────────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat-mini {
  background: var(--bg2);
  border-radius: var(--radius-xs);
  padding: 10px;
  text-align: center;
}
.stat-mini-num {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-mini-label {
  font-size: .68rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ── Feed Empty State ───────────────────────────────────── */
.feed-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
}
.feed-empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.feed-empty-text { font-size: .875rem; }

/* ── Post Modal ─────────────────────────────────────────── */
#post-modal .modal { max-width: 540px; }
.post-modal-input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-size: .9rem;
  resize: none;
  min-height: 120px;
  transition: var(--transition);
}
.post-modal-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-dim);
  outline: none;
}

/* ── Entrance animations ────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .4s ease both; }
.fade-up-1 { animation-delay: .05s; }
.fade-up-2 { animation-delay: .1s; }
.fade-up-3 { animation-delay: .15s; }
.fade-up-4 { animation-delay: .2s; }

/* ── Hover glow on profile/creator cards ────────────────── */
.card-hover-orange {
  transition: var(--transition);
}
.card-hover-orange:hover {
  border-color: rgba(255,107,43,.35) !important;
  box-shadow: 0 4px 20px rgba(255,107,43,.1);
}

/* ── Settings: Live stream ──────────────────────────────── */
.live-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border2);
  border-radius: 12px;
  cursor: pointer;
  transition: .3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: white;
  border-radius: 50%;
  transition: .3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--pink); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── Responsive dashboard ───────────────────────────────── */
@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .xp-area { min-width: unset; }
  .xp-bar-wrap { width: 120px; }
}

/* ── Chat conversation list ─────────────────────────────── */
.chat-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: calc(100vh - 60px);
  overflow: hidden;
}
.chat-sidebar { display: flex; flex-direction: column; border-right: 1px solid var(--border); overflow: hidden; }
.chat-sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.conv-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.conv-item:hover { background: var(--bg2); }
.conv-item.active { background: var(--pink)11; border-left: 3px solid var(--pink); }
.conv-item.unread .conv-item-name { font-weight: 700; }
.conv-status-dot { position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; border-color: var(--bg); }
.chat-back { display: none; }

/* Message rows */
.msg-row { display: flex; }
.msg-mine { justify-content: flex-end; }
.msg-theirs { justify-content: flex-start; }
.msg-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: .875rem;
  line-height: 1.5;
  word-break: break-word;
  position: relative;
}
.msg-mine .msg-bubble {
  background: var(--gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-theirs .msg-bubble {
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.msg-time {
  display: block;
  font-size: .65rem;
  opacity: .7;
  margin-top: 4px;
  text-align: right;
}

/* Notification badge */
.badge-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--pink); color: #fff;
  border-radius: 99px; font-size: .65rem; font-weight: 700;
}

/* Sidebar card utility */
.sidebar-card { margin-bottom: 16px; }

@media (max-width: 768px) {
  .chat-layout { grid-template-columns: 1fr; height: calc(100vh - 60px); }
  .chat-sidebar { display: none; position: fixed; inset: 0; z-index: 100; background: var(--bg); }
  .chat-sidebar:not(.chat-sidebar-hidden) { display: flex; }
  .chat-main { display: flex; }
  .chat-back { display: inline-flex; }
}
