/* ============================================================
   R2SNetwork — Main Site CSS
   Theme: Medieval-Modern Dark
   Fonts: Cinzel (headings) + Inter (body)
   ============================================================ */

/* ─── CSS Variables ─── */
:root {
  --bg-primary:   #07070d;
  --bg-secondary: #0d0d16;
  --bg-card:      #111120;
  --bg-card-hover:#161628;
  --bg-input:     #0e0e1a;
  --border:       rgba(201,162,39,0.18);
  --border-light: rgba(201,162,39,0.08);
  --gold:         #C9A227;
  --gold-light:   #E8C547;
  --gold-dim:     #8C6E1A;
  --red:          #8B1A1A;
  --red-light:    #C0392B;
  --red-bright:   #E74C3C;
  --green:        #27ae60;
  --blue:         #2980b9;
  --purple:       #8e44ad;
  --text-primary: #E8E0D0;
  --text-secondary:#A89880;
  --text-muted:   #6B5E50;
  --shadow:       0 4px 24px rgba(0,0,0,0.6);
  --shadow-gold:  0 0 20px rgba(201,162,39,0.15);
  --radius:       10px;
  --radius-lg:    16px;
  --transition:   0.2s ease;
  --font-heading: 'Cinzel', serif;
  --font-body:    'Inter', sans-serif;
  --navbar-h:     70px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
::selection { background: rgba(201,162,39,0.3); color: var(--gold-light); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ─── Typography ─── */
h1,h2,h3,h4,h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { color: var(--text-secondary); line-height: 1.7; }

/* ─── Utility ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.text-gold  { color: var(--gold); }
.text-red   { color: var(--red-bright); }
.text-green { color: var(--green); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  cursor: pointer; border: none; transition: all 0.2s ease;
  white-space: nowrap; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red), #6B1010);
  color: #fff;
  box-shadow: 0 2px 12px rgba(139,26,26,0.4);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--red-light), var(--red)); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(139,26,26,0.5); color: #fff; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #0a0a12; font-weight: 700;
  box-shadow: 0 2px 12px rgba(201,162,39,0.3);
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); transform: translateY(-1px); color: #0a0a12; }
.btn-ghost {
  background: rgba(201,162,39,0.08); color: var(--gold);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(201,162,39,0.15); color: var(--gold-light); }
.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-discord { background: #5865F2; color: #fff; }
.btn-discord:hover { background: #4752C4; color: #fff; }
.btn-danger { background: var(--red-bright); color: #fff; }
.btn-danger:hover { background: #c0392b; color: #fff; }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #219a52; color: #fff; }
.btn-sm  { padding: 7px 16px; font-size: 0.82rem; }
.btn-lg  { padding: 14px 30px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ─── Forms ─── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 7px; font-size: 0.88rem; color: var(--text-secondary); font-weight: 500; }
.form-control {
  width: 100%; padding: 11px 16px;
  background: var(--bg-input); border: 1px solid var(--border-light);
  border-radius: var(--radius); color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,0.1); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-error { color: var(--red-bright); font-size: 0.8rem; margin-top: 5px; }
.form-hint { color: var(--text-muted); font-size: 0.78rem; margin-top: 5px; }

/* ─── Cards ─── */
.card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--border); box-shadow: var(--shadow-gold); }

/* ─── Badges ─── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-gold   { background: rgba(201,162,39,0.15); color: var(--gold); border: 1px solid rgba(201,162,39,0.3); }
.badge-red    { background: rgba(139,26,26,0.2); color: var(--red-bright); border: 1px solid rgba(192,57,43,0.3); }
.badge-green  { background: rgba(39,174,96,0.15); color: var(--green); border: 1px solid rgba(39,174,96,0.3); }
.badge-purple { background: rgba(142,68,173,0.15); color: #bb8fce; border: 1px solid rgba(142,68,173,0.3); }
.badge-blue   { background: rgba(41,128,185,0.15); color: #7fb3d3; border: 1px solid rgba(41,128,185,0.3); }
.badge-grey   { background: rgba(255,255,255,0.06); color: var(--text-muted); border: 1px solid rgba(255,255,255,0.1); }

/* ─── Role badges ─── */
.role-badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; font-weight: 700; text-transform: uppercase; }
.role-member   { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.role-vip      { background: rgba(39,174,96,0.2);   color: #2ecc71; }
.role-mvp      { background: rgba(41,128,185,0.2);  color: #5dade2; }
.role-elite    { background: rgba(142,68,173,0.2);  color: #bb8fce; }
.role-staff    { background: rgba(201,162,39,0.2);  color: var(--gold); }
.role-admin    { background: rgba(139,26,26,0.25);  color: var(--red-bright); }

/* ─── Ornament divider ─── */
.ornament-divider { display: flex; align-items: center; gap: 16px; padding: 20px 40px; opacity: 0.4; }
.ornament-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.ornament-diamond { color: var(--gold); font-size: 0.7rem; }

/* ─── Section ─── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: 52px; }
.section-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,162,39,0.1); color: var(--gold);
  border: 1px solid rgba(201,162,39,0.25); border-radius: 20px;
  padding: 6px 18px; font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.section-title { font-family: var(--font-heading); margin-bottom: 14px; }
.section-subtitle { color: var(--text-secondary); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ─── Navbar ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--navbar-h);
  background: rgba(7,7,13,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 36px; height: 36px; border-radius: 6px; }
.nav-brand-text { font-family: var(--font-heading); font-size: 1.15rem; color: var(--gold); font-weight: 700; }
.nav-center { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px; color: var(--text-secondary); font-size: 0.88rem;
  font-weight: 500; border-radius: 8px; transition: all var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; background: var(--gold); border-radius: 50%;
}
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-guest { display: flex; align-items: center; gap: 8px; }

/* Language switcher */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-light);
  border-radius: 8px; padding: 7px 12px; cursor: pointer;
  color: var(--text-secondary); font-size: 0.82rem; font-weight: 500;
  transition: all var(--transition);
}
.lang-btn:hover { border-color: var(--border); color: var(--text-primary); }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px;
  min-width: 160px; box-shadow: var(--shadow);
  display: none; flex-direction: column; gap: 2px; z-index: 100;
}
.lang-dropdown.open { display: flex; }
.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 6px; cursor: pointer;
  font-size: 0.85rem; color: var(--text-secondary);
  transition: all var(--transition);
}
.lang-option:hover, .lang-option.active { background: rgba(201,162,39,0.1); color: var(--gold); }

/* Notification bell */
.notif-btn {
  position: relative; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light); border-radius: 8px;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-secondary); transition: all var(--transition);
}
.notif-btn:hover { border-color: var(--border); color: var(--text-primary); }
.notif-badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--red-bright); color: #fff;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Profile nav dropdown */
.nav-profile { position: relative; }
.nav-profile-trigger {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.nav-profile-trigger:hover { border-color: var(--border); background: rgba(201,162,39,0.06); }
.nav-skin { width: 28px; height: 28px; border-radius: 4px; image-rendering: pixelated; }
.nav-username { font-size: 0.87rem; font-weight: 600; color: var(--text-primary); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-profile-trigger i { font-size: 0.7rem; color: var(--text-muted); }
.nav-profile-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px;
  min-width: 200px; box-shadow: var(--shadow); z-index: 100;
  display: none; flex-direction: column;
}
.nav-profile-dropdown.open { display: flex; }
.nav-profile-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 6px; font-size: 0.88rem; color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-profile-dropdown a:hover { background: rgba(201,162,39,0.08); color: var(--gold); }
.nav-profile-dropdown a i { width: 16px; text-align: center; }
.dropdown-divider { height: 1px; background: var(--border-light); margin: 4px 0; }

.mobile-toggle {
  display: none; background: none; border: 1px solid var(--border-light);
  border-radius: 8px; padding: 7px 10px; cursor: pointer; color: var(--text-primary);
}

/* ─── Hero ─── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding-top: var(--navbar-h);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(139,26,26,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(201,162,39,0.06) 0%, transparent 50%),
    linear-gradient(180deg, #07070d 0%, #0d0a0a 50%, #07070d 100%);
}
.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-overlay { position: absolute; inset: 0; z-index: 2; background: rgba(7,7,13,0.3); }
.hero-content {
  position: relative; z-index: 3; text-align: center; padding: 40px 24px;
  max-width: 800px;
}
.hero-logo { width: clamp(180px, 35vw, 320px); margin: 0 auto 28px; filter: drop-shadow(0 0 30px rgba(201,162,39,0.25)); }
.hero-title { font-size: clamp(2rem, 5.5vw, 3.6rem); margin-bottom: 18px; text-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: clamp(1rem, 2.5vw, 1.2rem); color: var(--text-secondary); max-width: 580px; margin: 0 auto 30px; }

.ip-bar {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(201,162,39,0.08); border: 1px solid var(--border);
  border-radius: 50px; padding: 12px 22px; margin-bottom: 32px; cursor: pointer;
  transition: all var(--transition); user-select: none;
}
.ip-bar:hover { background: rgba(201,162,39,0.14); border-color: var(--gold); }
.ip-bar i { color: var(--gold); }
.ip-text { font-family: 'Courier New', monospace; font-size: 1rem; color: var(--text-primary); font-weight: 600; }
.copy-btn {
  background: var(--gold); color: #0a0a12; padding: 3px 12px;
  border-radius: 20px; font-size: 0.75rem; font-weight: 700;
}

.hero-stats-row {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; margin-bottom: 32px;
}
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-stat i { color: var(--gold); font-size: 1.1rem; }
.hero-stat-value { font-family: var(--font-heading); font-size: 1.4rem; color: var(--text-primary); font-weight: 700; }
.hero-stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }

.hero-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3;
  color: var(--text-muted); animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ─── Features Grid ─── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { border-color: var(--border); box-shadow: var(--shadow-gold); transform: translateY(-3px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(139,26,26,0.15); border: 1px solid rgba(139,26,26,0.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 1.3rem; color: var(--gold);
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ─── Gamemodes Grid ─── */
.gamemodes-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px;
}
.gm-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 22px 20px;
  transition: all 0.3s ease; cursor: pointer; position: relative; overflow: hidden;
  text-decoration: none; display: block;
}
.gm-card:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); transform: translateY(-4px); }
.gm-card-icon {
  width: 48px; height: 48px; border-radius: 10px; margin-bottom: 14px;
  background: rgba(201,162,39,0.1); border: 1px solid rgba(201,162,39,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--gold);
}
.gm-card h3 { font-size: 0.98rem; margin-bottom: 8px; color: var(--text-primary); }
.gm-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.gm-card-players { display: flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 0.78rem; color: var(--green); }
.gm-card-players i { font-size: 0.7rem; }

/* ─── Steps ─── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 32px 24px; text-align: center;
  transition: all 0.3s ease; position: relative;
}
.step-card:hover { border-color: var(--border); box-shadow: var(--shadow-gold); }
.step-number {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-light));
  color: #fff; font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(139,26,26,0.4);
}
.step-icon { font-size: 2rem; color: var(--gold); margin: 12px 0 16px; }
.step-card h3 { font-size: 1rem; margin-bottom: 10px; }
.step-card p { font-size: 0.87rem; color: var(--text-muted); }

/* ─── Forum preview ─── */
.forum-preview { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .forum-preview { grid-template-columns: 1fr; } }
.forum-preview-list { display: flex; flex-direction: column; gap: 8px; }
.forum-preview-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 14px 18px;
  transition: all var(--transition); text-decoration: none;
}
.forum-preview-item:hover { border-color: var(--border); background: var(--bg-card-hover); }
.fpi-avatar { width: 40px; height: 40px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.fpi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fpi-avatar-placeholder { width: 40px; height: 40px; background: rgba(255,255,255,0.05); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.fpi-info { flex: 1; min-width: 0; }
.fpi-info h4 { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.fpi-meta { font-size: 0.78rem; color: var(--text-muted); }
.fpi-stats { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }
.fpi-stats span { display: flex; align-items: center; gap: 4px; }

.sidebar-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
}
.sidebar-card h4 { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border-light); font-size: 0.85rem; }
.stat-row:last-child { border-bottom: none; }
.stat-row span:last-child { font-weight: 600; color: var(--gold); }
.online-users-list { display: flex; flex-direction: column; gap: 8px; }
.online-user-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.online-user-item img { width: 24px; height: 24px; border-radius: 4px; image-rendering: pixelated; }
.online-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }

/* ─── Discord Banner ─── */
.discord-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(88,101,242,0.12), rgba(88,101,242,0.04));
  border: 1px solid rgba(88,101,242,0.3); border-radius: var(--radius-lg); padding: 32px 36px;
}
.discord-info { display: flex; align-items: center; gap: 20px; }
.discord-icon { font-size: 2.5rem; color: #5865F2; }
.discord-info h2 { margin-bottom: 6px; }
.discord-info p { color: var(--text-secondary); font-size: 0.95rem; }

/* ─── Store widget ─── */
.store-widget-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.store-item-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 20px; text-align: center;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.store-item-card:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); transform: translateY(-3px); }
.store-item-icon { font-size: 2rem; color: var(--gold); margin-bottom: 12px; }
.store-item-name { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.store-item-price { font-size: 1.1rem; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.store-item-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--red-bright); color: #fff;
  font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 4px;
}

/* ─── Footer ─── */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-light); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-img { width: 36px; border-radius: 6px; }
.footer-logo-text { font-family: var(--font-heading); font-size: 1.1rem; color: var(--gold); }
.footer-desc { font-size: 0.87rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-links-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); margin-bottom: 16px; }
.footer-links-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links-col ul li a { font-size: 0.87rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links-col ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border-light); padding-top: 24px; text-align: center; font-size: 0.82rem; color: var(--text-muted); }

/* ─── Toast ─── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 20px;
  min-width: 280px; max-width: 400px; transform: translateY(120px);
  transition: transform 0.3s ease; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
}
.toast.show { transform: translateY(0); }
.toast.success { border-color: var(--green); }
.toast.error   { border-color: var(--red-bright); }
.toast.info    { border-color: var(--gold); }
.toast-icon { font-size: 1.1rem; }
.toast.success .toast-icon { color: var(--green); }
.toast.error   .toast-icon { color: var(--red-bright); }
.toast.info    .toast-icon { color: var(--gold); }
.toast-text { flex: 1; font-size: 0.9rem; }

/* ─── Modal ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; max-width: 520px; width: 100%;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-header h3 { font-size: 1.1rem; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; padding: 4px; transition: color var(--transition); }
.modal-close:hover { color: var(--text-primary); }

/* ─── Tabs ─── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-light); margin-bottom: 28px; flex-wrap: wrap; }
.tab-btn {
  padding: 10px 18px; background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-family: var(--font-body); font-size: 0.88rem;
  font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ─── Loading ─── */
.loading-spinner { display: flex; align-items: center; gap: 10px; padding: 32px; justify-content: center; color: var(--text-muted); }
.spinner { width: 32px; height: 32px; border: 3px solid rgba(201,162,39,0.2); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Pagination ─── */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.page-btn {
  min-width: 36px; height: 36px; padding: 0 12px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 8px; cursor: pointer; color: var(--text-secondary);
  font-size: 0.85rem; transition: all var(--transition);
}
.page-btn:hover { border-color: var(--border); color: var(--text-primary); }
.page-btn.active { background: rgba(201,162,39,0.15); border-color: var(--gold); color: var(--gold); }

/* ─── Forum ─── */
.forum-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .forum-layout { grid-template-columns: 1fr; } }
.category-block { margin-bottom: 32px; }
.category-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: var(--bg-secondary);
  border: 1px solid var(--border-light); border-radius: var(--radius) var(--radius) 0 0;
}
.category-header h3 { font-size: 0.95rem; display: flex; align-items: center; gap: 10px; color: var(--gold); }
.category-header .cat-meta { font-size: 0.78rem; color: var(--text-muted); }
.topic-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: var(--bg-card);
  border: 1px solid var(--border-light); border-top: none;
  transition: background var(--transition);
}
.topic-row:hover { background: var(--bg-card-hover); }
.topic-row:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.topic-row-icon { color: var(--text-muted); font-size: 0.85rem; width: 18px; flex-shrink: 0; }
.topic-row-icon.pinned { color: var(--gold); }
.topic-row-icon.locked { color: var(--red-bright); }
.topic-info { flex: 1; min-width: 0; }
.topic-title { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); display: block; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic-title:hover { color: var(--gold); }
.topic-meta { font-size: 0.75rem; color: var(--text-muted); }
.topic-stats { display: flex; gap: 16px; flex-shrink: 0; }
.topic-stat { text-align: center; }
.topic-stat-val { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.topic-stat-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; }

/* Forum post cards */
.post-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px;
  display: grid; grid-template-columns: 180px 1fr;
}
@media (max-width: 700px) { .post-card { grid-template-columns: 1fr; } }
.post-author { background: var(--bg-secondary); border-right: 1px solid var(--border-light); padding: 20px 16px; text-align: center; }
.post-author-avatar { width: 60px; height: 60px; border-radius: 8px; margin: 0 auto 10px; image-rendering: pixelated; }
.post-author-name { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.post-author-stats { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; }
.post-body { padding: 20px 24px; }
.post-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; }
.post-content { font-size: 0.92rem; line-height: 1.7; color: var(--text-secondary); }
.post-content p { margin-bottom: 10px; }
.post-actions { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border-light); display: flex; gap: 10px; }
.post-action-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 0.8rem; display: flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 4px; transition: all var(--transition); }
.post-action-btn:hover { color: var(--gold); background: rgba(201,162,39,0.08); }
.reply-box { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 24px; margin-top: 16px; }
.reply-box h3 { font-size: 0.95rem; margin-bottom: 16px; }

/* ─── Profile Page ─── */
.profile-page { padding-top: var(--navbar-h); min-height: 100vh; }
.profile-banner { height: 220px; background: var(--bg-secondary); position: relative; overflow: hidden; border-bottom: 1px solid var(--border-light); }
.profile-banner img { width: 100%; height: 100%; object-fit: cover; }
.profile-banner-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7,7,13,0.8) 100%); }
.profile-banner-edit { position: absolute; bottom: 14px; right: 14px; background: rgba(0,0,0,0.6); border: 1px solid var(--border); border-radius: 8px; padding: 6px 14px; color: var(--text-secondary); font-size: 0.8rem; cursor: pointer; transition: all var(--transition); display: flex; align-items: center; gap: 6px; }
.profile-banner-edit:hover { color: var(--gold); border-color: var(--gold); }
.profile-header { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: flex-end; gap: 20px; transform: translateY(-48px); margin-bottom: -24px; flex-wrap: wrap; }
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar { width: 96px; height: 96px; border-radius: 12px; border: 3px solid var(--bg-primary); background: var(--bg-card); display: block; image-rendering: pixelated; }
.profile-avatar-edit { position: absolute; bottom: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); border: 2px solid var(--bg-primary); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.7rem; color: #0a0a12; }
.profile-info { flex: 1; min-width: 0; }
.profile-username { font-size: 1.5rem; margin-bottom: 4px; }
.profile-status-text { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 8px; }
.profile-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.profile-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.profile-body { max-width: 1100px; margin: 0 auto; padding: 0 24px 60px; }
.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-sidebar .card { margin-bottom: 18px; }
.profile-sidebar .card h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-secondary); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.mc-skin-display { display: flex; align-items: center; gap: 16px; padding: 12px; background: rgba(201,162,39,0.05); border: 1px solid var(--border-light); border-radius: 8px; }
.mc-head { width: 48px; height: 48px; border-radius: 4px; image-rendering: pixelated; }
.mc-info .mc-name { font-weight: 700; font-size: 0.95rem; }
.mc-info .mc-uuid { font-size: 0.72rem; color: var(--text-muted); font-family: monospace; }
.stat-grid-profile { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-item { background: rgba(255,255,255,0.03); border: 1px solid var(--border-light); border-radius: 8px; padding: 10px; text-align: center; }
.stat-item .stat-val { font-size: 1.1rem; font-weight: 700; color: var(--gold); display: block; }
.stat-item .stat-lbl { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; }
.social-links-list { display: flex; flex-direction: column; gap: 8px; }
.social-link-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-secondary); padding: 8px 10px; border-radius: 6px; background: rgba(255,255,255,0.03); transition: all var(--transition); }
.social-link-item:hover { color: var(--gold); background: rgba(201,162,39,0.08); }
.social-link-item i { width: 16px; text-align: center; }
.wall-post-form { display: flex; gap: 10px; margin-bottom: 20px; align-items: flex-end; }
.wall-post-form textarea { flex: 1; min-height: 60px; resize: none; }
.wall-post { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; transition: all var(--transition); }
.wall-post:hover { border-color: var(--border); }
.wall-post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wall-post-avatar { width: 36px; height: 36px; border-radius: 6px; image-rendering: pixelated; }
.wall-post-author { font-size: 0.88rem; font-weight: 600; }
.wall-post-time { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
.wall-post-content { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }
.wall-post-actions { margin-top: 8px; display: flex; gap: 8px; }
.wall-post-del { background: none; border: none; cursor: pointer; font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; transition: color var(--transition); }
.wall-post-del:hover { color: var(--red-bright); }
.friends-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.friend-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 16px 12px; text-align: center; transition: all var(--transition); }
.friend-card:hover { border-color: var(--border); }
.friend-avatar { width: 48px; height: 48px; border-radius: 8px; margin: 0 auto 8px; image-rendering: pixelated; }
.friend-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.friend-status { font-size: 0.72rem; color: var(--text-muted); }

/* ─── Auth pages ─── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse 70% 60% at 30% 50%, rgba(139,26,26,0.08) 0%, transparent 60%), radial-gradient(ellipse 50% 40% at 70% 50%, rgba(201,162,39,0.04) 0%, transparent 50%), var(--bg-primary); padding: calc(var(--navbar-h) + 40px) 24px 40px; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow); }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo img { width: 64px; border-radius: 8px; margin: 0 auto 10px; }
.auth-logo h2 { font-size: 1.4rem; margin-bottom: 6px; }
.auth-logo p { font-size: 0.88rem; color: var(--text-muted); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider span { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.87rem; color: var(--text-muted); }

/* ─── Admin Panel ─── */
.admin-page { padding-top: var(--navbar-h); min-height: 100vh; }
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--navbar-h)); }
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } }
.admin-sidebar { background: var(--bg-secondary); border-right: 1px solid var(--border-light); padding: 24px 16px; position: sticky; top: var(--navbar-h); height: calc(100vh - var(--navbar-h)); overflow-y: auto; }
.admin-sidebar-section-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); padding: 12px 12px 6px; font-family: var(--font-body); }
.admin-nav-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; background: none; border: none; cursor: pointer; color: var(--text-secondary); font-family: var(--font-body); font-size: 0.87rem; font-weight: 500; border-radius: 8px; transition: all var(--transition); text-align: left; }
.admin-nav-btn i { width: 18px; text-align: center; }
.admin-nav-btn:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.admin-nav-btn.active { background: rgba(201,162,39,0.12); color: var(--gold); }
.admin-nav-btn .btn-badge { margin-left: auto; background: var(--red-bright); color: #fff; font-size: 0.65rem; padding: 2px 6px; border-radius: 10px; }
.admin-content { padding: 32px; overflow-y: auto; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.admin-section-title { font-size: 1.2rem; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.stats-grid-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat-card .big-num { font-family: var(--font-heading); font-size: 2rem; color: var(--gold); margin: 6px 0; display: block; }
.stat-card .stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card .stat-icon { color: var(--text-muted); font-size: 1.2rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th { text-align: left; padding: 10px 14px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); border-bottom: 2px solid var(--border-light); }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--border-light); color: var(--text-secondary); vertical-align: middle; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.search-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.search-bar .form-control { max-width: 300px; }
.filter-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filter-select { padding: 7px 12px; background: var(--bg-input); border: 1px solid var(--border-light); border-radius: 8px; color: var(--text-secondary); font-size: 0.82rem; cursor: pointer; }
.filter-select:focus { outline: none; border-color: var(--gold); }

/* ─── Gamemode details page ─── */
.gamemode-hero { padding: calc(var(--navbar-h) + 48px) 0 48px; text-align: center; }
.gamemode-detail { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 24px; display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: start; }
@media (max-width: 700px) { .gamemode-detail { grid-template-columns: 1fr; } }
.gamemode-detail-icon { font-size: 4rem; color: var(--gold); text-align: center; padding: 24px; background: rgba(201,162,39,0.06); border-radius: var(--radius); }
.gamemode-detail h3 { font-size: 1.3rem; margin-bottom: 12px; }
.gamemode-detail p { margin-bottom: 12px; font-size: 0.92rem; }
.gamemode-detail ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.gamemode-detail ul li { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-secondary); }
.gamemode-detail ul li i { color: var(--gold); font-size: 0.75rem; }

/* ─── Rules page ─── */
.rules-page { padding: calc(var(--navbar-h) + 48px) 0 80px; }
.rule-section { margin-bottom: 36px; }
.rule-section h3 { font-size: 1rem; color: var(--gold); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.rule-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rule-item { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--text-secondary); }
.rule-num { flex-shrink: 0; width: 24px; height: 24px; background: rgba(139,26,26,0.2); border: 1px solid rgba(192,57,43,0.3); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: var(--red-bright); }

/* ─── Vote page ─── */
.vote-page { padding: calc(var(--navbar-h) + 48px) 0 80px; }
.vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 40px; }
.vote-site-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 28px 20px; text-align: center; transition: all 0.3s ease; }
.vote-site-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.vote-site-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: 14px; }
.vote-site-name { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.vote-site-desc { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 18px; }

/* ─── Animations ─── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .nav-center { display: none; }
  .nav-center.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--navbar-h); left: 0; right: 0;
    background: var(--bg-card); border-bottom: 1px solid var(--border);
    padding: 16px; z-index: 999; gap: 4px;
  }
  .mobile-toggle { display: flex; }
}
@media (max-width: 700px) {
  .hero-stats-row { gap: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .gamemodes-grid { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 28px 20px; }
  .profile-header { flex-wrap: wrap; }
  .profile-avatar { width: 72px; height: 72px; }
  .admin-sidebar { display: none; }
  .admin-layout { grid-template-columns: 1fr; }
  .discord-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .gamemodes-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
}
