
:root {
  --bg: #05030a;
  --bg-alt: #0c0617;
  --accent: #b256ff;
  --accent-soft: rgba(178, 86, 255, 0.25);
  --accent-strong: #e19bff;
  --text: #f7f3ff;
  --text-muted: #a7a0c4;
  --danger: #ff4d7a;
  --success: #4dffa3;
  --border-subtle: rgba(255,255,255,0.05);
  --card-bg: rgba(18, 10, 40, 0.92);
  --shadow-soft: 0 22px 40px rgba(0,0,0,0.75);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --transition-fast: 0.16s ease-out;
  --transition-med: 0.22s ease-out;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #1b0b36 0, #05030a 55%, #000 100%);
  color: var(--text);
  font-family: var(--font-sans);
}

body {
  min-height: 100vh;
}

.page-wrapper.theme-dark {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
}

/* Containers & Layout */

.container {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

.section {
  padding: 3.5rem 0;
}

.section.alt-bg {
  background: radial-gradient(circle at top, #1d1034 0, #05030a 55%, #020008 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(24px);
  background: linear-gradient(to bottom, rgba(5,3,12,0.96), rgba(5,3,12,0.75), transparent);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.21.10rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 44px;
  height: 44px;
  image-rendering: pixelated;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(178, 86, 255, 0.7);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.21.10rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.75rem;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.nav-list a:hover {
  color: var(--text);
  border-color: rgba(178, 86, 255, 0.9);
  background: rgba(178, 86, 255, 0.12);
  transform: translateY(-1px);
}

/* Standalone nav-style button (for homepage MAP button) */
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.03);
  transition: color var(--transition-fast), 
              background var(--transition-fast), 
              border-color var(--transition-fast), 
              transform var(--transition-fast);
}

.nav-button:hover {
  color: var(--text);
  border-color: rgba(178, 86, 255, 0.9);
  background: rgba(178, 86, 255, 0.12);
  transform: translateY(-1px);
}

/* Mobile nav */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Hero */

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--accent-strong);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1.21.10;
  margin: 0 0 1rem;
}

.hero h1 span {
  color: var(--accent-strong);
  text-shadow: 0 0 12px rgba(178, 86, 255, 0.6);
}

.hero-subtitle {
  margin: 0 0 1.21.10rem;
  color: var(--text-muted);
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.21.10rem;
}

.primary,
.secondary {
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.21.10rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background var(--transition-med), color var(--transition-med), transform var(--transition-fast), box-shadow var(--transition-med), border-color var(--transition-med);
}

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #05030a;
  box-shadow: 0 16px 32px rgba(178, 86, 255, 0.5);
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 40px rgba(178, 86, 255, 0.7);
}

.secondary {
  background: transparent;
  color: var(--accent-strong);
  border-color: rgba(178, 86, 255, 0.7);
}

.secondary:hover {
  background: rgba(178, 86, 255, 0.14);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.pill {
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(12, 4, 32, 0.85);
}

.online-pill {
  border-color: rgba(77, 255, 163, 0.8);
  color: var(--success);
}

.version-pill {
  border-color: rgba(178, 86, 255, 0.7);
}

/* Cards / glassmorphism */

.glass-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(178, 86, 255, 0.18);
  box-shadow: var(--shadow-soft);
  padding: 1.21.10rem 1.21.10rem;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top left, rgba(178, 86, 255, 0.22), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
}

.hero-card {
  height: 100%;
}

.hero-card h2 {
  margin-top: 0;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.hero-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}

.hero-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Generic cards grid */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.21.10rem;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.21.10rem 1.21.10rem 1.21.10rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

/* Split layout */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.21.10fr) minmax(0, 1.21.10fr);
  gap: 2rem;
}

/* Page hero */

.page-hero {
  padding: 3rem 0 1.21.10rem;
}

.page-hero h1 {
  margin: 0.2rem 0 0.4rem;
}

.page-subtitle {
  margin: 0;
  color: var(--text-muted);
  max-width: 46rem;
}

/* Lists */

.checklist {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.21.10rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.checklist li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.75rem;
  color: var(--accent-strong);
}

.numbered-list {
  padding-left: 1.21.10rem;
  color: var(--text-muted);
}

.numbered-list li + li {
  margin-top: 0.3rem;
}

.link-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.link-list li + li {
  margin-top: 0.35rem;
}

.link-list a {
  color: var(--accent-strong);
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

/* Ranks & tags */

.rank-grid .rank-card ul {
  list-style: none;
  padding-left: 0;
  color: var(--text-muted);
}

.rank-grid .rank-card li + li {
  margin-top: 0.25rem;
}

.rank-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.24);
  margin-bottom: 0.4rem;
  background: rgba(8, 5, 24, 0.95);
}

.rank-tag.epic {
  border-color: rgba(86, 176, 255, 0.9);
  color: #b9dcff;
}

.rank-tag.legendary {
  border-color: rgba(255, 196, 86, 0.9);
  color: #ffe3ad;
}

.rank-tag.mythical {
  border-color: rgba(178, 86, 255, 0.95);
  color: #f3d5ff;
}

.rank-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Shop cards */

.shop-grid .shop-card h3 {
  margin-top: 0;
}

/* Social cards */

.socials-grid .social-card p {
  color: var(--text-muted);
}

/* Support form */

.support-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.support-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.88rem;
  gap: 0.3rem;
}

.support-form input,
.support-form select,
.support-form textarea {
  background: rgba(5,3,14,0.95);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.55rem 0.9rem;
  color: var(--text);
  font: inherit;
  outline: none;
}

.support-form textarea {
  border-radius: 18px;
  resize: vertical;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  border-color: rgba(178, 86, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(178, 86, 255, 0.4);
}

.support-form button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Legal pages */

.legal {
  color: var(--text-muted);
}

.legal h2 {
  color: var(--text);
}

.legal h3 {
  color: var(--accent-strong);
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.21.10fr) minmax(0, 1.21.10fr);
  gap: 2rem;
}

/* Footer */

.site-footer {
  margin-top: auto;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: radial-gradient(circle at top, #170c32 0, #05030a 55%, #000 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 1.21.10rem;
  padding-bottom: 1.21.10rem;
}

.footer-block h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.footer-block p {
  margin-top: 0;
  color: var(--text-muted);
}

.footer-block ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-block li + li {
  margin-top: 0.4rem;
}

.footer-block a {
  color: var(--accent-strong);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-block a:hover {
  text-decoration: underline;
}

.footer-ip-label {
  margin-top: 0.9rem;
  margin-bottom: 0.2rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.ip-copy {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(178, 86, 255, 0.9);
  background: rgba(178, 86, 255, 0.12);
  color: var(--accent-strong);
  padding: 0.35rem 0.9rem;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background var(--transition-med), transform var(--transition-fast), box-shadow var(--transition-med);
}

.ip-copy:hover {
  background: rgba(178, 86, 255, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(178, 86, 255, 0.45);
}

.ip-status {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.9rem 0 1.21.10rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Utilities */

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.8rem;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.21.10fr) minmax(0, 1.21.10fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: auto;
    padding: 0.75rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    background: rgba(5,3,16,0.98);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform-origin: top;
    transform: scaleY(0.0);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-med), opacity var(--transition-med);
  }

  .nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(5,3,16,0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.5rem 0;
  list-style: none;
  min-width: 150px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 50;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0px);
  pointer-events: auto;
}

.dropdown-menu li a {
  display: block;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background: rgba(178,86,255,0.12);
  color: var(--text);
}



/* Floating Shop Badge */
.shop-badge {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: linear-gradient(135deg, #b256ff, #e19bff);
    padding: 14px 20px;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(178,86,255,0.75);
    animation: bounce 2s infinite;
    z-index: 999;
}
.shop-badge a {
    color: #05030a;
    text-decoration: none;
    font-weight: bold;
}
@keyframes bounce {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}


/* Mega Menu */
.nav-dropdown.mega .dropdown-mega {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 200px;
}

@keyframes glowPulse {
    0%   { box-shadow: 0 0 18px rgba(178,86,255,0.4); }
    50%  { box-shadow: 0 0 28px rgba(178,86,255,0.9); }
    100% { box-shadow: 0 0 18px rgba(178,86,255,0.4); }
}

/* Page Intro Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}
.slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.9s forwards;
}
@keyframes fadeIn {
    to { opacity: 1; }
}
@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* News Bar */
.news-bar {
  width: 100%;
  background: rgba(178,86,255,0.22);
  border-bottom: 1px solid rgba(178,86,255,0.6);
  color: #e19bff;
  padding: 4px 0;
  font-size: 0.9rem;
  backdrop-filter: blur(6px);
}

.hero-version-badge {
 display:inline-block;margin-top:10px;padding:6px 14px;border-radius:12px;
 background:rgba(178,86,255,0.18);border:1px solid rgba(178,86,255,0.45);
 color:#e19bff;font-size:0.9rem;backdrop-filter:blur(6px);
}
.ipcopy-wrapper {
 position:relative;
 display:inline-block;
}
.ip-tooltip {
 visibility:hidden;
 background:rgba(0,0,0,0.8);
 color:#fff;
 padding:4px 8px;
 border-radius:6px;
 position:absolute;
 bottom:125%;
 left:50%;
 transform:translateX(-50%);
 white-space:nowrap;
 opacity:0;
 transition:opacity .3s;
 font-size:.8rem;
}
.ipcopy-wrapper:hover .ip-tooltip {
 visibility:visible;
 opacity:1;
}
.ip-copy.copied {
 animation:copypulse 0.4s ease-out;
}
@keyframes copypulse {
 0% { box-shadow:0 0 0px #00ff9d; }
 50% { box-shadow:0 0 20px #00ff9d; }
 100% { box-shadow:0 0 0px #00ff9d; }
}
#copy-popup {
 position:fixed;
 top:20px;
 right:20px;
 background:#00ff9d;
 color:#000;
 padding:10px 16px;
 border-radius:12px;
 font-weight:bold;
 opacity:0;
 pointer-events:none;
 transition:opacity .4s ease;
 z-index:9999;
}
#copy-popup.show {
 opacity:1;
}

.vote-grid {
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
 gap:20px;
 margin-top:20px;
}
.vote-card {
 background:rgba(178,86,255,0.12);
 border:1px solid rgba(178,86,255,0.4);
 border-radius:14px;
 padding:20px;
 text-align:center;
 backdrop-filter:blur(6px);
 transition:0.3s;
}
.vote-card:hover {
 transform:translateY(-6px);
 box-shadow:0 0 20px rgba(178,86,255,0.4);
}
.vote-card h3 { margin-bottom:10px; }
.vote-card a.primary { margin-top:10px; display:inline-block; }

/* Vote page logo watermark */
body.vote-page {
  position: relative;
  min-height: 100vh;
}
body.vote-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(178,86,255,0.12), transparent 60%),
              url("assets/img/logos/logo.png") center center no-repeat;
  background-size: 420px auto;
  opacity: 0.06;
  pointer-events: none;
  z-index: -1;
}

/* Live vote stats */
.vote-goal {
  margin: 1rem 0 1.5rem;
}
.vote-goal-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.vote-goal-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b256ff, #00ff9d);
  box-shadow: 0 0 16px rgba(178,86,255,0.7);
  transition: width 0.8s ease-out;
}
.vote-leaderboard table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}
.vote-leaderboard th,
.vote-leaderboard td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.vote-leaderboard th {
  text-align: left;
  color: #e19bff;
}

/* Sparkles over vote cards */
.vote-card {
  position: relative;
  overflow: hidden;
}
.vote-card .sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 8px rgba(178,86,255,0.9);
  opacity: 0;
  animation: sparkleFloat 4s linear infinite;
}
@keyframes sparkleFloat {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 1; }
  50%  { opacity: 1; }
  100% { transform: translateY(-25px); opacity: 0; }
}

/* Ripple on vote buttons */
.vote-card .primary {
  position: relative;
  overflow: hidden;
}
.vote-ripple {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: rippleOut 0.5s ease-out forwards;
}
@keyframes rippleOut {
  from { transform: translate(-50%, -50%) scale(0.5); opacity: 0.75; }
  to   { transform: translate(-50%, -50%) scale(5); opacity: 0; }
}

/* ===========================
   Live Chat – Discord style
   =========================== */

.chat-section {
  padding: 2rem 0 4rem;
}

.chat-layout {
  max-width: 960px;
  margin: 0 auto;
}

/* Tabs like a channel bar */
.chat-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #949ba4;
  font-size: 0.85rem;
}

.chat-tab {
  border: none;
  background: transparent;
  color: #949ba4;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease-out, color 0.15s ease-out;
}

.chat-tab:hover {
  background: rgba(148, 155, 164, 0.1);
  color: #f2f3f5;
}

.chat-tab.active {
  background: #5865f2;
  color: #fff;
}

/* Main chat panel */
.chat-panel {
  background: #313338;
  border-radius: 16px;
  border: 1px solid #202225;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.75);
  padding: 0.75rem 0.75rem 0.75rem;
}

/* Header bar */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.5rem 0.5rem;
  border-bottom: 1px solid #202225;
  margin-bottom: 0.35rem;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.chat-hash {
  color: #80848e;
  font-size: 1.1rem;
}

#chatChannelLabel {
  color: #f2f3f5;
  font-weight: 500;
}

.chat-live-pill {
  font-size: 0.65rem;
  text-transform: uppercase;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #f04747;
  color: #fff;
}

.chat-header-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #949ba4;
}

.chat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ba55c;
}

/* Scrollable message list – smaller box */
.chat-window {
  max-height: 380px;
  min-height: 220px;
  overflow-y: auto;
  padding: 0.4rem 0.25rem 0.1rem;
}

/* Custom scrollbar */
.chat-window::-webkit-scrollbar {
  width: 8px;
}
.chat-window::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
}
.chat-window::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}

/* Messages */
.chat-messages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chat-message {
  display: flex;
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.3;
  position: relative;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chat-meta {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.05rem;
}

.chat-author {
  color: #f2f3f5;
  font-weight: 500;
}

.chat-timestamp {
  font-size: 0.7rem;
  color: #949ba4;
}

.chat-content {
  margin: 0;
  color: #dcddde;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Tiny action icons (optional, can be wired later) */
.chat-actions {
  opacity: 0;
  transition: 0.15s ease;
  display: flex;
  gap: 6px;
  position: absolute;
  right: 12px;
  top: 8px;
}
.chat-message:hover .chat-actions {
  opacity: 1;
}

/* Typing indicator */
.chat-typing {
  font-size: 0.75rem;
  color: #949ba4;
  margin: 0.25rem 0.4rem 0.1rem;
  transition: opacity 0.15s ease-out, max-height 0.15s ease-out;
}
.chat-typing-hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}

/* Input bar like Discord */
.chat-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding: 0.35rem;
  border-radius: 8px;
  background: #383a40;
}

#chatInput {
  flex: 1;
  border: none;
  background: transparent;
  color: #f2f3f5;
  font-size: 0.9rem;
  outline: none;
}

#chatInput::placeholder {
  color: #72767d;
}

/* Send button (if you use .chat-send-btn) */
.chat-send-btn {
  border: none;
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  background: #5865f2;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s ease-out, transform 0.05s ease-out;
}
.chat-send-btn:hover {
  background: #4752c4;
}
.chat-send-btn:active {
  transform: scale(0.97);
}

/* Fallback: if you're still using .primary on the Send button */
.chat-form .primary {
  border-radius: 999px;
  padding-inline: 0.9rem;
}

/* Note under chat */
.chat-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #a7a0c4;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .chat-panel {
    padding: 0.4rem;
  }

  .chat-window {
    max-height: 320px;
  }

  .chat-tabs {
    flex-wrap: wrap;
  }
}



/* --- v27 THEME & NAVBAR ENHANCEMENTS --- */

:root[data-theme="light"] {
  --bg: #f3f4ff;
  --bg-alt: #ffffff;
  --card-bg: rgba(255,255,255,0.9);
  --text: #171320;
  --text-muted: #5a5670;
}

.nav-list a.active {
  color: var(--text);
  border-color: rgba(178,86,255,0.95);
  background: rgba(178,86,255,0.18);
  box-shadow: 0 0 12px rgba(178,86,255,0.55);
}

/* Theme toggle button */
.theme-toggle {
  margin-left: 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: radial-gradient(circle at top, rgba(178,86,255,0.25), rgba(5,3,16,0.95));
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Shop CTA sizing */
.shop-cta {
  padding: 0.85rem 1.6rem !important;
  font-size: 1rem !important;
}

/* Server status pills + tablist */
.status-text {
  color: var(--accent-strong);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.6rem;
  margin-left: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(10,6,24,0.8);
}

.tablist-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.tablist-card {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(12,8,28,0.9);
  border: 1px solid rgba(255,255,255,0.06);
}
.tablist-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  image-rendering: pixelated;
}
.tablist-name {
  font-size: 0.9rem;
}

/* Profile page tweaks */
.profile-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.profile-head {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  image-rendering: pixelated;
  box-shadow: 0 0 18px rgba(178,86,255,0.7);
}
