/* ========================================
   X HUB SECURITY - ULTRA PREMIUM DASHBOARD
   ======================================== */

:root {
  --bg: #060609;
  --panel: rgba(255,255,255,0.04);
  --panel2: rgba(255,255,255,0.07);
  --panel3: rgba(255,255,255,0.10);
  --line: rgba(255,255,255,0.08);
  --line2: rgba(255,255,255,0.12);
  --txt: #ffffff;
  --muted: #8b8fa3;
  --cyan: #00f0ff;
  --purple: #a855f7;
  --blue: #3b82f6;
  --green: #22c55e;
  --red: #ef4444;
  --orange: #f59e0b;
  --pink: #ec4899;
  --gold: #fbbf24;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow-glow: 0 0 60px rgba(0,240,255,0.08);
  --shadow-glow-purple: 0 0 60px rgba(168,85,247,0.08);
  --shadow-card: 0 8px 40px rgba(0,0,0,0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Background Mesh */
.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(168,85,247,0.12), transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(0,240,255,0.08), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(59,130,246,0.05), transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,255,255,0.015) 59px, rgba(255,255,255,0.015) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,255,255,0.015) 59px, rgba(255,255,255,0.015) 60px);
  pointer-events: none;
  z-index: 0;
}

/* ===== TOPBAR / NAVIGATION ===== */
.topbar {
  position: sticky;
  top: 16px;
  z-index: 100;
  width: min(1240px, calc(100% - 40px));
  margin: 16px auto 0;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: rgba(12,12,18,0.75);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
  animation: slide-up 0.5s ease-out;
}

.brand, .mini {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--txt);
}

.brand img, .mini img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.brand b {
  font-size: 15px;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #fff 30%, var(--cyan));
  -webkit-background-clip: text;
  color: transparent;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.2em;
  font-weight: 700;
}

nav {
  display: flex;
  gap: 4px;
}

nav a {
  padding: 9px 16px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: var(--transition);
  position: relative;
}

nav a:hover {
  background: var(--panel2);
  color: #fff;
}

nav a.active {
  background: linear-gradient(135deg, rgba(0,240,255,0.15), rgba(168,85,247,0.15));
  color: var(--cyan);
  border: 1px solid rgba(0,240,255,0.2);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line2);
  padding: 12px 24px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::before { opacity: 1; }

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.light {
  background: linear-gradient(135deg, #fff, #e8e8e8);
  color: #0a0a0a;
  border: none;
}

.light:hover {
  box-shadow: 0 12px 40px rgba(0,240,255,0.25), 0 0 0 1px rgba(0,240,255,0.3);
}

.dark {
  background: var(--panel2);
  color: #fff;
}

.dark:hover {
  background: var(--panel3);
  box-shadow: var(--shadow-glow-purple);
}

.cyan-btn {
  background: linear-gradient(135deg, rgba(0,240,255,0.15), rgba(0,240,255,0.05));
  color: var(--cyan);
  border: 1px solid rgba(0,240,255,0.25);
}

.cyan-btn:hover {
  background: linear-gradient(135deg, rgba(0,240,255,0.25), rgba(0,240,255,0.1));
  box-shadow: 0 0 30px rgba(0,240,255,0.15);
}

.wide { width: 100%; }

.round {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--panel2);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--muted);
  font-size: 16px;
  transition: var(--transition);
}

.round:hover {
  background: var(--panel3);
  color: #fff;
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ===== HERO / HOME PAGE ===== */
.hero, .page {
  width: min(1240px, calc(100% - 40px));
  margin: 70px auto 0;
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  min-height: 70vh;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--panel);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  animation: pulse-glow 3s ease-in-out infinite;
}

.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero h1, .page h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 900;
  margin-bottom: 20px;
}

.hero h1 span, .page h1 span {
  background: linear-gradient(135deg, #fff, var(--cyan), var(--purple));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  color: transparent;
  animation: gradient-shift 4s ease infinite;
}

.hero p, .page p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 520px;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Stats */
.stats {
  display: flex;
  gap: 16px;
  margin-top: 36px;
}

.stat-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 28px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: rgba(0,240,255,0.2);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.stat-card b {
  display: block;
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  color: transparent;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* Visual / Mascot Area */
.visual {
  position: relative;
  min-height: 450px;
  display: grid;
  place-items: center;
}

.visual > img {
  width: min(340px, 90%);
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 0 80px rgba(0,240,255,0.12), 0 0 140px rgba(168,85,247,0.1);
  animation: float 6s ease-in-out infinite;
}

.float-card {
  position: absolute;
  background: rgba(16,16,24,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 20px;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 5s ease-in-out infinite;
}

.float-card .icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.float-card.a { left: 0; top: 35%; animation-delay: 0s; }
.float-card.a .icon { background: rgba(239,68,68,0.15); }
.float-card.b { right: 0; top: 10%; animation-delay: 1s; }
.float-card.b .icon { background: rgba(0,240,255,0.15); }
.float-card.c { left: 10%; bottom: 10%; animation-delay: 2s; }
.float-card.c .icon { background: rgba(168,85,247,0.15); }

/* ===== PAGE LAYOUT ===== */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.page-head > div > small {
  display: block;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.page-head > img {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  object-fit: cover;
  border: 2px solid var(--line);
  box-shadow: var(--shadow-glow);
}

/* Search */
.search {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.search input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.search input:focus {
  border-color: rgba(0,240,255,0.4);
  box-shadow: 0 0 20px rgba(0,240,255,0.1);
}

.search input::placeholder { color: rgba(255,255,255,0.25); }

/* ===== CARDS GRID ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.server-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: #fff;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  cursor: pointer;
}

.server-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,240,255,0.05), rgba(168,85,247,0.05));
  opacity: 0;
  transition: var(--transition);
}

.server-card:hover::before { opacity: 1; }

.server-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,240,255,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), var(--shadow-glow);
}

.server-card .server-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid var(--line);
  transition: var(--transition);
}

.server-card:hover .server-icon {
  border-color: rgba(0,240,255,0.3);
}

.server-card .server-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.server-card .server-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.server-card .server-members {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-owner {
  background: linear-gradient(135deg, rgba(251,191,36,0.2), rgba(245,158,11,0.15));
  color: var(--gold);
  border: 1px solid rgba(251,191,36,0.3);
}

.badge-admin {
  background: linear-gradient(135deg, rgba(0,240,255,0.15), rgba(59,130,246,0.15));
  color: var(--cyan);
  border: 1px solid rgba(0,240,255,0.25);
}

.badge-extra {
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(236,72,153,0.15));
  color: var(--purple);
  border: 1px solid rgba(168,85,247,0.25);
}

.server-card .manage-link {
  color: var(--cyan);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== PANELS ===== */
.panel {
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.panel:hover {
  border-color: var(--line2);
}

.panel h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel h3 .icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0,240,255,0.15), rgba(168,85,247,0.15));
  font-size: 16px;
}

/* ===== LOGIN ===== */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-card {
  width: min(460px, calc(100% - 32px));
  text-align: center;
  background: rgba(16,16,24,0.85);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 48px 40px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), var(--shadow-glow);
  animation: slide-up 0.6s ease-out;
}

.login-card > img {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  border: 2px solid var(--line);
  margin-bottom: 24px;
}

.login-card h1 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.login-card > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.hint {
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.hint code {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px 8px;
  color: var(--cyan);
  font-size: 11px;
}

/* ===== TAB NAVIGATION ===== */
.tab-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 6px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.tab-nav a {
  padding: 10px 18px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-nav a:hover {
  background: var(--panel2);
  color: #fff;
}

.tab-nav a.active {
  background: linear-gradient(135deg, rgba(0,240,255,0.12), rgba(168,85,247,0.12));
  color: var(--cyan);
  border-color: rgba(0,240,255,0.2);
}

/* ===== SECTIONS / TABS ===== */
.section { display: none; animation: slide-up 0.3s ease-out; }
.section.active { display: block; }

/* ===== FORM ELEMENTS ===== */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: var(--transition);
}

.toggle-row:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--line2);
}

.toggle-row b {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.toggle-row span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  display: block;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--line);
  border-radius: 99px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  bottom: 2px;
  background: var(--muted);
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, rgba(0,240,255,0.3), rgba(168,85,247,0.3));
  border-color: rgba(0,240,255,0.4);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0,240,255,0.5);
}

/* Row Form */
.row-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.row-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.row-form label b {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.row-form input, .row-form select, .row-form textarea {
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.row-form input:focus, .row-form select:focus, .row-form textarea:focus {
  border-color: rgba(0,240,255,0.4);
  box-shadow: 0 0 16px rgba(0,240,255,0.08);
}

.row-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.row-form select option {
  background: #1a1a2e;
  color: #fff;
}

.row-form textarea {
  min-height: 70px;
  resize: vertical;
}

/* ===== TAGS ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  margin: 3px;
}

.tag-on {
  background: rgba(34,197,94,0.12);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.2);
}

.tag-off {
  background: rgba(239,68,68,0.1);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.2);
}

.tag-cyan {
  background: rgba(0,240,255,0.1);
  color: var(--cyan);
  border: 1px solid rgba(0,240,255,0.2);
}

/* Role Grid */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.role-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  font-size: 13px;
  transition: var(--transition);
}

.role-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--line2);
}

.role-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  grid-column: span 3;
  text-align: center;
  padding: 60px 40px;
}

.empty-state p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 20px;
}

/* ===== STATUS BAR ===== */
.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 16px 22px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-top: 20px;
}

.status-bar b {
  font-size: 13px;
  font-weight: 700;
  margin-right: 4px;
}

/* ===== DANGER ZONE ===== */
.danger-zone {
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: var(--radius);
  background: rgba(239,68,68,0.03);
}

.danger-zone h4 {
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.danger-zone p {
  color: var(--muted);
  font-size: 13px;
}

/* ===== GRID UTILITY ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ===== SAVE BUTTON ===== */
.save-btn {
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #000;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  grid-column: span 3;
  margin-top: 20px;
}

.save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,240,255,0.25);
}

.save-btn:active {
  transform: translateY(0);
}

/* ===== SUB HEADERS ===== */
.sub h3 {
  color: var(--cyan);
  font-size: 14px;
  margin: 0 0 12px 0;
  font-weight: 800;
}

.sub h4 {
  color: var(--muted);
  font-size: 13px;
  margin: 16px 0 8px 0;
}

/* ===== FOOTER ===== */
footer {
  width: min(1240px, calc(100% - 40px));
  margin: 50px auto 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  position: relative;
  z-index: 1;
}

footer img {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 950px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .cards, .grid { grid-template-columns: repeat(2, 1fr); }
  .stats { flex-wrap: wrap; }
  .visual { display: none; }
  .row-form { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; text-align: center; gap: 16px; }
}

@media (max-width: 600px) {
  .cards, .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .topbar { padding: 8px 12px; }
  .brand b { font-size: 13px; }
  .brand small { display: none; }
}

/* ===== ANIMATIONS ON LOAD ===== */
.server-card, .stat-card, .panel, .float-card {
  animation: slide-up 0.5s ease-out both;
}

.server-card:nth-child(1), .stat-card:nth-child(1) { animation-delay: 0.1s; }
.server-card:nth-child(2), .stat-card:nth-child(2) { animation-delay: 0.15s; }
.server-card:nth-child(3), .stat-card:nth-child(3) { animation-delay: 0.2s; }
.server-card:nth-child(4) { animation-delay: 0.25s; }
.server-card:nth-child(5) { animation-delay: 0.3s; }
.server-card:nth-child(6) { animation-delay: 0.35s; }

/* ===== MORE MENU + PREMIUM INFO PAGES ===== */
.nav-more { position: relative; display: flex; align-items: center; }
.nav-more > button {
  padding: 9px 16px; border-radius: 12px; color: var(--muted); background: transparent;
  border: 0; font-weight: 800; font-size: 13px; cursor: pointer; font-family: inherit;
}
.nav-more:hover > button { background: var(--panel2); color: #fff; }
.more-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 220px; padding: 10px;
  background: rgba(12,12,18,0.94); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45), var(--shadow-glow); backdrop-filter: blur(20px);
  opacity: 0; pointer-events: none; transform: translateY(8px); transition: var(--transition);
}
.nav-more:hover .more-menu, .nav-more.open .more-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.more-menu a { display: block; padding: 12px 14px; border-radius: 12px; }
.more-menu a:hover { background: linear-gradient(135deg, rgba(0,240,255,0.12), rgba(168,85,247,0.12)); color: var(--cyan); }
.premium-page { padding-bottom: 70px; }
.guide-grid, .support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.guide-card ol { color: var(--muted); padding-left: 22px; line-height: 1.9; }
.codebox {
  margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(0,0,0,0.35);
  border: 1px solid var(--line); color: var(--cyan); font-weight: 800; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.cmds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cmds span {
  padding: 8px 12px; border-radius: 999px; background: rgba(0,240,255,0.09);
  border: 1px solid rgba(0,240,255,0.18); color: var(--cyan); font-weight: 800; font-size: 12px;
}
.team-stack { display: grid; gap: 22px; max-width: 860px; }
.team-card {
  position: relative; display: flex; align-items: center; gap: 26px; padding: 28px;
  border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  overflow: hidden; box-shadow: var(--shadow-card);
}
.team-card::before { content: ''; position: absolute; inset: -2px; background: radial-gradient(circle at 20% 0%, rgba(0,240,255,0.16), transparent 35%), radial-gradient(circle at 90% 80%, rgba(168,85,247,0.14), transparent 40%); pointer-events: none; }
.team-card > * { position: relative; z-index: 1; }
.avatar-ring {
  width: 118px; height: 118px; min-width: 118px; border-radius: 50%; padding: 4px;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--gold));
  box-shadow: 0 0 40px rgba(0,240,255,0.16);
}
.avatar-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid #0b0b12; }
.avatar-ring.animated { animation: float 4s ease-in-out infinite, pulse-glow 3s ease-in-out infinite; }
.team-badge {
  display: inline-flex; padding: 6px 12px; border-radius: 999px; background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.25); color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .12em;
}
.team-badge.cyan { background: rgba(0,240,255,0.1); border-color: rgba(0,240,255,0.25); color: var(--cyan); }
.team-card h2 { font-size: 34px; margin: 10px 0 4px; letter-spacing: -0.03em; }
.team-card p { color: #fff; font-weight: 900; font-size: 16px; }
.team-card small { color: var(--muted); display: block; margin-top: 8px; }
.support-card { min-height: 260px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.privacy-list { display: grid; gap: 16px; max-width: 900px; }
@media (max-width: 900px) {
  nav { gap: 2px; flex-wrap: wrap; justify-content: center; }
  .guide-grid, .support-grid { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; text-align: center; }
  .topbar { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
}
