/* ═══════════════════════════════════════════════════
   EVO NETWORK — Shared Stylesheet
   All pages import this file.
═══════════════════════════════════════════════════ */

/* ─── Tokens ──────────────────────────────────────── */
:root {
  --stone:       #0c0c0c;
  --slab:        #141414;
  --panel:       #1c1c1c;
  --seam:        #2c2c2c;
  --seam-light:  #3a3a3a;
  --marble-mid:  #5a5a5a;
  --steel:       #8a8a8a;
  --muted:       #a0a0a0;
  --body:        #c8c8c8;
  --bright:      #eeeeee;
  --white:       #ffffff;

  --green:       #4ade80;
  --green-bg:    rgba(34,197,94,0.10);
  --green-border:rgba(34,197,94,0.40);
  --red:         #e08080;
  --red-bg:      rgba(220,80,80,0.10);
  --red-border:  rgba(220,80,80,0.38);

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;

  --font-display:'Cormorant Garamond', Georgia, serif;
  --font-body:   'Inter', system-ui, sans-serif;
  --transition:  0.22s ease;
}

/* ─── Reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--stone); color: var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ─── Grid overlay ────────────────────────────────── */
body::before {
  content: ""; position: fixed; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 60px);
  pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.nav, main, .footer, .login-overlay { position: relative; z-index: 1; }

/* ─── Navigation ──────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 0 20px 0 7%; height: 64px; background: rgba(12,12,12,0.93); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--seam); }
.logo { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--white); }
.logo-mark { width: 36px; height: 36px; border: 1px solid var(--seam-light); border-radius: 4px; overflow: hidden; flex-shrink: 0; background: var(--panel); }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--steel); }
.nav-links a { transition: color var(--transition); padding: 4px 0; border-bottom: 1px solid transparent; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--white); border-bottom-color: var(--seam-light); outline: none; }
.nav-links a.active { color: var(--bright); border-bottom-color: var(--seam-light); }
.login-btn { border: 1px solid rgba(255,248,220,0.30); background: rgba(255,248,220,0.06); color: #f5f0dc; padding: 8px 18px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.login-btn:hover, .login-btn:focus-visible { background: rgba(255,248,220,0.12); border-color: rgba(255,248,220,0.55); color: #fffaed; outline: none; }
.login-btn.authed { border-color: var(--seam-light); background: var(--panel); color: var(--bright); padding: 6px 16px; letter-spacing: 0.5px; text-transform: none; font-size: 13px; font-weight: 500; min-width: 180px; max-width: 260px; justify-content: center; overflow: hidden; }
.login-btn.authed:hover { background: rgba(255,255,255,0.05); border-color: var(--steel); }

/* ─── Games dropdown ──────────────────────────────── */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-btn { background: none; border: none; border-bottom: 1px solid transparent; padding: 4px 0; font-size: 13px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--steel); cursor: pointer; display: flex; align-items: center; gap: 5px; transition: color var(--transition), border-color var(--transition); line-height: 1; }
.nav-dropdown-btn .chevron { font-size: 8px; transition: transform var(--transition); display: inline-block; }
.nav-dropdown-btn:hover, .nav-dropdown-btn:focus-visible { color: var(--white); outline: none; }
.nav-dropdown.open .nav-dropdown-btn { color: var(--white); }
.nav-dropdown.open .chevron { transform: rotate(180deg); }
.nav-dropdown-menu { display: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--seam-light); border-radius: var(--radius-md); overflow: hidden; min-width: 172px; z-index: 200; box-shadow: 0 16px 48px rgba(0,0,0,0.7); }
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--steel); transition: background var(--transition), color var(--transition); border-bottom: 1px solid var(--seam); }
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.04); color: var(--white); }
.nav-dropdown-menu .menu-status { font-size: 8px; padding: 2px 7px; border-radius: 2px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.nav-dropdown-menu .ms-live    { background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green); }
.nav-dropdown-menu .ms-planned { background: rgba(238,238,238,0.88); color: #2a2a2a; }

/* ─── Buttons ─────────────────────────────────────── */
.btn { display: inline-block; padding: 13px 28px; font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; border-radius: var(--radius-sm); transition: var(--transition); border: 1px solid transparent; }
.btn-primary { background: var(--white); color: var(--stone); border-color: var(--white); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--bright); transform: translateY(-1px); outline: none; }
.btn-ghost { background: transparent; color: var(--bright); border-color: var(--seam-light); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--panel); border-color: var(--steel); color: var(--white); outline: none; }

/* ─── Facade Divider ──────────────────────────────── */
.facade-divider { width: 100%; height: 64px; background: repeating-linear-gradient(90deg, transparent 0px, transparent 11px, rgba(255,255,255,0.04) 11px, rgba(255,255,255,0.04) 12px); border-top: 1px solid var(--seam); border-bottom: 1px solid var(--seam); position: relative; overflow: hidden; }
.facade-divider::after { content: attr(data-label); position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 9px; font-weight: 600; letter-spacing: 5px; text-transform: uppercase; color: var(--seam-light); background: var(--stone); padding: 0 20px; white-space: nowrap; }

/* ─── Section shell ───────────────────────────────── */
.section { padding: 80px 7%; }
.section-header { display: flex; align-items: baseline; gap: 20px; margin-bottom: 44px; padding-bottom: 18px; border-bottom: 1px solid var(--seam); flex-wrap: wrap; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 46px); font-weight: 600; color: var(--white); letter-spacing: -0.5px; text-transform: uppercase; }
.section-label { font-size: 10px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; color: var(--marble-mid); }
.section-sub { color: var(--muted); font-size: 14px; font-weight: 300; line-height: 1.8; max-width: 580px; margin-bottom: 36px; }

/* ─── Badges ──────────────────────────────────────── */
.badge { padding: 3px 9px; border-radius: 3px; font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; }
.badge-live    { background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green); }
.badge-private { background: var(--red-bg);   border: 1px solid var(--red-border);   color: var(--red); }
.badge-planned { background: rgba(238,238,238,0.92); border: 1px solid rgba(238,238,238,0.60); color: #2a2a2a; }

/* ─── Server table ────────────────────────────────── */
.server-table { display: flex; flex-direction: column; gap: 10px; }
.server-game-group { border: 1px solid var(--seam); border-radius: var(--radius-md); overflow: hidden; }
.server-game-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: var(--panel); border-bottom: 1px solid var(--seam); }
.server-game-name { font-size: 16px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--white); }
.server-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 24px; border-bottom: 1px solid var(--seam); transition: background var(--transition); }
.server-row:last-child { border-bottom: none; }
.server-row:hover { background: rgba(255,255,255,0.018); }
.server-info { flex: 1; min-width: 0; }
.server-name-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.server-name { font-size: 14px; font-weight: 500; color: var(--bright); }
.server-meta { font-size: 12px; font-weight: 300; color: var(--marble-mid); }

/* ─── Copy button ─────────────────────────────────── */
.copy-btn { border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.05); color: #e8e8e8; padding: 9px 16px; border-radius: var(--radius-sm); font-size: 9px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; transition: var(--transition); }
.copy-btn:hover, .copy-btn:focus-visible { border-color: rgba(255,255,255,0.50); color: #ffffff; background: rgba(255,255,255,0.10); outline: none; transform: translateY(-1px); }
.copy-btn.copied { border-color: var(--green-border); color: var(--green); background: var(--green-bg); }

/* ─── Rules tabs ──────────────────────────────────── */
.rules-tabs { display: flex; gap: 0; margin-bottom: 0; border: 1px solid var(--seam); border-bottom: none; border-radius: var(--radius-md) var(--radius-md) 0 0; overflow: hidden; }
.rules-tab { padding: 13px 24px; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--marble-mid); background: var(--panel); border: none; border-right: 1px solid var(--seam); transition: var(--transition); cursor: pointer; }
.rules-tab:last-child { border-right: none; }
.rules-tab:hover { color: var(--bright); background: rgba(255,255,255,0.03); }
.rules-tab.active { color: var(--white); background: var(--slab); border-bottom: 2px solid var(--white); }
.rules-panel { display: none; }
.rules-panel.active { display: block; }
.rules-table { border: 1px solid var(--seam); border-radius: 0 0 var(--radius-md) var(--radius-md); overflow: hidden; }
.rule-row { display: grid; grid-template-columns: 52px 1fr; border-bottom: 1px solid var(--seam); transition: background var(--transition); }
.rule-row:last-child { border-bottom: none; }
.rule-row:hover { background: rgba(255,255,255,0.015); }
.rule-num { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--seam-light); border-right: 1px solid var(--seam); background: var(--panel); }
.rule-content { padding: 22px 26px; }
.rule-title { font-size: 13px; font-weight: 600; color: var(--bright); letter-spacing: 0.5px; margin-bottom: 4px; }
.rule-desc { font-size: 13px; font-weight: 300; color: var(--marble-mid); line-height: 1.65; }

/* ─── Pillars ─────────────────────────────────────── */
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--seam); border-radius: var(--radius-md); overflow: hidden; }
.pillar { padding: 40px 32px; border-right: 1px solid var(--seam); transition: background var(--transition); position: relative; overflow: hidden; }
.pillar:last-child { border-right: none; }
.pillar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent); opacity: 0; transition: opacity var(--transition); }
.pillar:hover { background: rgba(255,255,255,0.02); }
.pillar:hover::before { opacity: 1; }
.pillar-index { font-family: var(--font-display); font-size: 48px; font-weight: 600; color: var(--seam-light); line-height: 1; margin-bottom: 20px; }
.pillar-title { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--bright); margin-bottom: 12px; }
.pillar-desc { font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.8; }

/* ─── Stats bar ───────────────────────────────────── */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--seam); border-radius: var(--radius-md); overflow: hidden; }
.stat-item { padding: 32px 28px; border-right: 1px solid var(--seam); text-align: center; }
.stat-item:last-child { border-right: none; }
.stat-value { font-family: var(--font-display); font-size: 42px; font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--marble-mid); }

/* ─── Team grid ───────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.team-card { border: 1px solid var(--seam); border-radius: var(--radius-md); overflow: hidden; background: var(--panel); transition: background var(--transition); }
.team-card:hover { background: rgba(255,255,255,0.03); }
.team-card-top { height: 6px; background: var(--seam-light); }
.team-card-body { padding: 24px 20px; }
.team-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--seam-light); border: 1px solid var(--seam); margin-bottom: 14px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--steel); }
.team-name { font-size: 14px; font-weight: 600; color: var(--bright); margin-bottom: 4px; }
.team-role { font-size: 10px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--marble-mid); }

/* ─── Announcements ───────────────────────────────── */
.announce-list { display: flex; flex-direction: column; gap: 10px; }
.announce-card { border: 1px solid var(--seam); border-radius: var(--radius-md); overflow: hidden; display: grid; grid-template-columns: 80px 1fr; }
.announce-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--panel); border-right: 1px solid var(--seam); padding: 20px 12px; text-align: center; gap: 2px; }
.announce-day { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--white); line-height: 1; }
.announce-month { font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--marble-mid); }
.announce-body { padding: 20px 24px; }
.announce-tag { font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--marble-mid); margin-bottom: 6px; }
.announce-title { font-size: 14px; font-weight: 600; color: var(--bright); margin-bottom: 6px; }
.announce-desc { font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.65; }

/* ─── How to connect ──────────────────────────────── */
.connect-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--seam); border-radius: var(--radius-md); overflow: hidden; }
.connect-step { padding: 36px 30px; border-right: 1px solid var(--seam); position: relative; }
.connect-step:last-child { border-right: none; }
.connect-step-num { font-family: var(--font-display); font-size: 52px; font-weight: 700; color: var(--seam); line-height: 1; margin-bottom: 16px; }
.connect-step-title { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--bright); margin-bottom: 10px; }
.connect-step-desc { font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.7; }

/* ─── Donate ──────────────────────────────────────── */
.donate-inner { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--seam); border-radius: var(--radius-md); overflow: hidden; max-width: 900px; }
.donate-left { padding: 48px; border-right: 1px solid var(--seam); }
.donate-left h3 { font-family: var(--font-display); font-size: 34px; font-weight: 600; color: var(--white); line-height: 1.1; margin-bottom: 14px; text-transform: uppercase; }
.donate-left p { font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.8; }
.donate-right { padding: 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; background: rgba(255,255,255,0.012); }
.donate-detail { font-size: 11px; font-weight: 300; letter-spacing: 1px; color: var(--marble-mid); line-height: 1.7; }

/* ─── Sub-page hero ───────────────────────────────── */
.sub-hero { padding: 80px 7% 72px; border-bottom: 1px solid var(--seam); position: relative; overflow: hidden; }
.sub-hero::after { content: ""; position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: radial-gradient(ellipse at right, rgba(255,255,255,0.04) 0%, transparent 70%); pointer-events: none; }
.sub-hero-back { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--marble-mid); margin-bottom: 32px; transition: color var(--transition); }
.sub-hero-back:hover { color: var(--bright); }
.sub-hero-back::before { content: "←"; font-size: 12px; }
.sub-hero-eyebrow { font-size: 10px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--steel); margin-bottom: 16px; }
.sub-hero h1 { font-family: var(--font-display); font-size: clamp(48px, 8vw, 96px); font-weight: 700; line-height: 0.9; color: var(--white); text-transform: uppercase; letter-spacing: -2px; margin-bottom: 24px; }
.sub-hero-desc { max-width: 560px; font-size: 15px; font-weight: 300; color: var(--muted); line-height: 1.8; margin-bottom: 32px; }
.sub-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ─── Footer ──────────────────────────────────────── */
.footer { padding: 26px 7%; border-top: 1px solid var(--seam); background: var(--slab); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 11px; letter-spacing: 1px; color: var(--marble-mid); }
.footer a { color: var(--marble-mid); transition: color var(--transition); }
.footer a:hover { color: var(--bright); }

/* ─── Login Modal ─────────────────────────────────── */
body.modal-open { overflow: hidden; }
body.modal-open .nav, body.modal-open main, body.modal-open .footer { filter: blur(6px); pointer-events: none; user-select: none; }
.login-overlay { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,0.65); }
.login-overlay.active { display: flex; }
.login-modal { position: relative; width: min(460px, 92vw); background: var(--panel); border: 1px solid var(--seam-light); border-radius: var(--radius-lg); padding: 44px 40px 40px; box-shadow: 0 0 80px rgba(0,0,0,0.8); }
.login-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 1px solid var(--seam-light); border-radius: var(--radius-sm); background: transparent; color: var(--steel); font-size: 16px; display: grid; place-items: center; transition: var(--transition); }
.login-close:hover, .login-close:focus-visible { border-color: var(--steel); color: var(--white); outline: none; }
.login-modal h2 { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.modal-sub { font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.6; margin-bottom: 32px; }
.modal-coming-soon { border: 1px solid var(--seam); border-radius: var(--radius-md); padding: 28px; text-align: center; color: var(--marble-mid); font-size: 13px; font-weight: 300; line-height: 1.8; background: rgba(255,255,255,0.02); }
.modal-icon { font-size: 28px; display: block; margin-bottom: 10px; filter: grayscale(1); }

/* ─── S&box Hero Decoration ───────────────────────── */
.sbox-hero-deco { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: clamp(380px, 42vw, 560px); pointer-events: none; user-select: none; }
.sbox-hero-deco svg { width: 100%; height: auto; display: block; }
.minecraft-deco { width: clamp(520px, 58vw, 780px); }
@media (max-width: 900px) { .sbox-hero-deco { opacity: 0.4; right: 2%; width: 300px; } .minecraft-deco { width: 420px; } }
@media (max-width: 600px) { .sbox-hero-deco { display: none; } }

/* ─── Logout Prompt ───────────────────────────────── */
.logout-prompt { position: absolute; top: calc(100% + 12px); right: 0; left: auto; transform: none; background: var(--panel); border: 1px solid var(--seam-light); border-radius: var(--radius-md); padding: 0; min-width: 280px; z-index: 200; box-shadow: 0 16px 48px rgba(0,0,0,0.7); display: none; overflow: hidden; }
.logout-prompt.open { display: block; }
.logout-prompt-user { display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px; }
.logout-prompt-avatar { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--seam-light); flex-shrink: 0; }
.logout-prompt-name { font-size: 14px; font-weight: 600; color: var(--bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logout-prompt-label { font-size: 10px; font-weight: 400; color: var(--marble-mid); letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }
.logout-prompt-divider { height: 1px; background: var(--seam); margin: 0; }
.logout-prompt-stats { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.logout-stat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logout-stat-label { font-size: 11px; font-weight: 400; color: var(--muted); }
.logout-stat-value { font-size: 12px; font-weight: 600; color: var(--bright); text-align: right; }
.logout-stat-value.loading { color: var(--marble-mid); font-weight: 300; font-style: italic; }
.logout-prompt-actions { display: flex; flex-direction: column; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--seam); }
.logout-confirm-btn { width: 100%; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; border: 1px solid var(--red-border); background: var(--red-bg); color: var(--red); transition: var(--transition); }
.logout-confirm-btn:hover { background: rgba(220,80,80,0.18); }
.logout-stay-btn { width: 100%; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; border: 1px solid var(--seam-light); background: transparent; color: var(--muted); transition: var(--transition); }
.logout-stay-btn:hover { background: var(--panel); color: var(--bright); }

/* ─── Steam Login Button ──────────────────────────── */
.steam-login-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 14px 20px; background: #1b2838; border: 1px solid #2a475e; border-radius: var(--radius-sm); color: #c6d4df; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; text-decoration: none; transition: var(--transition); margin-bottom: 14px; }
.steam-login-btn:hover { background: #2a475e; border-color: #66c0f4; color: #ffffff; }
.steam-icon { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
.modal-steam-note { font-size: 11px; font-weight: 300; color: var(--marble-mid); text-align: center; line-height: 1.6; }

/* ─── Custom Addons Section ───────────────────────── */
.addon-list { display: flex; flex-direction: column; border: 1px solid var(--seam); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 0; }
.addon-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; border-bottom: 1px solid var(--seam); transition: background var(--transition); }
.addon-item:last-child { border-bottom: none; }
.addon-item:hover { background: rgba(255,255,255,0.02); }
.addon-item-left { display: flex; align-items: center; gap: 20px; flex: 1; min-width: 0; }
.addon-num { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--seam-light); flex-shrink: 0; width: 32px; }
.addon-name { font-size: 14px; font-weight: 600; color: var(--bright); margin-bottom: 4px; }
.addon-desc { font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.6; }
.showcase-header { margin-top: 48px; margin-bottom: 16px; }

/* ─── Image Carousel ──────────────────────────────── */
.carousel-track-wrapper { width: 100%; overflow: hidden; position: relative; margin: 0 -7%; width: calc(100% + 14%); }
.carousel-track-wrapper::before,
.carousel-track-wrapper::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.carousel-track-wrapper::before { left: 0; background: linear-gradient(to right, var(--slab), transparent); }
.carousel-track-wrapper::after { right: 0; background: linear-gradient(to left, var(--slab), transparent); }
.carousel-track { display: flex; gap: 16px; padding: 0 7%; animation: carousel-scroll 30s linear infinite; width: max-content; }
.carousel-track:hover { animation-play-state: paused; }
@keyframes carousel-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.carousel-slide { flex-shrink: 0; width: 320px; height: 200px; border: 1px solid var(--seam); border-radius: var(--radius-md); overflow: hidden; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-placeholder { width: 100%; height: 100%; background: var(--panel); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--marble-mid); border-radius: var(--radius-md); }

/* ─── Video Showcase ──────────────────────────────── */
.video-wrapper { max-width: 860px; }
.video-label { margin-bottom: 14px; }
.video-placeholder { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--seam); border-radius: var(--radius-md); overflow: hidden; background: var(--panel); display: flex; align-items: center; justify-content: center; }
.video-placeholder-inner { text-align: center; }
.video-play-icon { font-size: 36px; color: var(--seam-light); margin-bottom: 14px; display: block; }
.video-placeholder-text { font-size: 14px; font-weight: 600; color: var(--bright); letter-spacing: 1px; margin-bottom: 6px; }
.video-placeholder-sub { font-size: 12px; font-weight: 300; color: var(--marble-mid); }
.video-embed { width: 100%; aspect-ratio: 16/9; border: none; border-radius: var(--radius-md); display: block; }

/* ─── Rules Accordion ─────────────────────────────── */
.rules-accordion { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--seam); border-radius: var(--radius-md); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--seam); }
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; background: var(--panel); border: none; cursor: pointer; transition: background var(--transition); gap: 16px; text-align: left; }
.accordion-trigger:hover { background: rgba(255,255,255,0.03); }
.accordion-trigger[aria-expanded="true"] { background: rgba(255,255,255,0.04); border-bottom: 1px solid var(--seam); }
.accordion-title { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--bright); }
.accordion-chevron { font-size: 12px; color: var(--marble-mid); flex-shrink: 0; transition: transform var(--transition); }
.accordion-trigger[aria-expanded="true"] .accordion-chevron { transform: rotate(180deg); }
.accordion-body { padding: 24px 28px; background: var(--slab); display: none; }
.rule-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rule-list li { font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.65; padding-left: 16px; position: relative; }
.rule-list li::before { content: "—"; position: absolute; left: 0; color: var(--seam-light); }
.rule-sub-title { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--bright); margin: 18px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--seam); }
.rule-sub-title:first-child { margin-top: 0; }
.rule-note { font-size: 12px; font-weight: 300; color: var(--marble-mid); line-height: 1.7; padding: 14px 18px; border: 1px solid var(--seam); border-radius: var(--radius-sm); background: rgba(255,255,255,0.015); }

/* ─── Server Status Widget ────────────────────────── */
.status-widget { border: 1px solid var(--seam); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 10px; }
.status-widget-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: var(--panel); border-bottom: 1px solid var(--seam); }
.status-widget-name { font-size: 16px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--white); }
.status-widget-body { display: grid; grid-template-columns: repeat(4, 1fr); }
.status-stat { padding: 20px 24px; border-right: 1px solid var(--seam); }
.status-stat:last-child { border-right: none; }
.status-stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 5px; }
.status-stat-label { font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--marble-mid); }
.status-stat-value.loading { color: var(--seam-light); font-size: 20px; }
.status-stat-value.offline { color: var(--red); font-size: 16px; }

/* status indicator dot inside badge */
.badge-live .live-dot { display: inline-block; width: 5px; height: 5px; background: var(--green); border-radius: 50%; margin-right: 5px; animation: breathe 2s ease-in-out infinite; vertical-align: middle; }
.badge-offline { background: var(--red-bg); border: 1px solid var(--red-border); color: var(--red); }

/* last updated line */
.status-updated { font-size: 10px; font-weight: 400; letter-spacing: 1px; color: var(--marble-mid); padding: 10px 24px; background: rgba(255,255,255,0.012); border-top: 1px solid var(--seam); display: flex; align-items: center; justify-content: space-between; }
.status-updated a { color: var(--marble-mid); text-decoration: underline; text-underline-offset: 3px; transition: color var(--transition); }
.status-updated a:hover { color: var(--bright); }

@media (max-width: 720px) {
  .status-widget-body { grid-template-columns: repeat(2, 1fr); }
  .status-stat:nth-child(2) { border-right: none; }
  .status-stat:nth-child(3) { border-top: 1px solid var(--seam); }
  .status-stat:nth-child(4) { border-top: 1px solid var(--seam); border-right: none; }
}

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 960px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar { border-right: none; border-bottom: 1px solid var(--seam); }
  .pillar:last-child { border-bottom: none; }
  .donate-inner { grid-template-columns: 1fr; }
  .donate-left { border-right: none; border-bottom: 1px solid var(--seam); padding: 36px 28px; }
  .donate-right { padding: 32px 28px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--seam); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--seam); border-right: none; }
  .connect-steps { grid-template-columns: 1fr; }
  .connect-step { border-right: none; border-bottom: 1px solid var(--seam); }
  .connect-step:last-child { border-bottom: none; }
}
@media (max-width: 720px) {
  .nav { padding: 14px 5%; height: auto; flex-wrap: wrap; gap: 12px; }
  .nav-links { gap: 16px; font-size: 10px; flex-wrap: wrap; }
  .section { padding: 60px 5%; }
  .section-header { flex-direction: column; gap: 8px; align-items: flex-start; }
  .server-row { flex-direction: column; align-items: flex-start; }
  .login-modal { padding: 36px 24px 28px; }
  .rules-tab { padding: 11px 16px; font-size: 9px; }
  .sub-hero { padding: 56px 5% 52px; }
  .announce-card { grid-template-columns: 64px 1fr; }
}
@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
  .facade-divider::after { display: none; }
  .sub-hero h1 { letter-spacing: -1px; }
}
