﻿@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@400;500;700&family=JetBrains+Mono:wght@400;600&display=swap");

:root {
  --bg: #06090f;
  --panel: #0f1522;
  --panel-soft: rgba(15, 21, 34, 0.82);
  --panel-strong: rgba(7, 11, 19, 0.92);
  --line: rgba(121, 146, 191, 0.2);
  --line-strong: rgba(121, 146, 191, 0.36);
  --text: #edf3ff;
  --muted: #9fb0cf;
  --accent: #2dd4bf;
  --accent-2: #fb923c;
  --accent-3: #3b82f6;
  --danger: #ef4444;
  --ok: #22c55e;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
  --font-title: "Bebas Neue", "Trebuchet MS", sans-serif;
  --font-body: "Space Grotesk", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 8% 12%, rgba(59, 130, 246, 0.2), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(45, 212, 191, 0.18), transparent 34%),
    radial-gradient(circle at 84% 86%, rgba(251, 146, 60, 0.18), transparent 36%),
    linear-gradient(148deg, #06090f 0%, #0b1120 42%, #0e1527 100%);
}

.bg-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px,
      transparent 12px
    );
  z-index: 0;
}

.hero,
.layout,
.page-footer,
.toast {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 20px clamp(16px, 4vw, 44px) 10px;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: clamp(220px, 38vw, 420px);
  box-shadow: var(--shadow);
}

.hero-banner {
  width: 100%;
  height: 100%;
  min-height: clamp(220px, 38vw, 420px);
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.65)),
    linear-gradient(130deg, rgba(6, 9, 15, 0.45), rgba(6, 9, 15, 0));
}

.hero-content {
  margin-top: 18px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 30px);
  backdrop-filter: blur(6px);
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  letter-spacing: 0.03em;
}

h1 {
  margin-top: 8px;
  font-size: clamp(54px, 10vw, 120px);
  line-height: 0.88;
}

h2 {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 0.9;
}

h3 {
  font-size: clamp(26px, 3.4vw, 42px);
}

.lead {
  margin: 10px 0 0;
  max-width: 82ch;
  color: #deebff;
  line-height: 1.56;
}

.lead.secondary {
  color: var(--muted);
}

.hero-kpi-row {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 9px 11px;
  display: grid;
  gap: 5px;
}

.hero-kpi span {
  font-size: 12px;
  color: var(--muted);
}

.hero-kpi strong {
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1;
  color: #ffffff;
}

.layout {
  display: grid;
  gap: 16px;
  padding: 8px clamp(16px, 4vw, 44px) 26px;
}

.info-panel,
.admin-section,
.admin-card,
.category-card,
.live-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 35%),
    linear-gradient(165deg, rgba(15, 21, 34, 0.95), rgba(12, 18, 31, 0.95));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.info-panel,
.admin-section {
  padding: clamp(16px, 2.4vw, 26px);
}

.info-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 78ch;
  line-height: 1.6;
}

.pill-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.04);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stat-chip {
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid rgba(45, 212, 191, 0.32);
  background: rgba(45, 212, 191, 0.12);
  font-size: 13px;
}

.stat-chip strong {
  color: #ffffff;
}

.refresh-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.refresh-meta strong {
  color: #eef6ff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.category-card {
  padding: 0;
  overflow: hidden;
}

.category-cover {
  position: relative;
  min-height: 128px;
  padding: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background-color: #0d1629;
  background-image: linear-gradient(130deg, rgba(8, 12, 21, 0.2), rgba(8, 12, 21, 0.88));
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 12, 21, 0), rgba(7, 12, 21, 0.74));
}

.category-cover > * {
  position: relative;
  z-index: 1;
}

.category-cover h3 {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 0.9;
}

.category-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  background: rgba(6, 10, 18, 0.7);
}

.category-body {
  padding: 14px;
}

.category-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.category-card-head h3 {
  font-size: clamp(24px, 3vw, 34px);
}

.category-meta {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.server-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.server-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 12, 21, 0.8);
  padding: 10px;
}

.server-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.server-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.server-state {
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.server-state.online {
  border-color: rgba(34, 197, 94, 0.44);
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
}

.server-state.offline {
  border-color: rgba(239, 68, 68, 0.44);
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.dot.online {
  background: var(--ok);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
}

.dot.offline {
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.14);
}

.server-kpis {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.server-kpi {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 8px;
  font-size: 12px;
  color: var(--muted);
}

.server-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.live-card {
  padding: 12px;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 40%),
    linear-gradient(165deg, rgba(15, 21, 34, 0.95), rgba(11, 17, 30, 0.95));
}

.live-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.live-card-title {
  margin: 0;
  font-weight: 700;
  color: #f3f8ff;
  font-size: 15px;
}

.live-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.live-state {
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-state.online {
  border-color: rgba(34, 197, 94, 0.44);
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
}

.live-state.offline {
  border-color: rgba(239, 68, 68, 0.44);
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
}

.admin-login-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(8, 13, 24, 0.72);
}

.admin-form {
  display: grid;
  gap: 8px;
}

.admin-form label {
  font-size: 13px;
  color: var(--muted);
}

input,
button,
a {
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(6, 10, 18, 0.9);
  color: var(--text);
}

input:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.56);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.16);
}

.hero-actions,
.bot-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease, border-color 120ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-discord {
  background: linear-gradient(125deg, #3b82f6, #1d4ed8);
  border-color: rgba(147, 197, 253, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}

.btn-admin {
  background: linear-gradient(125deg, #14b8a6, #0f766e);
  border-color: rgba(94, 234, 212, 0.4);
}

.btn-bot {
  background: linear-gradient(125deg, #f97316, #ea580c);
  border-color: rgba(251, 146, 60, 0.45);
}

.btn-bot.danger {
  background: linear-gradient(125deg, #ef4444, #b91c1c);
  border-color: rgba(252, 165, 165, 0.4);
}

.admin-message {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-message.error {
  color: #fecaca;
}

.admin-message.ok {
  color: #bbf7d0;
}

.admin-dashboard {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.admin-card {
  padding: 14px;
}

.admin-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-server-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-server-line {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 7px 9px;
  font-size: 12px;
  color: #dbe7ff;
}

.status-box {
  margin: 10px 0 0;
  border: 1px solid var(--line);
  background: rgba(6, 10, 18, 0.9);
  color: #d7e6ff;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: pre-wrap;
  border-radius: 12px;
  min-height: 120px;
  padding: 10px;
}

.page-footer {
  padding: 6px clamp(16px, 4vw, 44px) 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.page-footer a {
  color: #dbeafe;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 10, 18, 0.94);
  border-radius: 12px;
  padding: 9px 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.hidden {
  display: none;
}

.reveal-up {
  opacity: 0;
  transform: translateY(16px);
  animation: revealUp 600ms ease forwards;
}

.reveal-up.delay-1 {
  animation-delay: 100ms;
}

.reveal-up.delay-2 {
  animation-delay: 180ms;
}

.reveal-up.delay-3 {
  animation-delay: 260ms;
}

.reveal-up.delay-4 {
  animation-delay: 340ms;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .server-kpis {
    grid-template-columns: 1fr;
  }

  .hero-kpi-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: clamp(46px, 16vw, 90px);
  }

  h2 {
    font-size: clamp(30px, 10vw, 46px);
  }

  .hero-actions,
  .bot-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .page-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
