/* =============================================
   LSboT — CLEAN MAIN STYLESHEET v2
   All pages use this one file
   ============================================= */

:root {
  --bg0: #0a0b0d;
  --bg1: #0f1115;
  --bg2: #141820;
  --bg3: #1b2030;
  --cyan: #2466D9;
  --cyan-dim: rgba(36, 102, 217, 0.10);
  --cyan-glow: 0 0 20px rgba(36, 102, 217, 0.25);
  --purple: #a78bfa;
  --purple-dim: rgba(167, 139, 250, 0.10);
  --text: #e2e8f0;
  --muted: #6476a3;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.15);
  --green: #22c55e;
  --red: #ef4444;
}

/* GLOBAL */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg0);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.015) 3px, rgba(0,0,0,0.015) 4px);
  pointer-events: none;
  z-index: 9999;
}

/* ===== PANEL LAYOUT ===== */
body.panel {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  background: var(--bg1);
  border-right: none;
  display: flex;
  flex-direction: column;
  z-index: 250;
  flex-shrink: 0;
}

.sidebar-logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 1.5rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  position: relative;
}
.sidebar-logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #2466D9, #a78bfa, transparent);
  opacity: 0.5;
}

.sidebar-logo svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.sidebar-logo svg rect {
  stroke: #00c8d8 !important;
}

.nav-logo-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
}

.nav-logo-text span { color: var(--cyan); }

.sidebar-nav {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 13px 24px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.nav-item:hover {
  background: var(--bg2);
  color: var(--text);
  border-left-color: rgba(36,102,217,0.3);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(36,102,217,0.12), transparent);
  color: var(--cyan);
  border-left-color: var(--cyan);
  font-weight: 600;
}

.nav-icon {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  fill: currentColor;
}

/* MAIN WRAPPER */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
}

/* TOPBAR */
.topbar {
  height: 60px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: rgba(10, 11, 13, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 300;
}

.user-menu { position: relative; }
.user-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  padding: 6px 14px;
  border-radius: 10px;
  transition: all 0.2s ease;
  position: relative;
}
.user-trigger::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 11px;
  padding: 1px;
  background: linear-gradient(90deg, #2466D9, #a78bfa);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.user-trigger:hover::before {
  opacity: 1;
}
.user-trigger:hover {
  background: rgba(255,255,255,0.05);
}
.user-name { color: var(--text); font-size: 13px; font-weight: 600; }
.user-avatar { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--border); }

.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 150px;
  margin-top: 10px;
  background: #0a0b0d;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  display: none;
  z-index: 1000;
  position: relative;
}
.dropdown::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 11px;
  padding: 1px;
  background: linear-gradient(90deg, #2466D9, #a78bfa);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
}
.dropdown.show { display: block; }
.dropdown-item {
  display: block;
  padding: 10px 14px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 12px;
  border-radius: 6px;
  transition: all 0.2s;
  text-align: center;
  font-weight: 500;
  background: transparent;
}
.dropdown-item:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ff6b6b;
  border: 1px solid #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
  cursor: pointer;
}

/* CONTENT */
.content-container {
  padding: 40px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* CARDS */
.card {
  background: var(--bg1);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Top gradient border like on index.html */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
}

.card-full { grid-column: 1 / -1; }

/* PROFILE PAGE */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px; /* bigger spacing from top card */
}
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  background: var(--bg0);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.2s;
}
.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(36,102,217,0.1);
}
.form-input[readonly] {
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  cursor: default;
}
.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--cyan);
  border: none;
  border-radius: 8px;
  color: #0a0b0d;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: auto;
  box-shadow: 0 4px 15px rgba(36,102,217,0.2);
}
.btn-primary:hover {
  background: #3a7be6;
  box-shadow: 0 0 24px rgba(36,102,217,0.4);
  transform: translateY(-1px);
}

/* hCaptcha */
.hcaptcha-mock {
  background: #1a1a1f;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 20px auto;
}
.hc-checkbox { width: 26px; height: 26px; background: #fff; border: 1px solid #888; border-radius: 4px; cursor: pointer; }
.hc-text { color: #ddd; font-size: 13px; font-weight: 500; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
}
.btn-cyan { background: var(--cyan); color: #0a0b0d; }
.btn-cyan:hover { background: #3a7be6; box-shadow: var(--cyan-glow); }

/* SERVER LIST */
.srv-window {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg0);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.srv-titlebar {
  background: #0d0f13; padding: 12px 24px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.srv-search {
  background: var(--bg1); border: 1px solid var(--border); border-radius: 16px;
  padding: 8px 16px; font-size: 13px; color: var(--text); width: 220px; outline: none;
}
.srv-list { padding: 10px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.srv-row {
  display: flex; align-items: center; padding: 14px 18px; background: var(--bg1);
  border: 1px solid var(--border); border-radius: 10px;
}
.srv-row.active { background: #08282c; border-color: rgba(36,102,217,0.4); border-left: 4px solid var(--cyan); }
.srv-icon-box {
  width: 36px; height: 36px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--muted); margin-right: 16px;
  font-family: 'JetBrains Mono', monospace;
}
.srv-badge.online { background: rgba(0,60,30,0.6); border: 1px solid rgba(34,197,94,0.25); color: var(--green); }
.srv-badge.offline { background: rgba(30,33,45,0.6); border: 1px solid rgba(80,90,110,0.25); color: var(--muted); }

/* RESPONSIVE */
@media (max-width: 768px) {
  body.panel { flex-direction: column; }
  .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .sidebar-nav { flex-direction: row; overflow-x: auto; padding: 10px; }
  .content-container { padding: 20px; }
}
