/* ============================================
   CONTROL PANEL — Full Redesign
   Mobile-first, dark theme, animated
   ============================================ */

/* --- Reset & Base --- */

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

:root {
  --bg-deep: #06060e;
  --bg-surface: rgba(14, 14, 28, 0.75);
  --bg-card: rgba(18, 18, 38, 0.6);
  --bg-elevated: rgba(24, 24, 48, 0.5);
  --border: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.1);
  --text-primary: #eaeaf0;
  --text-secondary: #8888a0;
  --text-muted: #55556a;
  --accent: #7c6aff;
  --accent-glow: rgba(124, 106, 255, 0.3);
  --green: #34d399;
  --green-dim: rgba(52, 211, 153, 0.15);
  --red: #f87171;
  --red-dim: rgba(248, 113, 113, 0.15);
  --yellow: #fbbf24;
  --yellow-dim: rgba(251, 191, 36, 0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 60px rgba(124, 106, 255, 0.06);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-deep);
  color: var(--text-secondary);
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  overflow-x: hidden;
}

/* Animated background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(124, 106, 255, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(52, 211, 153, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(248, 113, 113, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.7; transform: scale(1.1); }
}

/* ============================
   Panel — main container
   ============================ */

.panel {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100dvh;
  background: var(--bg-surface);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeInUp 0.5s ease-out;
}

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

/* Desktop: card layout */
@media (min-width: 540px) {
  body {
    align-items: center;
    padding: 2rem;
  }

  .panel {
    max-width: 460px;
    min-height: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    backdrop-filter: blur(24px) saturate(1.2);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    padding: 1.75rem;
  }
}

/* ============================
   Header
   ============================ */

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

/* ============================
   Ghost buttons
   ============================ */

.btn-ghost {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-color: var(--border-hover);
}

.btn-ghost:active {
  transform: scale(0.92);
}

/* ============================
   Status card
   ============================ */

.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

/* Subtle animated border glow */
.status-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}

.status-card.glow-green {
  border-color: rgba(52, 211, 153, 0.2);
}
.status-card.glow-green::before {
  opacity: 1;
  background: radial-gradient(ellipse at 30% 50%, rgba(52, 211, 153, 0.06) 0%, transparent 70%);
}

.status-card.glow-red {
  border-color: rgba(248, 113, 113, 0.18);
}
.status-card.glow-red::before {
  opacity: 1;
  background: radial-gradient(ellipse at 30% 50%, rgba(248, 113, 113, 0.05) 0%, transparent 70%);
}

.status-card.glow-yellow {
  border-color: rgba(251, 191, 36, 0.18);
}
.status-card.glow-yellow::before {
  opacity: 1;
  background: radial-gradient(ellipse at 30% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 70%);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #333;
  transition: all 0.4s;
  position: relative;
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6), 0 0 24px rgba(52, 211, 153, 0.15);
}

.status-dot.offline {
  background: var(--red);
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.4);
}

.status-dot.starting,
.status-dot.stopping,
.status-dot.checking {
  background: var(--yellow);
  animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(251, 191, 36, 0.5); transform: scale(1); }
  50% { opacity: 0.4; box-shadow: 0 0 2px rgba(251, 191, 36, 0.2); transform: scale(0.85); }
}

.status-info {
  flex: 1;
}

.status-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
  font-weight: 500;
}

.status-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.status-sub {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding-left: 1.85rem;
  position: relative;
  z-index: 1;
}

.btn-refresh {
  margin-left: auto;
}

.btn-refresh svg {
  transition: transform var(--transition-smooth);
}

.btn-refresh.spinning svg {
  animation: spin 0.6s linear infinite;
}

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

/* ============================
   Main action button
   ============================ */

.btn-action {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn-action::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
  background: rgba(255, 255, 255, 0.06);
}

.btn-action:hover:not(:disabled)::before {
  opacity: 1;
}

.btn-action:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.btn-action:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.btn-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-action.success {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 2px 16px rgba(5, 150, 105, 0.3);
}

.btn-action.danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 2px 16px rgba(220, 38, 38, 0.25);
}

.btn-action-icon {
  font-size: 0.85rem;
}

/* ============================
   Game servers section
   ============================ */

.section-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 500;
  padding-left: 0.15rem;
}

.servers-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.server-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-smooth);
  animation: slideIn 0.3s ease-out backwards;
}

.server-item:nth-child(1) { animation-delay: 0.05s; }
.server-item:nth-child(2) { animation-delay: 0.1s; }
.server-item:nth-child(3) { animation-delay: 0.15s; }
.server-item:nth-child(4) { animation-delay: 0.2s; }
.server-item:nth-child(5) { animation-delay: 0.25s; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.server-item.srv-running {
  border-color: rgba(52, 211, 153, 0.12);
}

.server-item.srv-starting,
.server-item.srv-stopping {
  border-color: rgba(251, 191, 36, 0.12);
}

.server-icon {
  font-size: 1.15rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.server-info {
  flex: 1;
  min-width: 0;
}

.server-name {
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-state {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.srv-running .server-state { color: var(--green); }
.srv-starting .server-state,
.srv-stopping .server-state { color: var(--yellow); }
.srv-stopped .server-state  { color: var(--text-muted); }

.server-players {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  background: var(--bg-elevated);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.srv-running .server-players {
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.15);
  background: rgba(52, 211, 153, 0.06);
}

.srv-controls {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.srv-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.srv-btn:hover {
  background: var(--bg-elevated);
  transform: scale(1.08);
}

.srv-btn:active {
  transform: scale(0.95);
}

.srv-btn-start:hover { color: var(--green); border-color: rgba(52, 211, 153, 0.3); }
.srv-btn-stop:hover  { color: var(--red); border-color: rgba(248, 113, 113, 0.3); }

.server-dot-wrap {
  flex-shrink: 0;
}

.server-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2a2a3e;
  transition: all var(--transition-smooth);
}

.srv-running .server-dot {
  background: var(--green);
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
}

.srv-starting .server-dot,
.srv-stopping .server-dot {
  background: var(--yellow);
  animation: dotPulse 1.5s ease-in-out infinite;
}

.srv-stopped .server-dot {
  background: #2a2a3e;
}

/* ============================
   Auto-shutdown bar
   ============================ */

.autostop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.autostop-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.autostop-info svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.autostop-toggle {
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
  letter-spacing: 0.06em;
}

.autostop-toggle.on {
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.2);
}

.autostop-toggle.off {
  color: var(--red);
  border-color: rgba(248, 113, 113, 0.2);
}

.autostop-toggle:hover {
  background: var(--bg-elevated);
  transform: scale(1.04);
}

.autostop-toggle:active {
  transform: scale(0.96);
}

/* ============================
   Feedback
   ============================ */

.feedback {
  text-align: center;
  font-size: 0.75rem;
  min-height: 1.2em;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

/* ============================
   Login / Register
   ============================ */

.panel-login {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100dvh;
  background: var(--bg-surface);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeInUp 0.5s ease-out;
}

@media (min-width: 480px) {
  body:has(.panel-login) {
    align-items: center;
    padding: 2rem;
  }

  .panel-login {
    max-width: 400px;
    min-height: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    backdrop-filter: blur(24px) saturate(1.2);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    padding: 2.5rem 2rem 2rem;
  }
}

h1.login-title {
  text-align: center;
  margin-bottom: 0.35rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.login-subtitle {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 0.9rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus {
  outline: none;
  border-color: rgba(124, 106, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(124, 106, 255, 0.1);
}

input::placeholder {
  color: var(--text-muted);
}

.btn-primary {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  background: linear-gradient(135deg, var(--accent), #6358d4);
  box-shadow: 0 2px 14px var(--accent-glow);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--accent-glow);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

/* ============================
   Login extras
   ============================ */

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.form-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}

.check-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin: 0;
  cursor: pointer;
}

.msg {
  display: none;
  text-align: center;
  font-size: 0.78rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  animation: fadeInUp 0.3s ease-out;
}

.msg-error {
  display: block;
  color: var(--red);
  background: var(--red-dim);
  border: 1px solid rgba(248, 113, 113, 0.15);
}

.msg-success {
  display: block;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(52, 211, 153, 0.15);
}

.login-footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.login-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.login-footer a:hover {
  color: #a78bfa;
  text-decoration: underline;
}

/* ============================
   Admin page
   ============================ */

.panel-wide {
  max-width: 560px;
}

@media (min-width: 540px) {
  .panel-wide {
    max-width: 560px;
  }
}

.brand-back {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all var(--transition-fast);
  padding: 0.25rem;
  border-radius: 6px;
}

.brand-back:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

/* Tabs */

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.tab {
  flex: 1;
  padding: 0.65rem 0.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.tab:hover {
  color: var(--text-secondary);
  background: var(--bg-elevated);
}

.tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

/* Admin list */

.admin-list {
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.06) transparent;
}

.admin-list::-webkit-scrollbar {
  width: 4px;
}

.admin-list::-webkit-scrollbar-track {
  background: transparent;
}

.admin-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}

.admin-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 2.5rem 0;
}

.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.35rem;
  transition: border-color var(--transition-fast);
  animation: slideIn 0.3s ease-out backwards;
}

.admin-item:hover {
  border-color: var(--border-hover);
}

.admin-item-info {
  min-width: 0;
  flex: 1;
}

.admin-item-name {
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--text-primary);
}

.admin-item-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.admin-item-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

/* Small buttons */

.btn-sm {
  padding: 0.3rem 0.7rem;
  border: none;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.btn-sm:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

.btn-sm:active {
  transform: translateY(0) scale(0.96);
}

.btn-approve {
  background: linear-gradient(135deg, #059669, #047857);
}

.btn-reject {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.btn-role {
  min-width: 52px;
  text-transform: uppercase;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.btn-role.role-admin {
  background: linear-gradient(135deg, var(--accent), #6358d4);
}

.btn-role.role-user {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.user-role {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
}

.user-role.role-admin { color: var(--accent); }
.user-role.role-user  { color: var(--text-muted); }

.you-badge {
  font-size: 0.58rem;
  color: var(--text-muted);
  font-weight: 400;
  background: var(--bg-elevated);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-left: 0.3rem;
  vertical-align: middle;
}

/* Logs */

.log-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.76rem;
  transition: background var(--transition-fast);
}

.log-item:hover {
  background: var(--bg-elevated);
}

.log-item:last-child {
  border-bottom: none;
}

.log-action {
  font-weight: 600;
  min-width: 85px;
  color: var(--text-secondary);
  font-size: 0.72rem;
}

.log-start .log-action { color: var(--green); }
.log-stop .log-action  { color: var(--red); }
.log-other .log-action { color: var(--accent); }

.log-user {
  color: var(--text-secondary);
  flex: 1;
}

.log-time {
  color: var(--text-muted);
  font-size: 0.68rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ============================
   Mobile enhancements
   ============================ */

@media (max-width: 539px) {
  .panel {
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .server-item {
    padding: 0.55rem 0.7rem;
    gap: 0.5rem;
  }

  .server-name {
    font-size: 0.78rem;
  }

  .admin-item {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .admin-item-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .log-item {
    flex-wrap: wrap;
    gap: 0.3rem 0.65rem;
  }

  .log-time {
    width: 100%;
    text-align: right;
    font-size: 0.65rem;
  }
}

/* ============================
   Custom scrollbar (global)
   ============================ */

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ============================
   Selection
   ============================ */

::selection {
  background: rgba(124, 106, 255, 0.3);
  color: #fff;
}

/* ============================
   Focus visible (keyboard nav)
   ============================ */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
  outline: none;
}
