/* ── Reset & Variables ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #070d1a;
  --bg-card:    #0e1929;
  --bg-card2:   #162235;
  --border:     #1e3555;
  --blue:       #3b82f6;
  --blue-dim:   #2563eb;
  --blue-light: #60a5fa;
  --cyan:       #22d3ee;
  --gold:       #f59e0b;
  --green:      #22c55e;
  --red:        #ef4444;
  --discord:    #5865f2;
  --text:       #e2e8f0;
  --muted:      #64748b;
  --radius:     12px;
  --shadow:     0 8px 32px rgba(0,0,0,.6);
}

html { scroll-behavior: smooth; }
body { font-family: 'Exo 2', 'Rajdhani', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header { background: rgba(7,13,26,.95); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100; padding: .8rem 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.logo { font-family: 'Rajdhani', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: .05em; }
.logo-bracket { color: var(--muted); }
.logo-accent  { color: var(--blue-light); }

.header-nav { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.nav-link { color: var(--muted); text-decoration: none; font-weight: 500; padding: .35rem .6rem; border-radius: 6px; transition: color .2s, background .2s; font-size: .9rem; }
.nav-link:hover, .nav-link.active { color: var(--blue-light); background: rgba(59,130,246,.1); }
.nav-discord { color: var(--discord) !important; }
.nav-discord:hover { background: rgba(88,101,242,.15) !important; }

.nav-wip { color: var(--muted); font-size: .9rem; padding: .35rem .6rem; cursor: default; }
.wip-badge { background: rgba(59,130,246,.15); border: 1px solid rgba(59,130,246,.3); color: var(--blue); font-size: .7rem; padding: .1rem .4rem; border-radius: 4px; vertical-align: middle; }

.user-info { display: flex; align-items: center; gap: .5rem; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--blue); }
.user-name { font-size: .85rem; font-weight: 600; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.3rem; border-radius: var(--radius); font-family: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: none; border: none; transition: filter .2s, transform .1s; }
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: scale(.97); }
.btn-sm { padding: .4rem .9rem; font-size: .82rem; }
.btn-lg { padding: .8rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary  { background: var(--blue); color: #fff; }
.btn-connect  { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; box-shadow: 0 0 20px rgba(59,130,246,.4); }
.btn-discord  { background: var(--discord); color: #fff; }
.btn-steam    { background: #1b2838; color: #c7d5e0; border: 1px solid #2a475e; }
.btn-steam:hover { background: #2a475e; filter: none; }
.btn-outline  { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); filter: none; }

.steam-icon, .discord-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 80vh; display: flex; align-items: center; overflow: hidden; background: radial-gradient(ellipse at 30% 50%, #0a1f3d 0%, var(--bg) 65%); border-bottom: 1px solid var(--border); }
.hero::before { content: ''; position: absolute; inset: 0; background: url('/img/evocity-bg.jpg') center/cover no-repeat; opacity: .08; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(7,13,26,.9) 0%, rgba(14,25,41,.7) 100%); }
.hero-content { position: relative; z-index: 1; padding: 4rem 0; }

.server-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(14,25,41,.8); border: 1px solid var(--border); border-radius: 999px; padding: .35rem .9rem; font-size: .82rem; color: var(--muted); margin-bottom: 1.5rem; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-online  { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse-green 2s infinite; }
.dot-offline { background: var(--red); }
.dot-loading { background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: pulse-green 1s infinite; }
@keyframes pulse-green { 0%,100% { box-shadow: 0 0 6px var(--green); } 50% { box-shadow: 0 0 14px var(--green); } }

.hero-title { font-family: 'Rajdhani', sans-serif; font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 700; line-height: 1; letter-spacing: .03em; margin-bottom: 1rem; }
.hero-tag    { color: var(--muted); }
.hero-accent { background: linear-gradient(135deg, var(--blue-light), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 540px; margin-bottom: 2rem; }

.hero-stats { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.stat-pill { display: inline-flex; align-items: center; gap: .4rem; background: rgba(14,25,41,.9); border: 1px solid var(--border); border-radius: 999px; padding: .45rem 1rem; font-size: .9rem; font-weight: 600; }
.stat-val  { color: var(--blue-light); font-size: 1.1rem; }
.stat-sep  { color: var(--muted); }
.stat-max  { color: var(--muted); }
.stat-label { color: var(--muted); font-size: .8rem; }
.map-name  { color: var(--cyan); font-family: 'Rajdhani', monospace; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Features ────────────────────────────────────────────────────────────── */
.features-section { padding: 5rem 0; }
.text-center { text-align: center; }
.section-title { font-family: 'Rajdhani', sans-serif; font-size: 1.8rem; font-weight: 700; margin-bottom: 2rem; color: var(--text); }
.section-title::after { content: ''; display: block; width: 48px; height: 3px; background: var(--blue); border-radius: 2px; margin-top: .5rem; }
.text-center .section-title::after { margin: .5rem auto 0; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.5rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(59,130,246,.4); }
.feature-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.feature-card h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; color: var(--blue-light); }
.feature-card p { color: var(--muted); font-size: .9rem; }

/* ── Community ───────────────────────────────────────────────────────────── */
.community-section { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 5rem 0; }
.community-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.community-text p { color: var(--muted); margin-bottom: 1.5rem; }
.discord-placeholder { background: var(--bg-card2); border: 1px solid rgba(88,101,242,.3); border-radius: var(--radius); padding: 3rem; text-align: center; color: var(--muted); }
.discord-big { width: 64px; height: 64px; margin-bottom: 1rem; opacity: .5; }

/* ── Page hero (inner pages) ─────────────────────────────────────────────── */
.page-hero { background: linear-gradient(135deg, #0a1628 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); padding: 3rem 0; }
.page-title { font-family: 'Rajdhani', sans-serif; font-size: 2.5rem; font-weight: 700; margin-bottom: .5rem; }
.page-sub { color: var(--muted); }

/* ── Rules ───────────────────────────────────────────────────────────────── */
.rules-page { padding: 3rem 0 5rem; flex: 1; }
.rules-notice { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1rem 1.2rem; color: var(--gold); margin-bottom: 2rem; font-weight: 500; }
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.rule-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.rule-block--wide { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(34,211,238,.05)); border-color: rgba(59,130,246,.3); }
.rule-block h2 { font-family: 'Rajdhani', sans-serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; color: var(--blue-light); }
.rule-num { background: var(--blue); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; flex-shrink: 0; }
.rule-block ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.rule-block li { color: var(--muted); font-size: .9rem; padding-left: 1.2rem; position: relative; }
.rule-block li::before { content: '›'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.rule-block strong { color: var(--text); }
.rule-block em { color: var(--cyan); font-style: normal; }

/* ── WIP pages ───────────────────────────────────────────────────────────── */
.wip-page { display: flex; align-items: center; justify-content: center; flex: 1; padding: 4rem 0; }
.wip-box  { text-align: center; max-width: 480px; }
.wip-icon { font-size: 4rem; margin-bottom: 1.5rem; }
.wip-title { font-family: 'Rajdhani', sans-serif; font-size: 2.5rem; font-weight: 700; margin-bottom: .75rem; }
.wip-sub   { font-size: 1.1rem; color: var(--muted); margin-bottom: .5rem; }
.wip-detail { font-size: .9rem; color: var(--muted); }

/* ── Error page ──────────────────────────────────────────────────────────── */
.error-page { display: flex; align-items: center; justify-content: center; flex: 1; padding: 3rem 0; }
.error-box  { text-align: center; }
.error-code { font-family: 'Rajdhani', sans-serif; font-size: 3rem; font-weight: 700; color: var(--blue-light); margin-bottom: .5rem; }
.error-message { color: var(--muted); margin-bottom: 1.5rem; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 2rem 0; margin-top: auto; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; }
.footer-logo { font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; font-weight: 700; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: var(--blue-light); }
.footer-copy { color: var(--muted); font-size: .78rem; }

/* ── Shop page ───────────────────────────────────────────────────────────── */
.shop-page { padding: 2rem 0 4rem; }

.shop-login-prompt { display: flex; align-items: center; justify-content: center; min-height: 40vh; }
.login-box { text-align: center; max-width: 400px; }
.login-box h2 { font-family: 'Rajdhani', sans-serif; font-size: 1.6rem; margin-bottom: .5rem; }
.login-box p { color: var(--muted); margin-bottom: 1.5rem; }
.login-icon { margin-bottom: 1.5rem; }
.steam-icon-big { width: 64px; height: 64px; color: var(--muted); opacity: .6; }

.shop-balance-bar { display: flex; align-items: center; justify-content: space-between; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.5rem; margin-bottom: 2rem; }
.balance-info { display: flex; align-items: center; gap: .75rem; }
.balance-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--blue); }
.balance-name { font-weight: 600; font-size: 1rem; }
.balance-vip-badge { background: linear-gradient(135deg, #f59e0b, #eab308); color: #1a1a1a; font-size: .7rem; font-weight: 700; padding: .15rem .55rem; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; }
.balance-coins { display: flex; align-items: center; gap: .5rem; }
.balance-coin-icon { font-size: 1.4rem; }
.balance-amount { font-family: 'Rajdhani', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--gold); }
.balance-label { color: var(--muted); font-size: .85rem; }

.shop-steps { display: flex; align-items: center; justify-content: center; gap: 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.step { display: flex; align-items: flex-start; gap: .75rem; }
.step-num { background: var(--blue); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; flex-shrink: 0; }
.step-text { display: flex; flex-direction: column; }
.step-text strong { font-size: .9rem; }
.step-text span { font-size: .78rem; color: var(--muted); }
.step-arrow { color: var(--muted); font-size: 1.3rem; }

.shop-packs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.pack-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s; }
.pack-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(59,130,246,.4); }
.pack-card--vip { border-color: rgba(245,158,11,.4); background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(234,179,8,.04)); }
.pack-card--vip:hover { border-color: rgba(245,158,11,.7); box-shadow: 0 8px 32px rgba(245,158,11,.2); }
.pack-coins { font-family: 'Rajdhani', sans-serif; font-size: 2.5rem; font-weight: 700; color: var(--blue-light); line-height: 1; }
.pack-card--vip .pack-coins { color: var(--gold); }
.pack-name { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.pack-price { font-family: 'Rajdhani', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 1.25rem; }
.pack-vip-star { font-size: 2rem; color: var(--gold); margin-bottom: .25rem; }
.btn-gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }

.shop-catalog-desc { color: var(--muted); font-size: .9rem; margin-bottom: 1.25rem; }
.shop-catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .75rem; margin-bottom: 2rem; }
.catalog-item { display: flex; align-items: center; gap: .75rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: .75rem 1rem; font-size: .9rem; }
.catalog-item span:nth-child(2) { flex: 1; }
.cat-icon { font-size: 1.2rem; width: 24px; text-align: center; flex-shrink: 0; }
.cat-price { color: var(--gold); font-weight: 600; font-size: .85rem; white-space: nowrap; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .community-inner { grid-template-columns: 1fr; gap: 2rem; }
  .community-card { display: none; }
  .hero { min-height: 60vh; }
  .shop-steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .shop-balance-bar { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 500px) {
  .header-inner { gap: .5rem; }
  .hero-actions { flex-direction: column; }
}
