/* ============================================
   RedShine - Premium Purple Dark Theme
   Apple-inspired clean design
   ============================================ */

:root {
  --bg-primary: #09090b;
  --bg-secondary: #0c0a13;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --purple: #a855f7;
  --purple-light: #c084fc;
  --purple-dark: #7c3aed;
  --purple-glow: rgba(168,85,247,0.3);
  --purple-subtle: rgba(168,85,247,0.08);
  --white: #ffffff;
  --green: #22c55e;
  --red: #ef4444;
  --gold: #eab308;
  --text-primary: #fafafa;
  --text-secondary: rgba(255,255,255,0.6);
  --text-muted: rgba(255,255,255,0.3);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-purple: 0 0 60px rgba(168,85,247,0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--purple-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--purple); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-purple { color: var(--purple); }
.text-white { color: var(--white); }
.text-red { color: var(--purple); }
.text-gold { color: var(--white); }
.text-green { color: var(--green); }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  font-family: var(--font); font-weight: 500; font-size: 0.9rem;
  border: 1px solid var(--border); border-radius: var(--radius-xs);
  cursor: pointer; transition: all var(--transition); text-decoration: none;
  color: var(--text-primary); background: var(--bg-card);
  backdrop-filter: blur(8px);
}
.btn:hover { background: var(--bg-card-hover); border-color: var(--border-hover); color: var(--white); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--purple); border-color: var(--purple);
  color: white; font-weight: 600;
  box-shadow: 0 0 20px rgba(168,85,247,0.3);
}
.btn-primary:hover { background: var(--purple-dark); border-color: var(--purple-dark); box-shadow: 0 0 30px rgba(168,85,247,0.4); color: white; }

.btn-gold {
  background: rgba(168,85,247,0.1); border-color: var(--purple);
  color: var(--purple-light);
}
.btn-gold:hover { background: rgba(168,85,247,0.2); color: var(--purple-light); }

.btn-outline { background: transparent; border-color: var(--border-hover); color: var(--text-secondary); }
.btn-outline:hover { background: var(--bg-card); border-color: var(--purple); color: var(--purple-light); }

.btn-microsoft { background: rgba(255,255,255,0.05); border-color: var(--border-hover); }
.btn-microsoft:hover { background: rgba(255,255,255,0.1); color: white; }

.btn-lg { padding: 14px 32px; font-size: 0.95rem; border-radius: var(--radius-sm); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; border-radius: 6px; }

.btn-green { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: var(--green); }
.btn-green:hover { background: rgba(34,197,94,0.2); }

/* ---- Navbar ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(9,9,11,0.8); backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border); padding: 0 24px;
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand { display: flex; align-items: center; }
.nav-logo { height: 60px; }
.nav-links { display: flex; align-items: center; list-style: none; gap: 0; }
.nav-link {
  padding: 8px 16px;
  font-size: 0.875rem; font-weight: 400;
  color: var(--text-secondary); transition: all var(--transition);
}
.nav-link:hover { color: var(--white); }
.btn-nav-login {
  background: var(--purple); color: white !important;
  padding: 6px 18px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 500;
  transition: all var(--transition);
}
.btn-nav-login:hover { background: var(--purple-dark); }
.nav-dashboard { display: flex; align-items: center; gap: 8px; }
.nav-avatar { width: 22px; height: 22px; border-radius: 4px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text-primary); border-radius: 2px; }

/* ---- Hero ---- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 120px 24px 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(168,85,247,0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(124,58,237,0.08) 0%, transparent 50%),
    var(--bg-primary);
}
.hero-video {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.hero-video video {
  position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%); object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(9, 9, 11, 0.7);
}
.hero-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-logo {
  height: 140px; margin-bottom: 32px;
  filter: drop-shadow(0 0 60px rgba(168,85,247,0.3));
  animation: float 6s ease-in-out infinite;
}
.hero-title {
  font-size: 3.5rem; font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--white) 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title .text-red {
  -webkit-text-fill-color: unset;
  color: #a855f7;
  animation: redPulse 5s ease-in-out infinite;
}
@keyframes redPulse {
  0%, 100% { color: #a855f7; }
  50% { color: #dc2626; }
}
.hero-title .text-gold {
  -webkit-text-fill-color: var(--white);
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 32px;
  max-width: 520px; margin-left: auto; margin-right: auto;
  line-height: 1.7;
}
.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-card); padding: 10px 24px;
  border: 1px solid var(--border); border-radius: 100px;
  margin-bottom: 32px; font-size: 0.85rem; color: var(--text-secondary);
  backdrop-filter: blur(8px);
}
.status-dot {
  width: 8px; height: 8px; background: var(--green); border-radius: 50%;
  box-shadow: 0 0 10px rgba(34,197,94,0.6); animation: pulse 2s infinite;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; color: var(--text-muted); }
.hero-features {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border);
}
.hero-feature {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-secondary); font-weight: 400;
}
.hero-feature i { color: var(--purple-light); font-size: 0.9rem; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ---- Sections ---- */
.section { padding: 96px 0; }
.section-dark {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: 2rem; font-weight: 700; letter-spacing: -0.02em;
  text-align: center; margin-bottom: 48px;
}
.section-title i { color: var(--purple-light); margin-right: 4px; }
.section-desc {
  font-size: 1rem; color: var(--text-secondary); max-width: 560px;
  margin: -24px auto 48px; text-align: center; line-height: 1.7;
}
.page-header {
  padding: 140px 24px 64px; text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(168,85,247,0.1) 0%, transparent 60%),
    var(--bg-primary);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 2.5rem; margin-bottom: 12px; letter-spacing: -0.03em; }
.page-header p { color: var(--text-secondary); font-size: 1.05rem; }

/* ---- Cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: all var(--transition); text-align: center;
  backdrop-filter: blur(8px); position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.card:hover { transform: translateY(-2px); border-color: var(--border-hover); background: var(--bg-card-hover); }
.card:hover::before { opacity: 1; }
.card-icon { font-size: 2rem; color: var(--purple-light); margin-bottom: 16px; }
.card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--white); font-weight: 600; }
.card h4 { font-size: 0.95rem; margin-bottom: 10px; color: var(--white); font-weight: 600; }
.card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 14px; line-height: 1.6; }
.card-gamemode:nth-child(2) .card-icon { color: var(--purple); }
.card-gamemode:nth-child(3) .card-icon { color: var(--purple-light); }

/* ---- Blog / News ---- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; }
.news-list { display: grid; gap: 16px; max-width: 800px; margin: 0 auto; }
.news-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: all var(--transition); position: relative;
  backdrop-filter: blur(8px); display: block; text-decoration: none; color: inherit; cursor: pointer;
}
.news-card:hover { color: inherit; }
.news-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.news-card.pinned { border-color: rgba(168,85,247,0.3); }
.news-card.pinned::after {
  content: 'PINNED'; position: absolute; top: 16px; right: 16px;
  background: var(--purple); color: white; font-size: 0.65rem; font-weight: 600;
  padding: 3px 10px; border-radius: 100px; letter-spacing: 0.05em;
}
.news-tag {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em;
  background: var(--purple); color: white; margin-bottom: 12px;
}
.news-tag.update { background: var(--green); color: #000; }
.news-tag.event { background: #8b5cf6; }
.news-tag.new { background: #06b6d4; color: #000; }
.news-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.news-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--white); font-weight: 600; }
.news-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.news-empty { text-align: center; padding: 64px 0; color: var(--text-muted); }
.news-empty i { font-size: 3rem; margin-bottom: 16px; display: block; }

/* ---- Stats Counter ---- */
.stats-counter {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 900px; margin: 0 auto;
}
.counter-item {
  text-align: center; padding: 28px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); backdrop-filter: blur(8px);
}
.counter-value { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.counter-value.red { color: var(--purple); }
.counter-value.gold { color: var(--purple-light); }
.counter-value.green { color: var(--green); }
.counter-value.diamond { color: #a78bfa; }
.counter-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* ---- Server Info Bar ---- */
.server-info-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px;
  max-width: 1000px; margin: 0 auto;
}
.info-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); backdrop-filter: blur(8px);
}
.info-item i { font-size: 1.2rem; color: var(--purple-light); min-width: 24px; text-align: center; }
.info-item .info-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.info-item .info-value { font-size: 0.9rem; color: var(--text-primary); font-weight: 500; }

/* ---- Feature Showcase ---- */
.features-showcase {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px;
}
.feature-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.feature-card .fc-icon { font-size: 1.5rem; min-width: 36px; text-align: center; }
.feature-card h4 { font-size: 0.95rem; color: var(--white); margin-bottom: 4px; font-weight: 600; }
.feature-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ---- Online Players Ticker ---- */
.player-ticker {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 12px 24px; display: flex; align-items: center; gap: 16px;
  max-width: 600px; margin: 0 auto 32px; border-radius: 100px;
  backdrop-filter: blur(8px);
}
.player-ticker-label { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; font-weight: 500; }
.player-ticker-list { font-size: 0.85rem; color: var(--green); overflow: hidden; white-space: nowrap; }

/* ---- CTA ---- */
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text h2 { font-size: 1.8rem; margin-bottom: 20px; }
.about-text p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.8; }
.about-image { text-align: center; }
.about-image img { max-width: 240px; filter: drop-shadow(0 0 60px rgba(168,85,247,0.3)); }

/* ---- Gamemodes ---- */
.gamemode-detail { display: flex; gap: 64px; align-items: center; }
.gamemode-detail.reverse { flex-direction: row-reverse; }
.gamemode-icon-lg {
  font-size: 4rem; color: var(--purple); min-width: 160px; text-align: center;
  opacity: 0.8;
}
.gamemode-detail.reverse .gamemode-icon-lg { color: var(--purple-light); }
.gamemode-info h2 { font-size: 1.8rem; margin-bottom: 8px; }
.gamemode-tagline { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 24px; }
.feature-list { display: grid; gap: 10px; }
.feature { display: flex; align-items: center; gap: 12px; color: var(--text-secondary); font-size: 0.9rem; }
.feature i { color: var(--purple-light); font-size: 0.8rem; }

/* ---- Rules ---- */
.rules-list { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.rule-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 24px;
  transition: all var(--transition); backdrop-filter: blur(8px);
}
.rule-card:hover { border-color: var(--border-hover); }
.rule-number {
  min-width: 40px; height: 40px;
  background: var(--purple); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; color: white; flex-shrink: 0;
}
.rule-content h3 { font-size: 1rem; margin-bottom: 6px; color: var(--white); font-weight: 600; }
.rule-content p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.rules-note {
  display: flex; gap: 16px; align-items: center; margin-top: 24px;
  padding: 20px; background: rgba(168,85,247,0.06); border: 1px solid rgba(168,85,247,0.2);
  border-radius: var(--radius-sm); max-width: 800px; margin-left: auto; margin-right: auto;
}
.rules-note i { color: var(--purple); font-size: 1.2rem; min-width: 24px; }
.rules-note p { color: var(--text-secondary); font-size: 0.9rem; }

/* ---- Team ---- */
.team-section { margin-bottom: 56px; }
.team-category { font-size: 1.4rem; margin-bottom: 8px; font-weight: 700; }
.team-category i { color: var(--purple-light); margin-right: 8px; }
.team-desc { color: var(--text-secondary); margin-bottom: 20px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.team-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; text-align: center;
  transition: all var(--transition); backdrop-filter: blur(8px);
}
.team-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.team-avatar { font-size: 3rem; color: var(--text-muted); margin-bottom: 12px; }
.team-avatar img { width: 56px; height: 56px; border-radius: 12px; }
.team-role {
  display: inline-block; padding: 3px 12px; border-radius: 100px;
  background: var(--purple); color: white;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.team-card h3 { font-size: 0.95rem; color: var(--white); font-weight: 600; }
.team-card p { color: var(--text-secondary); font-size: 0.85rem; }
.team-join {
  text-align: center; padding: 40px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); backdrop-filter: blur(8px);
}
.team-join h2 { font-size: 1.4rem; margin-bottom: 16px; }
.team-join p { color: var(--text-secondary); margin-bottom: 8px; line-height: 1.7; }

/* ---- Store ---- */
.coming-soon-icon { font-size: 3.5rem; color: var(--purple-light); margin-bottom: 24px; }
.coming-soon h2 { font-size: 2.2rem; margin-bottom: 16px; }
.coming-soon-text { font-size: 1.05rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto 48px; line-height: 1.7; }
.store-promise { margin-top: 48px; }
.store-promise h3 { font-size: 1.5rem; margin-bottom: 32px; }
.store-notify {
  margin-top: 48px; padding: 16px 28px;
  background: var(--bg-card); border: 1px solid rgba(168,85,247,0.3);
  border-radius: 100px; display: inline-block;
}
.store-notify i { color: var(--purple-light); margin-right: 8px; }
.store-notify p { color: var(--text-secondary); margin: 0; font-size: 0.9rem; }

/* ---- Login ---- */
.login-container { max-width: 480px; margin: 0 auto; }
.login-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 48px; text-align: center;
  backdrop-filter: blur(8px);
}
.login-logo { height: 64px; margin-bottom: 24px; }
.login-card h2 { font-size: 1.3rem; margin-bottom: 12px; }
.login-card > p { color: var(--text-secondary); margin-bottom: 32px; line-height: 1.6; }
.login-info { text-align: left; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.login-info h4 { font-size: 0.9rem; margin-bottom: 12px; color: var(--purple-light); }
.login-info ol { padding-left: 20px; color: var(--text-secondary); }
.login-info li { margin-bottom: 10px; font-size: 0.9rem; line-height: 1.5; }
.login-note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 24px;
  padding: 16px; background: rgba(34,197,94,0.05); border: 1px solid rgba(34,197,94,0.15);
  border-radius: var(--radius-xs);
}
.login-note i { color: var(--green); margin-top: 2px; }
.login-note p { color: var(--text-secondary); font-size: 0.85rem; margin: 0; text-align: left; line-height: 1.5; }

/* ---- Dashboard ---- */
.dashboard-grid { display: grid; gap: 24px; }
.dash-profile {
  display: flex; gap: 36px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  backdrop-filter: blur(8px); position: relative; overflow: hidden;
}
.dash-profile::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}
.dash-skin-img { height: 180px; }
.dash-info h2 { font-size: 1.6rem; margin-bottom: 8px; }
.dash-rank {
  display: inline-block; padding: 4px 14px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600;
}
.dash-rank.player { background: rgba(255,255,255,0.08); border: 1px solid var(--border); }
.dash-rank.vip { background: rgba(168,85,247,0.15); border: 1px solid rgba(168,85,247,0.3); color: var(--purple-light); }
.dash-rank.admin { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: var(--red); }
.dash-rank.moderator { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); color: var(--green); }
.dash-badge {
  display: inline-block; padding: 3px 12px; border-radius: 100px;
  background: rgba(168,85,247,0.1); border: 1px solid rgba(168,85,247,0.3);
  font-size: 0.75rem; color: var(--purple-light); margin-left: 8px; font-weight: 500;
}
.dash-stats {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; backdrop-filter: blur(8px);
}
.dash-stats h3 { margin-bottom: 20px; font-size: 1.1rem; }
.dash-stats h3 i { color: var(--purple-light); margin-right: 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat-card {
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  border-radius: var(--radius-xs); padding: 20px; text-align: center;
}
.stat-icon { font-size: 1.2rem; margin-bottom: 8px; }
.stat-icon .fa-arrow-up { color: var(--green); }
.stat-icon .fa-coins { color: var(--gold); }
.stat-icon .fa-clock { color: var(--purple-light); }
.stat-icon .fa-skull-crossbones { color: var(--red); }
.stat-icon .fa-heart-broken { color: #f87171; }
.stat-icon .fa-cubes { color: var(--green); }
.stat-value { font-size: 1.5rem; font-weight: 800; }
.stat-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.stats-note { margin-top: 16px; color: var(--text-muted); font-size: 0.8rem; }
.stats-note i { margin-right: 6px; }

/* Dashboard extras */
.dash-section {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; backdrop-filter: blur(8px);
}
.dash-section h3 { font-size: 1.1rem; margin-bottom: 20px; color: var(--white); }
.dash-section h3 i { color: var(--purple-light); margin-right: 8px; }
.dash-achievements { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.achievement {
  display: flex; gap: 12px; align-items: center; padding: 14px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: var(--radius-xs);
}
.achievement.locked { opacity: 0.35; }
.achievement .ach-icon { font-size: 1.3rem; min-width: 32px; text-align: center; }
.achievement .ach-name { font-size: 0.8rem; color: var(--purple-light); font-weight: 600; }
.achievement .ach-desc { font-size: 0.8rem; color: var(--text-muted); }
.dash-activity { list-style: none; }
.dash-activity li {
  padding: 12px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 12px; align-items: center; font-size: 0.85rem; color: var(--text-secondary);
}
.dash-activity li:last-child { border-bottom: none; }
.dash-activity .act-time { font-size: 0.75rem; color: var(--text-muted); min-width: 70px; font-weight: 500; }
.dash-activity .act-icon { color: var(--purple-light); min-width: 20px; }

/* ---- Error Pages ---- */
.error-page { padding: 200px 24px 100px; }
.error-code { font-size: 7rem; font-weight: 900; color: var(--purple); line-height: 1; letter-spacing: -0.04em; }
.error-page h2 { font-size: 1.6rem; margin: 16px 0; }
.error-page p { color: var(--text-secondary); margin-bottom: 32px; }
.error-detail {
  background: var(--bg-card); padding: 16px 20px; border: 1px solid var(--border);
  border-radius: var(--radius-xs); color: var(--red); font-size: 0.85rem;
  margin: 16px auto; max-width: 600px; text-align: left; font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 64px 0 0;
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 58px; margin-bottom: 12px; }
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; }
.footer-col h4 { font-size: 0.8rem; margin-bottom: 16px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }
.server-ip-footer { font-size: 0.9rem; color: var(--purple-light); margin-bottom: 8px; font-weight: 500; }
.footer-status { display: flex; align-items: center; gap: 8px; }
#footerPlayerCount { color: var(--text-secondary); font-size: 0.85rem; }
.footer-bottom {
  margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--border); text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(9,9,11,0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 16px;
  }
  .nav-links.active { display: flex; }
  .hero-title { font-size: 2.2rem; }
  .hero-logo { height: 100px; }
  .hero-features { flex-direction: column; gap: 12px; align-items: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { order: -1; }
  .gamemode-detail, .gamemode-detail.reverse { flex-direction: column; text-align: center; }
  .gamemode-icon-lg { min-width: unset; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-profile { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-counter { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .server-info-bar { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .page-header { padding: 120px 24px 48px; }
  .section-title { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-counter { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 1.8rem; }
}

/* ---- Copied Toast ---- */
.copy-toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--purple); color: white; padding: 12px 28px;
  font-size: 0.9rem; font-weight: 500; border-radius: 100px;
  box-shadow: 0 8px 32px rgba(168,85,247,0.4); z-index: 9999;
  transition: transform 0.3s ease; pointer-events: none;
}
.copy-toast.show { transform: translateX(-50%) translateY(0); }

/* ---- Downloads ---- */
.download-featured {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px; margin-bottom: 48px;
  position: relative; overflow: hidden; backdrop-filter: blur(8px);
}
.download-featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--purple-light), transparent);
}
.download-header { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; }
.download-icon { font-size: 2.5rem; color: var(--purple-light); min-width: 50px; text-align: center; }
.download-header h2 { font-size: 1.5rem; margin-bottom: 6px; }
.download-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.dl-tag {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 500;
  background: rgba(255,255,255,0.06); color: var(--text-secondary);
}
.dl-tag.mc { background: rgba(34,197,94,0.1); color: var(--green); }
.dl-tag.required { background: rgba(168,85,247,0.1); color: var(--purple-light); }
.download-desc { margin-bottom: 28px; }
.download-desc p { color: var(--text-secondary); line-height: 1.7; }
.download-features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px; margin-bottom: 32px;
}
.dl-feature {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  border-radius: var(--radius-xs); font-size: 0.85rem; color: var(--text-secondary);
}
.download-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.download-info {
  padding: 14px 18px; background: rgba(168,85,247,0.05);
  border: 1px solid rgba(168,85,247,0.15); border-radius: var(--radius-xs);
}
.download-info p { color: var(--text-secondary); font-size: 0.85rem; margin: 0; }

/* Install Guide */
.install-guide { margin-bottom: 48px; }
.install-tabs { display: flex; gap: 4px; margin-bottom: 24px; }
.install-tab {
  padding: 10px 28px; cursor: pointer;
  font-size: 0.85rem; font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-secondary);
  transition: all var(--transition);
}
.install-tab:hover { background: var(--bg-card-hover); color: var(--white); }
.install-tab.active { background: var(--purple); border-color: var(--purple); color: white; }

/* OS Tabs */
.os-tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.os-tab {
  padding: 8px 20px; cursor: pointer;
  font-size: 0.8rem; font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text-muted);
  transition: all var(--transition);
}
.os-tab i { margin-right: 6px; }
.os-tab:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.os-tab.active { background: rgba(168,85,247,0.15); border-color: rgba(168,85,247,0.3); color: var(--purple-light); }

/* Path Copy Box */
.path-box {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  border-radius: var(--radius-xs); padding: 10px 16px; margin-top: 8px;
  cursor: pointer; transition: all var(--transition);
}
.path-box:hover { border-color: var(--purple); }
.path-box code {
  font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.8rem; color: var(--purple-light);
  background: none; border: none; padding: 0;
}
.path-copy { color: var(--text-muted); font-size: 0.85rem; margin-left: 12px; }
.path-box:hover .path-copy { color: var(--purple-light); }

.install-steps { display: grid; gap: 10px; }
.install-step {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xs); backdrop-filter: blur(8px);
}
.step-num {
  min-width: 36px; height: 36px;
  background: var(--purple); border-radius: 10px;
  color: white; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.install-step h4 { font-size: 0.9rem; color: var(--white); margin-bottom: 4px; font-weight: 600; }
.install-step p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }
.install-step code {
  background: rgba(168,85,247,0.1); padding: 2px 8px; border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.8rem; color: var(--purple-light);
}
.install-step a { color: var(--purple-light); }
.install-step a:hover { color: var(--purple); }

/* FAQ */
.download-faq { margin-top: 48px; }
.faq-list { display: grid; gap: 10px; max-width: 800px; margin: 0 auto; }
.faq-item {
  padding: 20px 24px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-xs);
  backdrop-filter: blur(8px);
}
.faq-item h4 { font-size: 0.9rem; color: var(--text-primary); margin-bottom: 6px; font-weight: 600; }
.faq-item p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }
.faq-item strong { color: var(--purple-light); }

/* ---- Blog / Update Log ---- */
.blog-list { display: flex; flex-direction: column; gap: 16px; max-width: 860px; margin: 0 auto; }
.blog-card {
  display: flex; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all var(--transition); text-decoration: none; color: inherit;
}
.blog-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }
.blog-card.pinned { border-color: rgba(168,85,247,0.3); }
.blog-card-image { width: 240px; min-height: 160px; background-size: cover; background-position: center; flex-shrink: 0; }
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.blog-card-date { font-size: 0.8rem; color: var(--text-muted); }
.blog-card-title { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.blog-card-excerpt { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; flex: 1; }
.blog-card-link { color: var(--purple-light); font-size: 0.85rem; font-weight: 500; margin-top: 12px; }
.blog-card:hover .blog-card-link { color: var(--purple); }
.blog-card:hover .blog-card-link i { transform: translateX(4px); }
.blog-card-link i { transition: transform var(--transition); margin-left: 4px; }

/* ---- Individual Post ---- */
.post-wrapper { max-width: 780px; margin: 0 auto; }
.post-back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 24px; transition: color var(--transition); }
.post-back:hover { color: var(--purple-light); }
.post { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.post-title { font-size: 2rem; font-weight: 800; color: var(--white); line-height: 1.2; margin-bottom: 16px; }
.post-meta { display: flex; gap: 20px; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.post-meta i { margin-right: 6px; color: var(--purple); }
.post-hero { margin-bottom: 28px; border-radius: var(--radius-sm); overflow: hidden; }
.post-hero img { width: 100%; height: auto; display: block; }
.post-content { color: var(--text-secondary); font-size: 1rem; line-height: 1.8; }
.post-content h2 { color: var(--white); font-size: 1.4rem; font-weight: 700; margin: 28px 0 12px; }
.post-content h3 { color: var(--white); font-size: 1.15rem; font-weight: 600; margin: 24px 0 10px; }
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { margin: 0 0 16px 24px; }
.post-content li { margin-bottom: 6px; }
.post-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 16px 0; }
.post-content strong { color: var(--white); }
.post-content code { background: rgba(168,85,247,0.15); color: var(--purple-light); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.post-content blockquote { border-left: 3px solid var(--purple); padding: 12px 20px; margin: 16px 0; background: var(--purple-subtle); border-radius: 0 var(--radius-xs) var(--radius-xs) 0; }
.post-content a { color: var(--purple-light); text-decoration: underline; }
.post-content a:hover { color: var(--purple); }

@media (max-width: 768px) {
  .blog-card { flex-direction: column; }
  .blog-card-image { width: 100%; min-height: 180px; }
  .post { padding: 24px; }
  .post-title { font-size: 1.5rem; }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ---- Selection ---- */
::selection { background: rgba(168,85,247,0.4); color: #fff; }
