/* ── Reset & Variables ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #060d08;
  --bg2:       #0a1210;
  --bg3:       #111a14;
  --bg4:       #182218;
  --bg5:       #1e2a1e;
  --border:    rgba(34,197,94,0.08);
  --border2:   rgba(34,197,94,0.18);
  --text:      #e8f0e8;
  --text2:     #7a9a7a;
  --text3:     #3d5c3d;
  --accent:    #22c55e;
  --accent-h:  #16a34a;
  --accent-g:  rgba(34,197,94,0.22);
  --purple:    #9b59b6;
  --red:       #e53935;
  --yellow:    #f59e0b;
  --blue:      #60a5fa;
  /* version-reactive glow — updated by JS */
  --vglow:     rgba(34,197,94,0.28);
  --vglow2:    rgba(34,197,94,0.12);
  --sw: 52px;
  --th: 44px;
  --bh: 36px;
  --r:  12px;
  --rs: 7px;
}

html, body { height: 100%; overflow: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg); color: var(--text); font-size: 13px;
  line-height: 1.5; -webkit-font-smoothing: antialiased; user-select: none;
}
/* subtle grain texture overlay */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9990;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}
input, textarea { -webkit-user-select: text; user-select: text; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ══════════════════════════════════════════════════════════════════════════════
   SPLASH SCREEN
══════════════════════════════════════════════════════════════════════════════ */
#splash-screen {
  position: fixed; inset: 0; z-index: 99999;
  background: #030a04;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity 0.55s cubic-bezier(.4,0,.2,1), transform 0.55s cubic-bezier(.4,0,.2,1);
  -webkit-app-region: drag;
}
#splash-screen.fade-out {
  opacity: 0; transform: scale(1.04); pointer-events: none;
}
#splash-canvas {
  position: absolute; inset: 0; pointer-events: none;
}
.splash-content {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  position: relative; z-index: 1;
}
.splash-logo-wrap {
  position: relative; width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.splash-logo-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(34,197,94,0.25);
  animation: splashRingSpin 3s linear infinite;
}
.splash-logo-ring::before {
  content: ''; position: absolute; top: -3px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.splash-logo-ring-2 {
  inset: 10px;
  border-color: rgba(34,197,94,0.15);
  animation-duration: 5s;
  animation-direction: reverse;
}
.splash-logo-ring-2::before {
  background: rgba(34,197,94,0.6);
  box-shadow: 0 0 6px rgba(34,197,94,0.6);
}
@keyframes splashRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.splash-logo {
  width: 72px; height: 72px; border-radius: 20px;
  background: linear-gradient(135deg, #0d2010 0%, #1a3d20 100%);
  border: 1px solid rgba(34,197,94,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  box-shadow: 0 0 40px rgba(34,197,94,0.2), 0 8px 32px rgba(0,0,0,0.6);
  animation: splashLogoPulse 2.5s ease-in-out infinite;
}
@keyframes splashLogoPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(34,197,94,0.2), 0 8px 32px rgba(0,0,0,0.6); }
  50%       { box-shadow: 0 0 60px rgba(34,197,94,0.35), 0 8px 32px rgba(0,0,0,0.6); }
}
.splash-name {
  font-size: 32px; font-weight: 900; letter-spacing: 0.06em;
  color: #fff; text-shadow: 0 0 40px rgba(34,197,94,0.3);
  margin-bottom: 4px;
}
.splash-tagline {
  font-size: 12px; color: var(--text2); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 36px;
}
.splash-bar-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 220px;
}
.splash-bar {
  width: 100%; height: 3px; background: rgba(255,255,255,0.06);
  border-radius: 99px; overflow: hidden;
}
.splash-bar-fill {
  height: 100%; width: 0%; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-h), var(--accent), #86efac);
  transition: width 0.4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 8px var(--accent);
}
.splash-status {
  font-size: 11px; color: var(--text3); letter-spacing: 0.04em;
  min-height: 16px; transition: opacity 0.2s;
}
.splash-version {
  position: absolute; bottom: -52px;
  font-size: 10px; color: var(--text3); letter-spacing: 0.06em;
}

/* ── Toast system ──────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 20px; right: 20px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 9999; pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 12px;
  background: #1e2130; border: 1px solid var(--border2);
  border-radius: var(--r); padding: 12px 14px 12px 16px;
  min-width: 300px; max-width: 380px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
  pointer-events: all;
  transform: translateX(120%); opacity: 0;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), opacity 0.3s ease;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.hide { transform: translateX(120%); opacity: 0; }
.toast-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.toast-body { flex: 1; }
.toast-title { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.toast-msg   { font-size: 12px; color: var(--text2); line-height: 1.4; }
.toast-close {
  background: none; border: none; color: var(--text3); cursor: pointer;
  font-size: 16px; line-height: 1; padding: 0 2px; flex-shrink: 0;
  transition: color 0.15s;
}
.toast-close:hover { color: var(--text); }
.toast.toast-success { border-left: 3px solid var(--accent); }
.toast.toast-error   { border-left: 3px solid var(--red); }
.toast.toast-warn    { border-left: 3px solid var(--yellow); }
.toast.toast-info    { border-left: 3px solid var(--blue); }

/* toast progress bar */
.toast-bar {
  position: absolute; bottom: 0; left: 0; height: 2px;
  border-radius: 0 0 0 var(--r);
  transition: width linear;
}
.toast.toast-success .toast-bar { background: var(--accent); }
.toast.toast-error   .toast-bar { background: var(--red); }
.toast.toast-warn    .toast-bar { background: var(--yellow); }
.toast.toast-info    .toast-bar { background: var(--blue); }

/* ── User dropdown ─────────────────────────────────────────────────────────── */
.user-dropdown {
  position: fixed; top: calc(var(--th) + 6px); right: 12px;
  background: #1c1f2b; border: 1px solid var(--border2);
  border-radius: var(--r); min-width: 220px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  z-index: 5000; overflow: visible;
  opacity: 0; transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  padding: 6px 0;
}
.user-dropdown.open {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: all;
}
.ud-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; cursor: pointer; font-size: 13px;
  color: var(--text); position: relative;
  transition: background 0.12s;
}
.ud-item:hover { background: var(--bg3); }
.ud-item.danger { color: #ef4444; }
.ud-item.danger:hover { background: rgba(239,68,68,0.1); }
.ud-arrow { margin-left: auto; color: var(--text3); font-size: 12px; }
.ud-divider { height: 1px; background: var(--border); margin: 4px 0; }
.ud-status-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.ud-status-dot.green  { background: var(--accent); }
.ud-status-dot.yellow { background: var(--yellow); }
.ud-status-dot.red    { background: var(--red); }
.ud-status-dot.grey   { background: var(--text3); }

/* submenu */
.ud-submenu {
  position: absolute; left: calc(100% + 4px); top: -2px;
  background: #1c1f2b; border: 1px solid var(--border2);
  border-radius: var(--r); min-width: 180px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
  padding: 6px 0;
  opacity: 0; transform: translateX(-4px); pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
.ud-item:hover .ud-submenu {
  opacity: 1; transform: translateX(0); pointer-events: all;
}
.ud-sub-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; cursor: pointer; font-size: 12px; color: var(--text);
  transition: background 0.1s;
}
.ud-sub-item:hover { background: var(--bg3); }
.ud-add-account { color: var(--blue); }

/* ── Modals ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-card {
  background: #1a1d27; border: 1px solid var(--border2);
  border-radius: 14px; min-width: 380px; max-width: 440px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
  transform: scale(0.96) translateY(8px);
  transition: transform 0.2s cubic-bezier(.22,1,.36,1);
}
.modal-overlay.open .modal-card { transform: scale(1) translateY(0); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px; font-weight: 700; font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.modal-close {
  background: none; border: none; color: var(--text2); cursor: pointer;
  padding: 4px; border-radius: 4px; display: flex; align-items: center;
  transition: color 0.15s, background 0.15s;
}
.modal-close:hover { color: var(--text); background: var(--bg3); }
.modal-body { padding: 18px 20px; }
.modal-avatar-row {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.modal-avatar {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: white; flex-shrink: 0;
}
.modal-avatar-name { font-size: 16px; font-weight: 700; }
.modal-avatar-sub  { font-size: 12px; color: var(--text2); margin-top: 2px; }
.modal-label { display: block; font-size: 11px; color: var(--text2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 6px; }
.modal-input {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-size: 14px; padding: 9px 12px;
  border-radius: var(--rs); outline: none; transition: border-color 0.15s;
}
.modal-input:focus { border-color: var(--blue); }
.modal-hint { font-size: 11px; color: var(--text3); margin-top: 6px; }
.modal-footer {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 14px 20px 18px; border-top: 1px solid var(--border);
}

/* Download card */
.download-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 36px 32px; text-align: center; gap: 12px; min-width: 340px;
}
.dl-icon { font-size: 40px; line-height: 1; }
.download-card h3 { font-size: 17px; font-weight: 700; }
.download-card p  { font-size: 12px; color: var(--text2); min-height: 18px; }
.dl-track {
  width: 100%; height: 6px; background: var(--bg4);
  border-radius: 3px; overflow: hidden;
}
.dl-fill {
  height: 100%; width: 0%; background: var(--accent);
  border-radius: 3px; transition: width 0.3s ease;
}
.dl-row { display: flex; justify-content: space-between; width: 100%; font-size: 11px; color: var(--text2); }
.dl-cancel { margin-top: 4px; }
@keyframes dlPulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.dl-fill.indeterminate {
  width: 40% !important; animation: dlSlide 1.4s ease-in-out infinite;
}
@keyframes dlSlide {
  0%   { transform: translateX(-200%); }
  100% { transform: translateX(350%); }
}

/* ── Titlebar ──────────────────────────────────────────────────────────────── */
.titlebar {
  height: var(--th); background: var(--bg); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 16px 0 80px;
  position: relative; z-index: 100; flex-shrink: 0;
  -webkit-app-region: drag;
}
.titlebar-drag { position: absolute; inset: 0; -webkit-app-region: drag; }
.titlebar-left, .titlebar-center, .titlebar-right {
  position: relative; z-index: 1; -webkit-app-region: no-drag;
}
.titlebar-logo { width: 16px; height: 16px; border-radius: 3px; margin-right: 2px; }
.titlebar-left  { display: flex; align-items: center; gap: 6px; color: var(--text2); font-size: 12px; }
.titlebar-app   { color: var(--text); font-weight: 700; }
.titlebar-chevron { color: var(--text3); }
.titlebar-page  { color: var(--text2); }
.titlebar-center {
  display: flex; align-items: center; gap: 8px;
  position: absolute; left: 50%; transform: translateX(-50%);
  color: var(--text2); font-size: 12px; white-space: nowrap;
}
.titlebar-divider { color: var(--text3); }
.titlebar-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.titlebar-icon-btn {
  width: 28px; height: 28px; border-radius: 6px;
  background: transparent; border: none; cursor: pointer;
  color: var(--text2); display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.titlebar-icon-btn:hover { background: var(--bg3); color: var(--text); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-dot.green  { background: var(--accent); }
.status-dot.yellow { background: var(--yellow); }
.status-dot.red    { background: var(--red); }
.status-dot.grey   { background: var(--text3); }

.user-chip {
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; padding: 4px 10px; border-radius: var(--rs);
  transition: background 0.15s;
}
.user-chip:hover, .user-chip.open { background: var(--bg3); }
.user-avatar {
  width: 22px; height: 22px; border-radius: 4px;
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: white; flex-shrink: 0;
  position: relative;
}
.user-name { font-size: 12px; font-weight: 600; }
.user-chip-arrow { color: var(--text3); transition: transform 0.2s; }
.user-chip.open .user-chip-arrow { transform: rotate(180deg); }

/* ── Banner ────────────────────────────────────────────────────────────────── */
.announcement-banner {
  height: var(--bh); background: var(--red);
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 12px; font-weight: 500; position: relative; flex-shrink: 0;
  animation: slideBanner 0.3s ease;
}
@keyframes slideBanner { from{transform:translateY(-100%);opacity:0} to{transform:translateY(0);opacity:1} }
.announcement-banner.hidden { display: none; }
.banner-close {
  position: absolute; right: 12px; background: none; border: none;
  color: inherit; cursor: pointer; opacity: 0.7; padding: 4px; border-radius: 4px;
  display: flex; align-items: center; transition: opacity 0.15s;
}
.banner-close:hover { opacity: 1; background: rgba(0,0,0,0.2); }

/* ── App Shell ─────────────────────────────────────────────────────────────── */
.app-shell {
  display: flex;
  height: calc(100vh - var(--th));
  overflow: hidden;
}
.app-shell.with-banner { height: calc(100vh - var(--th) - var(--bh)); }

/* ── Sidebar ───────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sw);
  background: linear-gradient(180deg, #050e07 0%, var(--bg) 100%);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 10px 0; flex-shrink: 0; z-index: 10;
}
.sidebar-top, .sidebar-bottom {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.nav-btn {
  width: 40px; height: 40px; border-radius: var(--rs);
  background: none; border: none; cursor: pointer;
  color: var(--text3); display: flex; align-items: center; justify-content: center;
  position: relative; transition: color 0.18s, background 0.18s, box-shadow 0.18s;
}
.nav-btn svg { width: 20px; height: 20px; }
.nav-btn:hover { color: var(--text); background: var(--bg3); }
.nav-btn.active {
  color: var(--accent); background: rgba(34,197,94,0.1);
  box-shadow: 0 0 16px rgba(34,197,94,0.08);
}
.nav-btn.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
/* alert badge on nav button */
.nav-badge {
  position: absolute; top: 4px; right: 4px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  border: 2px solid var(--bg);
}

/* ── Main area ─────────────────────────────────────────────────────────────── */
.main-area { flex: 1; overflow: hidden; position: relative; }
.page {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  display: flex;
}
.page.active {
  opacity: 1; pointer-events: all; transform: translateY(0);
}

/* ═══ LAUNCHPAD ══════════════════════════════════════════════════════════════ */
#page-launchpad { flex-direction: row; }
.launchpad-content { flex: 1; overflow-y: auto; position: relative; display: flex; flex-direction: column; }
#stars-canvas { position: absolute; inset: 0; pointer-events: none; opacity: 0.7; z-index: 0; }

.launchpad-welcome {
  padding: 20px 26px 10px; font-size: 12px; color: var(--text3);
  position: relative; z-index: 1; display: flex; align-items: baseline; gap: 8px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.welcome-name {
  color: #fff; font-weight: 800; font-size: 20px; letter-spacing: 0.01em; text-transform: none;
  text-shadow: 0 0 24px rgba(255,255,255,0.15);
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.launchpad-hero {
  position: relative; z-index: 1; margin: 0 20px;
  height: 340px; border-radius: 16px;
  border: 1px solid rgba(34,197,94,0.12);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: #030a04;
  box-shadow:
    0 0 0 1px rgba(34,197,94,0.06) inset,
    0 1px 0 rgba(34,197,94,0.10) inset,
    0 32px 80px rgba(0,0,0,0.7);
}
/* Minecraft screenshot as cinematic background */
.hero-bg-img {
  position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px);
  object-fit: cover; object-position: center 35%;
  opacity: 0; transition: opacity 1s ease;
  filter: saturate(1.1);
}
.hero-bg-img.loaded { opacity: 0.62; }

/* Atmospheric overlays */
.hero-bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(3,10,4,0.25) 0%,
      rgba(3,10,4,0.05) 20%,
      rgba(3,10,4,0.05) 55%,
      rgba(3,10,4,0.82) 100%),
    radial-gradient(ellipse 120% 80% at 50% 50%, transparent 30%, rgba(3,10,4,0.55) 100%);
}
/* Side vignettes */
.hero-bg-overlay::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(3,10,4,0.6) 0%, transparent 20%),
    linear-gradient(to left,  rgba(3,10,4,0.6) 0%, transparent 20%);
}
/* Subtle dot grid */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
  opacity: 0.5;
}
/* Version-reactive glow orb */
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse 70% 60% at 50% 55%, var(--vglow) 0%, transparent 70%);
  transition: background 1.2s ease;
}
/* Bottom fog */
.hero-fog {
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px; pointer-events: none; z-index: 3;
  background: linear-gradient(to top, rgba(3,10,4,0.95) 0%, rgba(3,10,4,0.6) 40%, transparent 100%);
}
/* Floating Minecraft block decorations */
.hero-block {
  position: absolute; pointer-events: none; z-index: 2;
  background: var(--c, #5a9e36);
  border-radius: 3px;
  box-shadow: 0 0 12px var(--c, #5a9e36), inset 0 1px 0 rgba(255,255,255,0.3), inset 0 -1px 0 rgba(0,0,0,0.4);
  opacity: 0;
  animation: blockFloat var(--dur, 10s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes blockFloat {
  0%   { opacity: 0; transform: translateY(8px) rotate(var(--rot, 0deg)); }
  10%  { opacity: var(--op, 0.14); }
  50%  { transform: translateY(-14px) rotate(calc(var(--rot, 0deg) + 6deg)); opacity: calc(var(--op, 0.14) * 1.4); }
  90%  { opacity: var(--op, 0.14); }
  100% { opacity: 0; transform: translateY(8px) rotate(var(--rot, 0deg)); }
}

/* character silhouettes */
.hero-char {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 90px; height: 150px; pointer-events: none; z-index: 4;
  display: flex; align-items: center; justify-content: center; font-size: 56px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.8));
}
.hero-char.left  { left: 36px; }
.hero-char.right { right: 36px; }

/* ── Launch button group ───────────────────────────────────────────────────── */
.launch-center { display: flex; align-items: stretch; gap: 0; position: relative; z-index: 5; }
.launch-btn {
  min-width: 290px; padding: 0 26px; height: 66px;
  background: var(--accent); border: none; border-radius: var(--r) 0 0 var(--r);
  cursor: pointer; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: 0.07em;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.12s;
  box-shadow: 0 0 40px var(--accent-g), 0 8px 24px rgba(0,0,0,0.4);
}
.launch-btn:hover  { background: var(--accent-h); box-shadow: 0 0 56px var(--accent-g), 0 8px 32px rgba(0,0,0,0.5); transform: scale(1.015); }
.launch-btn:active { transform: scale(0.985); }
.launch-btn.launching { background: var(--purple); box-shadow: 0 0 36px rgba(155,89,182,.45); cursor: default; }
.launch-btn.launched  { background: var(--purple); cursor: default; }
.launch-btn.running   { background: var(--red); box-shadow: 0 0 36px rgba(229,57,53,.45); }
.launch-btn.running:hover { background: #c62828; box-shadow: 0 0 52px rgba(229,57,53,.55); }
.launch-btn-sub { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 400; letter-spacing: 0; opacity: 0.85; }
.dot-green-sm { width: 6px; height: 6px; border-radius: 50%; background: #86efac; flex-shrink: 0; box-shadow: 0 0 5px #86efac; }

.launch-dropdown {
  width: 40px; height: 66px; padding: 0;
  background: var(--accent-h); border: none; border-left: 1px solid rgba(255,255,255,0.15);
  border-radius: 0 var(--r) var(--r) 0;
  color: white; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
}
.launch-dropdown:hover { background: #15803d; }
.launch-dropdown.open  { background: #15803d; }
/* Mirror launch-btn state colours on the dropdown tab */
.launch-dropdown.launching { background: var(--purple); box-shadow: 0 0 36px rgba(155,89,182,.45); cursor: default; }
.launch-dropdown.launched  { background: var(--purple); cursor: default; }
.launch-dropdown.running   { background: var(--red); box-shadow: 0 0 36px rgba(229,57,53,.45); }
.launch-dropdown.running:hover { background: #c62828; }

/* Version picker dropdown */
.vpicker {
  position: absolute; bottom: calc(100% + 10px); right: 0;
  min-width: 330px; background: rgba(18,20,30,0.96); border: 1px solid var(--border2);
  border-radius: var(--r); overflow: hidden;
  box-shadow: 0 20px 56px rgba(0,0,0,0.75); z-index: 200;
  backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(6px) scale(0.97); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(.22,1,.36,1);
}
.vpicker.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.vpicker-item {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 16px; cursor: pointer; transition: background 0.1s;
}
.vpicker-item:hover { background: rgba(255,255,255,0.05); }
.vpicker-item.selected { background: rgba(34,197,94,0.08); }
.vpicker-thumb {
  width: 48px; height: 32px; border-radius: 6px; flex-shrink: 0; overflow: hidden;
  position: relative; display: flex; align-items: center; justify-content: center;
  font-size: 18px; border: 1px solid rgba(255,255,255,0.08);
}
.vpicker-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vpicker-info { flex: 1; }
.vpicker-name { font-size: 13px; font-weight: 700; }
.vpicker-ver  { font-size: 11px; color: var(--text2); }
.vpicker-check { color: var(--accent); font-size: 14px; }
.vpicker-dl {
  font-size: 10px; color: var(--text3); padding: 2px 7px;
  background: var(--bg4); border-radius: 99px; white-space: nowrap;
}

.hero-settings-btn {
  position: absolute; bottom: 14px; right: 14px; z-index: 6;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--rs); padding: 7px; cursor: pointer; color: var(--text2);
  display: flex; align-items: center; backdrop-filter: blur(6px);
  transition: background 0.15s, color 0.15s;
}
.hero-settings-btn:hover { background: rgba(255,255,255,0.13); color: var(--text); }

/* ── Server strip ──────────────────────────────────────────────────────────── */
.server-strip {
  display: flex; align-items: center;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02); padding: 0 24px; overflow-x: auto; flex-shrink: 0;
  position: relative; z-index: 1;
}
.strip-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 9px 16px; cursor: pointer; gap: 4px; min-width: 70px;
  border-bottom: 2px solid transparent; color: var(--text2);
  transition: border-color 0.15s, color 0.15s;
}
.strip-item:hover { color: var(--text); border-bottom-color: var(--text3); }
.strip-item.active { color: var(--text); border-bottom-color: var(--accent); }
.strip-icon {
  width: 30px; height: 30px; border-radius: 7px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  flex-shrink: 0;
}
.strip-icon img { width: 100%; height: 100%; object-fit: cover; }
.strip-label { font-size: 10px; font-weight: 500; white-space: nowrap; }

/* ── News ──────────────────────────────────────────────────────────────────── */
.news-section { padding: 18px 22px 22px; position: relative; z-index: 1; }
.news-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.news-title   { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text2); display: flex; align-items: center; gap: 8px; }
.news-badge   { background: rgba(34,197,94,.15); color: var(--accent); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; text-transform: none; letter-spacing: 0; }
.news-more    { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 11px; transition: color 0.15s; }
.news-more:hover { color: var(--text); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 14px; }
.news-card {
  border-radius: var(--r); overflow: hidden; cursor: pointer;
  position: relative; height: 170px; border: 1px solid var(--border);
  transition: transform 0.2s cubic-bezier(.22,1,.36,1), border-color 0.2s, box-shadow 0.2s;
  background: var(--bg2);
}
.news-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.14); box-shadow: 0 12px 36px rgba(0,0,0,0.5); }
.news-card-art {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; font-size: 42px;
}
.news-card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
}
.news-card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 13px; }
.news-card-title { font-size: 12px; font-weight: 700; line-height: 1.35; }
.news-card-meta  { font-size: 10px; color: var(--text2); margin-top: 3px; }
.news-unread { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* Right panel */

/* ═══ VERSIONS ═══════════════════════════════════════════════════════════════ */
#page-versions { flex-direction: column; overflow: hidden; }
.versions-layout { display: flex; flex: 1; overflow: hidden; }
.versions-main   { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.versions-toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.versions-search-wrap {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--rs); padding: 0 10px; height: 32px; color: var(--text2);
}
.versions-search { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 12px; }
.versions-search::placeholder { color: var(--text3); }
.versions-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 12px; padding: 18px; }

.version-card {
  border-radius: var(--r); overflow: hidden; cursor: pointer;
  height: 120px; position: relative; border: 1px solid var(--border);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  background: #0a0b10;
}
.version-card:hover   { transform: translateY(-2px); border-color: var(--border2); box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.version-card.selected { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.version-card-art {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; font-size: 34px;
}
.version-card-art img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.5s ease;
}
.version-card-art img.loaded { opacity: 1; }
.version-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 70%, transparent 100%);
}
.version-card-name {
  position: absolute; bottom: 7px; left: 9px; right: 9px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.05em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

/* version detail */
.versions-detail {
  width: 295px; flex-shrink: 0; border-left: 1px solid var(--border);
  display: flex; flex-direction: column; overflow-y: auto;
}
.vd-placeholder {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: var(--text3); gap: 10px; font-size: 13px;
}
.vd-content { display: flex; flex-direction: column; }
.vd-art { height: 155px; position: relative; overflow: hidden; flex-shrink: 0; }
.vd-art-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 60px; }
.vd-art-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vd-art-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg2) 0%, transparent 60%); }
.vd-body { padding: 12px 15px; }
.vd-title { font-size: 15px; font-weight: 800; margin-bottom: 7px; display: flex; align-items: center; gap: 8px; }
.vd-desc  { font-size: 12px; color: var(--text2); line-height: 1.6; margin-bottom: 12px; }
.vd-row   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.vd-label { font-size: 11px; color: var(--text2); }
.vd-select {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-size: 12px; padding: 4px 8px; border-radius: var(--rs); outline: none;
}
.vd-clients { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.client-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--rs);
  background: var(--bg3); border: 1px solid var(--border);
  font-size: 11px; cursor: pointer; transition: border-color 0.15s;
}
.client-chip:hover { border-color: var(--border2); }
.client-chip.on    { border-color: var(--accent); background: rgba(34,197,94,0.08); color: var(--accent); }
.client-chip-icon  { font-size: 14px; }
.chip-favicon { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
.vd-actions { display: flex; gap: 8px; }
.btn-icon-sm {
  width: 34px; height: 34px; border-radius: var(--rs);
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.btn-icon-sm:hover { background: var(--bg4); }

/* ═══ CLIENTS ════════════════════════════════════════════════════════════════ */
#page-clients { flex-direction: column; overflow-y: auto; }
.clients-page  { padding: 24px; max-width: 900px; }
.clients-header { margin-bottom: 24px; }
.clients-sub { font-size: 13px; color: var(--text2); margin-top: 4px; }
.clients-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 16px; }

.client-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  position: relative;
}
.client-card:hover   { transform: translateY(-2px); border-color: var(--border2); box-shadow: 0 8px 28px rgba(0,0,0,.4); }
.client-card.active-client { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.client-card-banner {
  height: 100px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.client-card-banner-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.7) 100%); }
.client-logo {
  width: 52px; height: 52px; border-radius: 12px; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
}
.client-card-body { padding: 14px 16px 16px; }
.client-name { font-size: 15px; font-weight: 800; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.client-badge {
  font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 99px; letter-spacing: 0.06em;
}
.client-badge.installed { background: rgba(34,197,94,.18); color: var(--accent); }
.client-badge.default   { background: rgba(96,165,250,.18); color: var(--blue); }
.client-desc { font-size: 12px; color: var(--text2); line-height: 1.55; margin-bottom: 14px; }
.client-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.client-tag  { font-size: 10px; color: var(--text3); display: flex; align-items: center; gap: 4px; }
.client-url-row {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 12px; overflow: hidden;
}
.client-favicon { width: 13px; height: 13px; border-radius: 2px; flex-shrink: 0; }
.client-url     { font-size: 11px; color: var(--blue); font-weight: 600; flex-shrink: 0; }
.client-url-path { font-size: 10px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-actions { display: flex; gap: 8px; }
.btn-client-select {
  flex: 1; padding: 7px 14px; border-radius: var(--rs);
  background: var(--accent); border: none; color: white; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: background 0.15s;
}
.btn-client-select:hover { background: var(--accent-h); }
.btn-client-select.selected { background: var(--bg4); color: var(--text2); cursor: default; }

/* ═══ SERVERS ════════════════════════════════════════════════════════════════ */
#page-servers { flex-direction: column; overflow: hidden; }
.servers-toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.servers-toolbar-left { display: flex; align-items: baseline; gap: 10px; }
.servers-title { font-size: 22px; font-weight: 900; letter-spacing: 0.04em; }
.servers-count-badge {
  font-size: 11px; color: var(--text3); font-weight: 600;
  background: var(--bg3); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 99px;
}
.servers-search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--rs); padding: 0 10px; height: 32px; color: var(--text2);
}
.servers-search {
  background: none; border: none; outline: none;
  color: var(--text); font-size: 12px; width: 140px;
}
.servers-search::placeholder { color: var(--text3); }
.spacer { flex: 1; }
.icon-btn {
  width: 32px; height: 32px; border-radius: var(--rs);
  background: none; border: 1px solid var(--border); color: var(--text2); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.icon-btn:hover { background: var(--bg3); color: var(--text); }
.icon-btn.active-view { background: var(--bg3); border-color: var(--border2); color: var(--text); }
.servers-grid {
  flex: 1; overflow-y: auto; padding: 14px 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 10px;
  align-content: start;
}

/* Featured card spans 2 cols × 2 rows */
.server-card.featured {
  grid-column: span 2;
  grid-row:    span 2;
}

.server-card {
  border-radius: var(--r); overflow: hidden; cursor: pointer;
  position: relative; border: 1px solid var(--border);
  transition: transform 0.18s cubic-bezier(.22,1,.36,1), border-color 0.18s, box-shadow 0.18s;
  background: #0a1210;
}
.server-card:hover { transform: translateY(-3px) scale(1.01); border-color: var(--border2); box-shadow: 0 12px 32px rgba(0,0,0,.6); }
.server-card-art {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.server-logo-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.server-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
}
.server-card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 14px; display: flex; align-items: flex-end; justify-content: space-between;
}
.server-card-favicon {
  width: 20px; height: 20px; border-radius: 4px; margin-bottom: 3px;
  overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.server-card-favicon img { width: 100%; height: 100%; object-fit: cover; }
.server-card-name { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.server-card.featured .server-card-name { font-size: 20px; }
.server-card-desc { font-size: 10px; color: rgba(255,255,255,.6); margin-top: 2px; line-height: 1.4; }
.server-card.featured .server-card-desc { font-size: 12px; }

/* Server tags row */
.server-card-tags {
  display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px;
}
.server-tag-pill {
  font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 99px;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.server-region-pill {
  font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 99px;
  background: rgba(96,165,250,0.18); color: var(--blue);
  letter-spacing: 0.04em;
}
/* Featured badge */
.server-featured-badge {
  position: absolute; top: 10px; left: 10px; z-index: 5;
  font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-h), var(--accent));
  color: #fff; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(34,197,94,0.4);
}

.server-play-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25);
  color: white; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 11px; padding-left: 2px; transition: background 0.15s; flex-shrink: 0;
}
.server-play-btn:hover { background: var(--accent); border-color: var(--accent); }
.server-card.featured .server-play-btn { width: 42px; height: 42px; font-size: 14px; }

/* ═══ NEWS PAGE ══════════════════════════════════════════════════════════════ */
#page-news { flex-direction: column; overflow-y: auto; }
.news-page { padding: 24px; }
.news-page-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 14px; }
.news-page-card {
  border-radius: var(--r); overflow: hidden; cursor: pointer;
  position: relative; height: 175px; border: 1px solid var(--border);
  transition: transform 0.15s, border-color 0.15s;
}
.news-page-card:hover { transform: translateY(-2px); border-color: var(--border2); }

/* ═══ SETTINGS / ADD ════════════════════════════════════════════════════════ */
#page-settings, #page-add { flex-direction: column; overflow-y: auto; }
.settings-page, .add-page { padding: 24px; }
.page-heading { font-size: 22px; font-weight: 800; margin-bottom: 20px; letter-spacing: 0.02em; }
.settings-sections { max-width: 540px; display: flex; flex-direction: column; gap: 22px; }
.settings-section {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 15px 18px;
}
.settings-section h3 {
  font-size: 11px; font-weight: 700; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
}
.setting-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.setting-row:last-child { margin-bottom: 0; }
.setting-row label { width: 130px; font-size: 13px; color: var(--text2); flex-shrink: 0; }
.settings-username-row { display: flex; gap: 8px; flex: 1; }
.settings-input {
  flex: 1; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-size: 12px; padding: 7px 10px;
  border-radius: var(--rs); outline: none; transition: border-color 0.15s;
}
.settings-input:focus { border-color: var(--blue); }
.settings-select {
  flex: 1; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-size: 12px; padding: 7px 10px;
  border-radius: var(--rs); outline: none; cursor: pointer;
}
.settings-save-row { display: flex; justify-content: flex-end; }
.add-form { max-width: 480px; display: flex; flex-direction: column; gap: 4px; }
.color-row { display: flex; gap: 8px; }
.color-swatch {
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: border-color 0.15s, transform 0.1s;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active { border-color: white; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-green {
  padding: 8px 18px; border-radius: var(--rs);
  background: var(--accent); border: none;
  color: white; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background 0.15s;
}
.btn-green:hover { background: var(--accent-h); }
.btn-green-sm {
  padding: 6px 13px; border-radius: var(--rs);
  background: var(--accent); border: none;
  color: white; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background 0.15s;
}
.btn-green-sm:hover { background: var(--accent-h); }
.btn-outline {
  padding: 7px 16px; border-radius: var(--rs);
  background: none; border: 1px solid var(--border2); color: var(--text); font-size: 12px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-outline:hover { background: var(--bg3); border-color: var(--text3); }
.filter-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 99px;
  background: var(--bg3); border: 1px solid var(--border); color: var(--text2); font-size: 12px; cursor: pointer;
  transition: all 0.15s; white-space: nowrap;
}
.filter-chip.active { background: rgba(96,165,250,.12); border-color: var(--blue); color: var(--blue); }
.sort-chip {
  padding: 5px 12px; border-radius: var(--rs);
  background: var(--bg3); border: 1px solid var(--border); color: var(--text2); font-size: 12px; cursor: pointer;
  transition: background 0.15s; white-space: nowrap;
}
.sort-chip:hover { background: var(--bg4); }

/* ── API Settings ──────────────────────────────────────────────────────────── */
.api-status-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--text);
}
.api-url-code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 11px; color: var(--blue);
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--rs); padding: 3px 8px;
  user-select: text; -webkit-user-select: text;
  max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Server card — live player counts & icons ──────────────────────────────── */
.server-card-icon {
  width: 28px; height: 28px; border-radius: 6px; margin-bottom: 4px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0; position: relative;
}
.server-icon-img {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
}
.server-icon-emoji { font-size: 14px; }
.server-art-emoji {
  font-size: 40px; position: relative; z-index: 1;
}
.server-banner-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.55;
}
.server-card-count {
  display: flex; align-items: center; gap: 5px;
  margin-top: 4px; font-size: 10px; color: var(--text2);
}
.server-online-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.server-online-dot.online  { background: var(--accent); box-shadow: 0 0 5px var(--accent); }
.server-online-dot.offline { background: var(--text3); }
.server-player-count { font-size: 10px; color: var(--text2); }

/* ── Client card — banner images & update badge ────────────────────────────── */
.client-banner-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.45;
}
.client-update-badge {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: rgba(34,197,94,0.9); color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 99px; letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.client-featured-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(245,158,11,0.9); color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 99px; letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.btn-client-update {
  padding: 7px 12px; border-radius: var(--rs);
  background: rgba(34,197,94,0.15); border: 1px solid var(--accent);
  color: var(--accent); font-size: 12px; font-weight: 700; cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-client-update:hover { background: rgba(34,197,94,0.28); }
.btn-client-website {
  width: 32px; height: 32px; border-radius: var(--rs);
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s; flex-shrink: 0;
}
.btn-client-website:hover { background: var(--bg4); color: var(--text); }
.client-versions-row {
  display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px;
}
.client-version-pill {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px;
  background: rgba(34,197,94,0.1); color: var(--accent);
  border: 1px solid rgba(34,197,94,0.2);
}
.client-author-row {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--text3); margin-bottom: 10px;
}

/* Client badge variants */
.client-badge.pvp     { background: rgba(239,68,68,.18);  color: #ef4444; }
.client-badge.popular { background: rgba(96,165,250,.18); color: var(--blue); }
.client-badge.new     { background: rgba(34,197,94,.18);  color: var(--accent); }
.client-badge.smooth  { background: rgba(167,139,250,.18);color: #a78bfa; }

/* ── News — article images ─────────────────────────────────────────────────── */
.news-art-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.6;
}
.news-art-emoji {
  position: relative; z-index: 1;
}
.news-card-category {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 3px;
}
.news-card-summary {
  font-size: 11px; color: var(--text2); line-height: 1.5;
  margin: 4px 0; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
/* Compact summary for launchpad news cards */
.news-card-summary-sm {
  font-size: 10px; color: rgba(255,255,255,0.5); line-height: 1.4;
  margin: 3px 0 2px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Verdex green titlebar tint ────────────────────────────────────────────── */
.titlebar {
  background: linear-gradient(90deg, #060d08 0%, #060d08 70%, rgba(34,197,94,0.04) 100%);
}
.titlebar-app { color: var(--accent); }

/* ── Announcement banner — green ──────────────────────────────────────────── */
.announcement-banner {
  background: linear-gradient(90deg, #14532d, #166534, #14532d);
}

/* ── Leaf canvas opacity tweak ─────────────────────────────────────────────── */
#stars-canvas { opacity: 0.55; }

/* ── Titlebar new-window test button ───────────────────────────────────────── */
.titlebar-new-window {
  background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3);
  color: var(--accent); font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: var(--rs); cursor: pointer;
  transition: background 0.15s;
  -webkit-app-region: no-drag;
}
.titlebar-new-window:hover { background: rgba(34,197,94,0.22); }

/* ══════════════════════════════════════════════════════════════════════════════
   ENHANCED ANIMATIONS & POLISH
══════════════════════════════════════════════════════════════════════════════ */

/* ── Staggered card entrance ───────────────────────────────────────────────── */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.news-card, .server-card, .client-card, .version-card {
  animation: cardIn 0.35s cubic-bezier(.22,1,.36,1) both;
}
.news-card:nth-child(1)    { animation-delay: 0.04s; }
.news-card:nth-child(2)    { animation-delay: 0.09s; }
.news-card:nth-child(3)    { animation-delay: 0.14s; }
.news-card:nth-child(4)    { animation-delay: 0.19s; }
.server-card:nth-child(1)  { animation-delay: 0.03s; }
.server-card:nth-child(2)  { animation-delay: 0.07s; }
.server-card:nth-child(3)  { animation-delay: 0.11s; }
.server-card:nth-child(4)  { animation-delay: 0.15s; }
.server-card:nth-child(5)  { animation-delay: 0.19s; }
.server-card:nth-child(6)  { animation-delay: 0.23s; }
.client-card:nth-child(1)  { animation-delay: 0.04s; }
.client-card:nth-child(2)  { animation-delay: 0.09s; }
.client-card:nth-child(3)  { animation-delay: 0.14s; }
.version-card:nth-child(1) { animation-delay: 0.04s; }
.version-card:nth-child(2) { animation-delay: 0.09s; }

/* ── Page transition — slide from right ────────────────────────────────────── */
.page {
  transform: translateY(6px) scale(0.995);
  transition: opacity 0.28s cubic-bezier(.22,1,.36,1), transform 0.28s cubic-bezier(.22,1,.36,1);
}
.page.active { transform: translateY(0) scale(1); }

/* ── Sidebar nav — smoother active indicator ───────────────────────────────── */
.nav-btn::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 0; border-radius: 0 3px 3px 0; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transition: height 0.22s cubic-bezier(.22,1,.36,1);
}
.nav-btn.active::before { height: 20px; }

/* Tooltip on nav buttons */
.nav-btn[title]:hover::after {
  content: attr(title);
  position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: var(--bg4); border: 1px solid var(--border2);
  color: var(--text); font-size: 11px; font-weight: 600;
  padding: 4px 9px; border-radius: var(--rs); white-space: nowrap;
  pointer-events: none; z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  animation: tooltipIn 0.15s ease both;
}
@keyframes tooltipIn {
  from { opacity: 0; transform: translateY(-50%) translateX(-4px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* ── Launch button — shimmer on idle ───────────────────────────────────────── */
@keyframes launchShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.launch-btn:not(.launching):not(.launched):not(.running) {
  background-image: linear-gradient(
    105deg,
    var(--accent) 40%,
    rgba(134,239,172,0.55) 50%,
    var(--accent) 60%
  );
  background-size: 200% auto;
  animation: launchShimmer 3.5s linear infinite;
}
.launch-btn:not(.launching):not(.launched):not(.running):hover {
  animation-duration: 1.5s;
}

/* ── Launch button — pulse ring when running ───────────────────────────────── */
@keyframes runPulse {
  0%   { box-shadow: 0 0 0 0 rgba(229,57,53,0.5), 0 0 36px rgba(229,57,53,.45); }
  70%  { box-shadow: 0 0 0 10px rgba(229,57,53,0), 0 0 36px rgba(229,57,53,.45); }
  100% { box-shadow: 0 0 0 0 rgba(229,57,53,0), 0 0 36px rgba(229,57,53,.45); }
}
.launch-btn.running { animation: runPulse 2s ease-out infinite; }

/* ── Hero — subtle parallax shimmer on the glow ────────────────────────────── */
@keyframes glowBreath {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%       { opacity: 1;    transform: scale(1.04); }
}
.hero-glow { animation: glowBreath 5s ease-in-out infinite; }

/* ── Hero — scan-line effect ───────────────────────────────────────────────── */
.launchpad-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 6;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
}

/* ── Welcome greeting — typewriter cursor ──────────────────────────────────── */
.welcome-name::after {
  content: '|';
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
  margin-left: 2px;
  font-weight: 300;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Server strip — animated online pulse ──────────────────────────────────── */
@keyframes onlinePing {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  70%  { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.server-online-dot.online { animation: onlinePing 2.5s ease-out infinite; }

/* ── Strip item — hover lift ───────────────────────────────────────────────── */
.strip-item {
  transition: border-color 0.15s, color 0.15s, transform 0.18s cubic-bezier(.22,1,.36,1);
}
.strip-item:hover { transform: translateY(-2px); }

/* ── News card — image zoom on hover ───────────────────────────────────────── */
.news-card .news-art-img,
.news-page-card .news-art-img {
  transition: transform 0.5s cubic-bezier(.22,1,.36,1), opacity 0.3s;
}
.news-card:hover .news-art-img,
.news-page-card:hover .news-art-img { transform: scale(1.06); }

/* ── Server card — banner zoom on hover ────────────────────────────────────── */
.server-banner-img {
  transition: transform 0.5s cubic-bezier(.22,1,.36,1), opacity 0.3s;
}
.server-card:hover .server-banner-img { transform: scale(1.05); }

/* ── Client card — banner zoom on hover ────────────────────────────────────── */
.client-banner-img {
  transition: transform 0.5s cubic-bezier(.22,1,.36,1), opacity 0.3s;
}
.client-card:hover .client-banner-img { transform: scale(1.05); }

/* ── Server play button — spin on hover ────────────────────────────────────── */
.server-play-btn svg,
.server-play-btn { transition: background 0.15s, transform 0.2s cubic-bezier(.22,1,.36,1); }
.server-play-btn:hover { transform: scale(1.15); }

/* ── Toast — slide in from right with spring ───────────────────────────────── */
.toast {
  transition: transform 0.38s cubic-bezier(.22,1,.36,1), opacity 0.3s ease;
}

/* ── Modal — spring entrance ───────────────────────────────────────────────── */
.modal-overlay.open .modal-card {
  animation: modalSpring 0.35s cubic-bezier(.22,1,.36,1) both;
}
@keyframes modalSpring {
  from { transform: scale(0.92) translateY(16px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

/* ── Settings section — hover highlight ────────────────────────────────────── */
.settings-section {
  transition: border-color 0.2s, box-shadow 0.2s;
}
.settings-section:hover {
  border-color: var(--border2);
  box-shadow: 0 0 0 1px rgba(34,197,94,0.06);
}

/* ── Input focus glow ──────────────────────────────────────────────────────── */
.settings-input:focus, .modal-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
}

/* ── Button press feedback ─────────────────────────────────────────────────── */
.btn-green:active, .btn-green-sm:active, .btn-client-select:active {
  transform: scale(0.96);
  transition: transform 0.08s;
}

/* ── Scrollbar — accent on hover ───────────────────────────────────────────── */
::-webkit-scrollbar-thumb:hover { background: rgba(34,197,94,0.3); }

/* ── Version card — glow on hover ─────────────────────────────────────────── */
.version-card:hover {
  box-shadow: 0 0 0 1px rgba(34,197,94,0.2), 0 8px 24px rgba(0,0,0,.45);
}

/* ── Vpicker — item hover glow ─────────────────────────────────────────────── */
.vpicker-item { transition: background 0.12s, transform 0.18s cubic-bezier(.22,1,.36,1); }
.vpicker-item:hover { transform: translateX(3px); }

/* ── User chip — avatar pulse when online ──────────────────────────────────── */
@keyframes avatarGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.3); }
  50%      { box-shadow: 0 0 0 4px rgba(34,197,94,0.1); }
}
.user-avatar { animation: avatarGlow 4s ease-in-out infinite; }

/* ── Announcement banner — shimmer ─────────────────────────────────────────── */
@keyframes bannerShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.announcement-banner {
  background: linear-gradient(
    90deg,
    #14532d 0%, #166534 40%, #15803d 50%, #166534 60%, #14532d 100%
  );
  background-size: 200% auto;
  animation: bannerShimmer 6s linear infinite;
}

/* ── Nav badge — bounce ─────────────────────────────────────────────────────── */
@keyframes badgeBounce {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.3); }
}
.nav-badge { animation: badgeBounce 2s ease-in-out infinite; }

/* ── Launchpad welcome — fade in on load ───────────────────────────────────── */
@keyframes welcomeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.launchpad-welcome { animation: welcomeIn 0.5s 0.1s cubic-bezier(.22,1,.36,1) both; }

/* ── Hero — entrance animation ─────────────────────────────────────────────── */
@keyframes heroIn {
  from { opacity: 0; transform: scale(0.98) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.launchpad-hero { animation: heroIn 0.55s 0.15s cubic-bezier(.22,1,.36,1) both; }

/* ── Launch center — entrance ──────────────────────────────────────────────── */
@keyframes launchIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.launch-center { animation: launchIn 0.5s 0.35s cubic-bezier(.22,1,.36,1) both; }

/* ── Server strip — slide up ───────────────────────────────────────────────── */
@keyframes stripIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.server-strip { animation: stripIn 0.4s 0.25s cubic-bezier(.22,1,.36,1) both; }

/* ── News section — fade up ────────────────────────────────────────────────── */
@keyframes newsSectionIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.news-section { animation: newsSectionIn 0.45s 0.3s cubic-bezier(.22,1,.36,1) both; }

/* ── Active client card — glow border ──────────────────────────────────────── */
@keyframes activeClientPulse {
  0%,100% { box-shadow: 0 0 0 1px var(--accent), 0 0 12px rgba(34,197,94,0.15); }
  50%      { box-shadow: 0 0 0 1px var(--accent), 0 0 22px rgba(34,197,94,0.28); }
}
.client-card.active-client { animation: activeClientPulse 3s ease-in-out infinite; }

/* ── Featured server badge — shimmer ───────────────────────────────────────── */
@keyframes featuredShimmer {
  0%   { background-position: -100% center; }
  100% { background-position: 200% center; }
}
.server-featured-badge {
  background: linear-gradient(90deg, var(--accent-h) 0%, #86efac 50%, var(--accent-h) 100%);
  background-size: 200% auto;
  animation: featuredShimmer 2.5s linear infinite;
}

/* ── Titlebar — subtle bottom glow ─────────────────────────────────────────── */
.titlebar {
  box-shadow: 0 1px 0 var(--border), 0 2px 12px rgba(34,197,94,0.04);
}

/* ── Sidebar — subtle inner glow ───────────────────────────────────────────── */
.sidebar {
  box-shadow: 1px 0 0 var(--border), inset -1px 0 20px rgba(34,197,94,0.02);
}

/* ── Hero block — extra variety ────────────────────────────────────────────── */
@keyframes blockDrift {
  0%   { opacity: 0; transform: translateY(0) translateX(0) rotate(var(--rot,0deg)); }
  15%  { opacity: var(--op,0.14); }
  50%  { transform: translateY(-18px) translateX(6px) rotate(calc(var(--rot,0deg) + 12deg)); opacity: calc(var(--op,0.14)*1.5); }
  85%  { opacity: var(--op,0.14); }
  100% { opacity: 0; transform: translateY(0) translateX(0) rotate(var(--rot,0deg)); }
}
.hero-block { animation-name: blockDrift; }

/* ── Presence count — number flip ──────────────────────────────────────────── */
@keyframes countFlip {
  from { transform: translateY(-4px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.count-updated { animation: countFlip 0.25s cubic-bezier(.22,1,.36,1); }

/* ── Download modal — progress fill glow ───────────────────────────────────── */
.dl-fill {
  box-shadow: 0 0 8px rgba(34,197,94,0.5);
  transition: width 0.35s cubic-bezier(.22,1,.36,1);
}

/* ── Version picker — backdrop blur ────────────────────────────────────────── */
.vpicker {
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(34,197,94,0.15);
}

/* ── Strip item — player count sub-label ───────────────────────────────────── */
.strip-count {
  font-size: 9px; color: var(--text3); margin-top: 1px;
  display: flex; align-items: center; gap: 3px;
}
.strip-count-dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
  flex-shrink: 0;
}

/* ── Launchpad — quick-stats bar ────────────────────────────────────────────── */
.launchpad-stats {
  display: flex; align-items: center; gap: 20px;
  padding: 8px 26px; position: relative; z-index: 1;
  border-bottom: 1px solid var(--border);
  background: rgba(6,13,8,0.6);
  animation: stripIn 0.4s 0.2s cubic-bezier(.22,1,.36,1) both;
}
.lp-stat {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text3);
}
.lp-stat-val {
  font-size: 13px; font-weight: 700; color: var(--text2);
}
.lp-stat-accent { color: var(--accent); }
.lp-stat-divider { width: 1px; height: 14px; background: var(--border); }

/* ── News page — featured first card ───────────────────────────────────────── */
.news-page-card.featured-news {
  grid-column: span 2; height: 220px;
}

/* ── Settings — toggle switch ───────────────────────────────────────────────── */
.toggle-wrap { display: flex; align-items: center; gap: 10px; }
.toggle {
  position: relative; width: 36px; height: 20px; flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; border-radius: 99px;
  background: var(--bg4); border: 1px solid var(--border);
  cursor: pointer; transition: background 0.2s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 14px; height: 14px; border-radius: 50%;
  left: 2px; top: 50%; transform: translateY(-50%);
  background: var(--text3);
  transition: transform 0.2s cubic-bezier(.22,1,.36,1), background 0.2s;
}
.toggle input:checked + .toggle-slider { background: rgba(34,197,94,0.25); border-color: var(--accent); }
.toggle input:checked + .toggle-slider::before {
  transform: translateX(16px) translateY(-50%);
  background: var(--accent);
  box-shadow: 0 0 6px rgba(34,197,94,0.5);
}

/* ── No-animations mode ─────────────────────────────────────────────────────── */
.no-animations *,
.no-animations *::before,
.no-animations *::after {
  animation-duration: 0.001ms !important;
  animation-delay: 0ms !important;
  transition-duration: 0.001ms !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESOURCE PACKS PAGE
══════════════════════════════════════════════════════════════════════════════ */

#page-resourcepacks {
  overflow-y: auto;
}

.resourcepacks-page {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.resourcepacks-header {
  margin-bottom: 32px;
}

.resourcepacks-sub {
  color: var(--text2);
  font-size: 14px;
  margin-top: 8px;
}

.resourcepacks-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.resourcepacks-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.resourcepacks-count-badge {
  background: var(--bg4);
  color: var(--text2);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.resourcepacks-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.resourcepacks-search-wrap svg {
  position: absolute;
  left: 12px;
  color: var(--text3);
  pointer-events: none;
}

.resourcepacks-search {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--rs);
  padding: 8px 12px 8px 36px;
  color: var(--text);
  font-size: 13px;
  width: 240px;
  transition: all 0.2s ease;
}

.resourcepacks-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--vglow2);
}

.filter-chips {
  display: flex;
  gap: 8px;
}

.filter-chip {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: capitalize;
}

.filter-chip:hover {
  background: var(--bg4);
  border-color: var(--border2);
}

.filter-chip.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.resourcepacks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.resourcepack-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.resourcepack-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.resourcepack-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--vglow2);
}

.resourcepack-featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: var(--bg);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  z-index: 2;
}

.resourcepack-card-banner {
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.resourcepack-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.resourcepack-card:hover .resourcepack-banner-img {
  transform: scale(1.05);
}

.resourcepack-card-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
}

.resourcepack-card-body {
  padding: 16px;
}

.resourcepack-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.resourcepack-resolution-badge {
  background: var(--bg4);
  color: var(--text2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
}

.resourcepack-desc {
  color: var(--text2);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resourcepack-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.resourcepack-tag {
  background: var(--bg3);
  color: var(--text3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
}

.resourcepack-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text2);
}

.resourcepack-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.resourcepack-rating-stars {
  color: var(--yellow);
}

.resourcepack-author-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--text3);
}

.resourcepack-author-row svg {
  width: 11px;
  height: 11px;
}

.resourcepack-actions {
  display: flex;
  gap: 8px;
}

.btn-resourcepack-download {
  flex: 1;
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 8px 16px;
  border-radius: var(--rs);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-resourcepack-download:hover {
  background: var(--accent-h);
  transform: translateY(-1px);
}

.btn-resourcepack-website {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 8px;
  border-radius: var(--rs);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-resourcepack-website:hover {
  background: var(--bg4);
  border-color: var(--border2);
  color: var(--text);
}

.resourcepack-supported-versions {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.resourcepack-version-pill {
  background: var(--bg4);
  color: var(--text2);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 500;
}

/* Resource pack detail modal (if needed later) */
.resourcepack-detail-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.resourcepack-detail-modal.open {
  opacity: 1;
  visibility: visible;
}

.resourcepack-detail-content {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .resourcepacks-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .resourcepacks-search {
    width: 100%;
  }
  
  .filter-chips {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .resourcepacks-grid {
    grid-template-columns: 1fr;
  }
}
.btn-refresh-modrinth {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 6px 12px;
  border-radius: var(--rs);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-refresh-modrinth:hover {
  background: var(--bg4);
  border-color: var(--border2);
  color: var(--text);
}

.btn-refresh-modrinth:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-refresh-modrinth.loading svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.modrinth-badge {
  background: #1bd96a;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════════════════════
   AUTH / SOCIAL LAYER
══════════════════════════════════════════════════════════════════════════════ */

/* ── Auth split-card ─────────────────────────────────────────────────────────── */
#auth-modal { background: rgba(0,0,0,0.75); backdrop-filter: blur(8px); }

.auth-split-card {
  display: flex; border-radius: 18px; overflow: hidden;
  width: min(860px, 96vw);
  box-shadow: 0 32px 96px rgba(0,0,0,0.8);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.25s cubic-bezier(.22,1,.36,1);
}
#auth-modal.open .auth-split-card { transform: scale(1) translateY(0); }

/* Left brand panel */
.auth-brand-panel {
  width: 340px; flex-shrink: 0;
  background: linear-gradient(160deg, #0d2212 0%, #091a0d 55%, #060e07 100%);
  border-right: 1px solid rgba(34,197,94,0.12);
  padding: 48px 36px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.auth-brand-glow {
  position: absolute; top: -60px; left: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.auth-brand-logo {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg,#0e2b14,#1a4a22);
  border: 1px solid rgba(34,197,94,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 24px;
  box-shadow: 0 0 24px rgba(34,197,94,0.15);
}
.auth-brand-name {
  font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -.5px;
  margin-bottom: 8px;
}
.auth-brand-tagline {
  font-size: 14px; color: var(--text2); line-height: 1.55; margin-bottom: 36px;
}
.auth-brand-features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 13px; margin-top: auto;
}
.auth-brand-features li {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; color: var(--text2);
}
.auth-brand-features li svg { color: var(--accent); flex-shrink: 0; }

/* Right form panel */
.auth-form-panel {
  flex: 1; background: #0e1612;
  padding: 48px 40px; display: flex; flex-direction: column;
  gap: 0; position: relative;
}
.auth-form-close {
  position: absolute; top: 16px; right: 16px;
}
.auth-form-title {
  font-size: 24px; font-weight: 800; color: var(--text);
  letter-spacing: -.4px; margin-bottom: 6px;
}
.auth-form-sub {
  font-size: 13px; color: var(--text2); margin-bottom: 28px;
}
.auth-error {
  font-size: 12px; color: var(--red); min-height: 18px; margin-bottom: 10px;
}

/* Fields */
.auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.auth-label { font-size: 11px; font-weight: 700; color: var(--text2); letter-spacing: .04em; text-transform: uppercase; }
.auth-input {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(34,197,94,0.15);
  border-radius: 8px; color: var(--text); font-size: 13px;
  padding: 11px 14px; outline: none; width: 100%; box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}
.auth-input:focus { border-color: var(--accent); background: rgba(34,197,94,0.06); }
.auth-input::placeholder { color: var(--text3); }

/* Password wrap */
.auth-pw-wrap { position: relative; }
.auth-pw-wrap .auth-input { padding-right: 42px; }
.auth-pw-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text3); cursor: pointer;
  padding: 4px; display: flex; align-items: center;
  transition: color 0.15s;
}
.auth-pw-toggle:hover { color: var(--text2); }

/* Submit button */
.auth-submit-btn {
  width: 100%; padding: 12px; border-radius: 8px; border: none;
  background: var(--accent); color: #000; font-size: 14px; font-weight: 700;
  cursor: pointer; margin-top: 8px; margin-bottom: 20px;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  letter-spacing: .02em;
}
.auth-submit-btn:hover  { background: #28d968; box-shadow: 0 0 20px rgba(34,197,94,0.4); }
.auth-submit-btn:active { transform: scale(0.98); }
.auth-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.auth-toggle-row {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: var(--text2);
}
.auth-toggle-btn {
  background: none; border: none; color: var(--accent); font-size: 12px;
  cursor: pointer; font-weight: 600; padding: 0;
}
.auth-toggle-btn:hover { text-decoration: underline; }

/* ── Auth Discord section (inside register form) ─────────────────────────────── */
.auth-label-required {
  color: var(--red); font-weight: 700; font-size: 10px; margin-left: 4px;
}
.auth-discord-btn {
  width: 100%; padding: 11px 14px; border-radius: 8px;
  background: rgba(88,101,242,0.15); border: 1px solid rgba(88,101,242,0.35);
  color: #c9cbff; font-size: 13px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s, border-color 0.15s;
}
.auth-discord-btn:hover  { background: rgba(88,101,242,0.25); border-color: rgba(88,101,242,0.6); }
.auth-discord-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-discord-code-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.auth-discord-code-box {
  flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--border2);
  border-radius: 8px; padding: 9px 14px;
  font-size: 20px; font-weight: 800; letter-spacing: .2em;
  color: var(--accent); text-align: center; font-family: monospace;
}
.auth-discord-hint {
  font-size: 12px; color: var(--text2); margin-bottom: 8px; line-height: 1.5;
}
.auth-discord-waiting {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--text3);
}
.auth-discord-spinner {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--border2); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-discord-done {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--accent); font-weight: 600;
  background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2);
  border-radius: 8px; padding: 9px 12px;
}

/* ── Guest row ───────────────────────────────────────────────────────────────── */
.auth-guest-row {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.auth-guest-btn {
  background: none; border: none; color: var(--text3); font-size: 12px;
  cursor: pointer; padding: 2px 0; transition: color 0.15s;
}
.auth-guest-btn:hover { color: var(--text2); text-decoration: underline; }
.auth-guest-note {
  font-size: 10px; color: var(--text3);
}

/* Discord code box */
.discord-code-box {
  flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--border2);
  border-radius: 8px; padding: 10px 16px;
  font-size: 22px; font-weight: 800; letter-spacing: .18em;
  color: var(--accent); text-align: center; font-family: monospace;
}
.btn-outline {
  background: none; border: 1px solid var(--border2); color: var(--text2);
  border-radius: 8px; padding: 8px 14px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--text); }

/* ── Verified badge ──────────────────────────────────────────────────────────── */
#verified-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); position: absolute; bottom: 0; right: 0;
  border: 1.5px solid var(--bg);
}
#verified-badge svg { width: 6px; height: 6px; }

/* ── Side panels ─────────────────────────────────────────────────────────────── */
.side-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 300px; background: var(--bg2);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1200; box-shadow: -8px 0 32px rgba(0,0,0,0.4);
}
.side-panel.open { transform: translateX(0); }
.side-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.side-panel-close {
  background: none; border: none; color: var(--text3); cursor: pointer;
  font-size: 13px; padding: 4px; border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.side-panel-close:hover { color: var(--text); background: var(--bg3); }
.side-panel-icon-btn {
  background: none; border: none; color: var(--text2); cursor: pointer;
  padding: 4px; border-radius: 4px; display: flex; align-items: center;
  transition: color 0.15s, background 0.15s;
}
.side-panel-icon-btn:hover { color: var(--accent); background: var(--bg3); }
.side-panel-body { flex: 1; overflow-y: auto; padding: 8px 0; }

/* ── Panel backdrop ──────────────────────────────────────────────────────────── */
.panel-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none; z-index: 1100;
  transition: opacity 0.25s;
}
.panel-backdrop.open { opacity: 1; pointer-events: all; }

/* ── Panel tabs ──────────────────────────────────────────────────────────────── */
.panel-tabs {
  display: flex; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.panel-tab {
  flex: 1; background: none; border: none; color: var(--text2);
  font-size: 12px; font-weight: 600; padding: 10px 4px;
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.panel-tab:hover { color: var(--text); }
.panel-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.req-badge {
  background: var(--red); color: white;
  font-size: 10px; font-weight: 700; border-radius: 10px;
  padding: 1px 5px; min-width: 16px; text-align: center;
}
.panel-tab-body { flex: 1; overflow-y: auto; }

/* ── Friends list ────────────────────────────────────────────────────────────── */
.add-friend-form { padding: 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.add-friend-form .settings-input { margin: 0; }
.friend-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; transition: background 0.15s; cursor: default;
}
.friend-row:hover { background: var(--bg3); }
.friend-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: white; flex-shrink: 0;
}
.friend-info { flex: 1; min-width: 0; }
.friend-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-status { font-size: 11px; color: var(--text2); text-transform: capitalize; }
.friend-actions { display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.friend-row:hover .friend-actions { opacity: 1; }
.friend-dm-btn, .friend-remove-btn {
  background: none; border: none; color: var(--text3); cursor: pointer;
  padding: 5px; border-radius: 4px; display: flex; align-items: center;
  transition: color 0.15s, background 0.15s;
}
.friend-dm-btn:hover    { color: var(--accent); background: var(--bg4); }
.friend-remove-btn:hover { color: var(--red);    background: var(--bg4); }

/* ── Request rows ────────────────────────────────────────────────────────────── */
.req-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  color: var(--text3); text-transform: uppercase; padding: 10px 14px 4px;
}
.req-empty { font-size: 12px; color: var(--text3); padding: 6px 14px; }
.req-accept-btn { font-size: 11px; padding: 4px 8px; }

/* ── Wide panel (DM) ────────────────────────────────────────────────────────── */
.side-panel-wide { width: 340px; }

/* ── Chat panel ──────────────────────────────────────────────────────────────── */
.chat-messages {
  flex: 1; overflow-y: auto; padding: 12px; display: flex;
  flex-direction: column; gap: 8px;
}
.chat-msg {
  display: flex; flex-direction: column; gap: 2px; max-width: 85%;
}
.chat-msg-me { align-self: flex-end; align-items: flex-end; }
.chat-msg-name { font-size: 10px; color: var(--text2); font-weight: 600; }
.chat-msg-me .chat-msg-name { color: var(--accent); }
.chat-msg-text {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px 10px 10px 2px;
  padding: 7px 11px; font-size: 13px; line-height: 1.4; word-break: break-word;
}
.chat-msg-me .chat-msg-text {
  background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.25);
  border-radius: 10px 10px 2px 10px;
}
.chat-msg-time { font-size: 10px; color: var(--text3); }
.chat-input-row {
  display: flex; gap: 8px; padding: 12px;
  border-top: 1px solid var(--border); flex-shrink: 0;
}
.chat-input {
  flex: 1; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--rs); color: var(--text); font-size: 13px;
  padding: 8px 12px; outline: none; transition: border-color 0.15s;
}
.chat-input:focus { border-color: var(--accent); }

/* ══════════════════════════════════════════════════════════════════════════════
   POLISH LAYER
══════════════════════════════════════════════════════════════════════════════ */

/* ── Skeleton shimmer ────────────────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--bg4) 50%, var(--bg3) 75%);
  background-size: 1200px 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--rs);
  color: transparent !important;
  pointer-events: none;
}

/* ── Player count skeleton ───────────────────────────────────────────────────── */
.server-player-count.loading {
  display: inline-block; width: 64px; height: 9px;
  background: linear-gradient(90deg, var(--bg3) 25%, var(--bg4) 50%, var(--bg3) 75%);
  background-size: 1200px 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 99px; vertical-align: middle;
  color: transparent;
}

/* ── Count flash on update ───────────────────────────────────────────────────── */
@keyframes countFlash {
  0%   { color: var(--accent); text-shadow: 0 0 8px rgba(34,197,94,0.6); }
  100% { color: var(--text2); text-shadow: none; }
}
.count-updated {
  animation: countFlash 1s ease-out forwards;
}

/* ── Empty states ────────────────────────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 52px 24px; color: var(--text3); text-align: center;
  grid-column: 1 / -1; width: 100%;
}
.empty-state-icon { font-size: 30px; opacity: 0.4; margin-bottom: 2px; }
.empty-state-title { font-size: 14px; font-weight: 600; color: var(--text2); }
.empty-state-desc { font-size: 12px; line-height: 1.6; max-width: 240px; }

/* ── Button improvements ─────────────────────────────────────────────────────── */
.btn-green, .btn-green-sm {
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn-green:hover, .btn-green-sm:hover {
  box-shadow: 0 4px 18px rgba(34,197,94,0.28);
}
.btn-outline {
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn-outline:active {
  transform: scale(0.97);
  transition: transform 0.08s;
}
.btn-client-website:active, .btn-client-update:active,
.btn-resourcepack-download:active, .btn-resourcepack-website:active,
.btn-refresh-modrinth:active {
  transform: scale(0.96);
  transition: transform 0.08s;
}

/* ── Server play button ──────────────────────────────────────────────────────── */
.server-play-btn {
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s !important;
}
.server-play-btn:hover {
  box-shadow: 0 4px 18px rgba(34,197,94,0.32) !important;
  transform: scale(1.1) !important;
}
.server-play-btn:active {
  transform: scale(0.95) !important;
  transition: transform 0.08s !important;
}

/* ── Filter chip polish ──────────────────────────────────────────────────────── */
.filter-chip {
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.1s;
}
.filter-chip.active {
  background: rgba(34,197,94,0.12);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.filter-chip:active { transform: scale(0.96); }

/* ── News card title hover ───────────────────────────────────────────────────── */
.news-card:hover .news-card-title {
  color: var(--accent);
  transition: color 0.2s;
}
.news-card-title { transition: color 0.2s; }

/* ── Settings section hover ──────────────────────────────────────────────────── */
.settings-section {
  transition: border-color 0.2s, box-shadow 0.2s;
}
.settings-section:hover {
  border-color: var(--border2);
  box-shadow: 0 0 0 1px var(--border);
}

/* ── Announcement banner dismiss ────────────────────────────────────────────── */
.announcement-banner {
  transition: opacity 0.3s, max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
}
.announcement-banner.dismissed {
  opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; overflow: hidden;
}

/* ── Card entrance stagger fix ───────────────────────────────────────────────── */
.server-card, .client-card, .news-card, .resourcepack-card {
  will-change: transform;
}