:root {
  --bg: #090614;
  --bg-surface: #0e0a1f;
  --bg-card: #140e2b;
  --bg-card-hover: #1b1338;
  --border: #231846;
  --border-light: #332363;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-glow: rgba(139, 92, 246, 0.35);
  --purple-light: #c084fc;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --online: #22c55e;
  --radius: 14px;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  top: -20%;
  left: 60%;
  transform: translateX(-50%);
  width: 1000px;
  height: 700px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, rgba(124, 58, 237, 0.08) 45%, rgba(9, 6, 20, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(9, 6, 20, 0.88);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}

.brand-logo-wrap {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
}

.brand-logo-wrap svg {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 9px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: #fff;
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.nav-item svg {
  width: 16px;
  height: 16px;
  color: currentColor;
}

.btn-discord-login {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-discord-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.6);
  filter: brightness(1.1);
}

.btn-discord-login svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

main {
  flex: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 80px;
  position: relative;
  z-index: 1;
}

.tab-view {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.tab-view.active {
  display: block;
}

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

/* Hero Section */
.hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 440px;
  gap: 40px;
  margin-bottom: 60px;
}

.hero-content {
  max-width: 600px;
}

.tag-gmod {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #a78bfa;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-title-main {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 20px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(139, 92, 246, 0.35));
}

.hero-slogan {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-action-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.online-indicator-box {
  font-size: 14px;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot-green {
  width: 9px;
  height: 9px;
  background: var(--online);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--online);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

.btn-connect-hero {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-connect-hero:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.hero-ip-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  cursor: pointer;
  user-select: all;
  transition: all 0.2s;
}

.hero-ip-badge:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(139, 92, 246, 0.1);
}

.scroll-hint {
  margin-top: 40px;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-visual {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-3d-art {
  width: 300px;
  height: 360px;
  filter: drop-shadow(0 0 50px rgba(139, 92, 246, 0.5));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Section Headers */
.content-sec-head {
  margin-bottom: 24px;
}

.sec-tag {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--purple-light);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sec-h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}

.sec-sub {
  font-size: 14px;
  color: var(--text-muted);
}

/* Start Section: 3 Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.step-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  color: var(--purple-light);
  margin-bottom: 8px;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}

.step-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-step-action {
  background: #7c3aed;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-step-action:hover {
  filter: brightness(1.15);
}

.btn-step-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-step-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Player Hub Cards */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.hub-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.hub-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  flex-shrink: 0;
}

.hub-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.hub-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 60px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  cursor: pointer;
  transition: all 0.2s;
}

.faq-card:hover {
  border-color: var(--border-light);
}

.faq-card.open {
  border-color: rgba(139, 92, 246, 0.4);
}

.faq-q {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-a {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 10px;
  display: none;
}

.faq-card.open .faq-a {
  display: block;
}

.faq-a a {
  color: var(--purple-light);
  text-decoration: underline;
}

/* Donat View */
.donat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.donat-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}

.donat-sub {
  font-size: 15px;
  color: var(--text-muted);
}

.btn-discord-shop {
  background: #7c3aed;
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
  transition: opacity 0.2s;
  text-decoration: none;
}

.btn-discord-shop:hover {
  opacity: 0.9;
}

.shop-empty-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 680px;
  margin-top: 20px;
}

.shop-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  flex-shrink: 0;
}

/* Rules View */
.rules-head-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.rules-search-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: #fff;
  padding: 10px 16px 10px 40px;
  border-radius: 10px;
  font-size: 14px;
  width: 320px;
  outline: none;
  transition: border-color 0.2s;
}

.rules-search-input:focus {
  border-color: var(--accent);
}

.search-box-wrap {
  position: relative;
}

.search-box-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.rules-main-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.rules-sub-title {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.rules-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.rules-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
}

.rules-nav-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: fit-content;
}

.rules-nav-title {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 12px 6px;
}

.rule-cat-btn {
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.rule-cat-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.rule-cat-btn.active {
  color: #fff;
  background: #7c3aed;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.rules-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.rules-sec-heading {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
}

.rule-bullet {
  width: 7px;
  height: 7px;
  background: #a855f7;
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 8px #a855f7;
}

/* Recruit View */
.recruit-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 32px;
}

.recruit-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}

.recruit-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 24px;
}

.recruit-btns {
  display: flex;
  gap: 12px;
}

.btn-recruit-primary {
  background: #7c3aed;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
  transition: all 0.2s;
}

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

.btn-recruit-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-recruit-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.recruit-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}

.recruit-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.recruit-stat-num {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.recruit-stat-txt {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.vacancies-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.vacancies-pill-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.vacancies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0 24px;
}

.vacancy-item {
  background: rgba(9, 6, 20, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.vacancy-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  flex-shrink: 0;
}

.vacancy-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.vacancy-duty {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-apply-full {
  width: 100%;
  background: #7c3aed;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.4);
  transition: all 0.2s;
  text-decoration: none;
}

.btn-apply-full:hover {
  filter: brightness(1.1);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  background: #06040d;
  margin-top: auto;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links-row {
  display: flex;
  gap: 20px;
  align-items: center;
  list-style: none;
}

.footer-links-row a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s;
}

.footer-links-row a:hover {
  color: #fff;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #181135;
  border: 1px solid #7c3aed;
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(124, 58, 237, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 860px) {
  .hero-layout { flex-direction: column; text-align: center; }
  .hero-title-main { font-size: 40px; }
  .hero-action-bar { justify-content: center; }
  .scroll-hint { justify-content: center; }
  .hero-visual { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: 1fr; }
  .rules-layout { grid-template-columns: 1fr; }
  .recruit-stats-row { grid-template-columns: 1fr; }
  .recruit-hero { flex-direction: column; text-align: center; }
  .recruit-desc { margin: 0 auto 24px; }
  .recruit-btns { justify-content: center; }
  .footer-container { flex-direction: column; text-align: center; }
}
