/* nLauncher website — launcher-aligned dark theme with subtle MC traces. */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #000000;
  --bg-soft: #0A0A0A;
  --surface-1: rgba(255,255,255,.03);
  --surface-2: rgba(255,255,255,.05);
  --surface-3: rgba(255,255,255,.08);
  --surface-4: rgba(255,255,255,.12);
  --border: rgba(255,255,255,.08);
  --border-hi: rgba(255,255,255,.16);
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;

  /* Monochrome blue brand palette — no cyan/teal anywhere. */
  --accent-1: #60a5fa;  /* light blue (sky-ish), used for highlights */
  --accent-2: #3b82f6;  /* mid blue, used for tags & subtle accents */
  --accent-3: #2563eb;  /* primary brand blue, used for solid CTAs */
  --accent-grad: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  --accent-soft: linear-gradient(135deg, rgba(96,165,250,.16), rgba(37,99,235,.10));

  --mc-grass: #86c05e;
  --mc-gold: #fbbf24;
  --mc-diamond: #5eead4;

  --ok: #86c05e;
  --warn: #fbbf24;
  --err: #f87171;

  --font-display: 'Outfit', ui-sans-serif, system-ui;
  --font-body: 'Inter', ui-sans-serif, system-ui;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;

  --shadow-md: 0 8px 28px rgba(0,0,0,.30);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.45);
  --glow-cyan: 0 10px 32px rgba(96,165,250,.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Ensure the HTML `hidden` attribute always wins, even on elements with
   their own explicit `display:` rule (e.g. .admin-badge has display:inline-flex
   which would otherwise override the user-agent default `[hidden]{display:none}`). */
[hidden] { display: none !important; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  /* Modern dot-pattern background, like Linear / Vercel. */
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  background-attachment: fixed;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(96,165,250,.25); color: #fff; }

/* Decorative ambient orbs — fixed behind everything, no markup needed. */
body::before, body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 9999px;
  filter: blur(90px);
}
body::before {
  top: -12vh; right: -8vw;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(96,165,250,.28), transparent 70%);
}
body::after {
  top: 30vh; left: -10vw;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(37,99,235,.22), transparent 70%);
}
/* Legacy decoration container from old hero — keep hidden. */
.bg-fx { display: none; }

/* Nav — floating capsule (matches the landing) */
.nav {
  position: fixed;
  top: 24px;
  left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
  background: transparent;
  border: none;
  backdrop-filter: none;
}
.nav-inner {
  pointer-events: auto;
  width: 100%;
  max-width: 1080px;
  padding: 8px 14px 8px 10px;
  display: flex; align-items: center; gap: 24px;
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 16px;
  letter-spacing: -.01em;
  color: #fff;
  padding-left: 4px;
}
.brand-mark { width: 32px; height: 32px; flex: none; border-radius: 9999px; }
.nav-links { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav-links a {
  padding: 8px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  border-radius: 9999px;
  position: relative;
  transition: color .18s ease, background .18s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: #fff; }
.nav-links a.active::before {
  content: "";
  position: absolute; left: 50%; transform: translateX(-50%); bottom: -2px;
  width: 18px; height: 2px; border-radius: 2px;
  background: var(--accent-grad);
}
.nav-right { display: flex; gap: 8px; align-items: center; margin-left: auto; }

/* Mobile: nav stays floating but narrower. */
@media (max-width: 760px) {
  .nav { top: 16px; padding: 0 12px; }
  .nav-inner { gap: 12px; padding: 6px 10px 6px 8px; }
  .brand { font-size: 14px; }
  .brand-mark { width: 28px; height: 28px; }
  .nav-links { display: none; }
}

/* Layout */
.page { flex: 1; padding: 108px 24px 96px; }
.container { max-width: 1200px; margin: 0 auto; }
.narrow { max-width: 440px; margin: 0 auto; }
.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.025em;
  color: #fff;
  margin-bottom: 10px;
}
.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* Big rounded "bento" panel — used by hero-y sections on inner pages. */
.bento {
  background: linear-gradient(145deg, rgba(20,20,20,1) 0%, rgba(10,10,10,1) 100%);
  border: 1px solid #222;
  border-radius: 24px;
  padding: 28px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.bento:hover {
  border-color: rgba(255,255,255,.22);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.7);
}
.page-sub { color: var(--text-muted); max-width: 640px; margin-bottom: 40px; font-size: 15px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  font-weight: 600; font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
  font-family: var(--font-body);
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: var(--accent-3);
  color: #fff;
}
.btn-primary:hover:not(:disabled) { background: #1d4fcf; }
.btn-primary:active:not(:disabled) { background: #1a45b5; }
.btn-ghost {
  background: var(--surface-2);
  border-color: var(--border-hi);
  color: var(--text);
}
.btn-ghost:hover:not(:disabled) { background: var(--surface-3); border-color: rgba(255,255,255,.22); }
.btn-danger {
  background: rgba(248,113,113,.10);
  border-color: rgba(248,113,113,.35);
  color: #fca5a5;
}
.btn-danger:hover:not(:disabled) { background: rgba(248,113,113,.18); }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--border-hi); }
.card-pad-lg { padding: 32px; }
.card-title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px;
  letter-spacing: -.01em;
  color: #fff;
  margin-bottom: 6px;
}
.card-sub { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field-label {
  font-size: 12px; font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .02em;
}
.field input, .field select, .field textarea {
  background: rgba(0,0,0,.3);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.field input:focus { border-color: var(--accent-1); background: rgba(0,0,0,.45); box-shadow: 0 0 0 4px rgba(96,165,250,.12); }
.field-helper { font-size: 12px; color: var(--text-dim); }
.field-error { color: var(--err); }

/* Seg tabs */
.seg {
  display: flex; gap: 2px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 4px;
  margin-bottom: 24px;
}
.seg button {
  flex: 1; padding: 9px 14px;
  border: none; background: transparent;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--surface-3); color: #fff; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
  padding: 32px 0 64px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 20px;
}
.hero h1 .grad { color: var(--accent-1); }
.hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-1);
  margin-bottom: 20px;
}
.hero-kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--mc-grass);
  box-shadow: 0 0 8px rgba(134,192,94,.8);
}
.hero-art { display: grid; place-items: center; position: relative; }
/* Hero art: floating island PNG + glow beneath. */
.hero-art { position: relative; }
.hero-island {
  position: relative; z-index: 1;
  width: 115%;
  max-width: 720px;
  margin: 0 auto;
  margin-right: -8%;
  display: block;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.5));
  animation: islandBob 7s ease-in-out infinite;
}
.hero-island img { width: 100%; height: auto; display: block; }
.hero-island-glow { display: none; }
@keyframes islandBob {
  0%, 100% { transform: translateY(0) rotate(-.6deg); }
  50%      { transform: translateY(-14px) rotate(.6deg); }
}
@keyframes glowPulse {
  0%, 100% { opacity: .7; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-island, .hero-island-glow { animation: none; }
}

.hero-stats {
  display: flex; gap: 36px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-stat-val {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px;
  color: #fff;
}
.hero-stat-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 8px; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { order: -1; }
  .hero-island { max-width: 420px; width: 100%; margin-right: auto; }
  .hero-stats { justify-content: space-around; }
}

/* Feature grid */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.feat {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  transition: transform .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.feat:hover { border-color: var(--border-hi); }
.feat-ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface-3);
  color: var(--accent-1);
  margin-bottom: 18px;
  position: relative;
}
.feat-ico svg { width: 22px; height: 22px; }
.feat h3 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 16px;
  letter-spacing: -.01em;
  color: #fff;
  margin-bottom: 6px;
  position: relative;
}
.feat p { font-size: 13px; color: var(--text-muted); line-height: 1.55; position: relative; }

/* News feed (landing) */
.news-section { margin-top: 72px; }
.news-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.news-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -.02em;
  color: #fff;
}
.news-head .news-sub { color: var(--text-muted); font-size: 14px; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.news-card:hover { transform: translateY(-2px); border-color: var(--border-hi); }
.news-card.featured {
  grid-column: 1 / -1;
  border-color: rgba(96,165,250,.35);
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(6,182,212,.06));
}
.news-card.featured::after {
  content: "";
  position: absolute;
  right: -40%;
  top: -60%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(96,165,250,.18), transparent 60%);
  pointer-events: none;
}
.news-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.news-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  background: var(--surface-2);
  color: var(--text-muted);
}
.news-kind.kind-update { color: var(--accent-1); border-color: rgba(96,165,250,.35); background: rgba(96,165,250,.1); }
.news-kind.kind-event  { color: var(--warn);     border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); }
.news-kind.kind-notice { color: var(--ok);       border-color: rgba(134,192,94,.30); background: rgba(134,192,94,.08); }
.news-version {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  color: var(--text-dim);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--border);
}
.news-date {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-dim);
}
.news-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
  color: #fff;
  margin-bottom: 8px;
  position: relative;
}
.news-card.featured h3 { font-size: 22px; }
.news-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  position: relative;
}
.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-dim);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
}

/* Servers */
.server-list { display: flex; flex-direction: column; gap: 12px; }
.server-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color .18s ease;
}
.server-card:hover { border-color: var(--border-hi); }
.server-icon {
  width: 64px; height: 64px;
  border-radius: var(--r-sm);
  background: rgba(0,0,0,.4);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 24px;
  color: var(--accent-1);
  overflow: hidden;
  image-rendering: pixelated;
}
.server-icon img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.server-body h3 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 17px;
  color: #fff;
  letter-spacing: -.01em;
  margin-bottom: 4px;
}
.server-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--text-muted); font-size: 13px; align-items: center; }
.server-host {
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--mc-diamond);
  padding: 2px 8px; border-radius: 6px;
  background: rgba(94,234,212,.06);
  border: 1px solid rgba(94,234,212,.15);
}
.server-motd {
  color: var(--text-dim); font-size: 12px;
  margin-top: 6px; max-width: 560px;
  white-space: pre-wrap;
}
.server-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  padding: 3px 9px;
  font-size: 11px; font-weight: 500;
  background: var(--surface-3);
  color: var(--text-muted);
  border-radius: 999px;
}
.server-status { text-align: right; min-width: 130px; }
.status-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-on { background: var(--mc-grass); box-shadow: 0 0 8px rgba(134,192,94,.7); }
.dot-off { background: var(--err); }
.status-on { color: var(--mc-grass); }
.status-off { color: var(--err); }
.players {
  font-family: var(--font-display);
  font-weight: 700; font-size: 26px;
  color: var(--mc-gold);
  letter-spacing: -.02em;
  margin-top: 4px;
}
.players-max { color: var(--text-dim); font-weight: 500; font-size: 13px; font-family: var(--font-body); }

/* Online page */
.online-count {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 8px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(134,192,94,.12);
  border: 1px solid rgba(134,192,94,.35);
  color: var(--mc-grass);
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px;
  letter-spacing: -.01em;
  vertical-align: 4px;
}
.online-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.online-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color .18s ease;
}
.online-card:hover { border-color: var(--border-hi); }
.online-avatar {
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: rgba(0,0,0,.4);
  border: 1px solid var(--border);
  position: relative;
  flex: none;
}
.online-avatar img {
  position: absolute;
  width: 800%; height: 800%;
  left: -100%; top: -100%;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
}
.online-avatar-letter {
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px;
  color: var(--accent-1);
}
.online-body { min-width: 0; }
.online-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 17px;
  color: #fff;
  letter-spacing: -.01em;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.online-name .verified {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-3);
  font-size: 10px;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(6,182,212,.35);
}
.admin-badge {
  display: inline-flex; align-items: center;
  padding: 2px 7px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #1a0f00;
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 50%, #f59e0b 100%);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(251,191,36,.45), inset 0 1px 0 rgba(255,255,255,.35);
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.online-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 12px;
  align-items: center;
  margin-bottom: 2px;
}
.online-meta .tag-nlauncher { background: rgba(96,165,250,.15); color: var(--accent-1); }
.online-meta .tag-microsoft { background: rgba(16,185,129,.14); color: #34d399; }
.online-meta .tag-offline   { background: rgba(251,191,36,.14); color: var(--mc-gold); }
.online-game {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(0,0,0,.3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px;
}
.online-server {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mc-diamond);
  margin-top: 6px;
  display: flex; align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.online-status { text-align: right; min-width: 110px; flex: none; }
.dot-idle { background: var(--text-dim); }
.status-idle { color: var(--text-muted); }
@media (max-width: 560px) {
  .online-card { grid-template-columns: auto 1fr; }
  .online-status { grid-column: 1 / -1; text-align: left; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
}

/* Account */
.account-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 820px) { .account-grid { grid-template-columns: 1fr; } }

.avatar-lg {
  width: 144px; height: 144px;
  border-radius: 16px;
  background: rgba(0,0,0,.4);
  border: 1px solid var(--border-hi);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 56px;
  color: var(--accent-1);
  overflow: hidden;
  margin: 0 auto 16px;
}
.avatar-lg img {
  width: 100%; height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

/* 3D skin viewer */
.skin3d-wrap {
  position: relative;
  width: 280px;
  height: 380px;
  margin: 0 auto 12px;
  border-radius: 16px;
  border: 1px solid var(--border-hi);
  overflow: hidden;
  cursor: grab;
}
.skin3d-wrap:active { cursor: grabbing; }
.skin3d-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.skin3d-controls {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.skin3d-controls .pose-btn.active {
  background: rgba(37,99,235,.18);
  border-color: rgba(96,165,250,.45);
  color: #fff;
}

/* Skin gallery */
.skins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.skin-card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 14px 16px;
  text-align: center;
  transition: transform .18s ease, border-color .18s ease;
}
.skin-card:hover { transform: translateY(-3px); border-color: var(--border-hi); }

/* Face preview: <img> at 800% inside overflow:hidden parent, offset -100% -100%. */
.skin-preview {
  position: relative;
  width: 100%; aspect-ratio: 1;
  overflow: hidden;
  background: rgba(0,0,0,.4);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: 12px;
}
.skin-preview img {
  position: absolute;
  width: 800%; height: 800%;
  left: -100%; top: -100%;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
}
.skin-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px;
  letter-spacing: -.01em;
  color: #fff;
  margin-bottom: 2px;
  word-break: break-all;
}
.skin-meta {
  font-size: 11px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 12px;
}

/* Footer */
.footer {
  padding: 28px 24px;
  color: var(--text-dim); font-size: 13px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--accent-1); }
.footer .footer-disclaimer {
  color: var(--text-dim);
  font-size: 12px;
  margin-bottom: 8px;
  font-style: italic;
  opacity: .85;
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px;
  transform: translateX(-50%);
  background: rgba(20,22,30,.9);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-sm);
  padding: 12px 18px;
  font-size: 13px; font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  animation: toast-in .22s cubic-bezier(.4,0,.2,1);
}
.toast.err { border-color: rgba(248,113,113,.35); color: #fca5a5; }
.toast.ok { border-color: rgba(134,192,94,.35); color: var(--mc-grass); }
@keyframes toast-in { from { transform: translate(-50%, 14px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* Utils */
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.text-muted { color: var(--text-muted); } .text-dim { color: var(--text-dim); }
.grid { display: grid; gap: 16px; }
.flex { display: flex; gap: 16px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hidden { display: none !important; }

.fade-in > * { opacity: 0; transform: translateY(8px); animation: up .5s ease forwards; }
.fade-in > *:nth-child(1) { animation-delay: .04s; }
.fade-in > *:nth-child(2) { animation-delay: .12s; }
.fade-in > *:nth-child(3) { animation-delay: .20s; }
.fade-in > *:nth-child(4) { animation-delay: .28s; }
.fade-in > *:nth-child(5) { animation-delay: .36s; }
.fade-in > *:nth-child(6) { animation-delay: .44s; }
@keyframes up { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .server-card { grid-template-columns: auto 1fr; }
  .server-status { grid-column: 1 / -1; text-align: left; border-top: 1px solid var(--border); padding-top: 12px; }
}

/* ----- Maintenance overlay -------------------------------------------- */
.maintenance-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(37,99,235,.18), transparent 70%),
              rgba(18,23,35,.96);
  backdrop-filter: blur(8px);
  animation: fade-in .25s ease both;
}
.maintenance-card {
  max-width: 520px; width: 100%;
  padding: 40px 32px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.25));
  border: 1px solid var(--border-hi);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.maintenance-icon {
  font-size: 56px;
  margin-bottom: 16px;
  background: var(--accent-3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: maintenance-spin 4s linear infinite;
  display: inline-block;
}
.maintenance-card h1 {
  font-size: 28px;
  margin: 0 0 12px;
}
.maintenance-msg {
  font-size: 16px;
  color: var(--text);
  margin: 0 0 24px;
  line-height: 1.5;
}
.maintenance-sub {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 16px;
}
@keyframes maintenance-spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* =====================================================================
   Account page — Steam-style profile layout
   ===================================================================== */

/* Without an uploaded cover: profile-page gets the regular .page top padding
   so the head clears the floating capsule nav. With a custom cover (.has-cover
   added by JS) the cover takes over the top space and head overlaps it. */
.profile-page { padding-top: 108px; }
.profile-page.with-cover { padding-top: 0; }

.profile-cover {
  display: none;                      /* hidden until JS sets .has-cover */
  position: relative;
  /* Break out of the padded .page parent to span the FULL viewport width. */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 240px;
  overflow: hidden;
  margin-bottom: -90px;
}
.profile-cover.has-cover { display: block; }

.profile-cover-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  /* No default background-image — JS sets it inline iff cover_url exists. */
}
.profile-cover-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,.20) 0%,
    rgba(0,0,0,.55) 60%,
    var(--bg) 100%);
}

/* ---- profile head row ---- */
.profile-head {
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: end;
  padding-bottom: 16px;
}
/* Beacon beam behind the 3D skin viewer — vertical brand-blue column glow,
   the subtlest possible MC reference (think of an active beacon). */
.profile-head::before {
  content: '';
  position: absolute;
  left: -20px;
  bottom: -40px;
  width: 280px;
  height: 480px;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%,
      rgba(96, 165, 250, 0.40) 0%,
      rgba(37, 99, 235, 0.18) 35%,
      transparent 65%);
  z-index: -1;
  pointer-events: none;
  filter: blur(28px);
}
@media (max-width: 720px) {
  /* On mobile the skin box stacks above the info; centre the beam too. */
  .profile-head::before { left: 50%; transform: translateX(-50%); }
}
.profile-skin-box {
  position: relative;
  width: 240px; height: 320px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-hi);
  cursor: grab;
}
.profile-skin-box:active { cursor: grabbing; }
.profile-skin-box .skin3d-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.profile-pose {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 8px;
  display: flex; gap: 6px;
  background: rgba(0,0,0,.55);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(8px);
}
.profile-pose .pose-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}
.profile-pose .pose-btn:hover { color: var(--text); background: var(--surface-3); }
.profile-pose .pose-btn.active { background: var(--accent-3); color: #fff; }

.profile-head-info { padding-bottom: 8px; }
.profile-name-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  letter-spacing: -.02em;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0,0,0,.65);
}
.profile-uuid {
  color: var(--text-dim);
  font-size: 14px;
  font-family: ui-monospace, Menlo, monospace;
  background: rgba(0,0,0,.4);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.profile-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
}
.admin-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  box-shadow: 0 2px 8px rgba(239,68,68,.3);
}
.profile-status {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 0 14px;
  font-size: 14px;
  color: var(--text-dim);
}
/* Daily-streak counter — burns warm like a furnace, pulse-glows. */
.profile-streak {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fde68a;
  background: linear-gradient(135deg, rgba(251,146,60,.18), rgba(239,68,68,.10));
  border: 1px solid rgba(251,146,60,.45);
  box-shadow: 0 0 14px rgba(251,146,60,.32);
}
.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #71717a;
  display: inline-block;
}
.status-dot.online {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2), 0 0 12px rgba(34,197,94,.5);
}
.profile-quick { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- tabs ---- */
.profile-tabs {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin: 24px auto 16px;
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.profile-tabs-list {
  display: flex;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.profile-tabs-list::-webkit-scrollbar { display: none; }
/* Sit the action button just above the underline so it shares a baseline
   with the tab labels — tab anchors have 12px vertical padding, the small
   button sits at the same lift. */
.profile-tabs-action {
  flex-shrink: 0;
  padding-bottom: 8px;
}
.profile-tabs-action:empty { display: none; }
.profile-tabs a {
  padding: 12px 18px;
  text-decoration: none;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  transition: all .15s ease;
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.profile-tabs a:hover { color: var(--text); }
.profile-tabs a.active {
  color: var(--accent-1);
  border-bottom-color: var(--accent-1);
}
.tab-count {
  background: rgba(96,165,250,.2);
  color: var(--accent-1);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}

/* ---- profile grid (main + sidebar) ---- */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
  margin-top: 16px;
}
@media (max-width: 920px) {
  .profile-grid { grid-template-columns: 1fr; }
}
.profile-main { display: flex; flex-direction: column; gap: 16px; }
.profile-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }
@media (max-width: 920px) { .profile-side { position: static; } }

/* ---- profile cards ---- */
.profile-card {
  padding: 22px 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.25)),
    linear-gradient(145deg, rgba(20,20,20,1) 0%, rgba(10,10,10,1) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.profile-card:hover {
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 14px 32px -18px rgba(0,0,0,.7);
}
.profile-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.01em;
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.profile-card-head {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 16px;
}
.profile-card-head .profile-card-title { margin: 0; }
.muted-count { color: var(--text-dim); font-weight: 400; font-size: 14px; }
.profile-about-line { margin: 4px 0; font-size: 15px; }

/* ---- achievement banner (orange/red gradient) ---- */
.profile-card.achievement { padding: 0; overflow: hidden; }
.achievement-grad {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  background: linear-gradient(135deg, #f97316 0%, #ef4444 50%, #b91c1c 100%);
  color: #fff;
}
.achievement-icon {
  font-size: 40px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
.achievement-eyebrow {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
  font-weight: 700;
}
.achievement-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 2px 0;
}
.achievement-sub {
  font-size: 13px;
  opacity: .9;
}

/* ---- friends grid ---- */
.friends-search { display: flex; gap: 6px; }
.friends-search input {
  width: 180px;
  padding: 8px 12px;
  background: rgba(0,0,0,.3);
  color: var(--text);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  font-size: 14px;
}
.friends-search input:focus { border-color: var(--accent-1); outline: none; }
.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.friend-tile {
  position: relative;
  display: block;
  padding: 12px 8px 10px;
  background: rgba(0,0,0,.3);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all .15s ease;
  cursor: pointer;
}
.friend-tile:hover { border-color: var(--accent-1); transform: translateY(-2px); }
.friend-head {
  width: 64px; height: 64px;
  image-rendering: pixelated;
  border-radius: 8px;
  background: rgba(0,0,0,.4);
  display: block;
  margin: 0 auto 8px;
}
.friend-head.sm { width: 40px; height: 40px; margin: 0; }
.friend-name {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.friend-status {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.friend-status.on { color: #22c55e; }
.friend-remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.5);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  opacity: 0;
  transition: opacity .15s ease;
}
.friend-tile:hover .friend-remove { opacity: 1; }
.friend-remove:hover { background: #ef4444; color: #fff; }
.friends-empty {
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* ---- friend requests block ---- */
.friend-requests {
  background: rgba(96,165,250,.06);
  border: 1px solid rgba(96,165,250,.25);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}
.req-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-1);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.req-row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
}
.req-row + .req-row { border-top: 1px solid var(--border); }
.req-name { font-weight: 600; }

/* ---- activity feed ---- */
.activity-feed { display: flex; flex-direction: column; gap: 10px; }
.activity-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 8px 4px;
  align-items: center;
}
.activity-row + .activity-row { border-top: 1px solid var(--border); }
.activity-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border-radius: 8px;
  font-size: 18px;
}
.activity-title { font-weight: 600; font-size: 14px; }
.activity-meta { font-size: 12px; }

/* ---- sidebar stats ---- */
.stats-card { padding: 18px 20px; }
.stats-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 14px;
}
/* Highlight the "online now" status row — most relevant stat. */
#stat-online { color: var(--accent-1); font-weight: 700; }
/* Skin/cape "Есть" reads as positive, paint with brand accent. */
#stat-skin, #stat-cape {
  color: var(--text);
}
#stat-skin:not(:empty), #stat-cape:not(:empty) {
  /* fallback — JS sets values to "Есть/Нет/Classic/Slim", colour all bold */
  font-weight: 600;
}
.stat-row {
  display: flex; justify-content: space-between; gap: 12px;
  align-items: center;
  padding: 10px 12px;
  font-size: 13px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: border-color .15s ease, background .15s ease;
}
.stat-row:last-child { margin-bottom: 0; }
.stat-row:hover {
  border-color: rgba(96,165,250,.30);
  background: rgba(96,165,250,.04);
}
.stat-row > span:first-child {
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.stat-val {
  font-weight: 700;
  text-align: right;
  word-break: break-word;
  max-width: 60%;
}

/* ---- settings section ---- */
.profile-settings { margin-top: 32px; }
.profile-section-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 16px;
}
.grid.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) { .grid.grid-2 { grid-template-columns: 1fr; } }

.field-input-file {
  color: var(--text);
  background: var(--surface-2);
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border-hi);
  font-size: 13px;
}
.field-select-inline {
  padding: 10px;
  background: rgba(0,0,0,.3);
  color: var(--text);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
}

/* ---- responsive ---- */
@media (max-width: 720px) {
  .profile-cover { height: 160px; margin-bottom: -50px; }
  .profile-head {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .profile-skin-box { width: 200px; height: 280px; margin: 0 auto; }
  .profile-name-row { justify-content: center; }
  .profile-status { justify-content: center; }
  .profile-quick { justify-content: center; }
  .profile-tabs { flex-wrap: wrap; }
  .profile-tabs-action { width: 100%; padding-bottom: 8px; }
  .profile-tabs-action .btn { width: 100%; }
  .profile-card-head { flex-direction: column; align-items: stretch; }
  .friends-search input { width: 100%; }
}

/* ----- profile bio + cover-edit + comments + achievements ----------- */
.profile-bio {
  margin: 8px 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  white-space: pre-line;
}

/* Achievements grid */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.achievement-tile {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(0,0,0,.3);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.achievement-tile .ach-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(96,165,250,.15), rgba(6,182,212,.1));
  border-radius: 10px;
  font-size: 22px;
}
.achievement-tile .ach-label { font-weight: 700; font-size: 13px; }
.achievement-tile .ach-desc  { font-size: 11px; color: var(--text-dim); }

/* Cover edit hint on settings */
.cover-preview {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-hi);
  background-size: cover;
  background-position: center;
  margin-bottom: 12px;
}
.cover-preview-empty {
  display: grid; place-items: center;
  color: var(--text-dim);
  font-size: 13px;
  background: rgba(0,0,0,.3);
}

/* Bio edit textarea */
.bio-edit {
  width: 100%;
  padding: 10px 12px;
  background: rgba(0,0,0,.3);
  color: var(--text);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  resize: vertical;
  min-height: 70px;
  font-family: inherit;
  font-size: 14px;
}
.bio-edit:focus { border-color: var(--accent-1); outline: none; }
.bio-counter {
  font-size: 11px;
  color: var(--text-dim);
  text-align: right;
  margin-top: 4px;
}

/* Comments wall */
.comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 16px;
}
.comment-form textarea {
  resize: vertical;
  min-height: 60px;
  padding: 10px 12px;
  background: rgba(0,0,0,.3);
  color: var(--text);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
}
.comment-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  padding: 10px 0;
  align-items: start;
}
.comment-row + .comment-row { border-top: 1px solid var(--border); }
.comment-head {
  width: 40px; height: 40px;
  image-rendering: pixelated;
  border-radius: 8px;
  background: rgba(0,0,0,.4);
}
.comment-meta { font-size: 12px; color: var(--text-dim); margin-bottom: 2px; }
.comment-meta a { color: var(--text); text-decoration: none; font-weight: 600; }
.comment-meta a:hover { color: var(--accent-1); }
.comment-body { font-size: 14px; line-height: 1.5; word-break: break-word; }
.comment-delete {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  align-self: start;
}
.comment-delete:hover { color: #ef4444; }

/* Mutual friends widget */
.mutual-friends {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(96,165,250,.06);
  border: 1px solid rgba(96,165,250,.2);
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 13px;
}
.mutual-friends-stack {
  display: flex;
}
.mutual-friends-stack canvas {
  width: 32px; height: 32px;
  image-rendering: pixelated;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: rgba(0,0,0,.4);
}
.mutual-friends-stack canvas + canvas { margin-left: -10px; }

/* ----- icon buttons (на /account/skin) ------------------------------- */
.icon-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  padding: 0;
}
.icon-btn:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: rgba(255,255,255,.22);
}
.icon-btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn-share:hover:not(:disabled)  { color: var(--accent-1); border-color: rgba(96,165,250,.45); }
.icon-btn-danger:hover:not(:disabled) { color: #fca5a5;        border-color: rgba(248,113,113,.45); }
.icon-btn-toggle {
  background: rgba(96,165,250,.10);
  border-color: rgba(96,165,250,.35);
  color: var(--accent-1);
}
.icon-btn-toggle:hover:not(:disabled) {
  background: rgba(96,165,250,.18);
  border-color: rgba(96,165,250,.55);
}

/* ----- gallery grids (skin/cape browse + apply) ---------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.gallery-grid-cape {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}
.gallery-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px 10px;
  background: rgba(0,0,0,.3);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.gallery-tile:hover {
  border-color: var(--accent-1);
  transform: translateY(-2px);
}
.gallery-body {
  width: 64px; height: 128px;
  image-rendering: pixelated;
  background: rgba(0,0,0,.4);
  border-radius: 8px;
  display: block;
  margin-bottom: 8px;
}
.gallery-cape {
  width: 80px; height: 128px;
  image-rendering: pixelated;
  background: rgba(0,0,0,.4);
  border-radius: 8px;
  display: block;
  margin-bottom: 8px;
}
.gallery-name {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.gallery-tag {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 2px;
}
.gallery-empty {
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* ----- upload cards (skin/cape) ------------------------------------- */
.upload-card {
  padding: 22px;
}
.upload-card-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.upload-card-title {
  display: flex; align-items: center; gap: 10px;
}
.upload-card-title h3 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px;
  color: #fff; margin: 0;
}
.upload-card-ico {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: rgba(96,165,250,.10);
  border: 1px solid rgba(96,165,250,.25);
  border-radius: 9px;
  color: var(--accent-1);
}
.upload-card-ico svg { width: 18px; height: 18px; }

.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.status-badge.empty   { background: rgba(255,255,255,.04); color: var(--text-dim); border-color: var(--border); }
.status-badge.private { background: rgba(255,255,255,.06); color: var(--text-muted); border-color: var(--border-hi); }
.status-badge.public  { background: rgba(96,165,250,.12); color: var(--accent-1); border-color: rgba(96,165,250,.40); }

/* File drop area */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.file-drop {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: rgba(0,0,0,.30);
  border: 1.5px dashed var(--border-hi);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  margin-bottom: 14px;
}
.file-drop:hover {
  border-color: rgba(96,165,250,.55);
  background: rgba(96,165,250,.05);
}
.file-drop.dragover {
  border-color: var(--accent-1);
  background: rgba(96,165,250,.10);
}
.file-drop.has-file {
  border-style: solid;
  border-color: rgba(96,165,250,.45);
  background: rgba(96,165,250,.05);
}
.file-drop-ico {
  width: 28px; height: 28px;
  flex: none;
  color: var(--text-dim);
}
.file-drop.has-file .file-drop-ico { color: var(--accent-1); }
.file-drop-text { flex: 1; min-width: 0; }
.file-drop-primary {
  font-size: 14px; font-weight: 600;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-drop-secondary {
  font-size: 12px;
  color: var(--text-dim);
}
.file-drop.has-file .file-drop-secondary { color: rgba(96,165,250,.7); }

/* Mini segmented control for model picker */
.model-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.model-row-label {
  font-size: 12px; font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .04em;
}
.seg-mini {
  display: inline-flex;
  background: rgba(0,0,0,.3);
  border: 1px solid var(--border-hi);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}
.seg-mini-opt {
  cursor: pointer;
}
.seg-mini-opt input { display: none; }
.seg-mini-opt span {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px; font-weight: 600;
  color: var(--text-dim);
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}
.seg-mini-opt input:checked + span {
  background: var(--accent-3);
  color: #fff;
}
.seg-mini-opt span:hover { color: var(--text); }
.seg-mini-opt input:checked + span:hover { color: #fff; }

/* Icon button SVG sizing */
.icon-btn { padding: 0; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn-share.is-public {
  background: rgba(96,165,250,.18);
  border-color: rgba(96,165,250,.55);
  color: var(--accent-1);
}
.icon-btn-share.is-public:hover:not(:disabled) {
  background: rgba(96,165,250,.28);
  border-color: rgba(96,165,250,.7);
}

/* Locked / spoiler achievement tile — placeholder until the real system
   ships. Subtler than active tiles so it reads as "coming soon". */
.achievement-tile.achievement-locked {
  opacity: .55;
  background: rgba(255,255,255,.02);
  border-style: dashed;
  cursor: default;
}
.achievement-tile.achievement-locked .ach-icon {
  background: rgba(255,255,255,.04);
  color: var(--text-dim);
  filter: grayscale(1);
}
.achievement-tile.achievement-locked .ach-label {
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: .08em;
}
.achievement-tile.achievement-locked .ach-desc {
  font-style: italic;
  color: var(--text-dim);
  text-transform: lowercase;
}

/* Reply threads — one level of nesting only. Replies render indented
   under the top-level comment with a left rail. */
.comment-replies {
  margin-left: 50px;
  padding-left: 10px;
  border-left: 2px solid var(--border);
}
.comment-replies:empty { display: none; }
.comment-row.is-reply {
  padding: 8px 0;
  grid-template-columns: 32px 1fr auto;
  gap: 8px;
}
.comment-row.is-reply .comment-head { width: 32px; height: 32px; }
.comment-row.is-reply .comment-body { font-size: 13px; }
.comment-reply-btn {
  background: none;
  border: none;
  padding: 4px 0 0;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: .04em;
  cursor: pointer;
}
.comment-reply-btn:hover { color: var(--accent-1); }
.reply-form {
  margin: 8px 0 12px;
  grid-template-columns: 1fr auto;
}
.reply-form textarea { min-height: 50px; }
.reply-form-slot:empty { display: none; }

/* ----- Homepage "convenience" showcase block ------------------------- */
.convenience {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
  padding: 40px 0 24px;
}
.convenience-text h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #fff;
  margin: 12px 0 12px;
}
.convenience-text > p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 520px;
  margin-bottom: 24px;
}
.convenience-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.convenience-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}
.convenience-ico {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(96,165,250,.10);
  border: 1px solid rgba(96,165,250,.25);
  border-radius: 10px;
  color: var(--accent-1);
  flex: none;
}
.convenience-ico svg { width: 18px; height: 18px; }
.convenience-list strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.convenience-list p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.convenience-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.convenience-art img {
  width: 100%;
  max-width: 580px;
  border-radius: 14px;
  border: 1px solid var(--border-hi);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}

@media (max-width: 920px) {
  .convenience { grid-template-columns: 1fr; gap: 32px; }
  .convenience-art { order: -1; }  /* show preview first on mobile */
  .convenience-art img { max-width: 100%; }
}

/* ----- Nav dropdown menus -------------------------------------------- */
.nav-menu {
  position: relative;
}
.nav-menu > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-caret {
  font-size: 10px;
  margin-left: 2px;
  opacity: .6;
  transition: transform .15s ease, opacity .15s ease;
}
.nav-menu:hover .nav-caret { opacity: 1; transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin-top: 6px;
  background: rgba(15,15,22,.96);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 60;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px !important;
  border-radius: 8px;
  color: var(--text) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}
.nav-dropdown a::before { display: none !important; }
.nav-dropdown a:hover { background: var(--surface-3); color: #fff !important; }
.nav-dropdown-ico {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  color: var(--accent-1);
  flex: none;
}
.nav-dropdown-ico svg { width: 18px; height: 18px; }

/* Mobile: dropdowns become regular flat links to avoid hover-only UX. */
@media (max-width: 720px) {
  .nav-menu .nav-caret { display: none; }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 12px;
    backdrop-filter: none;
  }
}

/* ----- Server filters bar -------------------------------------------- */
.server-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.server-filters select,
.server-filters input {
  background: rgba(0,0,0,.3);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color .15s ease;
}
.server-filters select:focus,
.server-filters input:focus { border-color: var(--accent-1); }
.server-filters input { min-width: 140px; }

/* Source tag (official / user-submitted) on server cards */
.server-source-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}
.server-source-tag.official-tag {
  background: rgba(96,165,250,.12);
  border: 1px solid rgba(96,165,250,.35);
  color: var(--accent-1);
}
.server-source-tag.user-tag {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-hi);
  color: var(--text-dim);
}
.tag.tag-cat {
  background: rgba(96,165,250,.10);
  border-color: rgba(96,165,250,.30);
  color: var(--accent-1);
}

/* ----- Server detail page -------------------------------------------- */
.srv-head {
  position: relative;         /* sit above the cover-fade, which is absolute */
  z-index: 2;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 20px;
  align-items: end;
  margin-top: -56px;          /* overlap banner like profile head */
  margin-bottom: 16px;
  padding-bottom: 8px;
}
.srv-head-icon {
  width: 96px; height: 96px;
  display: grid; place-items: center;
  background: rgba(15,15,22,.9);
  border: 1px solid var(--border-hi);
  border-radius: 16px;
  color: var(--accent-1);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.srv-head-info { padding-bottom: 12px; }
.srv-head-actions {
  display: flex; flex-direction: column; gap: 8px;
  padding-bottom: 12px;
}

.srv-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  margin-top: 16px;
}
.srv-main { display: flex; flex-direction: column; gap: 16px; }
.srv-side { display: flex; flex-direction: column; gap: 12px; }

#srv-graph-wrap {
  position: relative;
  height: 200px;
  margin-bottom: 12px;
}
#srv-graph {
  width: 100%; height: 100%;
}
.srv-graph-empty {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--text-dim);
  font-size: 13px;
  font-style: italic;
}
.srv-graph-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

@media (max-width: 920px) {
  .srv-grid { grid-template-columns: 1fr; }
  .srv-head { grid-template-columns: 64px 1fr; gap: 12px; margin-top: -32px; }
  .srv-head-actions { grid-column: 1 / -1; flex-direction: row; padding-bottom: 0; }
  .srv-head-icon { width: 64px; height: 64px; font-size: 28px; }
}

/* Server card thumbnail in list view (when banner present). */
.server-card.has-banner {
  position: relative;
  padding-top: 88px;          /* room for the banner above */
}
.server-card-banner {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background-size: cover;
  background-position: center;
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.server-card a.server-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ===== Achievements (account page) ===== */
.profile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.ach-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ach-tab {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--text-muted, #a1a1aa);
  cursor: pointer;
  font-family: inherit;
  transition: background 120ms, color 120ms, border-color 120ms;
}
.ach-tab:hover { background: rgba(255,255,255,.08); color: var(--text, #e4e4e7); }
.ach-tab.active {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.15);
  color: var(--text, #e4e4e7);
}
.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.ach-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;            /* blockier corners — feels like an item slot */
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  transition: transform 140ms ease-out, border-color 140ms, background 140ms, box-shadow 140ms ease-out;
}
.ach-card:hover {
  transform: translate(-2px, -2px);     /* "pick up the block" diagonal lift */
  border-color: rgba(255,255,255,.18);
  /* Sharp offset shadow — feels blocky, like a Minecraft GUI element. */
  box-shadow: 4px 4px 0 0 rgba(0,0,0,.5);
}
.ach-card.unlocked {
  background: linear-gradient(135deg, rgba(34,197,94,.08), rgba(96,165,250,.06));
  border-color: rgba(34,197,94,.25);
}
.ach-card.locked { opacity: .76; }
.ach-card.locked.hidden { opacity: .55; }
.ach-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  overflow: hidden;
  font-size: 26px;
  line-height: 1;
}
.ach-icon img { width: 100%; height: 100%; object-fit: cover; }
.ach-emoji { font-size: 26px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.ach-card.locked.hidden .ach-emoji { font-weight: 800; opacity: .9; }
.ach-tier-bronze  { background: linear-gradient(135deg, #f97316 0%, #b45309 100%); color: #fff; }
.ach-tier-silver  { background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%); color: #1f2937; }
.ach-tier-gold    { background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%); color: #422006; }
.ach-tier-diamond { background: linear-gradient(135deg, #a5f3fc 0%, #818cf8 100%); color: #1e1b4b; }
.ach-tier-secret  { background: linear-gradient(135deg, #1f2937 0%, #4c1d95 100%); color: #c4b5fd; }
.ach-card.locked .ach-icon { filter: grayscale(.4); }
.ach-card.locked.hidden .ach-icon { filter: grayscale(.7) brightness(.85); }
.ach-card.unlocked .ach-icon {
  box-shadow: 0 0 0 2px rgba(251,191,36,.25), 0 6px 16px rgba(251,191,36,.14);
}
.ach-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ach-name { font-weight: 600; font-size: 14px; }
.ach-desc { font-size: 12px; color: var(--text-muted, #a1a1aa); line-height: 1.4; }
.ach-meta { margin-top: 4px; font-size: 11px; color: #22c55e; font-weight: 500; }
.ach-meta-locked { color: rgba(255,255,255,.45); font-weight: 400; }
.ach-progress { margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.ach-progress-bar {
  flex: 1; height: 5px;
  background: rgba(255,255,255,.06);
  border-radius: 3px; overflow: hidden;
}
.ach-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #06b6d4);
  border-radius: 3px;
  transition: width 240ms;
}
.ach-progress-label {
  font-size: 11px;
  color: var(--text-muted, #a1a1aa);
  font-variant-numeric: tabular-nums;
}

/* Achievements: "show more / collapse" toggle inside the grid. */
.ach-grid .ach-toggle {
  grid-column: 1 / -1;
  margin-top: 4px;
}

/* ===== Personal-cabinet additions ===================================== */

/* "Сейчас играю" live banner — sits between the shell head and the grid. */
.live-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  margin: 8px 0 18px;
  background: linear-gradient(135deg, rgba(96,165,250,.10), rgba(37,99,235,.06));
  border: 1px solid rgba(96,165,250,.30);
  border-radius: 14px;
}
.live-banner .live-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--mc-grass);
  box-shadow: 0 0 14px rgba(134,192,94,.7);
  flex-shrink: 0;
}
.live-banner .live-text {
  font-size: 14px;
  color: var(--text);
}
.live-banner .live-text b { color: #fff; }
.live-banner .live-time { color: var(--text-dim); margin-left: 8px; }

/* Hotbar — 8 inventory-style quick-action slots. */
.profile-hotbar {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  margin: 8px 0 22px;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 580px;
}
.hotbar-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.hotbar-slot:hover {
  border-color: rgba(96,165,250,.55);
  background: rgba(96,165,250,.08);
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 0 rgba(0,0,0,.55);
}
.hotbar-slot .hotbar-key {
  position: absolute;
  top: 3px; left: 5px;
  font-size: 9px;
  font-family: ui-monospace, monospace;
  color: var(--text-dim);
  opacity: .7;
}
.hotbar-slot .hotbar-icon { font-size: 18px; line-height: 1; }
.hotbar-slot .hotbar-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-dim);
}
.hotbar-slot:hover .hotbar-label { color: var(--text); }
.hotbar-slot.danger:hover { border-color: rgba(248,113,113,.55); background: rgba(248,113,113,.08); }
@media (max-width: 720px) {
  .profile-hotbar { grid-template-columns: repeat(4, 1fr); }
}

/* Recent sessions card — chat-log style rows. */
.sessions-list { display: flex; flex-direction: column; gap: 6px; }
.session-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
}
.session-row:hover { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.04); }
.session-row .session-when {
  font-size: 11px;
  color: var(--text-dim);
  font-family: ui-monospace, monospace;
  white-space: nowrap;
}
.session-row .session-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.session-row .session-version {
  background: rgba(96,165,250,.12);
  border: 1px solid rgba(96,165,250,.30);
  color: #cfe3ff;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
}
.session-row .session-loader {
  background: rgba(255,255,255,.06);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  text-transform: capitalize;
}
.session-row .session-server { color: var(--text); font-weight: 500; }
.session-row .session-server.no-server { color: var(--text-dim); font-style: italic; }
.session-row .session-duration {
  color: var(--mc-grass);
  font-weight: 700;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  white-space: nowrap;
}

/* Playstyle card — loader bars + top server rows. */
.playstyle-card .ps-section { margin-bottom: 14px; }
.playstyle-card .ps-section:last-child { margin-bottom: 0; }
.playstyle-card .ps-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  font-weight: 700;
  margin: 0 0 8px;
}
.playstyle-card .ps-hero {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.playstyle-card .ps-hero small { font-size: 14px; color: var(--text-dim); font-weight: 600; }
.loader-bar-row {
  display: grid;
  grid-template-columns: 70px 1fr 38px;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
}
.loader-bar-row:last-child { margin-bottom: 0; }
.loader-bar-row .loader-name { text-transform: capitalize; font-weight: 600; }
.loader-bar-row .loader-pct { text-align: right; color: var(--text-dim); font-family: ui-monospace, monospace; }
.loader-bar-track {
  height: 8px;
  background: rgba(255,255,255,.05);
  border-radius: 4px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 4px;
}

/* Security card — last logins. */
.security-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 4px;
  font-size: 12px;
}
.security-row .sec-tail {
  font-family: ui-monospace, monospace;
  color: var(--text-dim);
}
.security-row .sec-when { color: var(--text-muted); white-space: nowrap; }
.security-row.is-current {
  background: rgba(96,165,250,.05);
  border-color: rgba(96,165,250,.20);
}
.security-row.is-current .sec-tail::after {
  content: '· текущий';
  margin-left: 8px;
  color: var(--accent-1);
  font-weight: 600;
}
.security-summary {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
}

/* ===== Colour-filled server cards =====
   Per-server background is set inline (computed by JS from a hash of the
   server id). These rules just make sure text on top of the filled bg
   stays readable — slight transparency on inner chips, no card border. */
.server-card-filled {
    background: none;       /* overridden by inline style */
    border: 0;
    color: inherit;
}
.server-card-filled .server-host {
    background: rgba(0, 0, 0, .25);
    color: inherit;
    border-color: rgba(255, 255, 255, .2);
}
.server-card-filled .server-motd { color: rgba(255, 255, 255, .85); }
.server-card-filled .server-meta { color: rgba(255, 255, 255, .75); }
.server-card-filled .tag {
    background: rgba(0, 0, 0, .2);
    color: inherit;
    border-color: rgba(255, 255, 255, .15);
}
.server-card-filled .server-source-tag {
    background: rgba(0, 0, 0, .25);
    color: inherit;
}
.server-card-filled .status-label { color: inherit; }
.server-card-filled .text-dim { color: rgba(255, 255, 255, .65); }
