:root {
  --bg: #0b1011;
  --bg-soft: rgba(10, 15, 16, 0.88);
  --panel: rgba(18, 24, 26, 0.86);
  --panel-strong: rgba(23, 30, 33, 0.96);
  --line: rgba(255, 255, 255, 0.08);
  --text: #e9efef;
  --muted: #a6b4b4;
  --accent: #8bd43f;
  --accent-dark: #5ca021;
  --danger: #ff7d7d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: radial-gradient(circle at top, #162123 0%, #0b1011 60%);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.home-page {
  background:
    linear-gradient(rgba(4, 8, 8, 0.42), rgba(4, 8, 8, 0.72)),
    url('assets/dayz-bg.png') center center / cover no-repeat fixed;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(1.5px);
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 32px;
}

.site-header.compact { max-width: 1200px; margin: 0 auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand strong,
.hero-card h1,
.page-intro h1,
.checkout-card h1,
.summary-card h2,
.card h2 {
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.02em;
}
.brand strong { display: block; font-size: 1.35rem; }
.brand small { color: var(--muted); display: block; }
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, #c7ff8b 100%);
  color: #132008;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow);
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
}
.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255,255,255,0.08);
}

.hero {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 30px 20px 60px;
}
.hero-card {
  max-width: 900px;
  width: 100%;
  background: rgba(10, 14, 15, 0.74);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 34px;
  backdrop-filter: blur(6px);
}
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  margin: 0 0 8px;
}
.hero-card h1,
.page-intro h1,
.checkout-card h1 {
  margin: 0 0 14px;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 0.95;
}
.lead,
.page-intro p,
.checkout-card p,
.summary-card,
.card p,
li,
.form-note,
label span,
input,
textarea {
  color: var(--muted);
}
.lead {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.7;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #b0ee6e 100%);
  color: #132008;
}
.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-wide { width: 100%; }

.stats-grid,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.stats-grid article,
.card,
.checkout-card,
.summary-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.stats-grid article {
  padding: 18px;
}
.stats-grid strong { display: block; margin-bottom: 6px; font-size: 1.05rem; }

.page-shell { min-height: 100vh; }
.content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px 60px;
}
.page-intro { margin-bottom: 24px; }
.page-intro h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
.cards-grid { align-items: stretch; }
.card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card h2 { margin: 0; font-size: 2rem; }
.price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}
.card ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
  color: var(--muted);
}
.card .btn { margin-top: auto; }

.checkout-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 22px;
}
.checkout-card,
.summary-card { padding: 24px; }
.auth-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
}
.auth-panel p {
  margin: 0;
}
.auth-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#discord-login-btn[hidden],
#discord-logout-btn[hidden] {
  display: none !important;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
input,
textarea {
  width: 100%;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  color: var(--text);
}
select {
  width: 100%;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  color: var(--text);
}
.service-picker {
  position: relative;
}
.service-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(12, 18, 19, 0.98);
  box-shadow: var(--shadow);
}
.service-suggestions[hidden] {
  display: none;
}
.service-suggestion {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}
.service-suggestion strong {
  color: var(--accent);
  font-size: 0.9rem;
}
.service-suggestion:hover {
  border-color: rgba(139, 212, 63, 0.35);
  background: rgba(139, 212, 63, 0.08);
}
.service-suggestion.empty {
  cursor: default;
  color: var(--muted);
}
input[readonly] {
  opacity: 0.92;
}
select:focus {
  outline: none;
  border-color: rgba(139, 212, 63, 0.55);
  box-shadow: 0 0 0 4px rgba(139, 212, 63, 0.12);
}
.selected-services {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.selected-services-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--text);
  font-size: 0.92rem;
}
.service-chip-remove {
  border: 0;
  background: rgba(255,255,255,0.14);
  color: var(--text);
  border-radius: 999px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  padding: 0;
}
.service-chip-remove:hover {
  background: rgba(255,255,255,0.24);
}
textarea { resize: vertical; min-height: 150px; }
input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(139, 212, 63, 0.55);
  box-shadow: 0 0 0 4px rgba(139, 212, 63, 0.12);
}
#service-search:focus {
  outline: none;
  border-color: rgba(139, 212, 63, 0.55);
  box-shadow: 0 0 0 4px rgba(139, 212, 63, 0.12);
}
.summary-card hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}
.summary-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.summary-box strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text);
}
.form-status {
  min-height: 24px;
  font-weight: 600;
}
.form-status.success { color: var(--accent); }
.form-status.error { color: var(--danger); }
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0 32px 30px;
  color: #d5dfdf;
}

@media (max-width: 920px) {
  .stats-grid,
  .cards-grid,
  .checkout-layout,
  .field-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-card,
  .content-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
}
