:root {
  --bg: #08120c;
  --bg-soft: #102319;
  --card: rgba(13, 31, 21, 0.92);
  --card-edge: rgba(142, 247, 181, 0.18);
  --text: #ebfff1;
  --muted: #a7c5b4;
  --accent: #58f08b;
  --accent-2: #1dc7a0;
  --danger: #f57b7b;
  --shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Exo 2", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 18%, rgba(53, 164, 96, 0.25), transparent 35%),
    radial-gradient(circle at 82% 12%, rgba(35, 124, 189, 0.24), transparent 32%),
    linear-gradient(160deg, #040b07 0%, #0d1f15 45%, #07110c 100%);
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(111, 255, 174, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 255, 174, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
  z-index: -1;
}

.container {
  width: min(1180px, calc(100vw - 2.5rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: rgba(4, 11, 7, 0.75);
  border-bottom: 1px solid rgba(124, 246, 178, 0.16);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #d7ff8e);
  box-shadow: 0 0 16px rgba(88, 240, 139, 0.8);
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.nav-links a,
.footer-links a,
.section-head a,
.news-item a,
.category-card a,
.back-link {
  color: #c8fedd;
  text-decoration: none;
  position: relative;
}

.nav-links a::after,
.footer-links a::after,
.section-head a::after,
.news-item a::after,
.category-card a::after,
.back-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.18rem;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
  background: var(--accent);
}

.nav-links a:hover::after,
.footer-links a:hover::after,
.section-head a:hover::after,
.news-item a:hover::after,
.category-card a:hover::after,
.back-link:hover::after {
  transform-origin: left;
  transform: scaleX(1);
}

.nav-actions {
  display: inline-flex;
  gap: 0.55rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.54rem 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn--solid {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #042010;
  box-shadow: 0 8px 20px rgba(88, 240, 139, 0.27);
}

.btn--solid:hover {
  box-shadow: 0 10px 24px rgba(88, 240, 139, 0.33);
}

.btn--ghost {
  color: #dbffea;
  border-color: rgba(120, 244, 172, 0.35);
  background: rgba(16, 35, 25, 0.72);
}

.btn--ghost:hover {
  background: rgba(27, 54, 40, 0.92);
  border-color: rgba(120, 244, 172, 0.55);
}

.btn--wide {
  width: 100%;
}

.kicker {
  margin: 0 0 0.5rem;
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #8af4bc;
}

.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.2rem;
  padding: 2.2rem 0 1.4rem;
}

.hero__left h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw + 0.7rem, 3rem);
  line-height: 1.12;
}

.lead {
  margin: 1rem 0;
  max-width: 64ch;
  color: var(--muted);
}

.hero__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin: 1.1rem 0 1rem;
}

.hero__metrics article {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  min-width: 180px;
  box-shadow: var(--shadow);
}

.metric {
  display: block;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #d8ffe8;
}

.hero__metrics p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-search {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.7rem;
}

.hero-search input,
.auth-form-pane input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(125, 246, 178, 0.33);
  background: rgba(2, 8, 5, 0.75);
  color: var(--text);
  padding: 0.74rem 0.84rem;
  font-family: "Exo 2", sans-serif;
}

.hero__panel {
  background: linear-gradient(180deg, rgba(12, 31, 20, 0.94), rgba(8, 20, 14, 0.94));
  border: 1px solid var(--card-edge);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.hero__panel h2 {
  margin: 0;
  font-size: 1.1rem;
}

.hero__panel ul {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.82rem;
}

.hero__panel li {
  display: grid;
  gap: 0.28rem;
  border-bottom: 1px solid rgba(117, 232, 164, 0.18);
  padding-bottom: 0.55rem;
}

.hero__panel li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero__panel time {
  color: #8fb4a0;
  font-size: 0.84rem;
}

.section {
  padding: 1.15rem 0 0.35rem;
}

.section--small {
  padding-bottom: 2rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.45rem;
}

.mod-grid,
.news-grid,
.category-grid {
  display: grid;
  gap: 0.9rem;
}

.mod-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.news-item,
.category-card,
.panel,
.pack-row {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.card h3,
.news-item h3,
.category-card h3,
.panel h2,
.pack-row h3 {
  margin-top: 0;
}

.card p,
.news-item p,
.category-card p,
.panel p,
.pack-row p {
  color: var(--muted);
}

.meta,
.pack-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: #b6edcd;
  font-size: 0.88rem;
}

.card-actions {
  margin-top: 0.95rem;
  display: flex;
  gap: 0.55rem;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card p {
  margin: 0.2rem 0 0.8rem;
  color: #98c2ac;
}

.pack-list {
  display: grid;
  gap: 0.75rem;
}

.pack-row {
  display: grid;
  grid-template-columns: 2fr auto auto;
  align-items: center;
  gap: 0.9rem;
}

.pack-row h3 {
  margin-bottom: 0.35rem;
}

.section--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.panel ul,
.auth-intro ul {
  margin: 0.75rem 0;
  padding-left: 1.05rem;
  color: #a6d3ba;
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer {
  border-top: 1px solid rgba(120, 244, 172, 0.2);
  background: rgba(5, 12, 9, 0.87);
  margin-top: 1rem;
}

.footer-wrap {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-wrap p {
  margin: 0;
  color: #9ec8b0;
}

.footer-links {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.auth-body {
  display: grid;
  place-items: center;
}

.auth-layout {
  width: min(1050px, calc(100vw - 2.5rem));
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
  padding: 2rem 0;
}

.auth-intro,
.auth-card {
  background: rgba(8, 20, 14, 0.95);
  border: 1px solid var(--card-edge);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.auth-intro h1 {
  margin-top: 0;
}

.tab-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.tab {
  border: 1px solid rgba(122, 244, 174, 0.3);
  background: rgba(15, 34, 24, 0.9);
  color: #d9ffeb;
  border-radius: 999px;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  padding: 0.48rem 0.95rem;
  cursor: pointer;
}

.tab--active {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #032111;
  border-color: transparent;
}

.intent-line {
  margin: 0.4rem 0 0.8rem;
  color: #b5dbc5;
}

.auth-disclaimer {
  margin: 0 0 0.9rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(128, 243, 177, 0.23);
  background: rgba(20, 42, 30, 0.8);
  color: #a8d2bb;
  font-size: 0.84rem;
}

.auth-form-pane {
  display: grid;
  gap: 0.7rem;
}

.auth-form-pane label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #b4dac3;
}

.auth-notice {
  margin: 0.85rem 0 0;
  min-height: 1.4rem;
  color: #9dd9bc;
  font-size: 0.92rem;
}

.auth-notice.error {
  color: var(--danger);
}

.hidden {
  display: none;
}

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

  .hero,
  .section--split,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .mod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pack-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-search {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1180px, calc(100vw - 1.2rem));
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .mod-grid,
  .category-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0.7rem 0;
  }
}
