/* ── Reset & base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #070711;
  --purple:   #8b2fc9;
  --cyan:     #00c8ff;
  --text:     #dde0f0;
  --muted:    #7a7d96;
  --card:     rgba(255,255,255,0.04);
  --border:   rgba(139,47,201,0.25);
  --radius:   10px;
}

html, body {
  height: 100%;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── Background glow ─────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 45%,
    rgba(139,47,201,0.10) 0%,
    rgba(0,200,255,0.04) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(7,7,17,0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: 'Orbitron', 'Rajdhani', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

/* ── Splash ──────────────────────────────────────────────────────────────── */
.splash {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  gap: 36px;
}

.splash-logo {
  width: min(1139px, 92vw);
  height: auto;
  animation: logo-glow 5s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(139,47,201,0.45));
}

@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 22px rgba(139,47,201,0.45)); }
  50%       { filter: drop-shadow(0 0 42px rgba(0,200,255,0.55)); }
}

.splash-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-discord {
  background: linear-gradient(135deg, #5865f2 0%, var(--purple) 100%);
  color: #fff;
  box-shadow: 0 0 22px rgba(88,101,242,0.4);
}
.btn-discord:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 38px rgba(88,101,242,0.65);
}

.btn-outline {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  padding: 10px 24px;
}
.btn-outline:hover { color: var(--text); border-color: rgba(139,47,201,0.5); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, #5865f2 100%);
  color: #fff;
  box-shadow: 0 0 20px rgba(139,47,201,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(139,47,201,0.55);
}

/* Discord icon */
.discord-icon {
  width: 22px; height: 22px;
  fill: currentColor;
}

/* ── Page wrapper (contact, admin) ───────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 110px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
  width: 100%;
  max-width: 520px;
  backdrop-filter: blur(8px);
}

/* ── Contact form ────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 22px; }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(139,47,201,0.3);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139,47,201,0.15);
}

textarea { min-height: 130px; }

.form-error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius);
  color: #f87171;
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* ── Success ─────────────────────────────────────────────────────────────── */
.success-box {
  text-align: center;
  padding: 50px 40px;
}
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.success-box h2 { font-size: 1.4rem; margin-bottom: 10px; }
.success-box p { color: var(--muted); margin-bottom: 28px; }

/* ── Admin login ─────────────────────────────────────────────────────────── */
.admin-login { max-width: 380px; }
.admin-login .card { padding: 36px; }

/* ── Admin dashboard ─────────────────────────────────────────────────────── */
.admin-page {
  z-index: 1;
  position: relative;
  min-height: 100vh;
  padding: 90px 20px 60px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.admin-meta { color: var(--muted); font-size: 0.85rem; }

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  white-space: nowrap;
}

thead th {
  background: rgba(139,47,201,0.12);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
tbody tr:hover { background: rgba(139,47,201,0.06); }
tbody tr:last-child { border-bottom: none; }

td { padding: 11px 14px; color: var(--text); vertical-align: middle; }

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-vpn   { background: rgba(239,68,68,0.18); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.badge-clean { background: rgba(57,211,83,0.12); color: #4ade80; border: 1px solid rgba(57,211,83,0.25); }
.badge-host  { background: rgba(251,191,36,0.12); color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }

.page-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(139,47,201,0.15);
  color: var(--purple);
  font-family: monospace;
  font-size: 0.78rem;
}

.ip-cell { font-family: monospace; font-size: 0.82rem; color: var(--cyan); }
.ua-cell { color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }

.stats-bar {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 24px;
  min-width: 140px;
}
.stat-card .stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card .stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .navbar { padding: 14px 20px; }
  .card   { padding: 28px 20px; }
  .admin-page { padding: 80px 12px 40px; }
}
