/* ================================================
   EllieChat — Complete Stylesheet
   Premium Social + Games Platform
   ================================================ */

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

:root {
  /* Brand Colors */
  --brand-primary: #7c3aed;
  --brand-accent:  #06b6d4;
  --neon-pink:     #ec4899;
  --neon-amber:    #f59e0b;
  --neon-cyan:     #06b6d4;
  --neon-purple:   #7c3aed;
  --neon-green:    #10b981;

  /* Backgrounds */
  --bg-deep:       #03030a;
  --bg-surface:    #0d0d1a;
  --bg-card:       #11121f;
  --bg-glass:      rgba(13,13,26,0.8);
  --bg-input:      rgba(255,255,255,0.04);
  --nebula:        #11121f;

  /* Text */
  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;
  --text-dim:      #475569;

  /* Borders */
  --border:        rgba(255,255,255,0.07);
  --border-bright: rgba(124,58,237,0.3);

  /* Glows */
  --glow-purple:   0 0 20px rgba(124,58,237,0.4);
  --glow-cyan:     0 0 20px rgba(6,182,212,0.4);
  --glow-pink:     0 0 20px rgba(236,72,153,0.4);

  /* Gradients */
  --grad-main:         linear-gradient(135deg, #7c3aed, #06b6d4);
  --grad-pink-purple:  linear-gradient(135deg, #ec4899, #7c3aed);
  --grad-amber:        linear-gradient(135deg, #f59e0b, #d97706);
  --grad-green:        linear-gradient(135deg, #10b981, #059669);

  /* UI */
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  /* Typography */
  --font-main: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Animations */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}
/* Restore cursor on login screen so it doesn't disappear */
.login-overlay, .login-overlay * {
  cursor: auto;
}
img { display: block; max-width: 100%; }
button { cursor: none; font-family: var(--font-main); }
.login-overlay button { cursor: pointer; }
input, textarea, select { font-family: var(--font-main); }
a { color: inherit; text-decoration: none; }

/* ===== BACKGROUND CANVAS ===== */
#nexus-bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  opacity: 0.6;
}

/* ===== CUSTOM CURSOR ===== */
#nexus-cursor {
  position: fixed; width: 8px; height: 8px;
  background: var(--neon-cyan); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s;
  mix-blend-mode: screen;
}
#nexus-cursor-ring {
  position: fixed; width: 28px; height: 28px;
  border: 1.5px solid rgba(6,182,212,0.5); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left 0.12s var(--ease-smooth), top 0.12s var(--ease-smooth),
              border-color 0.2s, transform 0.15s;
}

/* ===== TOAST NOTIFICATIONS ===== */
#toast-station {
  position: fixed; top: 1.2rem; right: 1.2rem;
  z-index: 10000; display: flex; flex-direction: column; gap: 0.6rem;
}
.toast-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--neon-cyan);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  min-width: 260px; max-width: 320px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s, transform 0.3s var(--ease-spring);
}
.toast-item.show { opacity: 1; transform: translateX(0); }
.toast-success { border-left-color: var(--neon-green); }
.toast-error   { border-left-color: var(--neon-pink); }
.toast-info    { border-left-color: var(--neon-cyan); }
.toast-title   { font-weight: 700; font-size: 0.82rem; margin-bottom: 0.2rem; color: var(--text-primary); }
.toast-msg     { font-size: 0.78rem; color: var(--text-secondary); }

/* ===== FLOATING POINTS POPUP ===== */
.float-pts {
  position: fixed; z-index: 9500;
  font-size: 0.8rem; font-weight: 700;
  color: var(--neon-amber);
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.6rem;
  pointer-events: none;
  transform: translateX(-50%);
  animation: floatUp 1.2s ease-out forwards;
}
@keyframes floatUp {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-50px); }
}

/* ===== PANEL DIM ===== */
#panel-dim {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 800; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(2px);
}
#panel-dim.visible { opacity: 1; pointer-events: all; }

/* ==========================================
   SPLIT-SCREEN LOGIN / LANDING PAGE
   ========================================== */

/* ── Shared keyframes ─────────────────────────────── */
@keyframes orbFloat1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(60px,-80px) scale(1.12); }
  66%      { transform: translate(-30px, 50px) scale(0.92); }
}
@keyframes orbFloat2 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%      { transform: translate(-60px, 70px) scale(1.18); }
  75%      { transform: translate(40px,-30px) scale(0.88); }
}
@keyframes orbFloat3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(30px, 80px) scale(1.2); }
}
@keyframes fadeInField {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmerBorder {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes sceneIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sceneOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-24px) scale(0.97); }
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(16px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
@keyframes coinRise {
  0%   { opacity: 0; transform: translateY(0) scale(0.7); }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-60px) scale(1.1); }
}
@keyframes orbitRing {
  from { transform: rotate(0deg) translateX(100px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}
@keyframes pulseDot {
  0%,100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(2.2); opacity: 0; }
}
@keyframes ideaSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes photoFloat {
  0%,100% { transform: translateY(0) rotate(var(--rot)); }
  50%      { transform: translateY(-8px) rotate(var(--rot)); }
}
@keyframes dotProgress {
  from { width: 8px; }
  to   { width: 32px; }
}

/* ── Overlay container ────────────────────────────── */
.login-overlay {
  position: fixed; inset: 0; z-index: 5000;
  display: none; align-items: stretch;
  cursor: auto;
  background: var(--bg-deep);
}
.login-overlay, .login-overlay * { cursor: auto; }
.login-overlay button { cursor: pointer; }

/* ── LEFT — Hero Panel ────────────────────────────── */
.lp-hero {
  flex: 1.1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #06020f 0%, #0d0520 40%, #030a14 100%);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 1.2rem 1.8rem;
  min-width: 0;
}

/* Floating orbs */
.lp-orb {
  position: absolute; border-radius: 50%;
  pointer-events: none; filter: blur(80px);
}
.lp-orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(124,58,237,0.5) 0%, rgba(6,182,212,0.2) 55%, transparent 80%);
  top: -160px; left: -160px;
  animation: orbFloat1 16s ease-in-out infinite;
}
.lp-orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(236,72,153,0.35) 0%, rgba(124,58,237,0.15) 60%, transparent 80%);
  bottom: -80px; right: -80px;
  animation: orbFloat2 20s ease-in-out infinite;
}
.lp-orb-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(6,182,212,0.25) 0%, transparent 70%);
  top: 40%; left: 60%;
  animation: orbFloat3 12s ease-in-out infinite;
}

/* Particle canvas */
.lp-particles {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}

/* ── Scenes ────────────────────────────────────────── */
.lp-scenes {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  gap: 2rem;
  flex: 1; justify-content: center;
}
.lp-scene {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  gap: 1.8rem; padding: 0 0 4rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1);
}
.lp-scene.active {
  opacity: 1; pointer-events: auto;
  animation: sceneIn 0.7s cubic-bezier(0.4,0,0.2,1) both;
}
.lp-scene.leaving {
  animation: sceneOut 0.5s cubic-bezier(0.4,0,0.2,1) forwards;
}

/* ── Scene visuals ─────────────────────────────────── */
.lp-scene-visual {
  display: flex; justify-content: center; align-items: center;
  min-height: 220px;
}

/* Scene 1: Chat bubbles */
.lp-bubble-cluster {
  display: flex; flex-direction: column; gap: 0.65rem;
  max-width: 340px; width: 100%;
}
.lp-chat-bubble {
  padding: 0.75rem 1.1rem;
  border-radius: 20px;
  font-size: 0.92rem; font-weight: 500;
  max-width: 80%; position: relative;
  line-height: 1.45;
}
.lp-chat-bubble.right { align-self: flex-end; }
.lp-bubble-a {
  background: rgba(124,58,237,0.22); border: 1px solid rgba(124,58,237,0.35);
  color: #e2d9ff; border-bottom-left-radius: 4px;
  animation: bubbleIn 0.5s 0.1s var(--ease-spring) both;
}
.lp-bubble-b {
  background: rgba(6,182,212,0.18); border: 1px solid rgba(6,182,212,0.3);
  color: #cff4fc; border-bottom-right-radius: 4px;
  animation: bubbleIn 0.5s 0.4s var(--ease-spring) both;
}
.lp-bubble-c {
  background: rgba(236,72,153,0.16); border: 1px solid rgba(236,72,153,0.28);
  color: #ffd6ee; border-bottom-left-radius: 4px;
  animation: bubbleIn 0.5s 0.7s var(--ease-spring) both;
}
.lp-avatar-stack {
  display: flex; align-items: center;
  margin-top: 0.6rem;
  animation: bubbleIn 0.5s 1s var(--ease-spring) both;
}
.lp-avatar-stack img {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--bg-deep);
  margin-left: -8px; object-fit: cover;
}
.lp-avatar-stack img:first-child { margin-left: 0; }
.lp-avatar-more {
  margin-left: 6px; font-size: 0.78rem;
  color: var(--text-secondary); font-weight: 600;
}

/* Scene 2: Photo wall */
.lp-photo-wall {
  position: relative; width: 300px; height: 200px;
}
.lp-photo-card {
  position: absolute;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.08);
}
.lp-photo-card img { width: 100%; height: 100%; object-fit: cover; }
.lp-photo-react {
  position: absolute; bottom: 6px; right: 8px;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(4px);
  border-radius: 20px; padding: 3px 9px;
  font-size: 0.75rem; font-weight: 600; color: #fff;
}
.lp-pc-1 {
  width: 140px; height: 140px; top: 0; left: 0;
  --rot: -6deg; transform: rotate(-6deg);
  animation: photoFloat 5s ease-in-out infinite;
  animation-delay: 0s;
}
.lp-pc-2 {
  width: 130px; height: 130px; top: 30px; left: 100px;
  --rot: 4deg; transform: rotate(4deg);
  animation: photoFloat 5.5s ease-in-out infinite;
  animation-delay: 0.5s;
}
.lp-pc-3 {
  width: 120px; height: 120px; top: 60px; left: 185px;
  --rot: -3deg; transform: rotate(-3deg);
  animation: photoFloat 4.5s ease-in-out infinite;
  animation-delay: 1s;
}

/* Scene 3: Idea board */
.lp-idea-board {
  position: relative; display: flex; flex-direction: column; gap: 0.55rem;
  max-width: 340px; width: 100%;
}
.lp-idea-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 0.65rem 1rem;
  font-size: 0.88rem; color: var(--text-primary);
  font-weight: 500;
}
.ic-1 { animation: ideaSlideIn 0.5s 0.1s both; border-left: 3px solid #7c3aed; }
.ic-2 { animation: ideaSlideIn 0.5s 0.3s both; border-left: 3px solid #06b6d4; }
.ic-3 { animation: ideaSlideIn 0.5s 0.5s both; border-left: 3px solid #ec4899; }
.ic-4 { animation: ideaSlideIn 0.5s 0.7s both; border-left: 3px solid #f59e0b; }
.lp-idea-pulse {
  position: absolute; top: -10px; right: -10px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--neon-cyan);
  animation: pulseDot 2s ease-out infinite;
}

/* Scene 4: Points & Rank */
.lp-game-area {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.lp-points-badge {
  animation: float 3s ease-in-out infinite;
}
.lp-pts-ring {
  width: 110px; height: 110px; border-radius: 50%;
  border: 3px solid transparent;
  background: linear-gradient(var(--bg-deep),var(--bg-deep)) padding-box,
              linear-gradient(135deg,#7c3aed,#06b6d4) border-box;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(124,58,237,0.3);
}
.lp-pts-num {
  font-size: 1.4rem; font-weight: 800;
  background: var(--grad-main); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-display);
}
.lp-pts-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }
.lp-rank-cards {
  display: flex; gap: 0.4rem;
  flex-wrap: wrap; justify-content: center;
}
.lp-rank-item {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px; padding: 0.3rem 0.7rem;
  font-size: 0.75rem; color: var(--text-muted); font-weight: 500;
  transition: all 0.2s;
}
.lp-rank-item.active {
  background: rgba(124,58,237,0.2); border-color: rgba(124,58,237,0.4);
  color: #c4b5fd; box-shadow: 0 0 16px rgba(124,58,237,0.2);
}
.lp-coins { display: flex; gap: 1rem; justify-content: center; }
.lp-coin {
  background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3);
  border-radius: 20px; padding: 0.25rem 0.6rem;
  font-size: 0.8rem; font-weight: 700; color: #fcd34d;
  animation: coinRise 2.5s ease-in-out infinite;
}
.lp-coin-1 { animation-delay: 0s; }
.lp-coin-2 { animation-delay: 0.7s; }
.lp-coin-3 { animation-delay: 1.4s; }

/* Scene 5: Emoji orbit */
.lp-expression-ring {
  position: relative; width: 220px; height: 220px;
  display: flex; align-items: center; justify-content: center;
}
.lp-expression-ring::before {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px dashed rgba(124,58,237,0.25);
  animation: orbFloat1 8s linear infinite;
}
.lp-expr-emoji {
  position: absolute; font-size: 1.7rem;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  animation: orbitRing linear infinite;
}
.ee-1 { animation-duration: 8s;  animation-delay: 0s; }
.ee-2 { animation-duration: 8s;  animation-delay: -1.33s; }
.ee-3 { animation-duration: 8s;  animation-delay: -2.67s; }
.ee-4 { animation-duration: 8s;  animation-delay: -4s; }
.ee-5 { animation-duration: 8s;  animation-delay: -5.33s; }
.ee-6 { animation-duration: 8s;  animation-delay: -6.67s; }
.lp-expr-center {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 800; line-height: 1.2;
  text-align: center;
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: float 3s ease-in-out infinite;
}

/* ── Scene text ─────────────────────────────────────── */
.lp-scene-text {
  z-index: 2;
}
.lp-scene-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3);
  border-radius: 20px; padding: 0.3rem 0.8rem;
  font-size: 0.76rem; font-weight: 600; color: #c4b5fd;
  margin-bottom: 0.8rem; letter-spacing: 0.03em;
}
.lp-scene-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800; line-height: 1.15;
  color: var(--text-primary); margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}
.lp-scene-desc {
  font-size: 0.97rem; color: var(--text-secondary);
  line-height: 1.65; max-width: 400px;
}

/* ── Progress dots ─────────────────────────────────── */
.lp-dots {
  display: flex; gap: 0.45rem; align-items: center;
  position: absolute; bottom: 2.5rem; left: 2.5rem; z-index: 3;
}
.lp-dot {
  height: 8px; width: 8px;
  border-radius: 4px; border: none;
  background: rgba(255,255,255,0.2);
  cursor: pointer; padding: 0;
  transition: width 0.4s var(--ease-spring), background 0.3s;
}
.lp-dot.active {
  width: 28px; background: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(6,182,212,0.5);
}

/* ── Brand mark (kept for compatibility) ────────────────── */
.lp-brand {
  position: absolute; top: 2rem; left: 2.5rem; z-index: 3;
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  color: var(--text-primary); letter-spacing: -0.02em;
}
.lp-brand-icon { font-size: 1.4rem; }

/* ══════════════════════════════════════════
   NEW HERO PANEL — gChat Redesign
   ══════════════════════════════════════════ */

/* ── Hero Content ────────────────────────── */
.lp-hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  justify-content: center;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  scrollbar-width: none;
  gap: 0.95rem;
  padding: 0.5rem 0;
}
.lp-hero-content::-webkit-scrollbar { display: none; }

/* ── Hero Headline ───────────────────────── */
.lp-hero-headline {
  display: flex; flex-direction: column; gap: 0.55rem;
}
.lp-headline-main {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.lp-headline-grad {
  background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 55%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lp-headline-sub {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 440px;
}

/* ── Feature List ────────────────────────── */
.lp-feature-list {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.lp-feature-row {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.45rem 0.8rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  transition: all 0.25s var(--ease-spring);
}
.lp-feature-row:hover {
  background: rgba(124,58,237,0.07);
  border-color: rgba(124,58,237,0.2);
  transform: translateX(5px);
  box-shadow: -4px 0 20px rgba(124,58,237,0.12);
}
.lp-feature-icon-wrap {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px; border: 1px solid;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.lp-feature-row-text {
  display: flex; flex-direction: column; gap: 0.1rem;
}
.lp-feature-row-text strong {
  font-size: 0.85rem; font-weight: 700;
  color: var(--text-primary);
}
.lp-feature-row-text span {
  font-size: 0.76rem; color: var(--text-muted); line-height: 1.4;
}

/* ── Stats Bar ───────────────────────────── */
.lp-stats-row {
  display: flex; align-items: center; gap: 0;
  padding: 0.55rem 1rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; justify-content: space-around;
}
.lp-stat {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.1rem;
}
.lp-stat-num {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
}
.lp-stat-label {
  font-size: 0.68rem; color: var(--text-muted);
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em;
}
.lp-stat-divider {
  width: 1px; height: 32px;
  background: rgba(255,255,255,0.08);
}

/* ── Infinite Photo Strip ────────────────── */
@keyframes slideLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes slideRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ── Image Slideshow (Carousel) ──────────── */
.lp-slideshow {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 168px;
  flex-shrink: 0;
  background: var(--bg-surface);
  box-shadow: 0 16px 50px rgba(0,0,0,0.5),
              0 0 0 1px rgba(255,255,255,0.06),
              inset 0 1px 0 rgba(255,255,255,0.04);
}
/* Bottom gradient overlay */
.lp-slideshow::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 75px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(3,3,10,0.75));
}
.lp-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
  pointer-events: none;
}
.lp-slide.active { opacity: 1; pointer-events: auto; }
.lp-slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transform: scale(1.03);
  transition: transform 6s ease-out;
}
.lp-slide.active img { transform: scale(1); }
.lp-slide-label {
  position: absolute;
  bottom: 34px; left: 14px; z-index: 2;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-full);
  padding: 0.28rem 0.85rem;
  font-size: 0.8rem; font-weight: 700;
  color: #fff; letter-spacing: 0.03em;
}
/* Dots */
.lp-slide-dots {
  position: absolute; bottom: 10px;
  left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center; gap: 5px;
  pointer-events: all;
}
.lp-slide-dot {
  width: 6px; height: 6px; border-radius: 3px;
  border: none; background: rgba(255,255,255,0.35);
  cursor: pointer; padding: 0;
  transition: width 0.35s var(--ease-spring), background 0.25s;
}
.lp-slide-dot.active {
  width: 22px; background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
}
/* Prev/Next arrows */
.lp-slide-prev, .lp-slide-next {
  position: absolute; top: 50%; z-index: 2;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 30px; height: 30px;
  color: #fff; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; line-height: 1;
  transition: opacity 0.2s, background 0.2s, transform 0.2s;
}
.lp-slide-prev { left: 10px; }
.lp-slide-next { right: 10px; }
.lp-slideshow:hover .lp-slide-prev { opacity: 1; transform: translateY(-50%) translateX(2px); }
.lp-slideshow:hover .lp-slide-next { opacity: 1; transform: translateY(-50%) translateX(-2px); }
.lp-slide-prev:hover, .lp-slide-next:hover {
  background: rgba(124,58,237,0.6);
  border-color: rgba(124,58,237,0.5);
}
.lp-photo-strip-wrap {
  display: flex; flex-direction: column; gap: 0.55rem;
  overflow: hidden; border-radius: 16px;
  /* Fade edges for a cinematic feel */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.lp-strip {
  display: flex; overflow: hidden;
}
.lp-strip-inner {
  display: flex; gap: 0.55rem; flex-shrink: 0;
}
.lp-strip-fwd .lp-strip-inner {
  animation: slideLeft 28s linear infinite;
}
.lp-strip-rev .lp-strip-inner {
  animation: slideRight 22s linear infinite;
}
.lp-photo-strip-wrap:hover .lp-strip-inner {
  animation-play-state: paused;
}
.lp-strip-img {
  flex-shrink: 0;
  width: 170px; height: 110px;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.lp-strip-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s var(--ease-smooth);
}
.lp-strip-img:hover img { transform: scale(1.08); }

/* ── Brand Wordmark ──────────────────────── */
.lp-hero-brand {
  display: flex; flex-direction: column; gap: 0.55rem;
}
.lp-hero-logo-wrap {
  display: flex; align-items: center; gap: 0.9rem;
}
.lp-hero-logo-icon {
  font-size: 3rem;
  filter: drop-shadow(0 0 24px rgba(124,58,237,0.9)) drop-shadow(0 0 8px rgba(6,182,212,0.6));
  animation: float 4s ease-in-out infinite;
}
.lp-hero-logo-text {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.5vw, 5rem);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.05em;
  line-height: 1;
}
.lp-hero-logo-text span {
  background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 60%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lp-hero-tagline {
  font-size: 1.05rem; font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  padding-left: 0.15rem;
}

/* ── Chat Preview Mockup ─────────────────── */
.lp-chat-preview {
  display: flex; flex-direction: column; gap: 0.7rem;
  max-width: 420px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px; padding: 1.3rem 1.4rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
}
.lp-preview-msg {
  display: flex; align-items: flex-end; gap: 0.55rem;
}
.lp-prev-right { flex-direction: row-reverse; }
.lp-prev-ava {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(124,58,237,0.4);
}
.lp-prev-bubble {
  padding: 0.55rem 0.95rem;
  border-radius: 18px;
  font-size: 0.85rem; font-weight: 500;
  max-width: 240px; line-height: 1.45;
}
.lp-prev-left .lp-prev-bubble {
  background: rgba(124,58,237,0.18);
  border: 1px solid rgba(124,58,237,0.28);
  color: #e2d9ff; border-bottom-left-radius: 4px;
  animation: bubbleIn 0.6s 0.1s var(--ease-spring) both;
}
.lp-prev-right .lp-prev-bubble {
  background: rgba(6,182,212,0.15);
  border: 1px solid rgba(6,182,212,0.25);
  color: #cff4fc; border-bottom-right-radius: 4px;
  animation: bubbleIn 0.6s 0.4s var(--ease-spring) both;
}
.lp-preview-msg:nth-child(3) .lp-prev-bubble {
  background: rgba(236,72,153,0.13);
  border: 1px solid rgba(236,72,153,0.22);
  color: #ffd6ee; border-bottom-left-radius: 4px;
  animation: bubbleIn 0.6s 0.7s var(--ease-spring) both;
}
.lp-preview-reactions {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 0.2rem;
  animation: bubbleIn 0.6s 1s var(--ease-spring) both;
}
.lp-preview-reactions span {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px; padding: 0.22rem 0.65rem;
  font-size: 0.78rem; font-weight: 600;
  transition: all 0.2s;
}
.lp-preview-reactions span:hover {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.3);
  transform: scale(1.08);
}

/* ── Feature Pills ───────────────────────── */
.lp-features {
  display: flex; gap: 0.55rem; flex-wrap: wrap;
}
.lp-feat {
  display: flex; align-items: center; gap: 0.45rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  padding: 0.42rem 1rem;
  font-size: 0.83rem; font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-spring);
  cursor: default;
}
.lp-feat:hover {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.35);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.2);
}
.lp-feat span { font-size: 1rem; }

/* ── Community Row ───────────────────────── */
.lp-community {
  display: flex; align-items: center; gap: 0.85rem;
}
.lp-community-text {
  font-size: 0.85rem; color: var(--text-secondary);
  line-height: 1.4;
}
.lp-community-text strong { color: var(--text-primary); }

/* Updated avatar stack (reused) */
.lp-avatar-stack {
  display: flex; align-items: center;
}
.lp-avatar-stack img {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2.5px solid var(--bg-deep);
  margin-left: -9px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(124,58,237,0.25);
}
.lp-avatar-stack img:first-child { margin-left: 0; }

/* ── Auth Panel — updated accent ─────────── */
.lp-auth-panel {
  width: 440px; min-width: 380px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6,6,16,0.98);
  border-left: 1px solid rgba(124,58,237,0.15);
  overflow-y: auto;
  position: relative; z-index: 2;
}
.lp-auth-panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7c3aed 30%, #06b6d4 70%, transparent);
  pointer-events: none;
}

/* ── Responsive hero ─────────────────────── */
@media (max-width: 860px) {
  .lp-hero-content { gap: 1.5rem; }
  .lp-chat-preview  { max-width: 100%; }
  .lp-hero-logo-text { font-size: 2.5rem; }
}
.lp-auth-inner {
  width: 100%; padding: 2.5rem 2.2rem;
  display: flex; flex-direction: column; gap: 0;
}
.lp-auth-logo {
  display: none; /* shown on mobile only */
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
  align-items: center; gap: 0.5rem; margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.lp-auth-header { margin-bottom: 1.6rem; }
.lp-auth-title {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 800; color: var(--text-primary);
  letter-spacing: -0.03em; margin-bottom: 0.3rem;
  animation: fadeInField 0.5s 0.1s both;
}
.lp-auth-sub {
  font-size: 0.86rem; color: var(--text-muted); line-height: 1.5;
  animation: fadeInField 0.5s 0.2s both;
}

/* 2-column signup row */
.lp-signup-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem;
}

/* Auth Tabs */
.auth-tabs {
  display: flex; gap: 0; margin-bottom: 1.6rem;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  border: 1px solid rgba(255,255,255,0.06);
  animation: fadeInField 0.5s 0.25s both;
}
.auth-tab {
  flex: 1; padding: 0.65rem; border: none; background: transparent;
  color: var(--text-muted); border-radius: calc(var(--radius-md) - 2px);
  font-size: 0.86rem; font-weight: 600;
  transition: all 0.25s var(--ease-spring);
  cursor: pointer; letter-spacing: 0.01em;
}
.auth-tab.active {
  background: linear-gradient(135deg, var(--brand-primary), #5b21b6);
  color: #fff;
  box-shadow: 0 2px 14px rgba(124,58,237,0.45), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Auth Forms */
.auth-form { display: none; }
.auth-form.active { display: block; animation: fadeInField 0.4s var(--ease-smooth) both; }

.login-field { margin-bottom: 1rem; }
.login-label {
  display: block; font-size: 0.75rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 0.4rem;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.login-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md); padding: 0.78rem 1rem;
  color: var(--text-primary); font-size: 16px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  outline: none; cursor: text;
}
.login-input::placeholder { color: var(--text-dim); }
.login-input:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(124,58,237,0.25);
}
.login-input:focus {
  background: rgba(124,58,237,0.06);
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.login-input-file {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md);
  padding: 0.5rem 0.9rem; color: var(--text-secondary); font-size: 0.83rem;
  cursor: pointer;
}
.login-input-file::file-selector-button {
  background: var(--brand-primary); color: #fff; border: none;
  border-radius: 6px; padding: 0.3rem 0.7rem;
  font-size: 0.78rem; cursor: pointer; margin-right: 0.5rem;
  transition: background 0.2s;
}
.login-input-file::file-selector-button:hover { background: #6d28d9; }

.btn-login-submit {
  width: 100%; padding: 0.88rem;
  background: linear-gradient(135deg, #7c3aed, #06b6d4, #7c3aed);
  background-size: 200% 100%;
  border: none; border-radius: var(--radius-md);
  color: #fff; font-size: 0.94rem; font-weight: 700;
  transition: background-position 0.4s, transform 0.18s var(--ease-spring), box-shadow 0.18s;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
  margin-top: 0.5rem; cursor: pointer;
  letter-spacing: 0.02em;
  position: relative; overflow: hidden;
}
.btn-login-submit::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.09) 50%, transparent 100%);
  transform: translateX(-100%); transition: transform 0.5s;
}
.btn-login-submit:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.55);
}
.btn-login-submit:hover::after { transform: translateX(100%); }
.btn-login-submit:active { transform: translateY(0); }
.btn-login-submit:disabled {
  opacity: 0.6; cursor: not-allowed; transform: none;
}

.btn-forgot-link {
  background: none; border: none; color: var(--text-muted);
  font-size: 0.79rem; display: block; text-align: center;
  margin-top: 0.7rem; width: 100%; padding: 0.3rem;
  transition: color 0.2s; cursor: pointer;
}
.btn-forgot-link:hover { color: var(--neon-cyan); }

.forgot-pw-box { animation: fadeInField 0.4s var(--ease-smooth) both; }
.forgot-title  { font-weight: 800; font-size: 1.1rem; margin-bottom: 0.3rem; }
.forgot-desc   { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.9rem; line-height: 1.6; }
.forgot-result { margin-top: 0.7rem; font-size: 0.82rem; }
.forgot-ok { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); border-radius: var(--radius-md); padding: 0.75rem; color: #34d399; line-height: 1.6; }
.forgot-err{ background: rgba(236,72,153,0.1); border: 1px solid rgba(236,72,153,0.25); border-radius: var(--radius-md); padding: 0.75rem; color: var(--neon-pink); }

/* ── Responsive — Tablet & Mobile (iPhone XR = 414px) ──── */
@media (max-width: 860px) {

  /* Scrollable full-page layout — hero on top, auth below */
  .login-overlay {
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    background: radial-gradient(ellipse at 30% 10%, #120a2e 0%, #03030a 60%, #030d14 100%);
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
    height: 100vh;
  }

  /* Hero: compact but VISIBLE — scrollable */
  .lp-hero {
    display: flex !important;
    flex: 0 0 auto;
    height: auto;
    padding: 1.5rem 1.3rem 1rem;
    min-height: 0;
  }
  .lp-orb, .lp-particles { display: none !important; }

  .lp-hero-content {
    max-height: none;
    overflow: visible;
    gap: 0.85rem;
    padding: 0;
    justify-content: flex-start;
  }

  /* Compact logo */
  .lp-hero-logo-icon { font-size: 1.8rem; }
  .lp-hero-logo-text { font-size: clamp(1.8rem, 7vw, 2.4rem); }

  /* Compact headline */
  .lp-headline-main { font-size: clamp(1.5rem, 6vw, 1.9rem); letter-spacing: -0.03em; }
  .lp-headline-sub  { font-size: 0.83rem; }

  /* Feature rows — compact */
  .lp-feature-row { padding: 0.45rem 0.75rem; }
  .lp-feature-icon-wrap { width: 32px; height: 32px; font-size: 0.95rem; }
  .lp-feature-title { font-size: 0.82rem; }
  .lp-feature-desc  { font-size: 0.72rem; }

  /* Smaller slideshow */
  .lp-slideshow { height: 145px; border-radius: 14px; }
  .lp-slide-label { font-size: 0.73rem; bottom: 28px; }

  /* Stats bar — compact */
  .lp-stats-row { padding: 0.5rem 0.8rem; }
  .lp-stat-num { font-size: 1rem; }
  .lp-stat-label { font-size: 0.62rem; }

  /* Hide community on mobile (space saving) */
  .lp-community { display: none !important; }

  /* Scroll cue arrow */
  .lp-hero-content::after {
    content: '↓ Sign In Below';
    display: block;
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.08em;
    padding: 0.3rem 0;
  }

  /* Auth panel: below hero, full width */
  .lp-auth-panel {
    flex: 0 0 auto;
    width: 100% !important;
    min-width: unset !important;
    max-width: none !important;
    border-left: none;
    border-top: 1px solid rgba(124,58,237,0.25);
    background: rgba(6,6,16,0.97) !important;
    display: flex;
    align-items: flex-start;
    justify-content: stretch;
    padding: 0;
  }
  .lp-auth-panel::before {
    height: 2px; top: 0; left: 0; right: 0; bottom: auto;
  }
  .lp-auth-inner {
    width: 100%;
    padding: 1.5rem 1.3rem 2.5rem;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .lp-auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 2rem;
    text-align: center;
  }
  .lp-auth-logo-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 24px rgba(124,58,237,0.9));
    animation: float 4s ease-in-out infinite;
  }
  .lp-auth-logo-name {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
  }
  .lp-auth-logo-tag {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.2rem;
  }

  /* Auth form adjustments */
  .lp-auth-header  { margin-bottom: 1.5rem; text-align: center; }
  .lp-auth-title   { font-size: 1.5rem; text-align: center; }
  .lp-auth-sub     { font-size: 0.84rem; text-align: center; }
  .auth-tabs       { margin-bottom: 1.5rem; }
  .lp-signup-row   { grid-template-columns: 1fr; gap: 0; }

  /* Login fields need slightly more breathing room */
  .login-field { margin-bottom: 0.9rem; }
}

/* ── iPhone SE & very small (≤ 390px) ──────────────── */
@media (max-width: 390px) {
  .lp-auth-inner  { padding-left: 1.2rem; padding-right: 1.2rem; }
  .lp-auth-logo-name { font-size: 2.3rem; }
}



/* ==========================================
   MAIN APP
   ========================================== */
#nexus-app { position: relative; z-index: 1; min-height: 100vh; }

/* ===== TOP BAR ===== */
#nexus-topbar {
  position: sticky; top: 0; z-index: 700;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.2rem;
  background: rgba(3,3,10,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  gap: 0.8rem;
}
.nexus-logo {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 800;
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--text-primary);
}
.nexus-logo-icon { font-size: 1.4rem; filter: drop-shadow(0 0 8px rgba(124,58,237,0.8)); }
.topbar-right { display: flex; align-items: center; gap: 0.8rem; }

.topbar-notif-btn {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-full); width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; position: relative; transition: all 0.2s; cursor: none;
}
.topbar-notif-btn:hover { border-color: var(--neon-amber); }
.ann-dot {
  position: absolute; top: 2px; right: 2px;
  width: 8px; height: 8px;
  background: var(--neon-amber); border-radius: 50%;
  border: 2px solid var(--bg-deep);
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.3)} }

.topbar-avatar-pill {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 0.3rem 0.8rem 0.3rem 0.3rem;
  cursor: none; transition: border-color 0.2s;
}
.topbar-avatar-pill:hover { border-color: var(--brand-primary); }
.topbar-avatar-ring {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--brand-primary);
  overflow: hidden; flex-shrink: 0;
}
.topbar-avatar-ring img { width: 100%; height: 100%; object-fit: cover; }
.topbar-user-text { display: flex; flex-direction: column; gap: 1px; }
.topbar-user-name { font-weight: 700; font-size: 0.82rem; }
.topbar-user-freq { font-size: 0.68rem; color: var(--neon-amber); font-weight: 600; }

/* ===== ANNOUNCEMENT BANNER ===== */
.announcement-banner {
  display: flex; align-items: center; gap: 0.7rem;
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(124,58,237,0.1));
  border-bottom: 1px solid rgba(245,158,11,0.25);
  padding: 0.6rem 1.2rem; font-size: 0.82rem;
  color: var(--neon-amber); position: relative; z-index: 5;
}
.ann-icon { font-size: 1.1rem; flex-shrink: 0; }
#announcement-text { flex: 1; font-weight: 500; }
.ann-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 1rem; padding: 0.15rem 0.4rem; cursor: none;
  border-radius: 4px; transition: color 0.2s;
  flex-shrink: 0;
}
.ann-close:hover { color: var(--text-primary); }

/* Warning Banner */
.warning-banner {
  display: flex; align-items: center; gap: 0.7rem;
  background: linear-gradient(135deg, rgba(236,72,153,0.12), rgba(239,68,68,0.1));
  border-bottom: 1px solid rgba(236,72,153,0.25);
  padding: 0.6rem 1.2rem; font-size: 0.82rem;
  color: #f87171;
}

/* ===== STORIES STRIP ===== */
#signals-bar {
  display: flex; gap: 0.8rem; align-items: center;
  padding: 0.8rem 1.2rem;
  overflow-x: auto; scrollbar-width: none;
  background: rgba(3,3,10,0.4);
  border-bottom: 1px solid var(--border);
}
#signals-bar::-webkit-scrollbar { display: none; }

.signal-orb-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  cursor: none; flex-shrink: 0;
}
.signal-orb-add {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(124,58,237,0.15);
  border: 2px dashed var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--brand-primary);
  transition: all 0.2s var(--ease-spring);
}
.signal-orb-add:hover { transform: scale(1.08); background: rgba(124,58,237,0.25); }
.signal-orb {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2.5px solid var(--border);
  overflow: hidden; transition: all 0.2s;
}
.signal-orb.unread { border-color: transparent; background: var(--grad-main); padding: 2px; }
.signal-orb.unread img { border-radius: 50%; }
.signal-orb img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.signal-orb-name { font-size: 0.65rem; color: var(--text-muted); max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== MAIN CONTENT ===== */
#nexus-main { max-width: 680px; margin: 0 auto; padding: 1rem 1rem 7rem; }
.nexus-view { display: none; }
.nexus-view.active { display: block; }

.view-header { margin-bottom: 1.2rem; }
.view-title  { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.view-subtitle { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Empty state */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.empty-icon  { font-size: 2.5rem; margin-bottom: 0.8rem; }
.empty-state p { font-size: 0.9rem; }

/* ===== POST CARDS ===== */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.2rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.post-card:hover { border-color: rgba(124,58,237,0.25); }

.post-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem 0.6rem;
}
.post-author-info { display: flex; align-items: center; gap: 0.7rem; }
.post-author-ava {
  width: 40px; height: 40px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid var(--border);
  cursor: none; transition: border-color 0.2s;
}
.post-author-ava:hover { border-color: var(--neon-cyan); }
.post-author-ava img { width: 100%; height: 100%; object-fit: cover; }
.post-author-meta { display: flex; flex-direction: column; gap: 2px; }
.post-author-name { font-weight: 700; font-size: 0.88rem; cursor: none; }
.post-author-name:hover { color: var(--neon-cyan); }
.post-author-sub { font-size: 0.7rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }

/* Follow Button */
.btn-follow {
  background: var(--grad-main); border: none;
  color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 0.35rem 0.85rem; border-radius: var(--radius-full);
  transition: all 0.15s var(--ease-spring); cursor: none;
  box-shadow: 0 2px 10px rgba(124,58,237,0.35);
}
.btn-follow:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(124,58,237,0.5); }
.btn-follow.following {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  box-shadow: none; color: var(--text-muted);
}
.btn-follow.following:hover { border-color: var(--neon-pink); color: var(--neon-pink); }

.own-post-badge { font-size: 0.7rem; color: var(--text-dim); background: var(--bg-input); padding: 0.2rem 0.5rem; border-radius: var(--radius-full); }
.post-header-right { flex-shrink: 0; }

/* Post image */
.post-image-wrap { cursor: none; overflow: hidden; max-height: 480px; }
.post-image { width: 100%; object-fit: cover; transition: transform 0.4s; display: block; }
.post-image-wrap:hover .post-image { transform: scale(1.02); }

/* Caption */
.post-caption { padding: 0.8rem 1rem 0.4rem; font-size: 0.88rem; color: var(--text-primary); line-height: 1.6; word-break: break-word; overflow-wrap: anywhere; }

/* Action Bar */
.post-action-bar { padding: 0.4rem 0.7rem 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.post-reactions-row { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.reaction-btn {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 0.3rem 0.55rem;
  font-size: 1.05rem; transition: all 0.15s var(--ease-spring);
  cursor: none; display: flex; align-items: center; gap: 0.25rem;
}
.reaction-btn:hover { border-color: var(--rc, var(--neon-cyan)); transform: scale(1.12); background: rgba(255,255,255,0.06); }
.reaction-btn.active { background: rgba(var(--rc, 6 182 212) / 0.15); border-color: var(--rc, var(--neon-cyan)); box-shadow: 0 0 8px rgba(var(--rc, 6 182 212) / 0.3); }
.rx-count { font-size: 0.72rem; font-weight: 600; color: var(--text-secondary); }
.post-stats { display: flex; gap: 1rem; align-items: center; }
.post-stat { font-size: 0.75rem; color: var(--text-muted); }
.post-stat-val { font-weight: 700; color: var(--text-secondary); }
.post-stat.clickable { cursor: none; }
.post-stat.clickable:hover { color: var(--neon-cyan); }

.card-dl-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 0.3rem 0.75rem;
  font-size: 0.72rem; color: var(--text-muted);
  margin: 0.3rem 1rem 0; cursor: none; transition: all 0.2s;
}
.card-dl-btn:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }
.post-ts { padding: 0.3rem 1rem 0.7rem; font-size: 0.68rem; color: var(--text-dim); }

/* ===== EXPLORE GRID ===== */
.explore-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.explore-item { position: relative; aspect-ratio: 1; overflow: hidden; cursor: none; }
.explore-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.explore-item:hover img { transform: scale(1.06); }
.explore-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 0.5rem;
  opacity: 0; transition: opacity 0.2s;
  gap: 0.4rem;
}
.explore-item:hover .explore-overlay { opacity: 1; }
.explore-ava { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #fff; object-fit: cover; }
.explore-overlay span { font-size: 0.7rem; font-weight: 600; color: #fff; }

/* ===== BOTTOM DOCK ===== */
#nexus-dock {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  z-index: 600;
  display: flex; align-items: center;
  background: rgba(13,13,26,0.9);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  padding: 0.5rem 0.8rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  gap: 0.1rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.4);
  width: 100%; max-width: 520px;
  justify-content: space-around;
}
.dock-btn {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  padding: 0.5rem 0.7rem; border: none; background: transparent;
  color: var(--text-dim); font-size: 0.62rem; font-weight: 600;
  border-radius: var(--radius-md); transition: all 0.2s var(--ease-spring);
  cursor: none; min-width: 52px;
}
.dock-btn svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dock-btn:hover { color: var(--text-secondary); transform: translateY(-2px); }
.dock-btn.active { color: var(--neon-cyan); }
.dock-btn.active svg { filter: drop-shadow(0 0 6px rgba(6,182,212,0.7)); }

.dock-create-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad-main); border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(124,58,237,0.5);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
  cursor: none; flex-shrink: 0;
}
.dock-create-btn svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2.5; fill: none; stroke-linecap: round; }
.dock-create-btn:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 8px 28px rgba(124,58,237,0.65); }

/* ===== SLIDING PANEL ===== */
#nexus-panel {
  position: fixed; top: 0; right: 0;
  width: min(400px, 100vw); height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 900;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-spring);
  display: flex; flex-direction: column;
  overflow: hidden;
}
#nexus-panel.open { transform: translateX(0); }
.panel-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(3,3,10,0.5);
  flex-shrink: 0;
}
.panel-h { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.panel-close { background: none; border: 1px solid var(--border); border-radius: var(--radius-full); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: none; transition: all 0.2s; }
.panel-close svg { width: 14px; height: 14px; stroke: var(--text-muted); fill: none; stroke-width: 2; stroke-linecap: round; }
.panel-close:hover { border-color: var(--neon-pink); }
.panel-close:hover svg { stroke: var(--neon-pink); }
.panel-body { flex: 1; overflow-y: auto; padding: 1rem 1.2rem; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }

/* ===== PROFILE PANEL ===== */
.profile-panel-card {
  text-align: center;
  background: rgba(124,58,237,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}
.profile-cosmic-ava {
  width: 80px; height: 80px; border-radius: 50%;
  border: 3px solid var(--brand-primary);
  overflow: hidden; margin: 0 auto 0.8rem;
  position: relative; cursor: none;
  box-shadow: 0 0 20px rgba(124,58,237,0.3);
}
.profile-cosmic-ava img { width: 100%; height: 100%; object-fit: cover; }
.ava-edit-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: #fff; font-weight: 600;
  opacity: 0; transition: opacity 0.2s;
}
.profile-cosmic-ava:hover .ava-edit-overlay { opacity: 1; }
.profile-dname   { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; word-break: break-word; overflow-wrap: anywhere; }
.profile-handle  { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; word-break: break-word; overflow-wrap: anywhere; }
.rank-badge-large {
  display: inline-block; margin: 0.5rem auto;
  padding: 0.3rem 0.9rem; border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 700; border: 1px solid;
}
.profile-stats-row { display: flex; justify-content: center; gap: 1.2rem; margin: 0.8rem 0; flex-wrap: wrap; }
.profile-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.profile-stat-val { font-weight: 800; font-size: 1rem; }
.profile-stat-lbl { font-size: 0.68rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.profile-bio-text { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin-top: 0.5rem; word-break: break-word; overflow-wrap: anywhere; }

.profile-creations-label { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 0.5rem 0 0.7rem; }
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.profile-grid-item { position: relative; aspect-ratio: 1; overflow: hidden; cursor: none; border-radius: 4px; }
.profile-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.profile-grid-item:hover img { transform: scale(1.08); }
.profile-grid-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  opacity: 0; transition: opacity 0.2s;
}
.profile-grid-item:hover .profile-grid-overlay { opacity: 1; }
.profile-grid-stat { display: flex; align-items: center; gap: 0.2rem; font-size: 0.75rem; font-weight: 700; color: #fff; }

.btn-nexus-primary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--grad-main); border: none;
  color: #fff; font-size: 0.85rem; font-weight: 700;
  padding: 0.65rem 1.2rem; border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(124,58,237,0.35);
  transition: transform 0.15s var(--ease-spring), box-shadow 0.15s; cursor: none;
}
.btn-nexus-primary svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-nexus-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(124,58,237,0.5); }

.btn-logout {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(236,72,153,0.1); border: 1px solid rgba(236,72,153,0.25);
  color: var(--neon-pink); padding: 0.6rem 1.2rem; border-radius: var(--radius-md);
  font-size: 0.84rem; font-weight: 600; cursor: none; transition: all 0.2s; width:100%;
}
.btn-logout:hover { background: rgba(236,72,153,0.18); box-shadow: 0 0 12px rgba(236,72,153,0.2); }
.btn-logout svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ===== NOTIFICATIONS ===== */
.notif-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.8rem; border-radius: var(--radius-md);
  border: 1px solid transparent; margin-bottom: 0.5rem;
  transition: all 0.2s; cursor: none;
}
.notif-item:hover { background: var(--bg-input); }
.notif-item.unread { border-color: rgba(124,58,237,0.2); background: rgba(124,58,237,0.05); }
.notif-icon-box { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-input); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.notif-details { flex: 1; }
.notif-msg { font-size: 0.82rem; line-height: 1.5; color: var(--text-primary); }
.notif-ts  { font-size: 0.7rem; color: var(--text-dim); display: block; margin-top: 0.2rem; }

/* ===== MODALS ===== */
.nx-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.nx-modal-overlay.open { opacity: 1; pointer-events: all; }
.nx-modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 1.5rem;
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s var(--ease-spring);
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.nx-modal-overlay.open .nx-modal { transform: scale(1) translateY(0); }
.modal-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.modal-title-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.modal-x { background: none; border: 1px solid var(--border); border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: none; transition: all 0.2s; }
.modal-x svg { width: 13px; height: 13px; stroke: var(--text-muted); fill: none; stroke-width: 2; stroke-linecap: round; }
.modal-x:hover { border-color: var(--neon-pink); }
.modal-field { margin-bottom: 1rem; }
.modal-field-label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.4rem; }
.modal-input {
  width: 100%; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem; color: var(--text-primary); font-size: 16px;
  outline: none; transition: border-color 0.2s;
}
.modal-input:focus { border-color: var(--brand-primary); }
.modal-textarea {
  width: 100%; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem; color: var(--text-primary); font-size: 16px;
  outline: none; resize: vertical; min-height: 80px;
  transition: border-color 0.2s; font-family: var(--font-main);
}
.modal-textarea:focus { border-color: var(--brand-primary); }
.modal-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0; }
.tgl-name { font-size: 0.83rem; font-weight: 600; }

/* File Upload Zone */
.file-upload-zone {
  width: 100%; border: 2px dashed var(--border);
  border-radius: var(--radius-md); padding: 1rem;
  cursor: none; transition: all 0.2s; min-height: 110px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.file-upload-zone:hover, .file-upload-zone.drag-over {
  border-color: var(--brand-primary);
  background: rgba(124,58,237,0.05);
}
.file-upload-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text-dim); font-size: 0.8rem; text-align: center; pointer-events: none;
}
.file-upload-placeholder svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; }
.file-input-hidden { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; z-index: 2; }
.file-upload-zone img { max-height: 200px; border-radius: var(--radius-md); object-fit: contain; pointer-events: none; }

/* Toggle */
.nexus-toggle { appearance: none; width: 44px; height: 24px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-full); position: relative; cursor: none; transition: background 0.2s, border-color 0.2s; flex-shrink: 0; }
.nexus-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--text-muted); border-radius: 50%; transition: transform 0.2s, background 0.2s; }
.nexus-toggle:checked { background: var(--brand-primary); border-color: var(--brand-primary); }
.nexus-toggle:checked::after { transform: translateX(20px); background: #fff; }

/* Settings section */
.settings-section { margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.settings-section:last-child { border-bottom: none; }

/* ===== EXPANDED POST ===== */
.expanded-post-layout { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 560px) { .expanded-post-layout { grid-template-columns: 1fr 1fr; } }
.expanded-post-media { border-radius: var(--radius-md); overflow: hidden; max-height: 400px; }
.expanded-post-media img { width: 100%; height: 100%; object-fit: cover; }
.expanded-post-info { display: flex; flex-direction: column; gap: 0.6rem; }
.expanded-author-row { display: flex; align-items: center; gap: 0.6rem; }
.expanded-author-row img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.expanded-author-meta { display: flex; flex-direction: column; }
.expanded-caption { font-size: 0.85rem; color: var(--text-primary); line-height: 1.6; }
.expanded-reactions-bar { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.expanded-comments-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-top: 0.3rem; }
.expanded-comments-box { max-height: 160px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; scrollbar-width: thin; }
.comment-item { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-ava { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-body { flex: 1; background: var(--bg-input); border-radius: var(--radius-md); padding: 0.4rem 0.6rem; }
.comment-author { font-size: 0.72rem; font-weight: 700; display: block; color: var(--text-secondary); }
.comment-text   { font-size: 0.8rem; color: var(--text-primary); }
.comment-ts     { font-size: 0.65rem; color: var(--text-dim); display: block; margin-top: 2px; }
.add-echo-form  { display: flex; gap: 0.5rem; }
.echo-input { flex: 1; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 0.5rem 0.85rem; color: var(--text-primary); font-size: 16px; outline: none; transition: border-color 0.2s; }
.echo-input:focus { border-color: var(--brand-primary); }
.echo-send { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-primary); border: none; display: flex; align-items: center; justify-content: center; cursor: none; transition: transform 0.15s var(--ease-spring); flex-shrink: 0; }
.echo-send svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; }
.echo-send:hover { transform: scale(1.1); }
.freq-badge { font-size: 0.7rem; font-weight: 700; }

/* ===== STORY VIEWER ===== */
#signal-viewer {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center;
}
#signal-viewer.open { display: flex; }
#signal-viewer-container { position: relative; width: 100%; max-width: 420px; max-height: 100vh; }
.sv-progress-strip { display: flex; gap: 4px; padding: 0.8rem 1rem 0.4rem; position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.sv-prog { flex: 1; height: 3px; background: rgba(255,255,255,0.25); border-radius: 2px; }
.sv-prog.done { background: #fff; }
.sv-prog.active { background: rgba(255,255,255,0.5); animation: svProgAnim 5s linear forwards; }
@keyframes svProgAnim { from{background-size:0% 100%} to{background: #fff;} }
.sv-top { position: absolute; top: 2rem; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 0.6rem; padding: 0 1rem; }
.sv-author-ava { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }
.sv-author { font-size: 0.88rem; font-weight: 700; color: #fff; }
.sv-time { font-size: 0.7rem; color: rgba(255,255,255,0.6); }
.sv-close { background: none; border: none; font-size: 1.5rem; color: #fff; margin-left: auto; cursor: none; }
.sv-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: none; transition: background 0.2s; }
.sv-nav svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; }
.sv-nav:hover { background: rgba(255,255,255,0.2); }
.sv-nav.prev { left: 0.5rem; }
.sv-nav.next { right: 0.5rem; }
.sv-media-box { width: 100%; height: 100vh; }
.sv-media-img { width: 100%; height: 100%; object-fit: contain; }
.sv-footer { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; padding: 1rem; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); display: flex; align-items: center; justify-content: space-between; }
.sv-caption { font-size: 0.85rem; font-weight: 600; color: #fff; flex: 1; }
.sv-dl-btn { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-full); padding: 0.4rem 0.9rem; color: #fff; font-size: 0.75rem; cursor: none; display: flex; align-items: center; gap: 0.3rem; }
.sv-dl-btn svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ===== GAMES SECTION ===== */
#view-games { padding-top: 0.5rem; }

.game-lobby {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s var(--ease-spring);
  display: flex;
  flex-direction: column;
}
.game-card:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-3px); }

.game-card-preview {
  height: 130px;
  background: #050510;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.game-card-preview canvas { border-radius: 0; }

.memory-preview {
  background: linear-gradient(135deg, #0d0d1a, #11121f);
}
.mem-preview-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.mem-prev-cell {
  width: 50px; height: 50px;
  background: rgba(124,58,237,0.2);
  border: 1.5px solid rgba(124,58,237,0.4);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: transparent;
}
.mem-prev-cell.flipped { color: inherit; }

.reaction-preview {
  background: linear-gradient(135deg, #0a1628, #0d0d1a);
}
.reaction-preview-circle {
  width: 80px; height: 80px; border-radius: 50%;
  background: #16a34a;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: #fff;
  box-shadow: 0 0 30px rgba(22,163,74,0.5);
}
.pulse-anim { animation: pulseGlow 1.5s ease-in-out infinite; }
@keyframes pulseGlow {
  0%,100% { transform: scale(1); box-shadow: 0 0 20px rgba(22,163,74,0.4); }
  50%      { transform: scale(1.08); box-shadow: 0 0 40px rgba(22,163,74,0.7); }
}

.game-card-info { padding: 1rem; flex: 1; }
.game-card-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.game-card-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.6rem; }
.game-card-meta { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.game-badge { background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.25); color: var(--neon-purple); border-radius: var(--radius-full); padding: 0.2rem 0.55rem; font-size: 0.68rem; font-weight: 600; }

.btn-play-game {
  background: var(--grad-main); border: none;
  color: #fff; font-size: 0.85rem; font-weight: 700;
  padding: 0.7rem; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  width: 100%; cursor: none;
  transition: box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(124,58,237,0.3);
}
.btn-play-game:hover { box-shadow: 0 6px 20px rgba(124,58,237,0.5); }

/* Game Active Area */
.game-area {
  display: flex; flex-direction: column; gap: 1rem;
  margin-top: 0.5rem;
}

.game-header-bar {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 0.7rem 1rem;
  flex-wrap: wrap;
}
.game-hud { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 60px; }
.hud-label { font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.hud-val   { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--neon-amber); }

.btn-quit-game {
  background: rgba(236,72,153,0.12); border: 1px solid rgba(236,72,153,0.25);
  color: var(--neon-pink); font-size: 0.78rem; font-weight: 700;
  padding: 0.4rem 0.8rem; border-radius: var(--radius-md); cursor: none;
  transition: all 0.2s; margin-top: 0.5rem;
}
.btn-quit-game:hover { background: rgba(236,72,153,0.2); }

.game-canvas-wrap {
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
}
#game-canvas {
  display: block;
  width: 100%; max-width: 600px;
  height: auto;
  border-radius: var(--radius-md);
  touch-action: none;
}
.game-controls-hint { font-size: 0.72rem; color: var(--text-dim); padding: 0.5rem 1rem 0.8rem; text-align: center; }

/* Memory Game Board */
.memory-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px; padding: 1.2rem;
  width: 100%;
}
.memory-card {
  aspect-ratio: 1;
  cursor: none; perspective: 600px;
}
.card-inner {
  width: 100%; height: 100%;
  position: relative; transform-style: preserve-3d;
  transition: transform 0.4s;
}
.memory-card.flipped .card-inner, .memory-card.matched .card-inner { transform: rotateY(180deg); }
.card-front, .card-back {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  backface-visibility: hidden;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  border: 2px solid var(--border);
  font-weight: 700;
}
.card-front { background: rgba(124,58,237,0.15); color: var(--brand-primary); }
.card-back  { background: rgba(6,182,212,0.1); transform: rotateY(180deg); border-color: rgba(6,182,212,0.3); }
.memory-card.matched .card-back { background: rgba(16,185,129,0.15); border-color: var(--neon-green); box-shadow: 0 0 12px rgba(16,185,129,0.3); }

/* Reaction Game */
.reaction-game-area { min-height: 320px; }
.reaction-target-area {
  width: 100%; min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  position: relative; padding: 1rem;
}
.reaction-instructions { text-align: center; }
.reaction-instructions h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.5rem; }
.reaction-instructions p  { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1rem; }
.reaction-target {
  width: 120px; height: 120px; border-radius: 50%;
  background: #16a34a;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: #fff;
  cursor: none;
  animation: targetAppear 0.15s var(--ease-spring);
  box-shadow: 0 0 40px rgba(22,163,74,0.6);
}
@keyframes targetAppear { from { transform: scale(0); } to { transform: scale(1); } }
.reaction-result {
  position: absolute; top: 10px;
  font-size: 0.85rem; font-weight: 700;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 0.4rem 0.9rem;
  animation: fadeInDown 0.3s ease-out;
}
.result-good { color: var(--neon-green); border-color: rgba(16,185,129,0.4); }
.result-bad  { color: var(--neon-pink);  border-color: rgba(236,72,153,0.4); }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Game Over Screen */
.game-over-screen {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg);
  z-index: 10;
}
.game-over-box {
  text-align: center; padding: 2rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  animation: scaleIn 0.4s var(--ease-spring);
}
@keyframes scaleIn { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.game-over-icon  { font-size: 3rem; margin-bottom: 0.5rem; }
.game-over-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; margin-bottom: 0.5rem; }
.game-over-score { font-size: 1rem; color: var(--text-secondary); margin-bottom: 0.4rem; }
.game-over-pts   { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.go-pts-highlight{ color: var(--neon-amber); font-weight: 800; font-size: 1.1rem; }
.game-over-btns  { display: flex; flex-direction: column; gap: 0.5rem; }

/* ===== ADMIN PANEL & FULLSCREEN PORTAL STYLING ===== */
.admin-portal-fullscreen {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(circle at 10% 20%, #070715 0%, #03030a 90%);
  padding: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
}
.adm-tabs-row {
  display: flex;
  gap: 0.6rem;
  padding: 0 0.5rem;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
}
.adm-tabs-row::-webkit-scrollbar {
  display: none;
}

/* Header */
.adm-fullscreen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(13, 13, 26, 0.65);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 1rem 1.8rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), var(--glow-purple);
  flex-shrink: 0;
}
.adm-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.adm-logo-shield {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.8));
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.adm-header-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 40%, var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.adm-header-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.adm-header-subtitle::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}
.adm-header-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.adm-operator-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
}
.adm-operator-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--neon-cyan);
}
.adm-operator-details {
  display: flex;
  flex-direction: column;
}
.adm-operator-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}
.adm-operator-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.adm-btn-fullscreen-logout {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  color: #f87171;
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s var(--ease-spring);
  cursor: none;
}
.adm-btn-fullscreen-logout svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.adm-btn-fullscreen-logout:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
  transform: translateY(-1px);
}

/* Fullscreen Grid Layout */
.adm-fullscreen-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1.1fr;
  gap: 1.5rem;
  flex: 1;
}
@media (max-width: 1100px) {
  .adm-fullscreen-layout {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .adm-fullscreen-layout {
    grid-template-columns: 1fr;
  }
}

.adm-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}
.adm-glass {
  background: rgba(13, 13, 26, 0.45);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  transition: border-color 0.3s;
  overflow-x: hidden;
}
.adm-glass:hover {
  border-color: rgba(124, 58, 237, 0.15);
}

/* UI Scrollbars */
.scroll-styled {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
  overflow-y: auto;
}
.scroll-styled::-webkit-scrollbar {
  width: 5px;
}
.scroll-styled::-webkit-scrollbar-track {
  background: transparent;
}
.scroll-styled::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
}

/* Search bar upgraded */
.adm-search-wrap {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.1rem 0.8rem;
  margin-bottom: 1rem;
  gap: 0.5rem;
}
.adm-search-icon {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.adm-search-wrap .adm-search {
  border: none;
  background: transparent;
  padding: 0.55rem 0;
  margin-bottom: 0;
  flex: 1;
}

/* User Card Custom adjustments */
.adm-user-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}
.adm-user-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.adm-user-core-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.adm-user-core-meta .adm-user-name {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.adm-user-core-meta .adm-user-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.adm-user-core-meta .adm-user-pts {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.admin-panel-wrap { display: flex; flex-direction: column; gap: 1rem; }
.adm-kpi-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.adm-kpi {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 0.8rem;
  text-align: center;
}
.adm-kpi.clickable {
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), border-color 0.2s, box-shadow 0.2s;
}
.adm-kpi.clickable:hover {
  transform: translateY(-3px);
}
.adm-kpi-val { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; }
.adm-kpi-lbl { font-size: 0.68rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.adm-kpi-blue   { border-color: rgba(6,182,212,0.3); }   .adm-kpi-blue .adm-kpi-val   { color: var(--neon-cyan); }
.adm-kpi-blue.clickable:hover { border-color: var(--neon-cyan); box-shadow: 0 0 15px rgba(6, 182, 212, 0.25); }
.adm-kpi-green  { border-color: rgba(16,185,129,0.3); }  .adm-kpi-green .adm-kpi-val  { color: var(--neon-green); }
.adm-kpi-green.clickable:hover { border-color: var(--neon-green); box-shadow: 0 0 15px rgba(16, 185, 129, 0.25); }
.adm-kpi-purple { border-color: rgba(124,58,237,0.3); }  .adm-kpi-purple .adm-kpi-val { color: var(--neon-purple); }
.adm-kpi-purple.clickable:hover { border-color: var(--neon-purple); box-shadow: 0 0 15px rgba(124, 58, 237, 0.25); }
.adm-kpi-amber  { border-color: rgba(245,158,11,0.3); }  .adm-kpi-amber .adm-kpi-val  { color: var(--neon-amber); }

.adm-section { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem; overflow-x: hidden; }
.adm-section-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.5rem; }
.adm-ann-composer { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.7rem; }
.adm-textarea { width: 100%; background: var(--bg-deep); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.6rem 0.8rem; color: var(--text-primary); font-size: 16px; resize: vertical; outline: none; font-family: var(--font-main); }
.adm-textarea:focus { border-color: var(--brand-primary); }
.adm-ann-list { display: flex; flex-direction: column; gap: 0.4rem; }
.adm-ann-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; background: rgba(245,158,11,0.07); border: 1px solid rgba(245,158,11,0.15); border-radius: var(--radius-md); padding: 0.5rem 0.7rem; }
.adm-ann-text { font-size: 0.8rem; color: var(--text-secondary); flex: 1; }
.adm-del-btn { background: none; border: none; color: var(--text-dim); cursor: none; font-size: 0.8rem; padding: 0.1rem 0.3rem; transition: color 0.2s; flex-shrink: 0; }
.adm-del-btn:hover { color: var(--neon-pink); }
.adm-search { width: 100%; background: var(--bg-deep); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.55rem 0.8rem; color: var(--text-primary); font-size: 16px; outline: none; margin-bottom: 0.7rem; }
.adm-search:focus { border-color: var(--brand-primary); }
.adm-user-list { display: flex; flex-direction: column; gap: 0.6rem; max-height: 400px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.adm-user-card.suspended { border-color: rgba(239,68,68,0.25); background: rgba(239,68,68,0.05); }
.adm-ava { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1.5px solid var(--border); }
.adm-user-name { font-size: 0.83rem; font-weight: 700; display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }
.adm-user-sub  { font-size: 0.72rem; color: var(--text-dim); margin-top: 2px; }
.adm-user-pts  { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.adm-badge { font-size: 0.62rem; padding: 0.1rem 0.45rem; border-radius: var(--radius-full); font-weight: 700; white-space: nowrap; }
.adm-badge.admin     { background: rgba(245,158,11,0.15); color: var(--neon-amber); }
.adm-badge.active    { background: rgba(16,185,129,0.12); color: var(--neon-green); }
.adm-badge.suspended { background: rgba(239,68,68,0.12); color: #f87171; }
.adm-badge.post      { background: rgba(124,58,237,0.12); color: var(--neon-purple); }
.adm-badge.story     { background: rgba(6,182,212,0.12); color: var(--neon-cyan); }
.adm-user-sub {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.adm-user-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.adm-btn { padding: 0.3rem 0.6rem; border-radius: var(--radius-md); font-size: 0.72rem; font-weight: 600; border: none; cursor: none; transition: all 0.15s; white-space: normal; word-break: break-word; }
.adm-btn-primary   { background: var(--brand-primary); color: #fff; }
.adm-btn-primary:hover { background: #6d28d9; }
.adm-btn-sm        { background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text-muted); font-size: 0.68rem; padding: 0.2rem 0.5rem; margin-left: auto; }
.adm-btn-pts       { background: rgba(245,158,11,0.12); color: var(--neon-amber); border: 1px solid rgba(245,158,11,0.2); }
.adm-btn-warn      { background: rgba(251,146,60,0.12); color: #fb923c; border: 1px solid rgba(251,146,60,0.2); }
.adm-btn-reset     { background: rgba(6,182,212,0.12); color: var(--neon-cyan); border: 1px solid rgba(6,182,212,0.2); }
.adm-btn-suspend   { background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.adm-btn-reactivate{ background: rgba(16,185,129,0.1); color: var(--neon-green); border: 1px solid rgba(16,185,129,0.2); }
.adm-btn-delete    { background: rgba(239,68,68,0.08); color: #f87171; border: 1px solid rgba(239,68,68,0.15); }
.adm-btn:hover     { opacity: 0.85; transform: scale(0.97); }
.adm-empty { color: var(--text-dim); font-size: 0.78rem; text-align: center; padding: 0.8rem; }

.adm-content-list { display: flex; flex-direction: column; gap: 0.5rem; max-height: 300px; overflow-y: auto; overflow-x: hidden; }
.adm-content-item { display: flex; align-items: center; gap: 0.6rem; background: var(--bg-deep); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.6rem; overflow-x: hidden; }
.adm-content-thumb { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.adm-content-info { flex: 1; min-width: 0; }
.adm-content-author { font-size: 0.78rem; font-weight: 700; display: flex; align-items: center; gap: 0.3rem; }
.adm-content-caption { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.adm-log-box { max-height: 200px; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 0.2rem; background: var(--bg-deep); border-radius: var(--radius-md); padding: 0.6rem; font-family: var(--font-mono); font-size: 0.7rem; }
.adm-log-line { display: flex; gap: 0.5rem; line-height: 1.5; white-space: normal; word-break: break-word; }
.adm-log-ts   { color: var(--text-dim); flex-shrink: 0; }
.adm-log-success { color: var(--neon-green); }
.adm-log-alert   { color: #f87171; }
.adm-log-system  { color: var(--text-secondary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  #nexus-main    { padding: 0.8rem 0.6rem 7rem; }
  .login-box     { padding: 2rem 1.3rem; }
  #nexus-topbar  { padding: 0.6rem 0.8rem; }
  .topbar-user-text { display: none; }
  .post-card-header { padding: 0.7rem 0.7rem 0.5rem; }
  .post-caption  { padding: 0.6rem 0.7rem 0.3rem; }
  .post-action-bar { padding: 0.3rem 0.5rem 0.4rem; }
  .memory-board  { gap: 6px; padding: 0.8rem; }
  .game-header-bar { gap: 0.4rem; padding: 0.6rem 0.7rem; }
  .hud-val { font-size: 0.9rem; }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .adm-kpi-row   { grid-template-columns: repeat(2, 1fr); }
  .expanded-post-layout { grid-template-columns: 1fr; }
  .profile-stats-row { gap: 0.8rem; }
}

/* ========================================================
   ELLIECHAT PREMIUM DESKTOP UPGRADES
   ======================================================== */

/* 1. Desktop 3-Column Layout for Home Feed */
.feed-sidebar-left,
.feed-sidebar-right {
  display: none; /* Hidden on mobile/tablet by default */
}

@media (min-width: 1024px) {
  /* Expand main container on desktop */
  #nexus-main {
    max-width: 1240px !important;
    width: 100%;
    padding: 1.5rem 1.5rem 7rem !important;
  }

  #view-feed {
    display: grid !important;
    grid-template-columns: 260px 1fr 290px;
    gap: 1.5rem;
    align-items: start;
    width: 100%;
  }

  .feed-sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: sticky;
    top: 90px;
    z-index: 10;
  }

  .feed-sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: sticky;
    top: 90px;
    z-index: 10;
  }

  .feed-main-col {
    min-width: 0;
    width: 100%;
  }
}

/* 2. Sleek Sidebar Widgets Styles */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.25s var(--ease-smooth);
}
.sidebar-widget:hover {
  border-color: rgba(124, 58, 237, 0.15);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Left Sidebar Profile Widget */
.profile-card-widget {
  text-align: center;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.05) 0%, rgba(13, 13, 26, 0.4) 100%);
}
.widget-profile-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--brand-primary);
  overflow: hidden;
  margin: 0 auto 0.6rem;
  box-shadow: var(--glow-purple);
}
.widget-profile-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.widget-profile-dname {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}
.widget-profile-handle {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
.widget-profile-pts {
  font-size: 0.8rem;
  color: var(--neon-amber);
  font-weight: 700;
  margin-top: 0.4rem;
}
.widget-profile-rank {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Left Sidebar Navigation Menu */
.nav-widget {
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.sidebar-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: none;
  text-align: left;
  transition: all 0.2s;
}
.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  transform: translateX(3px);
}
.sidebar-nav-item.active {
  background: rgba(124, 58, 237, 0.12);
  color: var(--neon-purple);
  border-left: 3px solid var(--brand-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding-left: 0.6rem;
}

/* Right Sidebar suggested creators list */
.widget-hdr-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}
.widget-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.widget-follow-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0;
}
.follow-item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.follow-item-ava {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.follow-item-dname {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 120px;
}
.follow-item-handle {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100px;
}
.widget-follow-btn {
  padding: 0.25rem 0.65rem;
  font-size: 0.68rem;
  border-radius: var(--radius-full);
}

/* Right Sidebar Arcade button style */
.sidebar-arcade-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-arcade-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: none;
  text-align: left;
  transition: all 0.2s;
}
.sidebar-arcade-btn:hover {
  border-color: var(--brand-accent);
  background: rgba(6, 182, 212, 0.06);
  transform: translateY(-1px);
}

/* Right Sidebar Broadcaster widget */
.sidebar-ann-card {
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.7rem;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* 3. Gorgeous Tabbed Admin Overrides */
.adm-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  white-space: nowrap;
  flex-shrink: 0;
}
.adm-tab-btn.active {
  background: var(--brand-primary) !important;
  color: #fff !important;
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 15px rgba(124,58,237,0.3) !important;
}
.adm-unified-header .adm-tabs-row {
  margin: 0;
  padding: 0;
}

.adm-fullscreen-layout-overview {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.5rem;
}
.adm-fullscreen-layout-users,
.adm-fullscreen-layout-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.adm-fullscreen-layout-settings {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .adm-fullscreen-layout-overview,
  .adm-fullscreen-layout-settings {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   ADMIN & MAIN APP RESPONSIVE
   ========================================== */

/* Admin page: mobile header stacks */
@media (max-width: 640px) {
  .admin-portal-fullscreen {
    padding: 0.8rem;
    gap: 0.8rem;
  }
  .adm-fullscreen-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
  }
  .adm-header-right {
    width: 100%;
    justify-content: space-between;
  }
  .adm-operator-pill { flex: 1; }

  /* Admin grids — single column */
  .adm-fullscreen-layout,
  .adm-fullscreen-layout-overview,
  .adm-fullscreen-layout-settings {
    grid-template-columns: 1fr !important;
    gap: 0.8rem;
  }

  /* Admin tab bar: well-organized grid on mobile */
  .adm-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    overflow-x: visible;
    padding-bottom: 0;
  }
  .adm-tab-btn {
    flex: 1 1 calc(50% - 0.25rem);
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 0.6rem 0.5rem;
  }

  /* KPI row: 2-col stays fine */
  .adm-kpi-row { grid-template-columns: repeat(2, 1fr); }

  /* User list: no max-height on mobile */
  .adm-user-list { max-height: none; }
}

/* Main app topbar: hide username text on mobile */
@media (max-width: 480px) {
  .topbar-user-text { display: none; }
  .topbar-avatar-pill { padding: 0.25rem; }
  #nexus-topbar { padding: 0.6rem 0.8rem; }

  /* Stories bar: smaller orbs */
  .signal-orb, .signal-orb-add { width: 48px; height: 48px; }

  /* Post cards: slightly tighter */
  .post-card-header { padding: 0.65rem 0.8rem 0.45rem; }
  .post-caption     { padding: 0.65rem 0.8rem 0.3rem; }

  /* Dock: narrower padding */
  #nexus-dock { padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom, 0px)); }
  .dock-btn { min-width: 44px; padding: 0.4rem 0.5rem; }

  /* Explore grid: 2 col on small screens */
  .explore-grid { grid-template-columns: repeat(2, 1fr); }

  /* Game lobby: single column */
  .game-lobby { grid-template-columns: 1fr !important; }

  /* Sidebar widgets: hidden on mobile (sidebar-left/right) */
  .feed-sidebar-left,
  .feed-sidebar-right { display: none !important; }
}
