:root {
  --bg: #050807;
  --bg-soft: #08100b;
  --panel: rgba(12, 20, 15, .82);
  --panel-solid: #0d1711;
  --panel-hover: #122018;
  --green: #74ff57;
  --green-2: #34e66a;
  --green-3: #b7ff45;
  --white: #f5fff7;
  --muted: #8fa598;
  --line: rgba(164, 255, 175, .12);
  --danger: #ff5d68;
  --warning: #ffc857;
  --shadow: 0 30px 100px rgba(0,0,0,.48);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 8%, rgba(89,255,92,.11), transparent 30%),
    radial-gradient(circle at 82% 28%, rgba(31,164,71,.10), transparent 26%),
    linear-gradient(180deg, #050807 0%, #071009 45%, #050807 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }

.container { width: min(1180px, 92vw); margin-inline: auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.green { color: var(--green); }
.danger { color: var(--danger); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 7, .72);
  backdrop-filter: blur(22px);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  letter-spacing: -.8px;
  font-size: 22px;
}
.brand img { width: 42px; filter: drop-shadow(0 0 14px rgba(116,255,87,.34)); }
.brand b { color: var(--green); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a, .nav-links button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: .18s ease;
}
.nav-links a:hover, .nav-links button:hover, .nav-links .active {
  color: var(--white);
  background: rgba(255,255,255,.045);
}
.mobile-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 19px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  color: var(--white);
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(116,255,87,.34); }
.btn-primary {
  color: #061008;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green-3), var(--green-2));
  box-shadow: 0 14px 44px rgba(76, 255, 105, .18);
}
.btn-danger { background: rgba(255,93,104,.1); color: #ff8790; border-color: rgba(255,93,104,.2); }
.btn-small { min-height: 40px; padding-inline: 14px; font-size: 13px; }

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 70px;
  align-items: center;
  padding: 75px 0 90px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(116,255,87,.18);
  border-radius: 999px;
  background: rgba(80,255,99,.06);
  color: var(--green);
  font-weight: 900;
  letter-spacing: 1.8px;
  font-size: 11px;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}
h1 {
  margin: 23px 0 22px;
  font-size: clamp(52px, 7.5vw, 104px);
  line-height: .9;
  letter-spacing: -6px;
}
.hero-copy {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 39px;
}
.quick-stat strong { display: block; font-size: 19px; }
.quick-stat span { display: block; color: var(--muted); margin-top: 4px; font-size: 12px; }

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}
.hero-skull {
  width: min(420px, 80vw);
  filter: drop-shadow(0 0 55px rgba(91,255,94,.2));
  animation: float 5s ease-in-out infinite;
}
.hero-ring {
  position: absolute;
  width: 470px; height: 470px;
  max-width: 90vw; max-height: 90vw;
  border: 1px solid rgba(116,255,87,.13);
  border-radius: 50%;
}
.hero-ring::before, .hero-ring::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px dashed rgba(116,255,87,.13);
  border-radius: inherit;
}
.hero-ring::after { inset: 75px; }
.float-card {
  position: absolute;
  min-width: 180px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(9,18,12,.76);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.float-card small { color: var(--muted); display: block; margin-bottom: 7px; }
.float-card strong { font-size: 20px; }
.float-card.one { top: 12%; left: 0; }
.float-card.two { right: 0; bottom: 17%; }

@keyframes float {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

.section { padding: 95px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 34px;
}
.section-head h2, .page-title {
  margin: 10px 0 0;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -3px;
  line-height: 1;
}
.section-head p { max-width: 520px; color: var(--muted); line-height: 1.65; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15,25,18,.88), rgba(8,14,10,.92));
  box-shadow: var(--shadow);
}
.feature-card { padding: 27px; transition: .2s ease; }
.feature-card:hover { transform: translateY(-5px); background: var(--panel-hover); }
.feature-number { color: var(--green); font-weight: 950; letter-spacing: 2px; font-size: 12px; }
.feature-card h3 { margin: 22px 0 10px; font-size: 24px; }
.feature-card p { color: var(--muted); line-height: 1.65; margin: 0; }

.cta {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  position: relative;
}
.cta::after {
  content:"";
  position:absolute;
  width:260px;height:260px;
  right:-70px;top:-90px;
  border-radius:50%;
  background:rgba(94,255,91,.1);
  filter:blur(4px);
}
.cta h2 { margin: 0 0 9px; font-size: 34px; letter-spacing: -1.5px; }
.cta p { margin: 0; color: var(--muted); }

.page {
  padding: 58px 0 100px;
}
.page-header { margin-bottom: 30px; }
.page-header p { color: var(--muted); max-width: 650px; line-height: 1.7; }

.profile-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.profile-main { display: flex; align-items: center; gap: 18px; }
.avatar {
  width: 82px; height: 82px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(116,255,87,.22);
  background: #111;
}
.profile-main h2 { margin: 0 0 8px; font-size: 30px; }
.status-line { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.status-dot.offline { background: #657269; box-shadow: none; }
.role-pill {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(116,255,87,.08);
  border: 1px solid rgba(116,255,87,.15);
  font-size: 11px;
  font-weight: 850;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.stat-card { padding: 22px; }
.stat-card small { color: var(--muted); text-transform: uppercase; letter-spacing: 1.4px; font-size: 10px; }
.stat-card strong { display: block; margin-top: 10px; font-size: 30px; letter-spacing: -1px; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  margin-top: 16px;
}
.panel-block { padding: 24px; }
.panel-block h3 { margin: 0 0 20px; font-size: 20px; }
.org-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.progress {
  height: 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
  margin-top: 14px;
}
.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-2), var(--green-3));
}
.activity-list { display: grid; gap: 11px; }
.activity {
  display: flex; justify-content: space-between; gap: 15px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.04);
}
.activity span:last-child { color: var(--muted); font-size: 12px; }

.connect-box {
  padding: 35px;
  max-width: 620px;
  margin: 50px auto 0;
  text-align: center;
}
.connect-box img { width: 100px; }
.connect-box h2 { font-size: 34px; margin: 12px 0; }
.connect-box p { color: var(--muted); line-height: 1.7; }
.code-field {
  width: 100%;
  margin-top: 16px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  color: var(--white);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  outline: none;
}
.code-field:focus { border-color: rgba(116,255,87,.45); box-shadow: 0 0 0 4px rgba(116,255,87,.06); }

.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 17px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; }
tbody tr { transition: .15s ease; }
tbody tr:hover { background: rgba(116,255,87,.025); }
.rank-number { color: var(--green); font-weight: 950; }
.player-cell { display: flex; align-items: center; gap: 11px; }
.mini-avatar { width: 34px; height: 34px; border-radius: 10px; background: #102116; }
.online-label { color: var(--green); }
.offline-label { color: #6f8375; }

.org-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.org-card { padding: 24px; }
.org-top { display:flex;justify-content:space-between;align-items:center;gap:15px; }
.org-emblem {
  width: 58px; height: 58px; display:grid;place-items:center;
  border-radius: 16px;
  background: rgba(116,255,87,.08);
  border: 1px solid rgba(116,255,87,.15);
  color: var(--green);
  font-weight: 950;
}
.org-card h3 { margin: 17px 0 6px; font-size: 24px; }
.org-card p { color: var(--muted); margin: 0; }
.org-meta { display:flex;justify-content:space-between;gap:12px;margin-top:21px;padding-top:17px;border-top:1px solid var(--line); }
.org-meta small { color:var(--muted); display:block; }
.org-meta strong { display:block;margin-top:5px; }

.api-banner {
  display: none;
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid rgba(255,200,87,.18);
  border-radius: 14px;
  background: rgba(255,200,87,.06);
  color: #ffdc8b;
  font-size: 13px;
}
.api-banner.show { display: block; }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0e1912;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: none; }

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--muted);
}
.footer-inner { display:flex;justify-content:space-between;gap:20px;align-items:center; }

@media (max-width: 950px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 480px; }
  .cards-3, .org-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  h1 { letter-spacing: -4px; }
  .mobile-toggle { display: inline-flex; }
  .nav-links {
    display:none;
    position:absolute;
    left:4vw; right:4vw; top:82px;
    padding:12px;
    flex-direction:column;
    align-items:stretch;
    border:1px solid var(--line);
    border-radius:16px;
    background:#09110c;
  }
  .nav-links.open { display:flex; }
  .nav-links a, .nav-links button { text-align:left; width:100%; }
  .section-head, .cta, .profile-header, .footer-inner { align-items:flex-start; flex-direction:column; }
  .hero-visual { min-height:390px; }
  .hero-ring { width:350px;height:350px; }
  .float-card { min-width:145px; padding:12px; }
  .stats-grid { grid-template-columns: 1fr; }
  .profile-main { align-items:flex-start; }
}


/* Live FiveM server status */
.server-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .35s ease, text-shadow .35s ease;
}
.server-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  transition: background .35s ease, box-shadow .35s ease;
}
.server-status.online { color: var(--green); text-shadow: 0 0 18px rgba(116,255,87,.18); }
.server-status.online .server-status-dot {
  background: var(--green);
  box-shadow: 0 0 13px var(--green);
  animation: serverStatusPulse 1.8s ease-in-out infinite;
}
.server-status.offline { color: #ff4f5f; text-shadow: 0 0 18px rgba(255,79,95,.18); }
.server-status.offline .server-status-dot {
  background: #ff4f5f;
  box-shadow: 0 0 13px rgba(255,79,95,.8);
  animation: serverStatusPulse 1.8s ease-in-out infinite;
}
.server-status.checking { color: var(--muted); }
.server-status.checking .server-status-dot { background: var(--muted); box-shadow: none; }
.server-status-card { transition: border-color .35s ease, box-shadow .35s ease, background .35s ease; }
.server-status-card.is-online { border-color: rgba(116,255,87,.22); }
.server-status-card.is-offline {
  border-color: rgba(255,79,95,.30);
  background: rgba(25,9,12,.80);
  box-shadow: 0 18px 50px rgba(0,0,0,.38), 0 0 25px rgba(255,79,95,.07);
}
@keyframes serverStatusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.78); }
}
