/* =====================================================
   Explorers PvE — Main Stylesheet
   Rustic dark wilderness aesthetic
   Fonts: Cinzel (display) + Crimson Pro (body)
   Colors: deep brown bg, amber gold accent, forest green
   ===================================================== */

/* ── CSS Variables ──────────────────────────────────── */
:root {
  --accent:        #c8892a;
  --accent-light:  #e8a84a;
  --accent-dark:   #8a5a12;
  --green:         #4a5e3a;
  --green-light:   #6a8a52;
  --bg:            #0a0804;
  --bg-2:          #110e08;
  --bg-3:          #1a1408;
  --glass:         rgba(200,137,42,0.06);
  --glass-border:  rgba(200,137,42,0.18);
  --text:          #f0e6d0;
  --text-muted:    #c0aa88;
  --radius:        8px;
  --radius-lg:     14px;
  --shadow:        0 8px 40px rgba(0,0,0,0.8);
  --glow:          0 0 40px rgba(200,137,42,0.2);
  --font-display:  'Cinzel', serif;
  --font-body:     'Crimson Pro', Georgia, serif;
  --nav-h:         76px;
}

/* ── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #1a1208;
  background-image:
    linear-gradient(rgba(6,4,2,.62), rgba(6,4,2,.62)),
    url('/img/websitebackground.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-light); }
code { font-family: 'Courier New', monospace; font-size: .88em; color: var(--accent); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ── Particle Canvas ────────────────────────────────── */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .4;
}

.main { position: relative; z-index: 1; }

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .04em;
  text-shadow: 0 2px 20px rgba(0,0,0,.8);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 50%, #a06820 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Decorative divider ─────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.8rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .1em;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  transition: transform .2s, box-shadow .2s, background .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #1a0e00;
  box-shadow: 0 4px 20px rgba(200,137,42,.35);
  border: 1px solid rgba(200,137,42,.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 6px 30px rgba(200,137,42,.5);
  color: #0a0804;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,.08);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,.15); }

.btn-sm { padding: .45rem 1.1rem; font-size: .75rem; }

/* ── Glassmorphism (earthy) ─────────────────────────── */
.glass {
  background: rgba(20,14,6,.82);
  border: 1px solid rgba(200,137,42,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
}

.glass-inset {
  box-shadow: inset 0 1px 0 rgba(200,137,42,.12), inset 0 -1px 0 rgba(0,0,0,.3);
}

/* ── Navigation ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.scrolled {
  background: rgba(10,7,3,.95);
  backdrop-filter: blur(20px);
  border-color: var(--glass-border);
  box-shadow: 0 4px 30px rgba(0,0,0,.6);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  opacity: 1 !important;
}
.nav-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(200,137,42,.4));
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.nav-logo-sub {
  font-family: var(--font-display);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .2rem;
  margin-left: auto;
}

.nav-link {
  padding: .45rem .9rem;
  border-radius: 4px;
  color: var(--text-muted) !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s, background .2s;
  text-decoration: none;
}
.nav-link:hover { color: var(--accent-light) !important; background: rgba(200,137,42,.08); }
.nav-link.active { color: var(--accent) !important; }

.nav-discord {
  background: #5865f2;
  color: #fff !important;
  padding: .4rem 1rem;
  border-radius: 4px;
}
.nav-discord:hover { background: #4752c4; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  margin-left: auto;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 4rem) 2rem 6rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  left: -10%;
  top: 20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(200,137,42,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem 1rem;
  background: rgba(200,137,42,.1);
  border: 1px solid rgba(200,137,42,.3);
  border-radius: 2px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  animation: fadeUp .6s ease both;
}

.hero-title {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  animation: fadeUp .6s .1s ease both;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.7;
  animation: fadeUp .6s .2s ease both;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 1.1rem;
  background: rgba(200,137,42,.06);
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: .75rem;
  letter-spacing: .08em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  animation: fadeUp .6s .25s ease both;
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.online  { background: #7ab84a; box-shadow: 0 0 8px #7ab84a; animation: pulse 2s infinite; }
.status-dot.offline { background: #c84a4a; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeUp .6s .3s ease both;
}

/* ── Stacked hero buttons ───────────────────────────── */
.hero-actions--stacked { flex-direction: column; align-items: flex-start; gap: .75rem; }
.hero-actions--stacked .btn { width: 200px; justify-content: center; }

/* Discord button same colour as Shop */
.hero-actions--stacked .btn-ghost {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #1a0e00;
  border-color: rgba(200,137,42,.4);
  box-shadow: 0 4px 20px rgba(200,137,42,.35);
}
.hero-actions--stacked .btn-ghost:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 6px 30px rgba(200,137,42,.5);
  color: #0a0804;
}

/* ── Server card ────────────────────────────────────── */
.hero-visual { animation: fadeUp .8s .2s ease both; }

.server-card {
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
  background: rgba(22,16,7,.92);
  border-color: rgba(200,137,42,.32);
}

.server-card::before, .server-card::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--accent-dark);
  border-style: solid;
  opacity: .5;
}
.server-card::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.server-card::after  { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }

.server-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.server-icon { width: 52px; height: 52px; border-radius: 4px; }
.server-icon-placeholder {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  background: rgba(200,137,42,.1);
  border-radius: 4px;
  color: var(--accent);
  border: 1px solid var(--glass-border);
}

.server-card-name { font-family: var(--font-display); font-size: .9rem; font-weight: 700; letter-spacing: .08em; color: var(--accent-light); }
.server-card-version { font-size: .72rem; color: var(--text-muted); margin-top: .15rem; letter-spacing: .05em; }
.server-card-status { margin-left: auto; font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.server-card-status.online  { color: #7ab84a; }
.server-card-status.offline { color: #c84a4a; }

.stat-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .55rem 0;
  border-top: 1px solid rgba(200,137,42,.1);
  font-size: .88rem;
}
.stat-label { color: var(--text-muted); min-width: 65px; font-family: var(--font-display); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.stat-val { margin-left: auto; font-weight: 600; color: var(--text); }
.stat-val.motd { font-size: .78rem; color: var(--text-muted); max-width: 150px; text-align: right; }

.stat-bar-wrap {
  flex: 1; height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 100px; overflow: hidden;
}
.stat-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  border-radius: 100px;
  transition: width 1s ease;
}

/* ── Copyable IP row ────────────────────────────────── */
.stat-row--clickable { cursor: pointer; border-radius: 4px; transition: background .2s; }
.stat-row--clickable:hover { background: rgba(200,137,42,.06); }
.copy-hint { margin-left: auto; font-size: .75rem; opacity: .5; }

/* ── Restart in card ────────────────────────────────── */
.restart-val { font-size: .82rem; }
.restart-val strong { color: #9ab87a; }

/* Player list on server card */
.server-card-players { margin-top: 1rem; border-top: 1px solid rgba(200,137,42,.1); padding-top: .85rem; }
.players-label { font-family: var(--font-display); font-size: .62rem; text-transform: uppercase; letter-spacing: .15em; color: var(--text-muted); margin-bottom: .5rem; }
.players-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.player-pill {
  font-size: .7rem; font-weight: 600;
  padding: .18rem .55rem;
  background: rgba(200,137,42,.08);
  border: 1px solid rgba(200,137,42,.15);
  border-radius: 2px;
  color: var(--text-muted);
  font-family: var(--font-display);
  letter-spacing: .04em;
}
.player-pill--more { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.06); }

/* ── Mini graph inside server card ─────────────────── */
.mini-graph-wrap {
  margin-top: 1rem;
  border-top: 1px solid rgba(200,137,42,.1);
  padding-top: .85rem;
}
.mini-graph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}
.mini-graph-label {
  font-family: var(--font-display);
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
}
.mini-graph-current {
  font-family: var(--font-display);
  font-size: .6rem;
  letter-spacing: .08em;
  color: #9ab87a;
}

/* ── Sections ───────────────────────────────────────── */
.section { padding: 6rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-inner--narrow { max-width: 840px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-label::before, .section-label::after {
  content: '—';
  color: var(--accent-dark);
  opacity: .6;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 3rem;
  color: var(--text);
}

.section-cta { text-align: center; margin-top: 3rem; }

/* ── Features ───────────────────────────────────────── */
.features-section {
  background: rgba(10,7,3,.78);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  transition: transform .3s, box-shadow .3s;
  position: relative;
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dark), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--glow); }
.feature-card:hover::after { opacity: 1; }

.feature-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1rem; margin-bottom: .5rem; letter-spacing: .06em; color: var(--accent-light); }
.feature-card p  { color: var(--text-muted); font-size: .95rem; }

/* ── Products ───────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.products-grid--full {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1100px) { .products-grid--full { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .products-grid--full { grid-template-columns: 1fr; } }

.product-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: .65rem;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  background: linear-gradient(160deg, rgba(200,137,42,.06) 0%, rgba(10,8,4,0) 60%);
  transition: transform .3s, box-shadow .3s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 40px rgba(200,137,42,.2);
}

.product-badge {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #1a0e00;
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .22rem .8rem;
  border-radius: 2px;
  white-space: nowrap;
}

.product-icon  { font-size: 2.2rem; }
.product-name  { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .06em; color: var(--accent-light); }
.product-desc  { color: var(--text-muted); font-size: .92rem; line-height: 1.6; }
.product-price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; margin-top: auto; color: var(--text); letter-spacing: .04em; }
.product-features {
  display: flex; flex-direction: column; gap: .3rem;
  font-size: .88rem; color: var(--text-muted);
}
.product-features li { padding-left: .2rem; }
.product-features li::before { content: none; }

/* ── Store page ─────────────────────────────────────── */
.username-bar {
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.username-bar label {
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.username-bar input {
  flex: 1;
  min-width: 200px;
  background: rgba(200,137,42,.04);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: .6rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color .2s;
}
.username-bar input:focus { border-color: var(--accent); }
.username-bar input::placeholder { color: var(--text-muted); opacity: .6; }

.store-footer-note {
  margin-top: 2.5rem; padding: 1.25rem 1.75rem;
  text-align: center; color: var(--text-muted); font-size: .9rem;
}
.store-footer-note a { color: var(--accent); }

/* ── Ko-fi info bar ─────────────────────────────────── */
.kofi-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 1.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.kofi-bar-text {
  flex: 1;
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.6;
  min-width: 200px;
}
.kofi-bar-text strong { color: var(--text); }

/* ── Alerts ─────────────────────────────────────────── */
.alert {
  max-width: 1200px;
  margin: 1rem auto;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .04em;
}
.alert-success { background: rgba(122,184,74,.1); border: 1px solid rgba(122,184,74,.25); color: #9dd870; }
.alert-warning  { background: rgba(200,137,42,.1); border: 1px solid rgba(200,137,42,.25); color: var(--accent-light); }

/* ── Page Hero ──────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 5rem) 2rem 4rem;
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(200,137,42,.07) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: var(--nav-h);
  left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}
.page-hero-inner { position: relative; }
.page-title { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1rem; }
.page-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 580px; margin: 0 auto; }

/* ── Rules & Monetization ───────────────────────────── */
.rules-intro {
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  line-height: 1.85;
  font-size: .97rem;
}
.rules-intro p + p { margin-top: .75rem; }

.rules-section { padding: 1.75rem; margin-bottom: 1.25rem; }

.rules-category {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .08em;
  margin-bottom: 1.1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(200,137,42,.15);
  color: var(--accent-light);
}

.rules-list { display: flex; flex-direction: column; gap: .6rem; }

.rule-item {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .45rem .6rem; border-radius: 4px;
  transition: background .2s;
}
.rule-item:hover { background: rgba(200,137,42,.04); }
.rule-number {
  font-family: var(--font-display); font-size: .65rem;
  color: var(--accent); min-width: 32px; padding-top: .3rem;
  letter-spacing: .05em;
}
.rule-text { color: var(--text-muted); line-height: 1.65; font-size: .95rem; }

.mono-list { display: flex; flex-direction: column; gap: .6rem; }
.mono-list li {
  padding: .55rem .75rem;
  color: var(--text-muted);
  border-left: 2px solid rgba(200,137,42,.2);
  font-size: .95rem;
  line-height: 1.6;
  transition: border-color .2s;
}
.mono-list li:hover { border-color: var(--accent); }

.rules-footer { padding: 1.75rem; margin-top: 1.5rem; }
.rules-footer h3 { margin-bottom: 1rem; font-size: 1.1rem; color: var(--accent-light); }
.rules-appeal { margin-top: 1.5rem; color: var(--text-muted); font-size: .9rem; }

.punishments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem; margin: 1.25rem 0;
}
.punishment-card {
  text-align: center; padding: 1.1rem .75rem;
  background: rgba(200,137,42,.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}
.punishment-icon { font-size: 1.6rem; margin-bottom: .4rem; }
.punishment-name { font-family: var(--font-display); font-weight: 700; font-size: .78rem; margin-bottom: .25rem; letter-spacing: .05em; color: var(--text); }
.punishment-desc { font-size: .72rem; color: var(--text-muted); line-height: 1.4; }

.contact-options { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ── Footer ─────────────────────────────────────────── */
.footer {
  background: rgba(10,7,3,.88);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 2rem 0;
  margin-top: 4rem;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dark), transparent);
  opacity: .5;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 4rem; padding-bottom: 3rem;
}
.footer-brand { display: flex; flex-direction: column; gap: .5rem; }
.footer-brand img { width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(200,137,42,.3)); }
.footer-brand-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-light); }
.footer-tagline { color: var(--text-muted); margin-top: .25rem; font-size: .88rem; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col { display: flex; flex-direction: column; gap: .6rem; }
.footer-col h4 { font-family: var(--font-display); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .25rem; }
.footer-col a { color: var(--text-muted); font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-ip { color: var(--text-muted); font-size: .85rem; }
.footer-bottom {
  border-top: 1px solid rgba(200,137,42,.1);
  padding: 1.5rem 0; text-align: center;
  max-width: 1200px; margin: 0 auto;
  color: var(--text-muted); font-size: .82rem;
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .8rem;
  background: rgba(200,137,42,.08);
  border: 1px solid rgba(200,137,42,.18);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  text-decoration: none;
  transition: all .2s;
  margin-top: .5rem;
}
.footer-admin-link:hover {
  color: var(--accent) !important;
  border-color: rgba(200,137,42,.35);
  background: rgba(200,137,42,.12);
}

/* ── Announcement bar ───────────────────────────────── */
.announcement-bar {
  background: linear-gradient(135deg, rgba(200,137,42,.2), rgba(74,94,58,.2));
  border-bottom: 1px solid rgba(200,137,42,.3);
  padding: .65rem 2rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--accent-light);
  position: relative;
  z-index: 99;
  margin-top: var(--nav-h);
}

/* ── Discord section ────────────────────────────────── */
.discord-section {
  background: rgba(10,7,3,.78);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.discord-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}
.discord-sub { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.75rem; max-width: 480px; line-height: 1.7; }
.discord-qr {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
.discord-qr img {
  width: 160px;
  height: 160px;
  border-radius: var(--radius);
  border: 2px solid var(--glass-border);
  padding: .5rem;
  background: rgba(255,255,255,.05);
}
.discord-qr p {
  font-family: var(--font-display);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Restart pill ───────────────────────────────────── */
.restart-pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem 1.1rem;
  background: rgba(74,94,58,.15);
  border: 1px solid rgba(74,94,58,.35);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: .75rem;
  letter-spacing: .07em;
  color: #9ab87a;
  margin-bottom: 1.75rem;
  animation: fadeUp .6s .3s ease both;
}
.restart-icon { font-size: .9rem; }
.restart-pill strong { color: #c8d8a8; }

/* ── Graph section ──────────────────────────────────── */
.graph-section {
  background: rgba(10,7,3,.78);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.graph-card { padding: 2rem 2rem 1.25rem; position: relative; }
.graph-note {
  text-align: center;
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-family: var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── Donation Modal ─────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  width: 100%;
  max-width: 460px;
  margin: 1rem;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  transform: translateY(20px);
  transition: transform .25s;
  border: 1px solid rgba(200,137,42,.3);
  background: rgba(17,14,8,.97);
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: .25rem .5rem;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.modal-close:hover { color: var(--text); background: rgba(255,255,255,.06); }

.modal-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.modal-title { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: .5rem; color: var(--accent-light); }
.modal-sub { color: var(--text-muted); font-size: .95rem; margin-bottom: 1.75rem; line-height: 1.6; }

.donation-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.preset-btn {
  padding: .6rem .5rem;
  background: rgba(200,137,42,.08);
  border: 1px solid rgba(200,137,42,.2);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.preset-btn:hover, .preset-btn.active {
  background: rgba(200,137,42,.25);
  border-color: var(--accent);
  color: var(--accent-light);
}

.donation-custom {
  display: flex;
  align-items: center;
  background: rgba(200,137,42,.04);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: 0 1rem;
  margin-bottom: .5rem;
  transition: border-color .2s;
}
.donation-custom:focus-within { border-color: var(--accent); }
.donation-currency { font-family: var(--font-display); font-size: 1.1rem; color: var(--accent); margin-right: .5rem; }
.donation-custom input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-family: var(--font-body);
  font-size: 1.05rem; padding: .7rem 0;
}
.donation-custom input::placeholder { color: var(--text-muted); opacity: .6; }
.donation-hint {
  font-size: .75rem; color: var(--text-muted);
  margin-bottom: 1.5rem; font-family: var(--font-display); letter-spacing: .06em;
}
.donation-confirm { width: 100%; justify-content: center; }

/* ── 404 / Error ────────────────────────────────────── */
.error-page {
  min-height: 80vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 4rem 2rem; gap: 1rem;
}
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 15vw, 10rem); font-weight: 900; line-height: 1; }

/* ── Animations ─────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes float  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse  { 0%, 100% { box-shadow: 0 0 5px #7ab84a; } 50% { box-shadow: 0 0 14px #7ab84a; } }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 4rem; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-actions--stacked { align-items: center; }
  .hero-visual { order: -1; max-width: 460px; margin: 0 auto; }
  .status-pill { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .discord-inner { grid-template-columns: 1fr; text-align: center; }
  .discord-sub { margin: 0 auto 1.75rem; }
  .discord-qr { margin: 0 auto; }
}
@media (max-width: 700px) {
  .discord-inner { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(10,8,4,.98); padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border); gap: .25rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-links { grid-template-columns: 1fr; }
  .punishments-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1800px) {
  :root { --nav-h: 90px; }
  body { font-size: 20px; }
  .section-inner, .hero, .footer-inner, .footer-bottom { max-width: 1600px; }
  .hero-title { font-size: 5rem; }
  .section-title { font-size: 3.2rem; }
  .page-title { font-size: 4rem; }
  .nav-inner { max-width: 1600px; }
  .nav-logo img { width: 72px; height: 72px; }
  .nav-logo-name { font-size: 1.3rem; }
  .nav-logo-sub { font-size: .7rem; }
  .nav-link { font-size: .9rem; padding: .55rem 1.1rem; }
  .product-price { font-size: 2.4rem; }
  .server-card { padding: 2.25rem; }
}

.discord-widget-section {
  padding: 3rem 0;
  text-align: center;
}


/* ── Community dropdown ─────────────────────────────── */
.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.nav-chevron {
  font-size: .6rem;
  transition: transform .2s;
  display: inline-block;
}

.nav-dropdown-wrap.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background: rgba(12, 9, 4, 0.72);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(200,137,42,.22);
  border-radius: 14px;
  padding: .5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.7), inset 0 1px 0 rgba(200,137,42,.12);
  z-index: 200;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: rgba(12, 9, 4, 0.72);
  border-left: 1px solid rgba(200,137,42,.22);
  border-top: 1px solid rgba(200,137,42,.22);
  rotate: 45deg;
  backdrop-filter: blur(24px);
}

.nav-dropdown-wrap.open .nav-dropdown {
  display: block;
  animation: dropIn .18s ease;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-drop-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .85rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s;
  color: var(--text) !important;
}

.nav-drop-item:hover {
  background: rgba(200,137,42,.1);
}

.nav-drop-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200,137,42,.08);
  border-radius: 8px;
  border: 1px solid rgba(200,137,42,.15);
}

.nav-drop-title {
  display: block;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.nav-drop-sub {
  display: block;
  font-size: .76rem;
  color: var(--text-muted);
  margin-top: .1rem;
  line-height: 1.3;
}

.nav-drop-divider {
  height: 1px;
  background: rgba(200,137,42,.12);
  margin: .25rem .5rem;
}

/* ── Market login box ───────────────────────────────── */
.player-bar {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 1rem;
  border-radius: 8px;
  background: rgba(17,14,8,.85);
  border: 1px solid rgba(200,137,42,.25);
  backdrop-filter: blur(12px);
  margin-bottom: 1.5rem;
}

.market-login-prompt {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.25rem;
  border-radius: 8px;
  background: rgba(17,14,8,.85);
  border: 1px solid rgba(200,137,42,.25);
  backdrop-filter: blur(12px);
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.market-login-prompt a {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #1a0e00 !important;
  padding: .35rem .9rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}

.market-login-prompt a:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

/* Mobile dropdown */
@media (max-width: 640px) {
  .nav-dropdown {
    position: static;
    transform: none;
    width: 100%;
    border-radius: 8px;
    margin-top: .25rem;
    box-shadow: none;
  }
  .nav-dropdown::before { display: none; }
  .nav-dropdown-wrap.open .nav-dropdown {
    animation: none;
  }
}



/* ── Particle visibility bump ───────────────────────── */
#particles-canvas { opacity: .6 !important; }
