/* ======================================================
   ROOMS VC Public — Styles
   ====================================================== */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f17;
  --bg-card: #14141f;
  --bg-card-hover: #1a1a28;
  --bg-input: #0d0d14;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.1);
  --accent: #5865F2;
  --accent-hover: #4752c4;
  --teal: #00d4aa;
  --red: #ED4245;
  --yellow: #FEE75C;
  --green: #57F287;
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #334155;
  --radius: 12px;
  --radius-sm: 8px;
  --navbar-height: 64px;
}

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

/* ---- Design system ---- */
.glass {
  background: rgba(20,20,31,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glow-accent { box-shadow: 0 0 20px rgba(88,101,242,0.3); }
.glow-teal { box-shadow: 0 0 20px rgba(0,212,170,0.3); }
.glow-gold { box-shadow: 0 0 20px rgba(255,215,0,0.3); }

@keyframes staggerFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.stagger-enter > *:nth-child(1) { animation: staggerFadeIn 0.4s ease both; animation-delay: 0.05s; }
.stagger-enter > *:nth-child(2) { animation: staggerFadeIn 0.4s ease both; animation-delay: 0.1s; }
.stagger-enter > *:nth-child(3) { animation: staggerFadeIn 0.4s ease both; animation-delay: 0.15s; }
.stagger-enter > *:nth-child(4) { animation: staggerFadeIn 0.4s ease both; animation-delay: 0.2s; }
.stagger-enter > *:nth-child(5) { animation: staggerFadeIn 0.4s ease both; animation-delay: 0.25s; }
.stagger-enter > *:nth-child(6) { animation: staggerFadeIn 0.4s ease both; animation-delay: 0.3s; }
.stagger-enter > *:nth-child(7) { animation: staggerFadeIn 0.4s ease both; animation-delay: 0.35s; }
.stagger-enter > *:nth-child(8) { animation: staggerFadeIn 0.4s ease both; animation-delay: 0.4s; }
.stagger-enter > *:nth-child(9) { animation: staggerFadeIn 0.4s ease both; animation-delay: 0.45s; }
.stagger-enter > *:nth-child(10) { animation: staggerFadeIn 0.4s ease both; animation-delay: 0.5s; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

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

.count-up { font-variant-numeric: tabular-nums; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 32px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}
.nav-link:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.nav-link.active { background: rgba(88,101,242,0.12); color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
}

.nav-username {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.nav-logout {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.nav-logout:hover { background: rgba(237,66,69,0.12); color: var(--red); }

.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

/* ---- Main content ---- */
.public-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--navbar-height) + 32px) 24px 48px;
  min-height: 100vh;
}

.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }

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

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.page-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ---- Stats grid ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.15s;
}
.stat-card:hover { border-color: var(--border-hover); }

.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 24px; height: 24px; fill: currentColor; }

.stat-info { display: flex; flex-direction: column; }
.stat-value { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ---- Rooms ---- */
.room-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-input, .filter-select {
  padding: 8px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.search-input { min-width: 200px; }
.filter-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  min-width: 140px;
}
.search-input:focus, .filter-select:focus { border-color: var(--accent); }
.filter-select option { background: var(--bg-card); color: var(--text); }

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.room-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.room-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.room-card { position: relative; }

.room-card-banner {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 110px;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.room-card-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(15,15,25,0.85) 100%);
}

.room-card-top {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 20px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.room-card.has-banner .room-card-top {
  background: transparent;
}

.room-host-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.12);
  object-fit: cover;
  background: var(--bg-input);
}

.room-host-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.room-card-bottom { padding: 14px 18px 16px; }

.room-topic {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.room-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.room-tag {
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(88,101,242,0.1);
  color: var(--accent);
  border-radius: 4px;
  font-weight: 500;
}
.room-tag.game-tag { background: rgba(88,101,242,0.15); font-weight: 600; }
.room-tag.friends-only { background: rgba(254,231,92,0.1); color: var(--yellow); }
.room-tag.boosted { background: rgba(0,212,170,0.1); color: var(--teal); }

.room-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-join {
  padding: 6px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-join:hover { background: var(--accent-hover); }

/* ---- Leaderboard ---- */
.lb-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tab-group {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.tab {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.tab:hover { border-color: var(--border-hover); color: var(--text); }
.tab.active { background: rgba(88,101,242,0.12); border-color: var(--accent); color: var(--accent); }

.toggle-group {
  display: flex;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.toggle {
  padding: 6px 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.toggle:hover { color: var(--text); }
.toggle.active { background: var(--accent); color: #fff; }

.lb-table {
  width: 100%;
  border-collapse: collapse;
}
.lb-table th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.lb-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.lb-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.lb-table .rank { font-weight: 700; color: var(--text-muted); width: 50px; }
.lb-table .rank-1 { color: #FFD700; }
.lb-table .rank-2 { color: #C0C0C0; }
.lb-table .rank-3 { color: #CD7F32; }
.lb-table .player-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lb-table .player-cell img {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lb-table .player-cell a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.lb-table .player-cell a:hover { color: var(--accent); }
.lb-table .stat-cell { font-weight: 600; text-align: right; }

/* ---- Player Profile ---- */
.profile-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 4px solid var(--border);
  flex-shrink: 0;
}

.profile-info { flex: 1; min-width: 200px; }
.profile-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}
.profile-username {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.profile-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 600px;
}

.profile-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.profile-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-banned { background: rgba(237,66,69,0.15); color: var(--red); border: 1px solid rgba(237,66,69,0.3); }
.badge-linked { background: rgba(88,101,242,0.15); color: var(--accent); border: 1px solid rgba(88,101,242,0.3); }
.badge-in-room { background: rgba(0,212,170,0.15); color: var(--teal); border: 1px solid rgba(0,212,170,0.3); }
.badge-clean { background: rgba(87,242,135,0.15); color: var(--green); border: 1px solid rgba(87,242,135,0.3); }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.profile-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}
.profile-stat-value {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.profile-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-room {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

/* ---- Changelog ---- */
.changelog-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.changelog-entry-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.changelog-title {
  font-size: 18px;
  font-weight: 700;
}
.changelog-version {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  background: rgba(88,101,242,0.12);
  color: var(--accent);
  border-radius: 20px;
}
.changelog-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.changelog-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}
.pagination .btn { font-size: 13px; }

/* ---- Forms ---- */
.form-container {
  max-width: 600px;
}

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.text-input, .textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.text-input:focus, .textarea:focus { border-color: var(--accent); }
.textarea { resize: vertical; min-height: 80px; }

/* ---- Link flow ---- */
.link-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.link-code {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--accent);
  margin: 16px 0;
  font-family: monospace;
}
.link-countdown {
  font-size: 13px;
  color: var(--text-muted);
}
.link-success {
  color: var(--green);
  font-weight: 600;
  font-size: 16px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-small { padding: 6px 14px; font-size: 13px; }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: rgba(88,101,242,0.1); }
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--border-hover); }

/* ---- Toast ---- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  animation: toastIn 0.3s ease;
  min-width: 260px;
  backdrop-filter: blur(12px);
  transition: opacity 0.3s;
}
.toast.success { background: rgba(87,242,135,0.15); color: var(--green); border: 1px solid rgba(87,242,135,0.2); }
.toast.error { background: rgba(237,66,69,0.15); color: var(--red); border: 1px solid rgba(237,66,69,0.2); }
.toast.info { background: rgba(88,101,242,0.15); color: var(--accent); border: 1px solid rgba(88,101,242,0.2); }

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

.muted { color: var(--text-muted); font-size: 14px; }

/* ---- Game Breakdown ---- */
.game-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.game-breakdown-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: border-color 0.2s;
}
.game-breakdown-card:hover { border-color: var(--border-hover); }
.gbc-header {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gbc-stats { display: flex; gap: 20px; }
.gbc-stat { display: flex; flex-direction: column; }
.gbc-val { font-size: 20px; font-weight: 700; color: var(--accent); }
.gbc-lbl { font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; margin-top: 2px; }

/* ---- Nav Search ---- */
.nav-search {
  display: flex;
  align-items: center;
  position: relative;
}
.nav-search-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  display: flex;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.nav-search-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-search-btn svg { width: 18px; height: 18px; }
.nav-search-input {
  width: 0;
  opacity: 0;
  padding: 6px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: width 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}
.nav-search.expanded .nav-search-input {
  width: 200px;
  opacity: 1;
  padding: 6px 12px;
}
.nav-search-input:focus { border-color: var(--accent); }

/* ---- Nav More Dropdown ---- */
.nav-dropdown-wrap { position: relative; }
.nav-dropdown-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown-btn:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  display: none;
  z-index: 150;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.nav-dropdown.open { display: block; }
.nav-dropdown a {
  display: block;
  padding: 8px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.nav-dropdown a:hover { background: rgba(255,255,255,0.04); color: var(--text); }

/* ---- Landing / Hero ---- */
#page-landing .public-main-inner { padding-top: 0; }

.hero-section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 60px 20px 40px;
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.15;
  animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.15; }
  90% { opacity: 0.15; }
  100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 12px;
  line-height: 1.1;
}
.hero-tagline {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 500px;
}
.hero-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 28px;
}
.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease infinite;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-play {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  box-shadow: 0 0 24px rgba(88,101,242,0.4);
  transition: all 0.2s;
}
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(88,101,242,0.6); }
.btn-explore {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  transition: all 0.2s;
}
.btn-explore:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Feature cards ---- */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 48px auto 0;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.feature-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 24px;
}
.feature-card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- Podium ---- */
.podium-section {
  max-width: 600px;
  margin: 48px auto 0;
  text-align: center;
}
.podium-section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
}
.podium-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}
.podium-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--border);
  object-fit: cover;
}
.podium-1 .podium-avatar {
  width: 80px;
  height: 80px;
  border-color: #FFD700;
  box-shadow: 0 0 20px rgba(255,215,0,0.3);
}
.podium-2 .podium-avatar {
  border-color: #C0C0C0;
}
.podium-3 .podium-avatar {
  border-color: #CD7F32;
}
.podium-crown {
  font-size: 24px;
  margin-bottom: -4px;
}
.podium-name {
  font-size: 14px;
  font-weight: 600;
}
.podium-value {
  font-size: 12px;
  color: var(--text-muted);
}
.podium-rank {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
}
.podium-1 .podium-rank { background: rgba(255,215,0,0.15); color: #FFD700; }
.podium-2 .podium-rank { background: rgba(192,192,192,0.15); color: #C0C0C0; }
.podium-3 .podium-rank { background: rgba(205,127,50,0.15); color: #CD7F32; }

/* ---- Changelog preview ---- */
.changelog-preview {
  max-width: 600px;
  margin: 40px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.2s;
  text-align: left;
}
.changelog-preview:hover { border-color: var(--accent); }
.changelog-preview-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.changelog-preview-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- Social links ---- */
.social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}
.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
}
.social-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.social-link svg { width: 20px; height: 20px; fill: currentColor; }

/* ---- Section titles for landing ---- */
.landing-section {
  padding: 40px 0;
}
.landing-section-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 28px;
  animation: modalIn 0.2s ease;
  position: relative;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.modal-close:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.modal-close svg { width: 20px; height: 20px; fill: currentColor; }

/* ---- Room detail modal ---- */
.room-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.room-detail-header img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--border);
}
.room-detail-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.room-detail-host {
  font-size: 13px;
  color: var(--text-muted);
}
.room-detail-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.room-detail-players {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.room-detail-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--text);
}
.room-detail-player:hover { background: var(--bg-card-hover); }
.room-detail-player img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* ---- Leaderboard trends ---- */
.trend-indicator {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
}
.trend-up { color: var(--green); }
.trend-down { color: var(--red); }
.trend-stable { color: var(--text-muted); }
.trend-new {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0,212,170,0.12);
  color: var(--teal);
  font-weight: 700;
}

/* ---- Status page ---- */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 4px solid var(--green);
}
.status-card.offline { border-left-color: var(--red); }
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.status-card.offline .status-dot { background: var(--red); }
.status-dot.animated { animation: pulse 2s ease infinite; }
.status-info { flex: 1; }
.status-name { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.status-players { font-size: 13px; color: var(--text-muted); }
.uptime-section { margin-top: 28px; }
.uptime-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.uptime-label {
  font-size: 13px;
  font-weight: 500;
  min-width: 120px;
}
.uptime-bar-bg {
  flex: 1;
  height: 8px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
}
.uptime-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  transition: width 0.5s ease;
}
.uptime-pct {
  font-size: 13px;
  font-weight: 600;
  min-width: 48px;
  text-align: right;
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 800px;
}
.faq-category-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin: 24px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
}
.faq-category-title:first-child { margin-top: 0; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s;
}
.faq-question:hover { background: rgba(255,255,255,0.02); }
.faq-chevron {
  transition: transform 0.2s;
  color: var(--text-muted);
  flex-shrink: 0;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner {
  padding: 0 20px 16px;
}

/* ---- Compare ---- */
.compare-container {
  max-width: 800px;
  margin: 0 auto;
}
.compare-inputs {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.compare-inputs .form-group { flex: 1; min-width: 200px; margin-bottom: 0; }
.compare-vs {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
}
.compare-result {
  display: flex;
  gap: 24px;
}
.compare-player {
  flex: 1;
  text-align: center;
}
.compare-player-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--border);
  margin-bottom: 8px;
}
.compare-player-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.compare-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.compare-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.compare-bar-label {
  font-size: 12px;
  font-weight: 600;
  min-width: 70px;
  text-align: center;
  color: var(--text-muted);
}
.compare-bar-track {
  flex: 1;
  height: 12px;
  background: var(--bg-input);
  border-radius: 6px;
  overflow: hidden;
}
.compare-bar-fill-left {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  float: right;
  transition: width 0.5s ease;
}
.compare-bar-fill-right {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--teal), #00b894);
  transition: width 0.5s ease;
}
.compare-bar-value {
  font-size: 13px;
  font-weight: 700;
  min-width: 60px;
}
.compare-bar-value.left { text-align: right; color: var(--accent); }
.compare-bar-value.right { text-align: left; color: var(--teal); }

/* ---- Events ---- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.event-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.event-card.past { opacity: 0.5; }
.event-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.event-card-body { padding: 18px; }
.event-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.event-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-countdown {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}
.event-countdown span {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.event-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- Report modal ---- */
.report-form .form-group { margin-bottom: 14px; }

/* ---- Notifications ---- */
.notif-wrapper {
  position: relative;
}
.notif-bell {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  display: flex;
  position: relative;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.notif-bell:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.notif-bell svg { width: 20px; height: 20px; fill: currentColor; }
.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease infinite;
}
.notif-badge-count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 150;
  display: none;
}
.notif-dropdown.open { display: block; }
.notif-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
}
.notif-dropdown-header button {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.notif-item:hover { background: rgba(255,255,255,0.02); }
.notif-item.unread { border-left: 3px solid var(--accent); }
.notif-item-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}
.notif-item-msg {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.notif-item-time {
  font-size: 11px;
  color: var(--text-dim);
}
.notif-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ---- Highlights ---- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.highlight-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.highlight-card.weekly_donator {
  border-image: linear-gradient(135deg, #FFD700, #FFA500) 1;
}
.highlight-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--border);
  margin-bottom: 12px;
}
.highlight-card.weekly_donator .highlight-avatar {
  border-color: #FFD700;
  box-shadow: 0 0 20px rgba(255,215,0,0.3);
}
.highlight-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.highlight-username {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.highlight-reason {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.highlight-type-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
}
.highlight-type-badge.weekly_donator { background: rgba(255,215,0,0.12); color: #FFD700; }
.highlight-type-badge.staff_pick { background: rgba(88,101,242,0.12); color: var(--accent); }
.highlight-type-badge.milestone { background: rgba(0,212,170,0.12); color: var(--teal); }

/* ---- Activity feed ---- */
.activity-feed {
  max-width: 600px;
  margin: 0 auto;
}
.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.activity-content { flex: 1; }
.activity-text { margin-bottom: 2px; }
.activity-time {
  font-size: 11px;
  color: var(--text-dim);
}

/* ---- Report button on profile ---- */
.btn-report {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: rgba(237,66,69,0.1);
  color: var(--red);
  border: 1px solid rgba(237,66,69,0.2);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-report:hover { background: rgba(237,66,69,0.2); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-mobile-btn { display: flex; }
  .nav-inner { justify-content: space-between; }

  .navbar.nav-open .nav-links,
  .navbar.nav-open .nav-right {
    display: flex;
  }
  .navbar.nav-open {
    height: auto;
    flex-wrap: wrap;
  }
  .navbar.nav-open .nav-inner {
    flex-wrap: wrap;
  }
  .navbar.nav-open .nav-links {
    width: 100%;
    flex-direction: column;
    padding: 8px 0;
    border-top: 1px solid var(--border);
  }
  .navbar.nav-open .nav-right {
    width: 100%;
    padding: 8px 0 12px;
    border-top: 1px solid var(--border);
  }

  .public-main { padding: calc(var(--navbar-height) + 16px) 16px 32px; }

  .page-header { flex-direction: column; align-items: flex-start; }
  .room-filters { width: 100%; }
  .search-input { width: 100%; }
  .rooms-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .profile-header { flex-direction: column; align-items: center; text-align: center; }
  .profile-stats { grid-template-columns: 1fr 1fr; }
  .lb-controls { flex-direction: column; align-items: flex-start; }
  .tab-group { flex-wrap: wrap; }
  .hero-title { font-size: 36px; }
  .feature-cards { grid-template-columns: 1fr 1fr; }
  .podium { gap: 10px; }
  .podium-1 .podium-avatar { width: 64px; height: 64px; }
  .compare-result { flex-direction: column; }
  .compare-inputs { flex-direction: column; }
  .nav-search.expanded .nav-search-input { width: 150px; }
  .events-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr; }
  .notif-dropdown { width: 300px; right: -40px; }
  .roulette-machine { padding: 24px 16px; }
  .trading-card { width: 100%; max-width: 280px; }
  .trophy-grid { grid-template-columns: 1fr 1fr; }
  .heatmap-grid { overflow-x: auto; }
  .rivals-grid { grid-template-columns: 1fr 1fr; }
  .wrapped-slides { grid-template-columns: 1fr 1fr; }
  .wrapped-card { margin: 16px; }
}

/* ================================================
   DONATION TICKER
   ================================================ */

.ticker-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 36px;
  background: rgba(15,15,25,0.9);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  z-index: 100;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
  height: 100%;
  align-items: center;
}
.ticker-item {
  padding: 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.ticker-sep {
  color: var(--border);
  padding: 0 4px;
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================================
   ROOM ROULETTE
   ================================================ */

.roulette-container { max-width: 600px; margin: 0 auto; }
.roulette-machine {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.roulette-display {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
  padding: 32px;
  transition: border-color 0.3s;
}
.roulette-icon { font-size: 64px; margin-bottom: 16px; }
.roulette-placeholder p { color: var(--text-muted); font-size: 15px; }
.roulette-spinning { font-size: 80px; animation: rouletteBounce 0.1s ease; }
@keyframes rouletteBounce { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.roulette-spin-btn {
  font-size: 18px;
  padding: 14px 40px;
  border-radius: 50px;
  box-shadow: 0 0 30px rgba(88,101,242,0.3);
  transition: box-shadow 0.3s, transform 0.2s;
}
.roulette-spin-btn:hover { box-shadow: 0 0 50px rgba(88,101,242,0.5); transform: scale(1.05); }
.roulette-result { animation: staggerFadeIn 0.5s ease; }
.roulette-confetti-text { font-size: 24px; margin-bottom: 16px; }
.roulette-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--accent); margin-bottom: 12px; }
.roulette-room-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.roulette-room-meta { color: var(--text-muted); font-size: 14px; }

/* ================================================
   TRADING CARD
   ================================================ */

.trading-card {
  width: 320px;
  margin: 0 auto;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  border: 3px solid var(--card-border);
  background: linear-gradient(160deg, rgba(20,20,35,0.95) 0%, rgba(10,10,20,0.98) 100%);
  box-shadow: 0 0 40px rgba(var(--card-border), 0.3);
  animation: cardAppear 0.5s ease;
}
@keyframes cardAppear { 0% { transform: scale(0.8) rotateY(20deg); opacity: 0; } 100% { transform: scale(1) rotateY(0); opacity: 1; } }
.card-rarity-banner {
  text-align: center;
  padding: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #000;
}
.card-avatar-wrap { position: relative; text-align: center; padding: 24px 0 8px; }
.card-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 4px solid var(--card-border);
  box-shadow: 0 0 30px rgba(88,101,242,0.3);
}
.card-level-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #000;
}
.card-name { text-align: center; font-size: 20px; font-weight: 800; margin-top: 8px; }
.card-username { text-align: center; font-size: 12px; color: var(--text-muted); }
.card-level-name { text-align: center; font-size: 13px; color: var(--accent); font-weight: 600; margin: 4px 0 12px; }
.card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  margin: 0 20px;
  border-radius: 8px;
  overflow: hidden;
}
.card-stat {
  background: var(--bg-card);
  padding: 12px 8px;
  text-align: center;
}
.card-stat-val { display: block; font-size: 16px; font-weight: 700; }
.card-stat-label { display: block; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.card-trophies { text-align: center; padding: 12px; color: var(--yellow); font-size: 14px; font-weight: 600; }
.card-footer {
  text-align: center;
  padding: 12px;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  border-top: 1px solid var(--border);
}

/* ================================================
   RIVALS
   ================================================ */

.rivals-section { margin-top: 24px; }
.section-subtitle { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--text-muted); }
.rivals-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rival-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
  gap: 6px;
}
.rival-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.rival-rank { font-size: 13px; font-weight: 700; }
.rival-above { color: var(--green); }
.rival-below { color: var(--red); }
.rival-avatar { width: 48px; height: 48px; border-radius: 50%; }
.rival-name { font-size: 13px; font-weight: 600; }
.rival-val { font-size: 12px; color: var(--text-muted); }

/* ================================================
   ACTIVITY HEATMAP
   ================================================ */

.heatmap-section { margin-top: 32px; }
.heatmap-grid {
  display: grid;
  grid-template-columns: 50px repeat(24, 1fr);
  gap: 2px;
  margin-top: 12px;
}
.heatmap-corner { /* empty top-left */ }
.heatmap-hour { font-size: 10px; text-align: center; color: var(--text-muted); }
.heatmap-day { font-size: 11px; display: flex; align-items: center; color: var(--text-muted); font-weight: 600; }
.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  min-width: 12px;
  min-height: 12px;
  cursor: default;
  transition: transform 0.1s;
}
.heatmap-cell:hover { transform: scale(1.3); z-index: 1; }

/* ================================================
   TROPHIES
   ================================================ */

.trophy-month { margin-bottom: 32px; }
.trophy-month-title { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.trophy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.trophy-card:hover { transform: translateY(-4px); }
.trophy-card.rank-1 { border-color: #FEE75C; box-shadow: 0 0 20px rgba(254,231,92,0.2); }
.trophy-card.rank-2 { border-color: #C0C0C0; }
.trophy-card.rank-3 { border-color: #CD7F32; }
.trophy-medal { font-size: 32px; margin-bottom: 8px; }
.trophy-avatar { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 8px; }
.trophy-name { font-size: 14px; font-weight: 700; }
.trophy-type { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ================================================
   COMMUNITY GOALS
   ================================================ */

.goal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.goal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.goal-title { font-size: 18px; font-weight: 700; }
.goal-pct { font-size: 24px; font-weight: 800; color: var(--accent); }
.goal-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.goal-bar-wrap {
  height: 24px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}
.goal-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  border-radius: 12px;
  transition: width 1s ease;
  box-shadow: 0 0 20px rgba(88,101,242,0.3);
}
.goal-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); }
.goal-deadline { font-size: 12px; color: var(--yellow); margin-top: 8px; }

/* ================================================
   WRAPPED
   ================================================ */

.wrapped-container { max-width: 600px; margin: 0 auto; }
.wrapped-intro { text-align: center; padding: 40px 20px; }
.wrapped-title { font-size: 42px; font-weight: 800; margin-bottom: 12px; }
.wrapped-card {
  background: linear-gradient(160deg, rgba(88,101,242,0.1) 0%, rgba(0,212,170,0.05) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  margin: 24px auto;
  animation: staggerFadeIn 0.6s ease;
}
.wrapped-header {
  text-align: center;
  padding: 40px 24px 24px;
  background: linear-gradient(160deg, rgba(88,101,242,0.15) 0%, rgba(0,212,170,0.08) 100%);
}
.wrapped-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--accent); margin-bottom: 12px; }
.wrapped-name { font-size: 24px; font-weight: 800; }
.wrapped-subtitle { color: var(--text-muted); font-size: 14px; }
.wrapped-slides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.wrapped-slide {
  background: var(--bg-card);
  padding: 24px 16px;
  text-align: center;
}
.wrapped-big-num { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.wrapped-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.wrapped-rank { font-size: 13px; color: var(--yellow); margin-top: 4px; }
.wrapped-trophies, .wrapped-milestones {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
.wrapped-trophies h3, .wrapped-milestones h3 { font-size: 14px; font-weight: 600; }
.wrapped-footer { padding: 16px 24px; text-align: center; border-top: 1px solid var(--border); }

/* ================================================
   LEVEL & STREAK BADGES
   ================================================ */

.badge-level { background: rgba(88,101,242,0.15); color: var(--accent); border: 1px solid rgba(88,101,242,0.3); }
.badge-streak { background: rgba(254,231,92,0.12); color: var(--yellow); border: 1px solid rgba(254,231,92,0.3); }
