:root {
  --bg: #07101d;
  --bg-soft: #0d1628;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-2: rgba(255, 255, 255, 0.04);
  --text: #f5f8ff;
  --muted: #9ca9c6;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #6ea8fe;
  --accent-2: #8c6dff;
  --accent-3: #41d69a;
  --danger: #ff6078;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
      radial-gradient(circle at top left, rgba(110,168,254,.13), transparent 24%),
      radial-gradient(circle at top right, rgba(140,109,255,.12), transparent 22%),
      radial-gradient(circle at bottom center, rgba(65,214,154,.08), transparent 20%),
      linear-gradient(180deg, #07101c 0%, #0a1220 45%, #0d1425 100%);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}

body {
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

code {
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: #dfe8ff;
  font-family: Consolas, monospace;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.page-wrap {
  min-height: calc(100vh - 180px);
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 14, 26, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.site-header.scrolled {
  background: rgba(7, 14, 26, 0.9);
  border-bottom-color: rgba(255,255,255,.09);
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .2px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
      linear-gradient(135deg, rgba(110,168,254,1), rgba(140,109,255,1));
  box-shadow:
      0 12px 24px rgba(110,168,254,.22),
      inset 0 1px 0 rgba(255,255,255,.2);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.logo-text {
  font-size: 22px;
}

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

.nav-link {
  position: relative;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 600;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.05);
  transform: translateY(-1px);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link-accent {
  color: #eef3ff;
  background: rgba(110,168,254,.08);
  border: 1px solid rgba(110,168,254,.14);
}

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

.mobile-menu-toggle {
  width: 48px;
  height: 48px;
  display: none;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  border-radius: 16px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background .2s ease, border-color .2s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(255,255,255,.07);
  background: rgba(7, 14, 26, 0.95);
  backdrop-filter: blur(18px);
}

.mobile-menu.open {
  display: block;
  animation: mobileMenuFade .25s ease;
}

.mobile-menu-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 22px;
}

.mobile-nav {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.mobile-nav-link {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  color: #edf2ff;
  font-weight: 600;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.mobile-nav-link:hover {
  transform: translateY(-1px);
  border-color: rgba(110,168,254,.2);
  background: rgba(255,255,255,.06);
}

.mobile-nav-link-accent {
  background: rgba(110,168,254,.09);
  border-color: rgba(110,168,254,.16);
}

.mobile-actions {
  display: grid;
  gap: 10px;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, border-color .2s ease, background .2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 16px 30px rgba(110,168,254,.18);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: rgba(255,255,255,.065);
  border-color: rgba(255,255,255,.09);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.14);
  color: #fff;
}

.btn-danger {
  background: rgba(255, 96, 120, 0.12);
  border-color: rgba(255, 96, 120, 0.2);
  color: #ffdfe5;
}

/* TYPO / LAYOUT */

.section {
  padding: 56px 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h1,
.section-head h2 {
  margin: 0 0 10px;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -.6px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.card,
.cabinet-card,
.team-card,
.shop-card,
.feature-box,
.stat-box,
.player-card,
.news-item,
.rules-box,
.auth-box,
.server-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cards-grid,
.team-grid,
.guides-grid,
.features-grid,
.shop-grid,
.players-grid {
  display: grid;
  gap: 20px;
}

.cards-grid,
.features-grid,
.shop-grid,
.team-grid,
.guides-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-content,
.cabinet-card,
.team-card,
.shop-card,
.feature-box,
.player-card,
.rules-box,
.auth-box,
.news-item-content {
  padding: 24px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.alert {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(39, 199, 132, 0.12);
  border-color: rgba(39, 199, 132, 0.24);
  color: #d8ffef;
}

.alert-error {
  background: rgba(255, 93, 115, 0.12);
  border-color: rgba(255, 93, 115, 0.24);
  color: #ffe1e6;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: left;
  padding: 12px;
}

.table th {
  color: var(--muted);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,0.05);
  color: #fff;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(110,168,254,.35);
  box-shadow: 0 0 0 4px rgba(110,168,254,.08);
  background: rgba(255,255,255,.065);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.empty-box {
  padding: 30px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,.14);
  color: var(--muted);
}

/* FOOTER */

.site-footer {
  position: relative;
  margin-top: 30px;
  padding: 34px 0 22px;
  border-top: 1px solid rgba(255,255,255,.06);
  background:
      linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,.025));
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.footer-glow-1 {
  width: 260px;
  height: 260px;
  left: -80px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(110,168,254,.14), transparent 72%);
}

.footer-glow-2 {
  width: 260px;
  height: 260px;
  right: -80px;
  top: -120px;
  background: radial-gradient(circle, rgba(140,109,255,.14), transparent 72%);
}

.footer-modern {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr .8fr .8fr .8fr;
  gap: 18px;
}

.glass-footer-card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 22px;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
}

.footer-logo {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 10px 22px rgba(110,168,254,.22);
}

.footer-brand strong {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.footer-badges span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: #dfe7ff;
  font-size: 13px;
  font-weight: 600;
}

.footer-links h4 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-links span {
  color: var(--muted);
  transition: color .2s ease, transform .2s ease;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-muted {
  color: var(--muted);
}

.footer-bottom {
  position: relative;
  z-index: 2;
  margin-top: 18px;
}

.footer-bottom-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  margin-bottom: 16px;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

/* MOBILE */

@keyframes mobileMenuFade {
  from {
      opacity: 0;
      transform: translateY(-6px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .desktop-nav,
  .desktop-actions {
      display: none;
  }

  .mobile-menu-toggle {
      display: inline-flex;
  }

  .footer-modern {
      grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .header-inner {
      min-height: 76px;
  }

  .logo-text {
      font-size: 20px;
  }

  .section-head h1,
  .section-head h2 {
      font-size: 32px;
  }

  .footer-modern,
  .footer-bottom-content {
      grid-template-columns: 1fr;
      flex-direction: column;
  }
}

select,
option {
    background-color: #121b2e;
    color: #f4f8ff;
}

select:focus {
    background-color: #121b2e;
}
