/* ===== PRUMKA-style dark VPS panel ===== */
:root {
  --bg: #0a0d14;
  --bg-2: #0c1018;
  --panel: #131822;
  --panel-2: #1a2030;
  --panel-3: #232b3d;
  --border: #1f2735;
  --border-strong: #2c3548;
  --fg: #e6ecf3;
  --muted: #7d8aa0;
  --muted-2: #5a6478;
  --primary: #06b6d4;
  --primary-2: #0ea5e9;
  --accent: #10b981;
  --danger: #ef4444;
  --warn: #f59e0b;
  --info: #3b82f6;
  --violet: #a78bfa;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--fg);
}

body { background: radial-gradient(ellipse at top left, rgba(6,182,212,.06), transparent 40%) , radial-gradient(ellipse at bottom right, rgba(16,185,129,.04), transparent 40%), var(--bg); }

/* ===== Layout ===== */
.app-shell {
  display: flex;
  min-height: 100vh;
  padding: 18px;
  gap: 18px;
}

/* ===== Sidebar ===== */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0e131c 0%, #0a0e16 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.02);
  position: sticky;
  top: 18px;
  align-self: flex-start;
  height: calc(100vh - 36px);
}

.sb-logo {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 0 12px;
}
.sb-logo-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1a2030, #0e131c);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -8px rgba(6,182,212,.3), inset 0 1px 2px rgba(255,255,255,.05);
}
.sb-logo-circle svg { color: var(--primary); }
.sb-logo-name {
  font-weight: 700; letter-spacing: .15em; font-size: .82rem;
  color: var(--fg);
}

.sb-section-title {
  font-size: .65rem; font-weight: 600; letter-spacing: .2em;
  color: var(--muted-2); text-transform: uppercase;
  padding: 0 8px; margin-bottom: 10px;
}

.sb-nav { display: flex; flex-direction: column; gap: 6px; }

.sb-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s ease;
  text-align: left;
}
.sb-link:hover {
  background: rgba(255,255,255,.025);
  color: var(--fg);
}
.sb-link.active {
  background: linear-gradient(135deg, rgba(6,182,212,.15) 0%, rgba(16,185,129,.05) 100%);
  border-color: rgba(6,182,212,.25);
  color: var(--fg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 4px 14px -6px rgba(6,182,212,.4);
}
.sb-link-icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--panel-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.sb-link.active .sb-link-icon {
  background: linear-gradient(135deg, rgba(6,182,212,.3), rgba(16,185,129,.15));
  border-color: rgba(6,182,212,.4);
}
.sb-link-icon svg { width: 16px; height: 16px; }
.sb-link-text { display: flex; flex-direction: column; line-height: 1.2; }
.sb-link-title { font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.sb-link-sub { font-size: .65rem; color: var(--muted-2); margin-top: 2px; }

.sb-lang {
  display: flex; gap: 6px; padding: 4px;
  background: var(--panel-2); border-radius: 12px;
  border: 1px solid var(--border);
}
.sb-lang-btn {
  flex: 1; padding: 8px 0; border-radius: 8px;
  background: transparent; border: none; color: var(--muted);
  font-weight: 700; font-size: .75rem; cursor: pointer; letter-spacing: .1em;
  transition: all .15s;
}
.sb-lang-btn.active {
  background: linear-gradient(135deg, rgba(6,182,212,.25), rgba(16,185,129,.1));
  color: var(--fg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.sb-lang-btn:hover:not(.active) { color: var(--fg); }

.sb-logout {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--fg); cursor: pointer; transition: all .15s;
  width: 100%; font-family: inherit; text-align: left;
}
.sb-logout:hover { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: #fca5a5; }
.sb-logout .sb-link-icon { background: var(--panel-3); }
.sb-logout:hover .sb-link-icon { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.3); }

/* ===== Main content ===== */
.main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: 18px;
}

/* Page header (PRUMKA PANEL / title / description) */
.page-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: stretch;
}
.page-header-main {
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
}
.page-header-main::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(6,182,212,.08), transparent 50%);
  pointer-events: none;
}
.page-header-eyebrow {
  font-size: .68rem; letter-spacing: .25em; color: var(--muted-2);
  font-weight: 600; text-transform: uppercase; margin-bottom: 10px;
}
.page-title {
  font-size: 2.4rem; font-weight: 700; letter-spacing: -.02em;
  margin: 0 0 8px;
}
.page-description {
  color: var(--muted); font-size: .95rem;
  max-width: 600px;
}
.page-stat {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px 26px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-width: 200px;
}
.page-stat-label {
  font-size: .65rem; letter-spacing: .2em; color: var(--muted-2);
  font-weight: 600; text-transform: uppercase;
}
.page-stat-value {
  font-size: 2rem; font-weight: 700; letter-spacing: -.02em;
  margin-top: 8px;
}
.page-stat-sub { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ===== Toolbar ===== */
.toolbar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.toolbar-title { font-weight: 600; font-size: .95rem; }
.toolbar-sub { font-size: .8rem; color: var(--muted); margin-top: 2px; }

.switch {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .7rem; letter-spacing: .15em; color: var(--muted-2);
  font-weight: 600; text-transform: uppercase;
}
.switch input { display: none; }
.switch-track {
  width: 44px; height: 24px; background: var(--panel-2); border-radius: 99px;
  position: relative; cursor: pointer; border: 1px solid var(--border);
  transition: all .2s;
}
.switch-track::after {
  content: ''; position: absolute;
  top: 2px; left: 2px; width: 18px; height: 18px;
  background: var(--muted); border-radius: 50%;
  transition: all .2s;
}
.switch input:checked + .switch-track { background: linear-gradient(135deg, #06b6d4, #10b981); border-color: transparent; }
.switch input:checked + .switch-track::after { left: 22px; background: #fff; }

/* ===== Server card (PRUMKA-style) ===== */
.server-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 1fr));
  gap: 24px;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: all .2s ease;
  overflow: hidden;
}
.server-card::after {
  content: ''; position: absolute; right: 0; top: 12px; bottom: 12px;
  width: 5px; border-radius: 99px 0 0 99px;
  background: var(--accent-bar, #f59e0b);
  box-shadow: 0 0 12px var(--accent-bar, #f59e0b);
}
.server-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.4);
}
.server-card-running { --accent-bar: #10b981; }
.server-card-starting { --accent-bar: #f59e0b; }
.server-card-stopped { --accent-bar: #6b7280; }
.server-card-error { --accent-bar: #ef4444; }

.server-card-info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.server-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.server-card-meta { min-width: 0; }
.server-card-name {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1rem;
}
.server-card-ip {
  margin-top: 6px; font-size: .8rem; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.server-stat { display: flex; flex-direction: column; gap: 6px; }
.server-stat-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem;
}
.server-stat-label {
  display: flex; align-items: center; gap: 6px;
  color: var(--muted); font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; font-size: .68rem;
}
.server-stat-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.server-stat-of { color: var(--muted-2); font-size: .7rem; }

/* Status badge */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 99px;
  font-size: .68rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.status-running { background: rgba(16,185,129,.12); color: #6ee7b7; border-color: rgba(16,185,129,.3); }
.status-starting { background: rgba(245,158,11,.12); color: #fcd34d; border-color: rgba(245,158,11,.3); }
.status-stopped { background: rgba(107,114,128,.15); color: #9ca3af; border-color: rgba(107,114,128,.3); }
.status-error { background: rgba(239,68,68,.12); color: #fca5a5; border-color: rgba(239,68,68,.3); }

/* Progress bars (thin) */
.bar {
  height: 4px; background: var(--bg-2); border-radius: 99px;
  overflow: hidden; border: 1px solid var(--border);
}
.bar > div {
  height: 100%; background: linear-gradient(90deg, #06b6d4, #10b981);
  transition: width .4s ease;
}
.bar.warn > div { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.bar.danger > div { background: linear-gradient(90deg, #ef4444, #b91c1c); }

/* ===== Cards ===== */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.card-header {
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.card-title { font-weight: 600; font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.card-body { padding: 22px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 10px; font-size: .82rem; font-weight: 500;
  cursor: pointer; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--fg);
  transition: all .15s; white-space: nowrap;
  font-family: inherit;
}
.btn:hover { background: var(--panel-3); border-color: var(--border-strong); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; font-size: .85rem; font-weight: 600;
  cursor: pointer; border: 1px solid transparent;
  background: linear-gradient(135deg, #06b6d4, #10b981);
  color: #fff; transition: all .15s;
  box-shadow: 0 4px 14px rgba(6,182,212,.25);
  font-family: inherit;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(6,182,212,.35); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-danger { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: #fca5a5; }
.btn-danger:hover { background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.45); }

.btn-warn { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); color: #fcd34d; }
.btn-warn:hover { background: rgba(245,158,11,.18); }

.btn-success { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.3); color: #6ee7b7; }
.btn-success:hover { background: rgba(16,185,129,.18); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--panel-2); color: var(--fg); }

.btn-icon {
  width: 36px; height: 36px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-icon-sm { width: 30px; height: 30px; }

/* Action button (round, like in screenshots) */
.action-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; transition: all .15s;
  flex-shrink: 0;
}
.action-btn:hover { color: var(--fg); background: var(--panel-3); border-color: var(--border-strong); }
.action-btn-success:hover { color: #6ee7b7; background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.3); }
.action-btn-warn:hover { color: #fcd34d; background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); }
.action-btn-danger:hover { color: #fca5a5; background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); }

/* ===== Inputs ===== */
.input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .9rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(6,182,212,.15); }
.input::placeholder { color: var(--muted-2); }

select.input { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237d8aa0' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

/* ===== Tabs ===== */
.tabs {
  display: flex; gap: 4px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.tab {
  padding: 9px 16px; font-size: .85rem; font-weight: 500; color: var(--muted);
  cursor: pointer; border-radius: 10px; transition: all .15s; white-space: nowrap;
  background: transparent; border: none; font-family: inherit;
}
.tab:hover { color: var(--fg); background: rgba(255,255,255,.02); }
.tab.active {
  color: var(--fg);
  background: linear-gradient(135deg, rgba(6,182,212,.2), rgba(16,185,129,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

/* ===== Tables ===== */
.table {
  width: 100%; border-collapse: collapse; font-size: .85rem;
}
.table th {
  text-align: left; font-weight: 600; padding: 12px 16px;
  color: var(--muted-2); border-bottom: 1px solid var(--border);
  text-transform: uppercase; font-size: .65rem; letter-spacing: .1em;
  background: var(--bg-2); position: sticky; top: 0; z-index: 1;
}
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255,255,255,.015); }

/* ===== Logbox / console ===== */
.logbox {
  background: #050810;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .78rem;
  line-height: 1.6;
  max-height: 70vh;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  color: #c6cbd1;
}

/* ===== Toasts ===== */
#toasts {
  position: fixed; top: 20px; right: 20px; z-index: 100;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: .85rem;
  display: flex; align-items: center; gap: 10px;
  min-width: 280px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.5);
  animation: slideIn .25s ease;
}
.toast-success { border-left: 3px solid #10b981; }
.toast-error { border-left: 3px solid #ef4444; }
.toast-info { border-left: 3px solid #06b6d4; }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(6px);
  z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--panel); border: 1px solid var(--border-strong);
  border-radius: 18px; max-width: 640px; width: 100%;
  max-height: 90vh; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  animation: popIn .2s ease;
}
.modal.modal-lg { max-width: 880px; }
@keyframes popIn { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ===== OS Grid (Reinstall) ===== */
.os-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.os-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .15s;
}
.os-card:hover { border-color: var(--border-strong); background: var(--panel-2); }
.os-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(6,182,212,.12), rgba(16,185,129,.04));
  box-shadow: 0 4px 16px -6px rgba(6,182,212,.3);
}
.os-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--panel-3); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem;
}
.os-name { font-weight: 600; font-size: .9rem; }
.os-sub { font-size: .72rem; color: var(--muted); margin-top: 2px; }

/* ===== Spinner ===== */
.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid transparent; border-top-color: currentColor; border-right-color: currentColor;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Auth page ===== */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-bg {
  position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(6,182,212,.10), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(16,185,129,.08), transparent 50%);
}
.auth-card {
  width: 100%; max-width: 420px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 32px 80px rgba(0,0,0,.4);
  position: relative;
}

/* ===== Utilities ===== */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none !important; }
.block { display: block; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.text-xs { font-size: .72rem; }
.text-sm { font-size: .85rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.1rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.tracking-wide { letter-spacing: .05em; }
.tracking-tight { letter-spacing: -.015em; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.text-fg { color: var(--fg); }
.text-muted { color: var(--muted); }
.text-muted-2 { color: var(--muted-2); }
.text-emerald { color: #6ee7b7; }
.text-cyan { color: #67e8f9; }
.text-amber { color: #fcd34d; }
.text-red { color: #fca5a5; }
.text-violet { color: #c4b5fd; }
.relative { position: relative; }
.w-full { width: 100%; }
.w-4 { width: 16px; } .w-5 { width: 20px; } .h-4 { height: 16px; } .h-5 { height: 20px; }
.w-6 { width: 24px; } .h-6 { height: 24px; } .w-8 { width: 32px; } .h-8 { height: 32px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.p-3 { padding: 12px; } .p-4 { padding: 16px; } .p-6 { padding: 24px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-6 > * + * { margin-top: 24px; }
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.cursor-pointer { cursor: pointer; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* Mobile */
@media (max-width: 900px) {
  .app-shell { padding: 10px; gap: 10px; flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; position: static;
    flex-direction: row; flex-wrap: wrap;
    gap: 12px; padding: 14px;
  }
  .sb-section, .sb-logo { flex: 1; }
  .server-card { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .page-header { grid-template-columns: 1fr; }
  .page-title { font-size: 1.6rem; }
  .page-header-main { padding: 22px; }
}
