/* Bob MC Panel — Pterodactyl-inspired theme */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Rubik:wght@400;500;600;700&display=swap");

:root {
  --bg: #0e1015;
  --bg2: #181a21;
  --bg3: #21242c;
  --bg4: #2a2e38;
  --sidebar: #13151b;
  --border: #2c313c;
  --border-soft: #252833;
  --text: #eceff4;
  --muted: #9aa1b2;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent2: #60a5fa;
  --ok: #22c55e;
  --warn: #eab308;
  --danger: #ef4444;
  --radius: 6px;
  --font: "Rubik", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sidebar-w: 68px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.hidden { display: none !important; }

/* —— Login / claim / request —— */
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  /* si overflow: colle en haut au lieu de clipper les pubs haut/bas */
  align-content: safe center;
  justify-items: center;
  overflow-y: auto;
  padding: 24px;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(59,130,246,.18), transparent 55%),
    radial-gradient(700px 400px at 95% 110%, rgba(34,197,94,.08), transparent 50%),
    var(--bg);
}
.login-stack {
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
  justify-items: stretch;
}
.login-ad {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform .12s, border-color .12s, box-shadow .12s;
}
.login-ad:hover {
  transform: translateY(-1px);
  border-color: #3a4150;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
.login-ad-top {
  border-color: rgba(234, 179, 8, .55);
  background:
    linear-gradient(105deg, rgba(234,179,8,.28), transparent 55%),
    var(--bg2);
  box-shadow: 0 0 0 1px rgba(234,179,8,.12), 0 8px 24px rgba(0,0,0,.25);
}
.login-ad-bottom {
  border-color: rgba(59, 130, 246, .55);
  background:
    linear-gradient(105deg, rgba(59,130,246,.28), transparent 55%),
    var(--bg2);
  box-shadow: 0 0 0 1px rgba(59,130,246,.12), 0 8px 24px rgba(0,0,0,.25);
}
.login-ad-label {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fde68a;
  background: rgba(0,0,0,.35);
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 1;
}
.login-ad-bottom .login-ad-label { color: #bfdbfe; }
.dash-ads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 16px 0;
}
.dash-ad {
  min-height: 56px;
  padding: 10px 14px;
}
@media (max-width: 900px) {
  .dash-ads { grid-template-columns: 1fr; }
}
.login-ad-emoji {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--bg3);
  font-size: 1.2rem;
}
.login-ad-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.login-ad-copy strong {
  font-size: 0.95rem;
  font-weight: 600;
}
.login-ad-copy span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}
.login-ad-cta {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent2);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .login-ad-cta { display: none; }
  .login-ad { padding: 12px 14px; }
}
.login-card {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.login-card-wide { width: 100%; max-width: 460px; justify-self: center; }
.brand { text-align: center; margin-bottom: 22px; }
.brand-mark {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  font-size: 1.25rem;
  box-shadow: 0 6px 18px rgba(37,99,235,.35);
}
.brand h1 { margin: 14px 0 4px; font-size: 1.35rem; font-weight: 600; letter-spacing: .01em; }
.brand p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.login-form { display: grid; gap: 14px; }
.login-form label { display: grid; gap: 6px; font-size: 0.85rem; color: var(--muted); }

textarea,
input[type="text"],
input[type="password"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
textarea { resize: vertical; min-height: 96px; }
textarea:focus,
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.18);
}

.alert {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.35);
  color: #fca5a5;
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  font-size: 0.9rem;
}
.alert-ok {
  background: rgba(34,197,94,.1);
  border-color: rgba(34,197,94,.35);
  color: #86efac;
}

.btn-discord {
  background: #5865f2;
  border-color: #6974f3;
  color: #fff;
  font-weight: 600;
  padding: 12px 14px;
}
.btn-discord:hover { background: #4752c4; border-color: #5865f2; }

.request-row { justify-content: space-between; align-items: flex-start; }
.request-meta { flex: 1; min-width: 180px; display: grid; gap: 6px; }
.request-user { font-weight: 600; font-size: 0.95rem; }
.request-reason { margin: 6px 0 0; white-space: pre-wrap; word-break: break-word; }

.id-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 8px;
  max-width: 100%;
}
.id-chip .discord-id {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent2);
  word-break: break-all;
}
.id-chip-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.discord-pdp {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg4);
  border: 1px solid var(--border);
}
.discord-nick {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.id-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.id-hint-sample {
  font-family: var(--mono);
  color: var(--accent2);
  font-size: 0.85rem;
}
.btn-copy-id { padding: 4px 8px; font-size: 0.75rem; }

/* Collapsible */
.collapse {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0,0,0,.15);
  margin-top: 14px;
  overflow: hidden;
}
.collapse-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  user-select: none;
  color: var(--text);
  font-weight: 500;
}
.collapse-summary::-webkit-details-marker { display: none; }
.collapse-summary::marker { content: ""; }
.collapse-chevron {
  color: var(--muted);
  transition: transform .18s ease;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.collapse[open] > .collapse-summary .collapse-chevron { transform: rotate(180deg); }
.collapse-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.collapse-toggle::before { content: "+"; }
.collapse[open] > .collapse-summary .collapse-toggle::before { content: "−"; }
.collapse-body {
  padding: 0 14px 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.panel-collapse {
  margin-top: 0;
  border: none;
  background: transparent;
  border-radius: 0;
}
.panel-collapse-summary { padding: 0 0 10px; }
.panel-collapse-summary h2 { margin: 0; font-size: 1rem; font-weight: 600; }
.collapse-title { display: grid; gap: 2px; min-width: 0; }
.collapse-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.panel-collapse > .collapse-body {
  border-top: 1px solid var(--border);
  padding: 12px 0 0;
}

/* —— App shell (Pterodactyl layout) —— */
body.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--sidebar);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  gap: 8px;
  z-index: 20;
}
.sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
  text-decoration: none;
  color: #fff;
  overflow: hidden;
}
.sidebar-logo-avatar {
  background: transparent;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  padding: 0;
}
.sidebar-logo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  align-items: center;
  flex-shrink: 0;
}
/* —— PayPal vertical ad (fills empty sidebar gap) —— */
.sidebar-paypal-ad {
  flex: 1 1 auto;
  min-height: 96px;
  width: 44px;
  margin: 4px 0;
  padding: 10px 0;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, .35);
  background:
    linear-gradient(180deg, rgba(59,130,246,.18), rgba(29,78,216,.08)),
    var(--bg3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  color: #bfdbfe;
  overflow: hidden;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
}
.sidebar-paypal-ad:hover {
  border-color: rgba(96, 165, 250, .7);
  background:
    linear-gradient(180deg, rgba(59,130,246,.28), rgba(29,78,216,.14)),
    var(--bg4);
  color: #eff6ff;
  transform: translateY(-1px);
}
.sidebar-paypal-ad-label {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #93c5fd;
  writing-mode: horizontal-tb;
}
.sidebar-paypal-ad-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.1;
  white-space: nowrap;
}
.sidebar-paypal-ad-cta {
  font-size: 0.85rem;
  color: #60a5fa;
}
.nav-btn {
  appearance: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  transition: background .12s, color .12s;
  text-decoration: none;
  position: relative;
}
.nav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: #f87171;
  color: #111;
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}
.nav-badge.hidden { display: none; }
.nav-btn:hover { background: var(--bg3); color: var(--text); }
.nav-btn.active {
  background: rgba(59,130,246,.15);
  color: var(--accent2);
}
.nav-btn.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.nav-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  left: calc(100% + 10px);
  background: var(--bg4);
  color: var(--text);
  font-size: 0.75rem;
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
  border: 1px solid var(--border);
  pointer-events: none;
  z-index: 30;
}

/* —— Bob Radio (sidebar player) —— */
.radio-side-btn {
  margin-top: auto;
  flex-shrink: 0;
  color: #86efac;
}
.radio-side-btn:hover {
  background: rgba(34, 197, 94, .12);
  color: #bbf7d0;
}
.radio-side-btn.is-open,
.radio-side-btn.is-playing {
  background: rgba(34, 197, 94, .18);
  color: #4ade80;
}
.radio-side-btn.is-playing::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #22c55e;
}
.radio-side-btn.is-playing {
  animation: radio-pulse 1.8s ease-in-out infinite;
}
@keyframes radio-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
  50% { box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
}

.radio-panel {
  position: fixed;
  top: 12px;
  left: calc(var(--sidebar-w) + 10px);
  z-index: 40;
  width: min(320px, calc(100vw - var(--sidebar-w) - 24px));
  animation: radio-slide .18s ease-out;
}
.radio-panel[hidden] { display: none !important; }
@keyframes radio-slide {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.radio-panel-card {
  background: linear-gradient(160deg, rgba(34,197,94,.1), transparent 42%), var(--bg2);
  border: 1px solid rgba(34, 197, 94, .35);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  padding: 14px 14px 12px;
  display: grid;
  gap: 10px;
}
.radio-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.radio-panel-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.radio-panel-brand strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: .01em;
}
.radio-panel-brand .muted { display: block; margin-top: 1px; }
.radio-panel-eq {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(34, 197, 94, .15);
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 6px 0;
  flex-shrink: 0;
}
.radio-panel-eq i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #4ade80;
  height: 40%;
}
.radio-panel-eq i:nth-child(1) { height: 45%; }
.radio-panel-eq i:nth-child(2) { height: 80%; }
.radio-panel-eq i:nth-child(3) { height: 55%; }
body.radio-playing .radio-panel-eq i {
  animation: eq-bounce 0.85s ease-in-out infinite;
}
body.radio-playing .radio-panel-eq i:nth-child(2) { animation-delay: .12s; }
body.radio-playing .radio-panel-eq i:nth-child(3) { animation-delay: .24s; }
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(.45); }
  50% { transform: scaleY(1); }
}
.radio-now {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  min-height: 2.5em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.radio-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.radio-play-btn {
  flex: 0 0 auto;
  min-width: 96px;
}
.radio-vol {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  min-width: 0;
}
.radio-vol input[type="range"] {
  width: 100%;
  accent-color: #22c55e;
  cursor: pointer;
}
.radio-open-link {
  text-decoration: none;
  color: var(--muted);
}
.radio-open-link:hover { color: #86efac; }

.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(19,21,27,.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-title {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: .01em;
}
.topbar-chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 9px;
}

.layout {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 22px 36px;
  display: grid;
  gap: 16px;
}

.panel {
  background: var(--bg2);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,.02) inset;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.create-form {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.9fr 0.8fr 0.9fr auto;
  gap: 8px;
  margin-bottom: 8px;
}
.create-form input,
.create-form select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}
.create-form select {
  cursor: pointer;
}
@media (max-width: 980px) {
  .create-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .create-form { grid-template-columns: 1fr; }
}

.server-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 8px;
  font-size: .86rem;
  color: var(--muted, #9aa3b2);
}
.server-stats .stat {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}
.server-stats .stat strong {
  color: var(--text);
  font-weight: 600;
}
.res-pcts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: .8rem;
}
.res-pct {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0,0,0,.18);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}
.res-pct.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
.res-pct.hot { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.res-pct .res-pct-detail {
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
}
.log-box.term-live {
  min-height: 340px;
  max-height: 520px;
}
#console-ws-status.is-live { color: var(--ok); }
#console-ws-status.is-dead { color: var(--danger); }
.res-monitor {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
  padding: 8px 10px;
  background: rgba(0,0,0,.18);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.res-row {
  display: grid;
  grid-template-columns: 42px 1fr minmax(72px, auto);
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-family: var(--mono);
}
.res-label {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .04em;
}
.res-val {
  color: var(--text);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.res-bar {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: visible;
}
.res-bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--ok);
  transition: width .35s ease;
}
.res-bar.warn > i { background: var(--warn); }
.res-bar.hot > i { background: var(--danger); }
.res-bar .res-limit {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  margin-left: -1px;
  background: #f8fafc;
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 0 6px rgba(248,250,252,.35);
  border-radius: 1px;
  pointer-events: none;
}
.server-soft {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
  margin: 0 0 10px;
}
.server-soft select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 7px 8px;
  font: inherit;
  font-size: .85rem;
}
@media (max-width: 700px) {
  .server-soft { grid-template-columns: 1fr; }
}

.slot4-box {
  border: 1px solid rgba(234, 179, 8, .35);
  background: linear-gradient(135deg, rgba(234, 179, 8, .08), rgba(15, 23, 42, .35));
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 14px;
}
.slot4-box.hidden { display: none; }
.slot4-box.is-unlocked {
  border-color: rgba(34, 197, 94, .4);
  background: linear-gradient(135deg, rgba(34, 197, 94, .1), rgba(15, 23, 42, .35));
}
.slot4-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.slot4-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.slot4-actions.hidden { display: none; }
.slot4-claim {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: center;
}
.slot4-claim.hidden { display: none; }
.slot4-claim input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}
.slot4-code {
  display: inline-block;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px dashed rgba(234, 179, 8, .5);
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: .04em;
}
@media (max-width: 800px) {
  .slot4-claim { grid-template-columns: 1fr; }
}

/* Picker / dedicated server views */
.view-panel.hidden { display: none !important; }
.picker-intro { margin: 0 0 14px; }
.votes-nudge {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
  border-radius: var(--radius);
}
.votes-nudge.hidden { display: none; }
.votes-nudge-head h3 { margin: 0 0 4px; font-size: 1rem; }
.votes-nudge-head p { margin: 0 0 10px; }
.votes-nudge .admin-list { max-height: 420px; overflow: auto; }
.picker-card { cursor: pointer; }
.picker-card:hover {
  border-color: rgba(59,130,246,.45);
  box-shadow: 0 0 0 1px rgba(59,130,246,.15);
}
.server-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.server-detail-head h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 700;
}
.join-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 12px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.join-box-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 160px;
  min-width: 0;
}
.join-address {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--accent2);
  word-break: break-all;
}
.detail-soft {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
  align-items: center;
}
.detail-soft select {
  background: var(--bg4);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 10px;
  font: inherit;
  font-size: 0.82rem;
}
.detail-actions { margin-bottom: 18px; }
.nested-panel {
  margin-top: 16px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
body[data-view="picker"] .nav-server-only { display: none !important; }

/* Server cards — Ptero list style */
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.server-card {
  position: relative;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 14px 14px 18px;
  overflow: hidden;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.server-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--muted);
}
.server-card.is-online::before { background: var(--ok); }
.server-card.is-starting::before { background: var(--accent); }
.server-card.is-unhealthy::before { background: var(--warn); }
.server-card.is-offline::before,
.server-card.is-missing::before { background: var(--danger); }
.server-card.active {
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 0 0 1px rgba(59,130,246,.2);
  background: #252936;
}
.server-card:hover { border-color: #3a4150; }
.server-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.server-top h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  font-family: var(--font);
  word-break: break-all;
}
.server-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 4px 0 2px;
}
.server-meta span {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--mono);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
  white-space: nowrap;
  font-weight: 600;
}
.badge-online { background: rgba(34,197,94,.12); color: #4ade80; border-color: rgba(34,197,94,.3); }
.badge-offline, .badge-missing { background: rgba(239,68,68,.1); color: #f87171; border-color: rgba(239,68,68,.28); }
.badge-unhealthy { background: rgba(234,179,8,.12); color: #facc15; border-color: rgba(234,179,8,.3); }
.badge-starting { background: rgba(59,130,246,.12); color: #93c5fd; border-color: rgba(59,130,246,.3); }

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg4);
  color: var(--text);
  border-radius: var(--radius);
  padding: 7px 11px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .12s, border-color .12s, transform .08s;
}
.btn:hover { border-color: #4a5366; background: #323848; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--accent);
  border-color: #60a5fa;
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent); }
.btn-ok { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.35); color: #86efac; }
.btn-ok:hover { background: rgba(34,197,94,.22); }
.btn-map {
  background: rgba(20,184,166,.14);
  border-color: rgba(45,212,191,.4);
  color: #5eead4;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-map:hover { background: rgba(20,184,166,.26); }
.btn-warn { background: rgba(234,179,8,.1); border-color: rgba(234,179,8,.35); color: #fde047; }
.btn-warn:hover { background: rgba(234,179,8,.2); }
.btn-accent { background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.35); color: #93c5fd; }
.btn-accent:hover { background: rgba(59,130,246,.22); }
.btn-ghost { background: transparent; }
.btn-danger {
  background: rgba(239,68,68,.1);
  border-color: rgba(239,68,68,.4);
  color: #fca5a5;
}
.btn-danger:hover { background: rgba(239,68,68,.2); }
.btn-sm { padding: 5px 9px; font-size: 0.78rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.half { min-width: 0; display: flex; flex-direction: column; gap: 10px; }

/* Console / logs — Ptero terminal */
.log-box, .term-box {
  background: #0a0c10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.5;
  height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #c5ccd8;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
.term-box { display: flex; flex-direction: column; gap: 4px; }
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-cmd { color: #4ade80; }
.term-out { color: #c5ccd8; }
.term-err { color: #f87171; }

.rcon-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.rcon-form input {
  background: #0a0c10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 11px 12px;
  font-family: var(--mono);
  font-size: 0.85rem;
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  max-width: min(420px, calc(100vw - 40px));
  z-index: 50;
  font-size: 0.88rem;
}
.toast.ok { border-color: rgba(34,197,94,.45); }
.toast.err { border-color: rgba(239,68,68,.45); }

.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.admin-row code {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
}

.votes-h {
  margin: 16px 0 8px;
  font-size: 0.95rem;
}
.vote-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
.vote-row-pdp {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg4);
  border: 1px solid var(--border);
}
.vote-row-body { min-width: 0; }
.vote-row-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.vote-row-name {
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.vote-row-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--muted);
}
.vote-row-actions {
  align-self: center;
  flex-shrink: 0;
}
.vote-bar {
  display: flex;
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-top: 8px;
}
.vote-bar-yes { background: #f87171; height: 100%; }
.vote-bar-no { background: #4ade80; height: 100%; }
.vote-tally { margin: 6px 0 0; }
@media (max-width: 720px) {
  .vote-row { grid-template-columns: 48px minmax(0, 1fr); }
  .vote-row-actions { grid-column: 1 / -1; }
}

/* File manager */
.files-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.files-import-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
#files-upload-hint { margin-left: auto; }
.files-path {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent2);
  word-break: break-all;
}
.btn-files-importing {
  opacity: 0.7;
  pointer-events: none;
}
.files-layout {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 1.4fr;
  gap: 12px;
  min-height: 320px;
}
.files-list {
  background: #0a0c10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  overflow: auto;
  max-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.files-row {
  display: flex;
  align-items: stretch;
  gap: 2px;
}
.files-item {
  appearance: none;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text);
  padding: 7px 10px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.files-row:hover .files-item {
  background: var(--bg3);
  border-color: var(--border);
}
.files-item:hover {
  background: var(--bg3);
  border-color: var(--border);
}
.files-item-muted { opacity: 0.55; cursor: default; }
.files-dl,
.files-del {
  flex-shrink: 0;
  align-self: center;
  opacity: 0.7;
  padding: 4px 8px;
  min-width: 28px;
}
.files-dl {
  color: var(--accent, #7dd3fc);
}
.files-del {
  color: #fca5a5;
}
.files-row:hover .files-dl,
.files-row:hover .files-del { opacity: 0.85; }
.files-dl:hover {
  opacity: 1 !important;
  background: rgba(125, 211, 252, 0.12);
  border-color: rgba(125, 211, 252, 0.35);
}
.files-del:hover {
  opacity: 1 !important;
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.35);
}
.files-icon { font-size: 0.95rem; }
.files-name {
  font-family: var(--mono);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.files-meta { white-space: nowrap; font-size: 0.72rem; color: var(--muted); }
.site-modal-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
}
.site-modal-input-wrap.hidden { display: none !important; }
.site-modal-input {
  width: 100%;
  box-sizing: border-box;
  background: #0a0c10;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
  font-family: var(--mono);
  font-size: 0.9rem;
}
.site-modal-input:focus {
  outline: none;
  border-color: var(--accent2);
}
.files-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.files-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.files-content {
  flex: 1;
  min-height: 280px;
  max-height: 420px;
  background: #0a0c10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.45;
  resize: vertical;
  outline: none;
}
.files-content:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.files-content:disabled { opacity: 0.7; }
.files-monaco-wrap {
  flex: 1;
  min-height: 280px;
  height: 420px;
  max-height: 520px;
  position: relative;
}
.files-monaco {
  width: 100%;
  height: 100%;
  background: #0a0c10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.files-monaco.files-monaco-disabled {
  opacity: 0.72;
  pointer-events: none;
}
.files-monaco-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  pointer-events: none;
  z-index: 2;
  background: rgba(10, 12, 16, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.files-monaco-empty.hidden { display: none !important; }
.files-ctx {
  position: fixed;
  z-index: 9500;
  min-width: 180px;
  padding: 4px;
  background: #111827;
  border: 1px solid var(--border-soft, #1e293b);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.files-ctx.hidden {
  display: none !important;
}
.files-ctx-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.files-ctx-item:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.18);
}
.files-ctx-item:disabled {
  opacity: 0.4;
  cursor: default;
}
.files-ctx-danger { color: #fca5a5; }
.files-ctx-danger:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.16);
}
.files-ctx-sep {
  height: 1px;
  margin: 3px 6px;
  background: var(--border-soft, #1e293b);
}
.files-row.files-row-ctx .files-item {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
}

.section-anchor { scroll-margin-top: 72px; }

/* Pre-start video ad overlay */
.prestart-ad-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
}
.prestart-ad-overlay.hidden {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
.prestart-ad-card {
  width: min(720px, 100%);
  background: #0f172a;
  border: 1px solid var(--border-soft, #1e293b);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.prestart-ad-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 10px;
}
.prestart-ad-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fde68a;
  background: rgba(234, 179, 8, 0.18);
  border: 1px solid rgba(234, 179, 8, 0.35);
  padding: 2px 8px;
  border-radius: 4px;
}
.prestart-ad-msg {
  margin: 0;
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: #e2e8f0;
}
.prestart-ad-countdown {
  flex-shrink: 0;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #bfdbfe;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.prestart-ad-video-wrap {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}
.prestart-ad-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.ad-admin-preview-wrap {
  margin: 10px 0 12px;
  max-width: 420px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.ad-admin-preview {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  background: #000;
}
.prestart-ad-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  color: #003087;
  text-align: center;
  padding: 24px;
  font-size: 22px;
}
.prestart-ad-fallback.hidden { display: none; }
.prestart-ad-fallback strong { font-size: 28px; letter-spacing: 0.02em; }
.prestart-ad-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 16px;
}
@media (max-width: 520px) {
  .prestart-ad-foot { flex-direction: column; align-items: stretch; }
  .prestart-ad-head { flex-wrap: wrap; }
}

@media (max-width: 900px) {
  body.app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    flex-direction: row;
    width: 100%;
    padding: 8px 10px;
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
    overflow-x: auto;
  }
  .sidebar-logo { margin-bottom: 0; width: 36px; height: 36px; flex-shrink: 0; }
  .sidebar-nav { flex-direction: row; width: auto; flex: 1; }
  .nav-btn { width: 40px; height: 40px; }
  .sidebar-paypal-ad {
    flex: 0 0 auto;
    min-height: 0;
    width: auto;
    height: 40px;
    margin: 0 6px 0 auto;
    padding: 0 10px;
    flex-direction: row;
    gap: 6px;
    writing-mode: horizontal-tb;
  }
  .sidebar-paypal-ad-text {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 0.7rem;
    letter-spacing: .06em;
  }
  .sidebar-paypal-ad-label { display: none; }
  .radio-side-btn {
    margin-top: 0;
    margin-left: 0;
  }
  .radio-side-btn.is-playing::before {
    left: 10px; right: 10px; top: auto; bottom: 0;
    width: auto; height: 3px;
    border-radius: 3px 3px 0 0;
  }
  .radio-panel {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
  }
  .nav-btn.active::before {
    left: 10px; right: 10px; top: auto; bottom: 0;
    width: auto; height: 3px;
    border-radius: 3px 3px 0 0;
  }
  .nav-btn[title]:hover::after { display: none; }
  .split { grid-template-columns: 1fr; }
  .log-box, .term-box { height: 260px; }
  .files-layout { grid-template-columns: 1fr; }
}

/* In-site confirm modal (replaces browser confirm()) */
.site-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.site-modal.hidden { display: none !important; }
.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(5px);
}
.site-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 18px 18px 16px;
  animation: site-modal-in .14s ease-out;
}
@keyframes site-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.site-modal-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.site-modal-msg {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  white-space: pre-line;
}
.site-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.site-modal-actions .btn { min-width: 96px; }
.site-modal.is-danger .site-modal-title { color: #fca5a5; }
.site-modal.is-ok #site-modal-ok {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
}
.site-modal.is-ok #site-modal-ok:hover {
  background: rgba(34, 197, 94, 0.24);
}

/* —— Welcome splash (post-login) —— */
.welcome-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(700px 420px at 50% 35%, rgba(59, 130, 246, 0.22), transparent 60%),
    rgba(8, 10, 16, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 1;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  pointer-events: none;
}
.welcome-splash.is-leaving {
  opacity: 0;
  visibility: hidden;
}
.welcome-splash-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.35), transparent 70%);
  filter: blur(28px);
  animation: welcome-glow 2.2s ease-in-out infinite alternate;
}
.welcome-splash-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 28px 36px;
  animation: welcome-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.welcome-splash-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(96, 165, 250, 0.65);
  box-shadow:
    0 0 0 6px rgba(59, 130, 246, 0.15),
    0 18px 40px rgba(0, 0, 0, 0.45);
  animation: welcome-pop 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
.welcome-splash-avatar-fallback {
  display: grid;
  place-items: center;
  background: var(--bg3);
  font-size: 2rem;
  color: var(--accent2);
}
.welcome-splash-hello {
  margin: 8px 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.welcome-splash-name {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff 10%, #93c5fd 55%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.welcome-splash-bar {
  margin-top: 14px;
  width: 120px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.welcome-splash-bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #60a5fa, #3b82f6, transparent);
  animation: welcome-bar 1.6s ease-in-out infinite;
}
@keyframes welcome-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes welcome-pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes welcome-glow {
  from { transform: scale(0.92); opacity: 0.7; }
  to { transform: scale(1.08); opacity: 1; }
}
@keyframes welcome-bar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
