/* ═══════════════════════════════════════════
   RBXTRADE — Design System Gamer Premium
   ═══════════════════════════════════════════ */

:root {
  --bg: #09090B;
  --bg-elevated: #0C0C0F;
  --card: #111827;
  --card-hover: #1a2332;
  --border: #1F2937;
  --border-light: #374151;
  --neon-green: #00FF87;
  --neon-green-dim: #00cc6a;
  --neon-purple: #A855F7;
  --neon-purple-dim: #7c3aed;
  --accent: #22C55E;
  --text: #F9FAFB;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;
  --success: #22C55E;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-neon: 0 0 20px rgba(0, 255, 135, 0.25);
  --shadow-purple: 0 0 20px rgba(168, 85, 247, 0.25);
  --glass: rgba(17, 24, 39, 0.75);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Orbitron', 'Inter', sans-serif;
  --nav-h: 64px;
  --mobile-nav-h: 64px;
  --sidebar-w: 260px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(168, 85, 247, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(0, 255, 135, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(168, 85, 247, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ── Layout ── */
.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Typography ── */
.font-display { font-family: var(--font-display); letter-spacing: 0.02em; }

.text-neon { color: var(--neon-green); }
.text-purple { color: var(--neon-purple); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.gradient-text {
  background: linear-gradient(135deg, var(--neon-green), #67e8f9 50%, var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.logo span { color: var(--neon-green); }
.logo .x { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(0, 255, 135, 0.08);
}

.nav-link.active { color: var(--neon-green); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.robux-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: rgba(0, 255, 135, 0.1);
  border: 1px solid rgba(0, 255, 135, 0.25);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--neon-green);
}

.avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color var(--transition);
}

.avatar-btn:hover { border-color: var(--neon-green); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
}

.btn-nav-login {
  border-color: rgba(55, 65, 81, 0.9);
  background: transparent;
}

.btn-nav-login:hover {
  border-color: rgba(0, 255, 135, 0.35);
  background: rgba(0, 255, 135, 0.06);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-green), #00d96e);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 135, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0, 255, 135, 0.5), inset 0 1px 0 rgba(255,255,255,0.25);
  filter: brightness(1.05);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--neon-purple);
  background: rgba(168, 85, 247, 0.1);
  box-shadow: var(--shadow-purple);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
}

.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }

.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.btn-lg { padding: 0.9rem 1.8rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2.2rem; font-size: 1.05rem; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  transition: all var(--transition);
}

.btn-icon:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: var(--shadow-neon);
}

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all var(--transition);
}

.card-glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
}

.card-hover:hover {
  border-color: rgba(0, 255, 135, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow), 0 0 24px rgba(0, 255, 135, 0.08);
}

/* ── Forms ── */
.input,
.select,
.textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  background: #0a0e16;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 0 3px rgba(0, 255, 135, 0.12);
}

.input::placeholder,
.textarea::placeholder { color: var(--text-dim); }

.textarea { resize: vertical; min-height: 100px; }

.search-wrap {
  position: relative;
}

.search-wrap .search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  font-size: 0.9rem;
}

.search-wrap .input { padding-left: 2.5rem; }

.label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group { margin-bottom: 1rem; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-green { background: rgba(0,255,135,0.15); color: var(--neon-green); }
.badge-purple { background: rgba(168,85,247,0.15); color: var(--neon-purple); }
.badge-blue { background: rgba(59,130,246,0.15); color: #60A5FA; }
.badge-yellow { background: rgba(245,158,11,0.15); color: #FBBF24; }
.badge-red { background: rgba(239,68,68,0.15); color: #F87171; }
.badge-gray { background: rgba(156,163,175,0.15); color: #9CA3AF; }

/* ── Notificaciones (campana) ── */
.notif-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.notif-bell {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
}

.notif-bell:hover {
  color: var(--neon-green);
  border-color: rgba(0, 255, 135, 0.4);
  box-shadow: var(--shadow-neon);
}

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  line-height: 1;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(340px, 92vw);
  max-height: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.notif-dropdown-list {
  overflow-y: auto;
  flex: 1;
}

.notif-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border: none;
  border-bottom: 1px solid rgba(31, 41, 55, 0.5);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background var(--transition);
}

.notif-item:hover {
  background: rgba(0, 255, 135, 0.06);
}

.notif-item.unread {
  background: rgba(0, 255, 135, 0.08);
  border-left: 3px solid var(--neon-green);
}

.notif-item-title {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.notif-item-body {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.notif-item-time {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.notif-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.item-card-type {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: capitalize;
}

/* ── Utility visibility ── */
.desktop-only { display: inline-flex; }
.mobile-only { display: none; }

/* ── Buttons extras (landing) ── */
.btn-outline-dark {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(55, 65, 81, 0.95);
  box-shadow: none;
}

.btn-outline-dark:hover {
  border-color: rgba(0, 255, 135, 0.45);
  background: rgba(0, 255, 135, 0.06);
  color: var(--text);
}

.btn-cta-main {
  gap: 0.55rem;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 2.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  min-height: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 255, 135, 0.08);
  border: 1px solid rgba(0, 255, 135, 0.28);
  color: var(--neon-green);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px rgba(0, 255, 135, 0.8);
  flex-shrink: 0;
}

.hero-badge-check {
  color: var(--neon-green);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5.2vw, 3.65rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
}

.hero-title .line-green {
  color: var(--neon-green);
  text-shadow: 0 0 40px rgba(0, 255, 135, 0.45);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 1.35rem;
  line-height: 1.65;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  margin-bottom: 1.75rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-feature-icon {
  color: var(--neon-green);
  display: inline-flex;
  flex-shrink: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hero-avatars {
  display: flex;
  align-items: center;
}

.hero-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #0a0a0c;
  margin-left: -8px;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(0, 255, 135, 0.15);
}

.hero-avatar:first-child { margin-left: 0; }

.hero-social-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stars {
  display: flex;
  gap: 2px;
  line-height: 1;
}

.hero-trust {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero product card */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}

.hero-product {
  position: relative;
  width: min(100%, 380px);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.hero-product-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 135, 0.35) 0%, rgba(0, 255, 135, 0.08) 45%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite;
  z-index: 0;
}

.hero-product-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 320px;
  padding: 1.25rem 1.15rem 1.35rem;
  border-radius: 22px;
  background:
    linear-gradient(165deg, rgba(18, 28, 40, 0.95) 0%, rgba(8, 12, 18, 0.98) 100%);
  border: 1px solid rgba(0, 255, 135, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 255, 135, 0.06),
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 50px rgba(0, 255, 135, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: center;
  transform: perspective(900px) rotateY(-6deg) rotateX(4deg);
  animation: float 4s ease-in-out infinite;
}

.hero-product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 255, 135, 0.12);
  border: 1px solid rgba(0, 255, 135, 0.35);
  color: var(--neon-green);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.hero-product-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin-bottom: 0.5rem;
}

.hero-product-img {
  width: min(100%, 220px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(0, 255, 135, 0.35));
  border-radius: 12px;
  z-index: 1;
}

.hero-hex {
  position: absolute;
  z-index: 2;
  opacity: 0.95;
  filter: drop-shadow(0 0 10px rgba(0, 255, 135, 0.45));
  animation: float 3.2s ease-in-out infinite;
}

.hero-hex-left {
  left: -6px;
  top: 28%;
  animation-delay: -0.6s;
}

.hero-hex-right {
  right: -6px;
  top: 42%;
  animation-delay: -1.4s;
}

.hero-product-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
  margin: 0.35rem 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
}

.hero-product-plus {
  color: var(--neon-green);
  font-size: 1.35rem;
}

.hero-product-value {
  color: var(--neon-green);
  font-size: 2rem;
  text-shadow: 0 0 20px rgba(0, 255, 135, 0.4);
}

.hero-product-unit {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-product-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 255, 135, 0.1);
  border: 1px solid rgba(0, 255, 135, 0.3);
  color: var(--neon-green);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-product-base {
  position: relative;
  z-index: 1;
  width: 70%;
  height: 18px;
  margin-top: -4px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 255, 135, 0.55) 0%, rgba(0, 255, 135, 0.12) 45%, transparent 70%);
  filter: blur(6px);
  box-shadow: 0 0 40px rgba(0, 255, 135, 0.35);
}

/* Stats cards */
.stats-cards {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem 1.1rem;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.85), rgba(10, 14, 22, 0.9));
  border: 1px solid rgba(31, 41, 55, 0.95);
  border-radius: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  border-color: rgba(0, 255, 135, 0.3);
  box-shadow: 0 0 24px rgba(0, 255, 135, 0.08);
}

.stat-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--neon-green);
  background: rgba(0, 255, 135, 0.1);
  border: 1px solid rgba(0, 255, 135, 0.22);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.1rem;
  line-height: 1.15;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.stat-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.3;
}

/* ── Sections ── */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-sub {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.section-header-games {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  gap: 1rem;
}

.section-header-games .section-sub {
  margin: 0.35rem 0 0;
}

.games-see-all {
  color: var(--neon-green);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  align-items: center;
}

.games-see-all:hover { text-decoration: underline; }

.games-see-all-wrap {
  margin-top: 1.25rem;
}

/* How it works — flow */
.section-how {
  padding-top: 2rem;
}

.steps-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.75rem;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

.step-item {
  position: relative;
  text-align: center;
  padding: 1.75rem 1.25rem 1.5rem;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.7), rgba(10, 14, 22, 0.85));
  border: 1px solid rgba(31, 41, 55, 0.9);
  border-radius: 18px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.step-item:hover {
  border-color: rgba(0, 255, 135, 0.3);
  box-shadow: 0 0 28px rgba(0, 255, 135, 0.07);
}

.step-num-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--neon-green), #00d96e);
  color: #04140c;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 0 16px rgba(0, 255, 135, 0.4);
}

.step-icon-box {
  width: 64px;
  height: 64px;
  margin: 0.5rem auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--neon-green);
  background: rgba(0, 255, 135, 0.08);
  border: 1px solid rgba(0, 255, 135, 0.2);
}

.step-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-top: 2rem;
  color: var(--neon-green);
  opacity: 0.55;
}

.step-connector span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px rgba(0, 255, 135, 0.5);
}

.step-connector span:nth-child(2) { opacity: 0.7; }
.step-connector span:nth-child(3) { opacity: 0.4; }

/* Games grid */
.section-games {
  background: rgba(17, 24, 39, 0.28);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  background: linear-gradient(180deg, #121a28, #0c121c);
  border: 1px solid rgba(31, 41, 55, 0.95);
  border-radius: 16px;
}

.game-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0e16;
}

.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  border: none;
  margin: 0;
  transition: transform 0.35s ease;
}

.game-card:hover .game-card-img {
  transform: scale(1.05);
}

.game-card-body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.game-card-name {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0;
  line-height: 1.25;
}

.game-card-count {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.55rem;
}

.game-card-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 135, 0.35);
  color: var(--neon-green);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(0, 255, 135, 0.06);
  transition: all var(--transition);
}

.game-card:hover .game-card-btn {
  background: rgba(0, 255, 135, 0.14);
  box-shadow: 0 0 14px rgba(0, 255, 135, 0.15);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.review-card {
  padding: 1.35rem 1.2rem;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.85), rgba(10, 14, 22, 0.95));
  border: 1px solid rgba(31, 41, 55, 0.95);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.review-card:hover {
  border-color: rgba(0, 255, 135, 0.28);
  box-shadow: 0 0 24px rgba(0, 255, 135, 0.06);
}

.review-stars {
  color: #FBBF24;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(0, 255, 135, 0.2);
}

.review-name {
  font-weight: 700;
  font-size: 0.875rem;
}

.review-role {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.reviews-dots {
  display: none;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.reviews-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.reviews-dots span.active {
  background: var(--neon-green);
  box-shadow: 0 0 8px rgba(0, 255, 135, 0.5);
}

/* CTA banner */
.section-cta-final {
  padding-top: 1rem;
  padding-bottom: 3.5rem;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(17, 28, 40, 0.95), rgba(10, 16, 24, 0.98));
  border: 1px solid rgba(0, 255, 135, 0.22);
  box-shadow: 0 0 40px rgba(0, 255, 135, 0.08);
}

.cta-banner-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.cta-banner-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--neon-green);
  background: rgba(0, 255, 135, 0.1);
  border: 1px solid rgba(0, 255, 135, 0.28);
  box-shadow: 0 0 18px rgba(0, 255, 135, 0.15);
}

.cta-banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.cta-banner-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Legacy aliases (otras páginas / admin) */
.stats-bar { margin-top: 2.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-item { text-align: center; padding: 0.5rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step-card { text-align: center; padding: 2rem 1.5rem; position: relative; }
.step-num {
  width: 56px; height: 56px; margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,255,135,0.2), rgba(168,85,247,0.2));
  border: 2px solid var(--neon-green);
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--neon-green); box-shadow: var(--shadow-neon);
}
.step-arrow { display: none; }
.advantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.advantage-card { padding: 1.5rem; text-align: center; }
.advantage-icon {
  width: 48px; height: 48px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: rgba(0, 255, 135, 0.1);
  border: 1px solid rgba(0, 255, 135, 0.2);
  font-size: 1.4rem; color: var(--neon-green);
}
.advantage-title { font-weight: 700; margin-bottom: 0.35rem; }
.advantage-desc { font-size: 0.85rem; color: var(--text-muted); }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--neon-green); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-grid-landing {
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.6);
  color: var(--text-muted) !important;
  padding: 0 !important;
  transition: all var(--transition);
}

.footer-social-btn:hover {
  color: var(--neon-green) !important;
  border-color: rgba(0, 255, 135, 0.4);
  box-shadow: 0 0 14px rgba(0, 255, 135, 0.15);
}

.footer-secure {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-dim);
}

/* ── Nav pill (estilo captura) ── */
.navbar-inner {
  position: relative;
}

.nav-links-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: 0.35rem;
  display: flex;
  align-items: center;
}

.nav-link.nav-pill.active,
.nav-link.active.nav-pill {
  background: linear-gradient(135deg, var(--neon-green), #00d96e);
  color: #04140c !important;
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(0, 255, 135, 0.35);
}

.nav-link.nav-pill.active:hover {
  filter: brightness(1.05);
}

/* Landing: Inicio activo como texto verde (no pill) */
.page-landing .nav-link.active:not(.nav-pill) {
  color: var(--neon-green);
  background: transparent;
  font-weight: 600;
}

.page-landing .nav-link.active:not(.nav-pill):hover {
  background: rgba(0, 255, 135, 0.08);
}

/* ── Sell page (diseño premium 3 columnas) ── */
.sell-page-wrap {
  padding: 1.25rem 1.5rem 2rem;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.sell-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 280px;
  gap: 1rem;
  min-height: calc(100vh - var(--nav-h) - 2.5rem);
  align-items: stretch;
}

.sell-panel {
  background: linear-gradient(180deg, #121a28 0%, #0e141f 100%);
  border: 1px solid rgba(55, 65, 81, 0.85);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.sell-panel-header {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.sell-panel-header .num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 255, 135, 0.12);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 135, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.sell-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.65rem 0.75rem;
}

.sell-games-panel .search-wrap {
  margin: 0.75rem 0.75rem 0.35rem;
}

.game-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  margin-bottom: 0.3rem;
}

.game-list-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.game-list-item.active {
  background: rgba(0, 255, 135, 0.08);
  border-color: rgba(0, 255, 135, 0.4);
  box-shadow: 0 0 0 1px rgba(0, 255, 135, 0.08), inset 0 0 20px rgba(0, 255, 135, 0.04);
}

.game-list-item img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.game-list-item .name {
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Items grid */
.items-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  align-items: center;
}

.items-toolbar .search-wrap { flex: 1; min-width: 160px; }

.filter-select {
  padding: 0.55rem 0.85rem;
  background: #0a0e16;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 100px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239CA3AF' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  padding-right: 1.75rem;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 0.85rem;
  padding: 1rem;
}

.item-card {
  background: #0a0e16;
  border: 1px solid rgba(31, 41, 55, 0.95);
  border-radius: 14px;
  padding: 0.9rem 0.75rem 0.75rem;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.item-card:hover {
  border-color: rgba(0, 255, 135, 0.35);
  box-shadow: 0 0 20px rgba(0, 255, 135, 0.08);
  transform: translateY(-1px);
}

.item-card.selected {
  border-color: var(--neon-green);
  box-shadow: 0 0 22px rgba(0, 255, 135, 0.18);
  background: rgba(0, 255, 135, 0.04);
}

.item-card-img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 0.35rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.item-card-name {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2em;
}

.item-card-type {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: capitalize;
}

.item-card-price {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--neon-green);
  margin: 0.15rem 0 0.25rem;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.qty-btn:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.qty-btn.plus {
  background: rgba(0, 255, 135, 0.15);
  border-color: rgba(0, 255, 135, 0.4);
  color: var(--neon-green);
}

.qty-btn.plus:hover {
  background: rgba(0, 255, 135, 0.28);
  box-shadow: 0 0 12px rgba(0, 255, 135, 0.25);
}

.qty-value {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.sell-price-note {
  padding: 0.7rem 1rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.15);
}

/* Summary */
.summary-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--text-dim);
  gap: 0.35rem;
}

.summary-empty .icon {
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.summary-empty .font-medium {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.summary-empty .text-sm {
  font-size: 0.78rem;
  max-width: 180px;
  line-height: 1.4;
}

.summary-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem;
  border-radius: 10px;
  margin-bottom: 0.3rem;
  background: #0a0e16;
  border: 1px solid rgba(31, 41, 55, 0.6);
  font-size: 0.8rem;
}

.summary-item img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.summary-item .info { flex: 1; min-width: 0; }
.summary-item .name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.summary-item .meta { color: var(--text-dim); font-size: 0.68rem; }
.summary-item .price {
  color: var(--neon-green);
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.8rem;
}

.summary-footer {
  padding: 1rem 1.15rem 1.15rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(0, 0, 0, 0.12);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.summary-total .label {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.summary-total .value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--neon-green);
}

.summary-footer .btn-primary {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.summary-note {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.55rem;
  line-height: 1.4;
}

/* ── Chat page (mismo lenguaje visual) ── */
.chat-page-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 1.5rem 1.5rem;
  width: 100%;
}

.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - var(--nav-h) - 2rem);
  min-height: 520px;
  border: 1px solid rgba(55, 65, 81, 0.85);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #121a28 0%, #0e141f 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.chat-sidebar {
  background: transparent;
  border-right: 1px solid rgba(31, 41, 55, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.chat-sidebar-header {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.chat-sidebar-header h2 {
  font-size: 0.95rem;
  font-weight: 700;
}

.chat-list {
  flex: 1;
  overflow-y: auto;
}

.chat-list-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(31, 41, 55, 0.45);
  transition: background var(--transition);
  border-left: 3px solid transparent;
}

.chat-list-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.chat-list-item.active {
  background: rgba(0, 255, 135, 0.07);
  border-left-color: var(--neon-green);
}

.chat-list-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-list-info { flex: 1; min-width: 0; }
.chat-list-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}
.chat-list-name { font-weight: 600; font-size: 0.875rem; }
.chat-list-time { font-size: 0.7rem; color: var(--text-dim); flex-shrink: 0; }
.chat-list-preview {
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-list-badges {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.3rem;
  align-items: center;
}

.unread-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--neon-green);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.chat-main {
  display: flex;
  flex-direction: column;
  background: #090c12;
  min-width: 0;
}

.chat-header {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(18, 26, 40, 0.95);
}

.chat-header-info h3 { font-size: 0.95rem; font-weight: 700; }
.chat-header-info p { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.1rem; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(0, 255, 135, 0.03), transparent),
    radial-gradient(ellipse 50% 30% at 90% 100%, rgba(168, 85, 247, 0.04), transparent);
}

.msg {
  display: flex;
  gap: 0.65rem;
  max-width: 72%;
  animation: msg-in 0.25s ease;
}

.msg.own {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msg-bubble {
  background: #121a28;
  border: 1px solid rgba(31, 41, 55, 0.9);
  border-radius: 14px 14px 14px 4px;
  padding: 0.7rem 0.95rem;
}

.msg.own .msg-bubble {
  background: rgba(0, 255, 135, 0.1);
  border-color: rgba(0, 255, 135, 0.28);
  border-radius: 14px 14px 4px 14px;
}

.msg.system .msg-bubble {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.28);
}

.msg.system { max-width: 88%; align-self: center; }

.msg-sender {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--neon-purple);
  margin-bottom: 0.2rem;
}

.msg.own .msg-sender { color: var(--neon-green); }

.msg-content {
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  color: var(--text-dim);
  justify-content: flex-end;
}

.msg-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.msg-attachment {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 220px;
}

.msg-attachment img,
.msg-attachment video {
  max-width: 100%;
  max-height: 180px;
  display: block;
}

.msg-attachment-file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  font-size: 0.8rem;
}

.chat-input-area {
  padding: 0.9rem 1.15rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(18, 26, 40, 0.98);
}

.chat-input-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.chat-input-wrap { flex: 1; }

.chat-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #0a0e16;
  border: 1px solid var(--border);
  border-radius: 12px;
  resize: none;
  min-height: 46px;
  max-height: 120px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}

.chat-textarea:focus {
  border-color: rgba(0, 255, 135, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 255, 135, 0.08);
}

.chat-tools {
  display: flex;
  gap: 0.3rem;
}

.chat-tools .btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.chat-input-area .btn-primary {
  border-radius: 12px;
  min-width: 88px;
  height: 46px;
  font-weight: 700;
}

.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  gap: 0.5rem;
  padding: 2rem;
  text-align: center;
}

.chat-empty .font-medium {
  color: var(--text-muted);
  font-size: 1rem;
}

.chat-attach-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.chat-attach-preview-item {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.chat-attach-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-attach-preview-item .remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Auth ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 0.35rem;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.oauth-btns {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-oauth {
  width: 100%;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.75rem;
}

.btn-oauth:hover {
  border-color: var(--border-light);
  background: var(--card-hover);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-lg { max-width: 640px; }
.modal-xl { max-width: 800px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 { font-size: 1.05rem; font-weight: 700; }

.modal-body { padding: 1.25rem; }
.modal-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* ── Toast ── */
.toast-root {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 260px;
  max-width: 380px;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.28s ease;
}

.toast.toast-in { opacity: 1; transform: translateX(0); }
.toast.toast-out { opacity: 0; transform: translateX(20px); }

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.toast-success .toast-icon { background: rgba(34,197,94,0.2); color: var(--success); }
.toast-error .toast-icon { background: rgba(239,68,68,0.2); color: var(--danger); }
.toast-warning .toast-icon { background: rgba(245,158,11,0.2); color: var(--warning); }
.toast-info .toast-icon { background: rgba(59,130,246,0.2); color: var(--info); }

.toast-msg { flex: 1; font-size: 0.875rem; }
.toast-close {
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.15rem;
}
.toast-close:hover { color: var(--text); }

/* ── Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.4s ease infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text { height: 0.875rem; margin-bottom: 0.5rem; }
.skeleton-title { height: 1.25rem; width: 60%; margin-bottom: 0.75rem; }
.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
.skeleton-card { height: 140px; }

/* ── Mobile bottom nav ── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-h);
  background: rgba(7, 8, 12, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid #1a2230;
  z-index: 100;
  padding: 0 0.5rem;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-around;
  max-width: 480px;
  margin: 0 auto;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 1rem;
  color: #5c6578;
  font-size: 0.68rem;
  font-weight: 600;
  transition: color 0.15s;
}

.mobile-nav-item .ico {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-item.active {
  color: #00ff87;
}

.mobile-nav-item.active .ico svg {
  stroke: #00ff87;
  filter: drop-shadow(0 0 6px rgba(0, 255, 135, 0.45));
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ── Utilities ── */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.p-4 { padding: 1rem; }
.w-full { width: 100%; }
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-banner {
  background: linear-gradient(90deg, rgba(168,85,247,0.2), rgba(0,255,135,0.15));
  border-bottom: 1px solid rgba(168,85,247,0.3);
  padding: 0.4rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  position: relative;
  z-index: 101;
}

.demo-banner strong { color: var(--neon-green); }

/* Maintenance */
.maintenance-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}
