:root {
  --bg: #0f170f;
  --panel: rgba(18, 33, 20, 0.72);
  --panel-border: rgba(120, 198, 118, 0.24);
  --text: #edf9ed;
  --muted: #9bc39b;
  --accent: #79c56e;
  --accent-2: #4ea45f;
  --danger: #ff6f7f;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at 15% 20%, rgba(58, 126, 69, 0.34) 0%, transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(41, 110, 57, 0.3) 0%, transparent 36%),
    linear-gradient(135deg, #0d140f 0%, #112017 44%, #102014 100%);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: url("./custassets/DirtBG.png") center/cover no-repeat;
  opacity: 0.2;
}

.bg-shape {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
  opacity: 0.24;
}

.bg-shape-a {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: #72be69;
  top: -70px;
  right: -70px;
}

.bg-shape-b {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #4fa35f;
  bottom: -110px;
  left: -70px;
}

.app {
  position: relative;
  z-index: 1;
  width: min(1080px, 92vw);
  margin: 22px auto;
  display: grid;
  gap: 18px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(92, 176, 103, 0.65);
}

.status {
  color: var(--muted);
  font-size: 14px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.06;
}

.hero p {
  margin: 8px 0 0;
  color: var(--muted);
}

.server-ip-promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(120, 198, 118, 0.9);
  background: rgba(17, 45, 24, 0.92);
  color: #e6fae6;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 24px rgba(92, 176, 103, 0.24);
}

.server-ip-promo:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(92, 176, 103, 0.34);
}

.server-ip-label {
  color: #9beb98;
}

.glass {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  backdrop-filter: blur(14px);
}

.controls {
  padding: 18px;
}

.controls label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
}

.category-switch {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 14px;
}

.cat-btn {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  background: rgba(34, 42, 27, 0.9);
  border: 1px solid rgba(120, 198, 118, 0.3);
  box-shadow: none;
}

.cat-btn.active {
  color: #00211a;
  background: linear-gradient(135deg, var(--accent), #b8d96f);
  border-color: rgba(79, 214, 167, 0.7);
}

.control-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 10px;
}

select,
button {
  border: 0;
  border-radius: 12px;
  font: inherit;
}

select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(34, 42, 27, 0.9);
  color: var(--text);
  border: 1px solid rgba(120, 198, 118, 0.3);
}

button {
  font-weight: 800;
  color: #00211a;
  background: linear-gradient(135deg, var(--accent), #b8d96f);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 8px 22px rgba(79, 214, 167, 0.25);
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

.cards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.card {
  position: relative;
  overflow: visible;
  padding: 12px;
  border: 1px solid rgba(120, 198, 118, 0.26);
  border-radius: 14px;
  background: rgba(29, 36, 22, 0.8);
  cursor: pointer;
  transition: border-color 0.14s ease, transform 0.14s ease;
}

.card:hover {
  transform: translateY(-1px);
  border-color: rgba(130, 208, 130, 0.85);
}

.card.active {
  border-color: rgba(79, 214, 167, 0.95);
  box-shadow: 0 0 0 1px rgba(79, 214, 167, 0.32) inset;
}

.card h3 {
  margin: 0;
  font-size: 16px;
}

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

.recommended-badge {
  position: absolute;
  top: -11px;
  right: -11px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #0b260f;
  background: linear-gradient(135deg, #95eb8e, #5ebb70);
  border: 1px solid rgba(96, 188, 110, 0.95);
  box-shadow: 0 10px 22px rgba(96, 188, 110, 0.4);
}

.credit {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 8px 0 18px;
  color: #b8dcb8;
  font-size: 14px;
  font-weight: 700;
}

.legal-disclaimer {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #8fb58f;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

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

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

  .server-ip-promo {
    margin-top: 2px;
  }

  button {
    min-height: 46px;
  }
}
