/* =============================================
   CRAFTPANEL — Main Stylesheet
   Dark industrial theme with green accents
   ============================================= */

:root {
  --bg-0: #0a0c0f;
  --bg-1: #111418;
  --bg-2: #181c22;
  --bg-3: #1f2530;
  --bg-4: #252d3a;
  --border: rgba(255,255,255,0.07);
  --border-bright: rgba(255,255,255,0.14);
  --green: #4ade80;
  --green-dim: #22c55e;
  --green-glow: rgba(74, 222, 128, 0.15);
  --accent: #60a5fa;
  --accent-dim: #3b82f6;
  --accent-glow: rgba(96, 165, 250, 0.15);
  --orange: #fb923c;
  --red: #f87171;
  --yellow: #fbbf24;
  --text-1: #f0f4f8;
  --text-2: #8fa3b3;
  --text-3: #4a6070;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.18s ease;
  --sidebar-w: 220px;
  --font-mono: 'Space Mono', monospace;
  --font-sans: 'Outfit', sans-serif;
}

/* ---- LIGHT THEME ---- */
body.light {
  --bg-0: #f0f2f5;
  --bg-1: #ffffff;
  --bg-2: #f5f7fa;
  --bg-3: #eaecf0;
  --bg-4: #dde1e8;
  --border: rgba(0,0,0,0.08);
  --border-bright: rgba(0,0,0,0.14);
  --green: #16a34a;
  --green-dim: #15803d;
  --green-glow: rgba(22, 163, 74, 0.12);
  --accent: #2563eb;
  --accent-dim: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.12);
  --orange: #ea580c;
  --red: #dc2626;
  --yellow: #d97706;
  --text-1: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* Console output stays dark always */
body.light .console-container { background: #1a1d23; }
body.light .console-output { color: #7dc97d; }
body.light .console-header { background: #252830; border-bottom-color: rgba(255,255,255,0.08); }
body.light .console-input-area { background: #252830; border-top-color: rgba(255,255,255,0.08); }
body.light .console-input { background: #1a1d23; border-color: rgba(255,255,255,0.1); color: #f0f4f8; }
body.light .console-placeholder { color: #4a5568; }

/* Auth background in light mode */
body.light .auth-bg {
  background: radial-gradient(ellipse at 20% 20%, rgba(22,163,74,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(37,99,235,0.08) 0%, transparent 60%),
              #f0f2f5;
}

/* Smooth theme transition on key elements */
body, .sidebar, .auth-card, .card, .stat-card, .server-card,
.active-server-card, .modal-box, .table-wrapper, .console-container,
.nav-item, .btn, input, select, textarea, .badge, .toast {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

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

html { font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--text-1);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- UTILS ---- */
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ======================================
   AUTH SCREEN
   ====================================== */
#auth-screen { position: fixed; inset: 0; z-index: 100; }

.auth-bg {
  min-height: 100vh;
  background: radial-gradient(ellipse at 20% 20%, rgba(74,222,128,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(96,165,250,0.06) 0%, transparent 60%),
              var(--bg-0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 2px;
  opacity: 0.3;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  from { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  to { transform: translateY(-10vh) rotate(180deg); opacity: 0; }
}

.auth-card {
  background: var(--bg-1);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 0 80px rgba(74,222,128,0.05), var(--shadow);
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.5px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  margin-bottom: -1px;
}
.tab-btn.active { color: var(--green); border-bottom-color: var(--green); }
.tab-btn:hover:not(.active) { color: var(--text-1); }

.auth-form { display: none; flex-direction: column; gap: 20px; }
.auth-form.active { display: flex; }

/* ======================================
   FORM ELEMENTS
   ====================================== */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 11px 14px;
  transition: var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.form-group select { cursor: pointer; }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; gap: 16px; }
.form-row.col-2 { grid-template-columns: 1fr 1fr; }

.form-error { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); border-radius: var(--radius); color: var(--red); font-size: 13px; padding: 10px 14px; }
.form-success { background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3); border-radius: var(--radius); color: var(--green); font-size: 13px; padding: 10px 14px; }

/* ======================================
   BUTTONS
   ====================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  transition: var(--transition);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.btn-primary { background: var(--green); color: #0a0c0f; }
.btn-primary:hover { background: #6ee7a0; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(74,222,128,0.3); }

.btn-secondary { background: var(--bg-3); color: var(--text-1); border: 1px solid var(--border-bright); }
.btn-secondary:hover { background: var(--bg-4); border-color: var(--border-bright); }

.btn-danger { background: rgba(248,113,113,0.15); color: var(--red); border: 1px solid rgba(248,113,113,0.3); }
.btn-danger:hover { background: rgba(248,113,113,0.25); }

.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text-1); background: var(--bg-3); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #7db8ff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(96,165,250,0.3); }

.btn-full { width: 100%; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-xs { padding: 5px 10px; font-size: 12px; }

.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

.btn-icon {
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-icon:hover { color: var(--text-1); background: var(--bg-3); }

/* ======================================
   APP LAYOUT
   ====================================== */
#app-screen { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
  transition: transform 0.25s ease;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.5px;
  margin-bottom: 32px;
  padding: 0 6px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 8px;
  transition: var(--transition);
  text-align: left;
  width: 100%;
}
.nav-item svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.nav-item:hover { background: var(--bg-3); color: var(--text-1); }
.nav-item.active { background: var(--green-glow); color: var(--green); border: 1px solid rgba(74,222,128,0.2); }

.sidebar-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dim), var(--accent-dim));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: var(--bg-0);
  flex-shrink: 0;
}

.user-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.user-details span:first-child { font-size: 13px; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }

/* ======================================
   MAIN CONTENT
   ====================================== */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mobile-topbar { display: none; }

.page { flex: 1; padding: 32px; max-width: 1200px; }
.page.active { display: block; animation: fadeIn 0.2s ease; }

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

/* ======================================
   PAGE HEADER
   ====================================== */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.page-header-left h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-1);
  line-height: 1.1;
}
.page-header-left p { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.page-header-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ======================================
   CARDS & SECTIONS
   ====================================== */
.card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title svg { width: 16px; height: 16px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ======================================
   STATUS BADGE / PILL
   ====================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 9px;
  border-radius: 20px;
}
.badge-green { background: rgba(74,222,128,0.12); color: var(--green); border: 1px solid rgba(74,222,128,0.25); }
.badge-blue { background: rgba(96,165,250,0.12); color: var(--accent); border: 1px solid rgba(96,165,250,0.25); }
.badge-orange { background: rgba(251,146,60,0.12); color: var(--orange); border: 1px solid rgba(251,146,60,0.25); }
.badge-red { background: rgba(248,113,113,0.12); color: var(--red); border: 1px solid rgba(248,113,113,0.25); }
.badge-gray { background: rgba(255,255,255,0.06); color: var(--text-2); border: 1px solid var(--border); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge .dot.pulse { animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ======================================
   DASHBOARD
   ====================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.stat-label { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--text-1); line-height: 1; font-family: var(--font-mono); }
.stat-value.green { color: var(--green); }
.stat-sub { font-size: 12px; color: var(--text-3); }

/* Active server hero */
.active-server-card {
  background: linear-gradient(135deg, rgba(74,222,128,0.06) 0%, rgba(96,165,250,0.04) 100%);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.active-server-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(74,222,128,0.12), transparent 70%);
  border-radius: 50%;
}
.active-server-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.active-server-title { display: flex; align-items: center; gap: 14px; }
.active-server-img {
  width: 60px; height: 60px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.active-server-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.active-server-name { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.active-server-meta { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.active-server-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.active-server-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.active-stat { background: rgba(0,0,0,0.25); border-radius: 10px; padding: 16px; }
.active-stat-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 6px; }
.active-stat-value { font-size: 22px; font-weight: 800; font-family: var(--font-mono); color: var(--text-1); }
.active-stat-value.green { color: var(--green); }

.players-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.player-chip {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 6px;
}
.player-chip::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.no-active-server {
  background: var(--bg-1);
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin-bottom: 24px;
}
.no-active-server p { color: var(--text-2); font-size: 15px; }
.no-active-server h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-1); }

/* ======================================
   SERVER LIST (grid cards)
   ====================================== */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.server-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}
.server-card:hover { border-color: var(--border-bright); transform: translateY(-2px); box-shadow: var(--shadow); }
.server-card.active-highlight { border-color: rgba(74,222,128,0.35); box-shadow: 0 0 24px rgba(74,222,128,0.08); }

.server-card-img {
  height: 120px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-4));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  position: relative;
  overflow: hidden;
}
.server-card-img img { width: 100%; height: 100%; object-fit: cover; }
.server-card-img .active-overlay {
  position: absolute;
  top: 8px; right: 8px;
}

.server-card-body { padding: 16px; }
.server-card-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.server-card-type { font-size: 12px; color: var(--text-2); margin-bottom: 12px; }
.server-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ======================================
   CONSOLE
   ====================================== */
.console-container {
  background: #0a0c0f;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 400px;
}
.console-header {
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.console-dot { width: 10px; height: 10px; border-radius: 50%; }
.console-output {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: #7dc97d;
}
.console-line { margin-bottom: 2px; }
.console-line.error { color: var(--red); }
.console-line.warn { color: var(--yellow); }
.console-line.info { color: var(--accent); }

.console-input-area {
  padding: 12px 16px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}
.console-input {
  flex: 1;
  background: var(--bg-0);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 12px;
}
.console-input:focus { outline: none; border-color: var(--green); }
.console-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex-direction: column;
  gap: 10px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ======================================
   USERS TABLE
   ====================================== */
.table-wrapper {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--bg-2);
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
tbody tr { border-bottom: 1px solid var(--border); transition: var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-2); }
tbody td { padding: 13px 16px; font-size: 13px; color: var(--text-1); vertical-align: middle; }
.table-actions { display: flex; gap: 6px; }

/* ======================================
   MODAL
   ====================================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.15s ease;
}

.modal-box {
  background: var(--bg-1);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--bg-3);
  border: none;
  color: var(--text-2);
  cursor: pointer;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  transition: var(--transition);
}
.modal-close:hover { background: var(--bg-4); color: var(--text-1); }
.modal-title { font-size: 20px; font-weight: 800; margin-bottom: 24px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 28px; flex-wrap: wrap; }

/* ======================================
   TOAST
   ====================================== */
#toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg-2);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--text-1);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp 0.3s ease;
  pointer-events: all;
  max-width: 320px;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--accent); }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ======================================
   PROPERTIES EDITOR
   ====================================== */
.props-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.prop-item { display: flex; flex-direction: column; gap: 5px; }
.prop-key { font-size: 12px; color: var(--text-3); font-family: var(--font-mono); }

/* ======================================
   CONFIRM MODAL
   ====================================== */
.confirm-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.confirm-icon.warning { background: rgba(251,146,60,0.15); color: var(--orange); }
.confirm-icon.danger { background: rgba(248,113,113,0.15); color: var(--red); }
.confirm-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.confirm-text { text-align: center; }
.confirm-text h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.confirm-text p { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.confirm-players { background: rgba(251,146,60,0.08); border: 1px solid rgba(251,146,60,0.25); border-radius: 8px; padding: 12px; margin-top: 14px; font-size: 13px; color: var(--orange); }

/* ======================================
   UPTIME COUNTER
   ====================================== */
.uptime-value { font-family: var(--font-mono); letter-spacing: 0.05em; }

/* ======================================
   IP DISPLAY
   ====================================== */
.ip-display {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--green);
}
.ip-display button { background: none; border: none; cursor: pointer; color: var(--text-3); font-size: 11px; transition: var(--transition); padding: 0; }
.ip-display button:hover { color: var(--green); }

/* ======================================
   SECTION DIVIDER
   ====================================== */
.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  margin-top: 28px;
}
.section-title:first-child { margin-top: 0; }

/* ======================================
   EMPTY STATE
   ====================================== */
.empty-state {
  text-align: center;
  padding: 64px 32px;
  color: var(--text-2);
}
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 20px; }
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }

/* ======================================
   LOADING SPINNER
   ====================================== */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border-bright);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ======================================
   RAM SLIDER
   ====================================== */
input[type="range"] {
  width: 100%;
  height: 6px;
  background: var(--bg-4);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  accent-color: var(--green);
}

/* ======================================
   SECTION: Pending badge on nav
   ====================================== */
.nav-badge {
  margin-left: auto;
  background: var(--orange);
  color: var(--bg-0);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 20px;
}

/* ======================================
   RESPONSIVE
   ====================================== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
  }
  .main-content { margin-left: 0; }
  .mobile-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .mobile-logo { font-family: var(--font-mono); font-weight: 700; font-size: 16px; }
  .page { padding: 20px 16px; }
  .props-grid { grid-template-columns: 1fr; }
  .form-row.col-2 { grid-template-columns: 1fr; }
  .servers-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .active-server-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ======================================
   REMEMBER CHECKBOX
   ====================================== */
.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  margin-top: -6px;
}
.remember-label input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--green);
  cursor: pointer;
}

/* ======================================
   IP DISPLAY — overflow fix
   ====================================== */
.ip-display {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  min-width: 0;
}
.ip-display .ip-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.ip-copy-btn {
  background: var(--bg-3);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  color: var(--text-2);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}
.ip-copy-btn:hover { color: var(--green); border-color: rgba(74,222,128,0.3); }

/* ======================================
   STOP BUTTON — full clickable area fix
   ====================================== */
.btn svg {
  pointer-events: none;
}

/* ======================================
   MODAL FORM — more spacing
   ====================================== */
.modal-form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.modal-section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0 4px;
}

/* ======================================
   LOGS TABLE
   ====================================== */
.log-event-start { color: var(--green); font-weight: 700; }
.log-event-stop  { color: var(--orange); font-weight: 700; }

/* ======================================
   ACCOUNT MODAL
   ====================================== */
.account-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-2);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.account-avatar-lg {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dim), var(--accent-dim));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: var(--bg-0);
  flex-shrink: 0;
}