﻿:root {
  --bg: #091018;
  --surface: #111f2d;
  --surface-2: #152a3f;
  --text: #f1f5f9;
  --muted: #b7c2d0;
  --accent: #f97316;
  --accent-2: #22d3ee;
  --stroke: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.18), transparent 35%),
    radial-gradient(circle at 85% 10%, rgba(249, 115, 22, 0.2), transparent 45%),
    linear-gradient(150deg, #070c13 0%, #0c1723 45%, #08111a 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header .container {
  width: min(1600px, 96vw);
}

.bg-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

.bg-glow-1 {
  background: var(--accent-2);
  top: -120px;
  left: -90px;
}

.bg-glow-2 {
  background: var(--accent);
  right: -110px;
  bottom: 10vh;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(8, 15, 24, 0.72);
  border-bottom: 1px solid var(--stroke);
  z-index: 50;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
}

.brand-mark {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 0.45rem;
  padding: 0.25rem 0.65rem;
}

.nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  border: 1px solid var(--stroke);
  border-radius: 0.55rem;
  padding: 0.45rem 0.9rem;
  min-height: 2.25rem;
  line-height: 1;
  color: var(--text) !important;
  transition: border-color 0.2s, background 0.2s;
}

.nav-cta:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.08);
}

.hero {
  padding: 5.5rem 0 3.5rem;
}

.kicker {
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.2rem, 10vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  margin: 0.5rem 0 1rem;
}

.hero-text {
  color: var(--muted);
  max-width: 700px;
  font-size: clamp(1rem, 2.3vw, 1.25rem);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  line-height: 1;
  text-decoration: none;
  border-radius: 0.7rem;
  font-weight: 700;
  padding: 0.78rem 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #091018;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.btn-outline {
  color: var(--text);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
}

.server-stats {
  margin-top: 2rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.server-stats article {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--stroke);
  border-radius: 0.8rem;
  padding: 1rem;
}

.server-stats span {
  font-size: 1.35rem;
  font-weight: 800;
}

.server-stats p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.section {
  padding: 2.8rem 0;
}

.section h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin-bottom: 1rem;
}

.card-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.factions article,
.rules-list {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--stroke);
  border-radius: 0.9rem;
}

.team-card {
  text-align: center;
}

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  justify-content: center;
  justify-items: center;
}

.team-grid .team-card {
  width: min(100%, 320px);
  margin: 0 auto;
}

.team-page h1,
.team-page .section-intro {
  text-align: center;
}

.team-card h3,
.team-card p {
  text-align: center;
}

.team-avatar {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--stroke);
  margin-bottom: 0.7rem;
}

.team-avatar-small {
  width: 56px;
  height: 56px;
  margin-bottom: 0;
}

.team-role {
  font-weight: 700;
}

.team-meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.card,
.factions article {
  padding: 1rem;
}

.card p,
.factions p,
.cta p {
  color: var(--muted);
}

.section-intro {
  color: var(--muted);
}

.factions {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rules-list {
  margin: 0;
  padding: 1rem 1.2rem;
}

.rules-list li + li {
  margin-top: 0.55rem;
}

.verify-form {
  display: grid;
  gap: 0.8rem;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--stroke);
  border-radius: 0.9rem;
  padding: 1rem;
}

.verify-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.verify-form input,
.verify-form select,
.verify-form textarea {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.verify-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #cbd5e1 50%),
    linear-gradient(135deg, #cbd5e1 50%, transparent 50%),
    linear-gradient(160deg, #12263a, #1a2f44);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px),
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}

.verify-form select option {
  background: #0f1d2b;
  color: #e2e8f0;
}

.verify-form select option:checked {
  background: #1d4ed8;
  color: #ffffff;
}

.verify-form input:focus,
.verify-form select:focus,
.verify-form textarea:focus {
  outline: 2px solid rgba(34, 211, 238, 0.4);
  outline-offset: 1px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.checkbox-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.form-message {
  min-height: 1.35rem;
  margin: 0;
  font-weight: 600;
}

.dashboard-module .form-message {
  width: fit-content;
  margin-left: auto;
}

.form-message.success {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #34d399;
}

.form-message.success::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  animation: pulse-dot 1.8s infinite;
}

.form-message.error {
  color: #fb7185;
}

.cta {
  text-align: center;
  padding-bottom: 4rem;
}

.cta .hero-actions {
  justify-content: center;
}

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 1rem 0;
  color: var(--muted);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--stroke);
  border-radius: 0.9rem;
  padding: 1rem;
}

.panel + .panel {
  margin-top: 1rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

#sessionActions {
  display: flex;
  align-items: center;
}

.header-actions .btn {
  width: 150px;
  height: 44px;
  padding: 0 1rem;
  justify-content: center;
}

.auth-card {
  max-width: 560px;
  margin: 3rem auto;
}

.auth-title {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.applications-list {
  display: grid;
  gap: 0.8rem;
}

.application-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--stroke);
  border-radius: 0.9rem;
  padding: 0.9rem;
}

.application-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.application-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
}

.application-head h3 {
  margin: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.status-pending {
  color: #fef08a;
  background: rgba(234, 179, 8, 0.2);
}

.status-approved {
  color: #86efac;
  background: rgba(34, 197, 94, 0.2);
}

.status-denied {
  color: #fda4af;
  background: rgba(244, 63, 94, 0.2);
}

.application-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.admin-list-item {
  border: 1px solid var(--stroke);
  border-radius: 0.85rem;
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
}

.admin-list-header {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 0.8rem 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.admin-list-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-list-details {
  border-top: 1px solid var(--stroke);
  padding: 0.8rem 0.9rem 0.9rem;
}

.small-panel {
  margin-top: 0.9rem;
}

.hidden {
  display: none;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.dashboard-sidebar {
  height: fit-content;
  position: sticky;
  top: 1rem;
}

.module-nav {
  display: grid;
  gap: 0.6rem;
}

.module-btn {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 0.65rem;
  padding: 0.65rem 0.8rem;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.module-btn.is-active {
  background: linear-gradient(135deg, var(--accent), #fb923c);
  color: #091018;
  border-color: transparent;
}

.module-category-btn::after {
  content: "▾";
  float: right;
  opacity: 0.8;
}

.module-subnav {
  margin-top: -0.2rem;
  margin-bottom: 0.2rem;
  padding-left: 0.7rem;
  border-left: 1px dashed var(--stroke);
  display: grid;
  gap: 0.45rem;
}

.module-sub-btn {
  font-weight: 600;
  padding: 0.52rem 0.7rem;
  font-size: 0.95rem;
}

.dashboard-content .dashboard-module {
  margin-top: 0;
}

.dashboard-split {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr;
  margin-bottom: 1rem;
}

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

.collapse-card {
  border: 1px solid var(--stroke);
  border-radius: 0.9rem;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  overflow: hidden;
}

.collapse-card summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.collapse-card summary::-webkit-details-marker {
  display: none;
}

.collapse-card > .verify-form {
  border: 0;
  border-top: 1px solid var(--stroke);
  border-radius: 0;
  background: transparent;
}

.vehicle-item {
  cursor: pointer;
}

.vehicle-actions {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--stroke);
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.vehicle-owner-inline {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.vehicle-owner-inline.hidden {
  display: none;
}

.vehicle-owner-inline input {
  border: 1px solid var(--stroke);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.68rem 0.85rem;
}

.logs-search {
  margin-top: 0.9rem;
  margin-bottom: 0.9rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.logs-search input {
  flex: 1 1 300px;
  border: 1px solid var(--stroke);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.68rem 0.85rem;
}

.logs-search select {
  border: 1px solid var(--stroke);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.68rem 0.85rem;
}

.section-actions {
  margin-top: 0.9rem;
}

#permissionModule .section-actions {
  margin-bottom: 1rem;
}

.permission-role-select {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.55rem 0.65rem;
}

.permission-role-select option {
  background: #0f1d2b;
  color: #e2e8f0;
  padding: 0.35rem 0.45rem;
}

.json-preview {
  margin: 0.4rem 0 0;
  padding: 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.86rem;
}

#vehiclesList {
  margin-top: 0.9rem;
  margin-bottom: 1.1rem;
}

#vehicleActionsList {
  margin-top: 0.85rem;
}

#vehiclesModule h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.85rem;
}

#logsModule {
  position: relative;
}

.module-corner-indicator {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.module-corner-indicator .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  animation: pulse-dot 1.8s infinite;
}

.module-corner-indicator.hidden {
  display: none;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .card-grid,
  .factions,
  .server-stats {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
  }

  .dashboard-split {
    grid-template-columns: 1fr;
  }
}
