*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #050510;
  color: #e0e0e0;
  overflow-x: hidden;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
input { font-family: inherit; }

/* ── Scroll Reveal Animation ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a1a; }
::-webkit-scrollbar-thumb { background: #6c3bff; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8b5cf6; }

/* ── A11y skip link ── */
.skip-link { position:absolute; left:-9999px; top:8px; z-index:2000; background:#6c3bff; color:#fff; padding:10px 18px; border-radius:6px; font-weight:600; text-decoration:none; }
.skip-link:focus { left:16px; outline:2px solid #fff; outline-offset:2px; }

/* ── A11y focus-visible ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── A11y reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 40px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(108, 59, 255, 0.12);
}
.nav-logo {
  font-size: 24px;
  font-weight: 800;
  color: #a78bfa;
  letter-spacing: -0.5px;
  cursor: pointer;
}
.nav-logo span { color: #6c3bff; }
.nav-logo-img { height: 32px; width: 32px; border-radius: 6px; object-fit: cover; margin-right: 8px; vertical-align: middle; }
.nav-play-img { display: inline-flex; align-items: center; padding: 0; cursor: pointer; transition: transform 0.15s, filter 0.15s; background: none; border: none; }
.nav-play-img img { height: 88px; width: auto; display: block; filter: drop-shadow(0 2px 8px rgba(108,59,255,0.35)); }
.nav-play-img:hover { transform: scale(1.05); }
.nav-play-img:hover img { filter: drop-shadow(0 4px 14px rgba(108,59,255,0.55)); }
.nav-center {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-center a {
  color: #e0e0e0;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
}
.nav-center a:hover,
.nav-center a.active { color: #a78bfa; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-right a {
  color: #e0e0e0;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
}
.nav-right a:hover { color: #a78bfa; }
.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-username {
  color: #a78bfa;
  font-size: 14px;
  font-weight: 600;
}
.nav-btn {
  background: linear-gradient(135deg, #6c3bff, #8b5cf6);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
}
.nav-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(108, 59, 255, 0.3);
}
.nav-btn-sm {
  padding: 8px 18px;
  font-size: 12px;
  border-radius: 6px;
}
.nav-btn-outline {
  background: transparent;
  border: 1px solid rgba(108, 59, 255, 0.4);
  color: #a78bfa;
}
.nav-btn-outline:hover {
  background: rgba(108, 59, 255, 0.1);
  border-color: #6c3bff;
  opacity: 1;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: #a78bfa;
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(5, 5, 16, 0.97);
  backdrop-filter: blur(20px);
  padding: 20px;
  border-bottom: 1px solid rgba(108, 59, 255, 0.12);
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  color: #888;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.2s;
}
.nav-mobile-menu a:hover { color: #a78bfa; }

/* ── Page container ── */
.page {
  display: none;
  padding-top: 64px;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.page.active { display: block; opacity: 1; }

/* ── Hero Section ── */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 80px;
  position: relative;
  overflow: hidden;
  background: #050510 image-set(url('/images/zythera-login.webp') type('image/webp'), url('/images/zythera-login.png') type('image/png')) center bottom / cover no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(5, 5, 16, 0.85) 0%, rgba(5, 5, 16, 0.55) 40%, rgba(5, 5, 16, 0.75) 100%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, #050510, transparent);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-badge {
  display: inline-block;
  background: rgba(108, 59, 255, 0.12);
  border: 1px solid rgba(108, 59, 255, 0.25);
  color: #a78bfa;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 72px;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #d4c4fc 30%, #a78bfa 60%, #6c3bff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(108, 59, 255, 0.3));
  letter-spacing: -2px;
}
.hero p {
  font-size: 18px;
  color: #777;
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: linear-gradient(135deg, #6c3bff, #8b5cf6);
  color: #fff;
  padding: 16px 40px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(108, 59, 255, 0.3);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(108, 59, 255, 0.45);
}
.btn-outline {
  border: 2px solid rgba(108, 59, 255, 0.4);
  color: #a78bfa;
  padding: 14px 38px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  cursor: pointer;
}
.btn-outline:hover {
  border-color: #6c3bff;
  background: rgba(108, 59, 255, 0.08);
  transform: translateY(-3px);
}

/* ── Download Dropdown ── */
.download-dropdown { position: relative; display: inline-block; }
.download-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #12121f;
  border: 1px solid rgba(108,59,255,0.25);
  border-radius: 12px;
  padding: 8px;
  min-width: 260px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  z-index: 50;
}
.download-dropdown.open .download-menu { display: block; }
.dl-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  transition: background 0.15s;
  color: #e0e0e0;
}
.dl-option:hover { background: rgba(108,59,255,0.12); }
.dl-icon { font-size: 22px; width: 28px; text-align: center; flex-shrink: 0; }
.dl-option div { display: flex; flex-direction: column; }
.dl-option strong { font-size: 14px; font-weight: 600; color: #fff; }
.dl-option span { font-size: 11px; color: #888; }

/* ── Download Cards ── */
.download-page {
  max-width: 940px;
  margin: 0 auto;
  padding: 82px 18px 44px;
}
.download-hero {
  text-align: center;
  margin-bottom: 28px;
}
.download-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border: 1px solid rgba(167,139,250,0.3);
  border-radius: 999px;
  color: #c4b5fd;
  background: rgba(108,59,255,0.12);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.download-hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(135deg,#fff,#a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.download-hero p {
  color: #a7a7b7;
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}
.download-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.download-meta span {
  color: #d7d7e8;
  background: rgba(21,21,48,0.72);
  border: 1px solid rgba(108,59,255,0.18);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.dl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 20px;
  background: rgba(21,21,48,0.6);
  border: 1px solid rgba(108,59,255,0.15);
  border-radius: 14px;
  transition: all 0.25s;
  cursor: pointer;
  text-align: center;
  color: #e0e0e0;
  min-height: 220px;
  justify-content: center;
}
.dl-card:hover { border-color: #6c3bff; transform: translateY(-4px); box-shadow: 0 8px 30px rgba(108,59,255,0.15); }
.dl-card-primary {
  border-color: rgba(63,185,80,0.32);
  background: linear-gradient(180deg,rgba(31,47,48,0.72),rgba(21,21,48,0.62));
}
.dl-card-icon { font-size: 42px; }
.dl-card h3 { font-size: 18px; font-weight: 700; color: #fff; }
.dl-card p { font-size: 13px; color: #888; }
.dl-card small { color: #9a9aa8; font-size: 12px; line-height: 1.45; max-width: 260px; }
.dl-card-tag { font-size: 11px; padding: 4px 12px; border-radius: 20px; background: rgba(63,185,80,0.15); color: #3fb950; font-weight: 600; }
.download-help-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  margin: 0 0 22px;
}
.download-help-card {
  background: rgba(21,21,48,0.42);
  border: 1px solid rgba(108,59,255,0.12);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.download-help-card strong {
  color: #f4f4fb;
  font-size: 13px;
}
.download-help-card span {
  color: #9999aa;
  font-size: 12px;
  line-height: 1.45;
}
.download-help-card code,
.download-step code {
  color: #c4b5fd;
}
.download-steps {
  background: rgba(21,21,48,0.64);
  border: 1px solid rgba(108,59,255,0.16);
  border-radius: 14px;
  padding: 24px;
  display: grid;
  gap: 13px;
}
.download-steps h3 {
  color: #f0f0f8;
  margin-bottom: 2px;
  font-size: 18px;
}
.download-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.download-step > span {
  background: #6c3bff;
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 13px;
}
.download-step p {
  margin: 0;
  color: #9393a4;
  font-size: 13px;
  line-height: 1.45;
}
.download-step strong {
  display: block;
  color: #e8e8f0;
  font-size: 14px;
  margin-bottom: 2px;
}
.download-step a {
  color: #c4b5fd;
  cursor: pointer;
}
.download-cache-note {
  margin-top: 16px;
  background: rgba(63,185,80,0.09);
  border: 1px solid rgba(63,185,80,0.18);
  border-radius: 12px;
  padding: 14px 16px;
  color: #aeb0bd;
  font-size: 12px;
  line-height: 1.5;
}
.download-cache-note strong {
  color: #dfffe8;
  margin-right: 4px;
}

/* ── FAQ / Rules Pages ── */
.support-page,
.rules-page {
  max-width: 1020px;
  margin: 0 auto;
  padding: 82px 18px 42px;
}
.support-hero {
  text-align: center;
  margin-bottom: 26px;
}
.support-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(167,139,250,0.3);
  background: rgba(108,59,255,0.12);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}
.support-hero h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(135deg,#fff,#a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.support-hero p {
  color: #a7a7b7;
  font-size: 15px;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
}
.support-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.support-actions a,
.rules-appeal-card a {
  color: #fff;
  background: linear-gradient(135deg,#6c3bff,#8b5cf6);
  border: 1px solid rgba(167,139,250,0.24);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.support-help-grid,
.rule-summary-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.support-help-card,
.rule-summary-grid > div {
  background: rgba(21,21,48,0.62);
  border: 1px solid rgba(108,59,255,0.14);
  border-radius: 12px;
  padding: 16px;
}
.support-help-card strong,
.rule-summary-grid strong {
  display: block;
  color: #f0f0f8;
  font-size: 14px;
  margin-bottom: 6px;
}
.support-help-card span,
.rule-summary-grid span {
  color: #9c9cac;
  font-size: 12px;
  line-height: 1.5;
}
.support-checklist-panel,
.support-response-panel {
  background: rgba(15,15,35,0.62);
  border: 1px solid rgba(108,59,255,0.15);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 22px;
}
.support-checklist-panel h2,
.support-response-panel h2 {
  color: #f0f0f8;
  font-size: 21px;
  margin-bottom: 6px;
}
.support-checklist-panel > div:first-child,
.support-response-panel > div:first-child {
  margin-bottom: 16px;
}
.support-checklist-panel p,
.support-response-panel p {
  color: #9c9cac;
  font-size: 13px;
  line-height: 1.55;
}
.support-checklist-grid,
.support-response-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}
.support-checklist-grid > div,
.support-response-grid > div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(13,17,23,0.62);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 11px;
  padding: 12px;
}
.support-checklist-grid b {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(108,59,255,0.18);
  color: #c4b5fd;
  font-size: 12px;
}
.support-checklist-grid span,
.support-response-grid span {
  color: #aeb6c2;
  font-size: 12px;
  line-height: 1.5;
}
.support-response-grid strong {
  display: block;
  color: #e6edf3;
  margin-bottom: 4px;
}
.support-fix-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.support-fix-card {
  background: rgba(21,21,48,0.62);
  border: 1px solid rgba(108,59,255,0.14);
  border-radius: 14px;
  padding: 18px;
}
.support-fix-card h3 {
  color: #f0f0f8;
  font-size: 16px;
  margin-bottom: 8px;
}
.support-fix-card p {
  color: #aeb6c2;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.support-fix-card a {
  display: inline-flex;
  color: #c4b5fd;
  background: rgba(108,59,255,0.12);
  border: 1px solid rgba(108,59,255,0.22);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.faq-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.faq-group {
  background: rgba(15,15,35,0.58);
  border: 1px solid rgba(108,59,255,0.13);
  border-radius: 14px;
  padding: 18px;
}
.faq-group h2,
.rule-section-title h2 {
  color: #f0f0f8;
  font-size: 18px;
  margin-bottom: 12px;
}
.faq-card {
  background: rgba(21,21,48,0.6);
  border: 1px solid rgba(108,59,255,0.12);
  border-radius: 10px;
  padding: 0;
  margin-bottom: 10px;
}
.faq-card:last-child { margin-bottom: 0; }
.faq-card summary {
  color: #e8e8f0;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  padding: 15px 16px;
}
.faq-card p {
  color: #9999aa;
  font-size: 13px;
  line-height: 1.65;
  padding: 0 16px 16px;
}
.faq-card a {
  color: #c4b5fd;
  cursor: pointer;
}
.faq-card code {
  color: #c4b5fd;
  background: rgba(13,17,23,0.8);
  border-radius: 4px;
  padding: 2px 5px;
}
.rule-section {
  background: rgba(15,15,35,0.58);
  border: 1px solid rgba(108,59,255,0.13);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}
.rule-section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.rule-section-title span {
  color: #8b949e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rule-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.rule-card {
  background: rgba(21,21,48,0.62);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 15px;
}
.rule-card b {
  color: #f4f4fb;
  font-size: 14px;
}
.rule-card p {
  color: #9c9cac;
  font-size: 12px;
  line-height: 1.55;
  margin: 7px 0 10px;
}
.rule-card span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
}
.rule-section.severe .rule-card { border-color: rgba(218,54,51,0.22); }
.rule-section.severe .rule-card span { background: rgba(218,54,51,0.1); color: #ff8d88; }
.rule-section.warning .rule-card { border-color: rgba(210,153,34,0.18); }
.rule-section.warning .rule-card span { background: rgba(210,153,34,0.1); color: #e3c16e; }
.good-behavior-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}
.good-behavior-grid div {
  background: rgba(63,185,80,0.08);
  border: 1px solid rgba(63,185,80,0.18);
  color: #a7f3bd;
  border-radius: 10px;
  padding: 13px;
  font-size: 12px;
  line-height: 1.45;
}
.rules-appeal-card {
  background: rgba(108,59,255,0.08);
  border: 1px solid rgba(108,59,255,0.2);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
}
.rules-appeal-card strong {
  color: #f0f0f8;
  font-size: 15px;
}
.rules-appeal-card p {
  color: #9c9cac;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
.rules-appeal-card a {
  grid-row: 1 / span 2;
  grid-column: 2;
}

/* ── Legal Pages ── */
.legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 82px 18px 42px;
}
.legal-summary-grid,
.refund-decision-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.refund-decision-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.legal-summary-grid > div,
.refund-card {
  background: rgba(21,21,48,0.62);
  border: 1px solid rgba(108,59,255,0.14);
  border-radius: 12px;
  padding: 16px;
}
.legal-summary-grid strong,
.refund-card strong {
  display: block;
  color: #f2f2fb;
  font-size: 14px;
  margin-bottom: 6px;
}
.legal-summary-grid span,
.refund-card span {
  color: #9d9dad;
  font-size: 12px;
  line-height: 1.5;
}
.refund-card.yes {
  border-color: rgba(63,185,80,0.22);
  background: rgba(63,185,80,0.07);
}
.refund-card.no {
  border-color: rgba(210,153,34,0.22);
  background: rgba(210,153,34,0.07);
}
.legal-card {
  background: rgba(15,15,35,0.62);
  border: 1px solid rgba(108,59,255,0.15);
  border-radius: 14px;
  padding: 22px;
  display: grid;
  gap: 12px;
}
.legal-card section {
  background: rgba(21,21,48,0.5);
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 12px;
  padding: 16px;
}
.legal-card h2 {
  color: #f0f0f8;
  font-size: 16px;
  margin-bottom: 8px;
}
.legal-card p {
  color: #9d9dad;
  font-size: 13px;
  line-height: 1.65;
}
.legal-card a {
  color: #c4b5fd;
}

/* ── Items / Drops Database Pages ── */
.database-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 82px 18px 42px;
}
.database-hero {
  text-align: center;
  margin-bottom: 22px;
}
.database-kicker {
  display: inline-flex;
  color: #c4b5fd;
  background: rgba(108,59,255,0.12);
  border: 1px solid rgba(108,59,255,0.24);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.database-hero h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(135deg,#fff,#a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.database-hero p {
  color: #a7a7b7;
  font-size: 15px;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
}
.database-search {
  max-width: 560px;
  margin: 0 auto 14px;
}
.database-search input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(21,21,48,0.82);
  border: 1px solid rgba(108,59,255,0.26);
  border-radius: 10px;
  color: #e0e0e0;
  font-size: 14px;
  outline: none;
}
.database-search input:focus {
  border-color: rgba(167,139,250,0.58);
  box-shadow: 0 0 0 3px rgba(108,59,255,0.12);
}
.database-tips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.database-tips span {
  color: #9a9a9a;
  background: rgba(21,21,48,0.5);
  border: 1px solid rgba(108,59,255,0.12);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}
.database-results {
  background: rgba(21,21,48,0.62);
  border: 1px solid rgba(108,59,255,0.15);
  border-radius: 14px;
  padding: 20px;
  min-height: 200px;
}
.drop-table-view {
  margin-top: 24px;
}
.database-empty {
  text-align: center;
  color: #8b949e;
  padding: 36px 18px;
  font-size: 13px;
}
.database-empty.error {
  color: #f87171;
}
.database-result-count {
  color: #8b949e;
  font-size: 12px;
  margin-bottom: 12px;
}
.database-table-wrap {
  overflow-x: auto;
}
.database-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
  min-width: 560px;
}
.database-table th {
  text-align: left;
  padding: 10px;
  color: #8b949e;
  border-bottom: 2px solid #30363d;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.database-table td {
  padding: 10px;
  border-bottom: 1px solid #21262d;
  color: #9a9a9a;
}
.database-table tr:last-child td {
  border-bottom: 0;
}
.database-table th:last-child,
.database-table .database-value,
.database-rarity {
  text-align: right;
}
.database-table th:nth-child(2),
.database-center {
  text-align: center;
}
.database-id {
  color: #a78bfa;
  font-weight: 800;
  font-size: 12px;
}
.database-name {
  color: #e0e0e0;
  font-weight: 700;
}
.database-tag {
  display: inline-flex;
  color: #d29922;
  background: rgba(210,153,34,0.1);
  border: 1px solid rgba(210,153,34,0.18);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
  margin-left: 6px;
}
.database-rarity {
  font-weight: 800;
}
.npc-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(210px,1fr));
  gap: 10px;
}
.npc-result-card {
  cursor: pointer;
  background: rgba(108,59,255,0.06);
  border: 1px solid rgba(108,59,255,0.15);
  border-radius: 10px;
  padding: 13px;
  text-align: left;
  transition: border-color 0.18s, transform 0.18s, background 0.18s;
}
.npc-result-card:hover {
  border-color: #6c3bff;
  transform: translateY(-1px);
  background: rgba(108,59,255,0.1);
}
.npc-result-card strong {
  display: block;
  color: #e0e0e0;
  font-size: 14px;
  margin-bottom: 4px;
}
.npc-result-card span {
  color: #8b949e;
  font-size: 11px;
}
.drop-table-head {
  margin-bottom: 14px;
}
.drop-table-head h3 {
  color: #c4b5fd;
  font-size: 18px;
  margin-bottom: 4px;
}
.drop-table-head p {
  color: #8b949e;
  font-size: 12px;
}

/* ── Media Gallery ── */
.media-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 82px 18px 42px;
}
.media-hero {
  text-align: center;
  margin-bottom: 26px;
}
.media-kicker {
  display: inline-flex;
  color: #c4b5fd;
  background: rgba(108,59,255,0.12);
  border: 1px solid rgba(108,59,255,0.24);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.media-hero h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(135deg,#fff,#a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.media-hero p {
  color: #a7a7b7;
  font-size: 15px;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
}
.media-category-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.media-category-row span,
.media-section-head span {
  color: #c4b5fd;
  background: rgba(108,59,255,0.1);
  border: 1px solid rgba(108,59,255,0.2);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.media-featured {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr);
  gap: 14px;
  margin-bottom: 24px;
}
.media-feature-stack {
  display: grid;
  gap: 14px;
}
.media-feature-stack > div,
.media-empty-card,
.media-achievement-grid > div {
  background: rgba(21,21,48,0.62);
  border: 1px solid rgba(108,59,255,0.14);
  border-radius: 14px;
  padding: 18px;
}
.media-feature-stack strong,
.media-empty-card strong,
.media-achievement-grid strong {
  display: block;
  color: #f0f0f8;
  font-size: 15px;
  margin-bottom: 7px;
}
.media-feature-stack p,
.media-empty-card p,
.media-achievement-grid p {
  color: #aeb6c2;
  font-size: 13px;
  line-height: 1.6;
}
.media-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 12px;
}
.media-section-head h2 {
  color: #f0f0f8;
  font-size: 22px;
}
.media-gallery {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.media-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(108,59,255,0.2);
  background: rgba(21,21,48,0.6);
  aspect-ratio: 16 / 10;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.media-card-large {
  min-height: 360px;
}
.media-card:hover {
  transform: translateY(-2px);
  border-color: rgba(167,139,250,0.5);
  box-shadow: 0 14px 38px rgba(0,0,0,0.22);
}
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-card span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: #fff;
  background: rgba(13,17,23,0.75);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}
.media-empty-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-style: dashed;
}
.media-achievement-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.media-achievement-grid span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(108,59,255,0.12);
  border: 1px solid rgba(108,59,255,0.2);
  margin-bottom: 10px;
}
.media-submit-card {
  margin-top: 22px;
  background: rgba(108,59,255,0.08);
  border: 1px solid rgba(108,59,255,0.2);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.media-submit-card strong {
  color: #f0f0f8;
  font-size: 15px;
}
.media-submit-card p {
  color: #9c9cac;
  font-size: 13px;
  line-height: 1.55;
  margin-top: 3px;
}
.media-submit-card a {
  color: #fff;
  background: linear-gradient(135deg,#6c3bff,#8b5cf6);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* ── Store Cards ── */
.store-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 20px 40px;
}
.store-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.store-kicker {
  display: inline-flex;
  color: #c4b5fd;
  background: rgba(108,59,255,0.12);
  border: 1px solid rgba(108,59,255,0.22);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 9px;
}
.store-page-head h1 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.store-page-head p {
  color: #9a9a9a;
  font-size: 14px;
}
.store-page-head code {
  background: #1a1a2e;
  padding: 2px 6px;
  border-radius: 4px;
  color: #a78bfa;
  font-size: 12px;
}
.store-balance-card {
  background: linear-gradient(135deg,rgba(108,59,255,0.15),rgba(139,92,246,0.08));
  border: 1px solid rgba(108,59,255,0.3);
  border-radius: 12px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.store-balance-card span {
  color: #888;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.store-balance-card strong {
  font-size: 24px;
  color: #a78bfa;
}
.store-balance-card small {
  color: #9a9a9a;
  font-size: 11px;
}
.store-login-link {
  color: #c4b5fd;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  background: rgba(108,59,255,0.1);
  border: 1px solid rgba(108,59,255,0.2);
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
}
.store-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  align-items: start;
}
.store-sidebar {
  background: rgba(15,15,35,0.66);
  border: 1px solid rgba(108,59,255,0.12);
  border-radius: 12px;
  padding: 8px;
  height: fit-content;
  position: sticky;
  top: 80px;
}
.store-side-title {
  padding: 10px 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #5e6674;
  font-weight: 800;
}
.store-side-link {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #8b949e;
  margin-bottom: 2px;
  transition: background 0.18s, color 0.18s;
}
.store-side-link:hover {
  color: #c4b5fd;
  background: rgba(108,59,255,0.08);
}
.store-main {
  min-width: 0;
}
.store-credit-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.store-card {
  position: relative;
  text-align: left;
  padding: 18px;
  background: linear-gradient(180deg, rgba(21,21,48,0.82), rgba(13,17,23,0.7));
  border: 1px solid rgba(108,59,255,0.16);
  border-radius: 12px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 242px;
}
.store-card:hover { border-color:rgba(108,59,255,0.42);transform:translateY(-2px);box-shadow:0 12px 30px rgba(0,0,0,0.22) }
.store-card-featured { border-color: rgba(108,59,255,0.48); box-shadow: inset 0 0 0 1px rgba(108,59,255,0.08); }
.store-card-best { border-color: rgba(63,185,80,0.36); }
.store-card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  margin-bottom: 8px;
}
.store-card-topline span {
  color: #c9b7ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.store-card-topline small,
.store-bonus {
  color: #3fb950;
  background: rgba(63,185,80,0.08);
  border: 1px solid rgba(63,185,80,0.18);
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.store-card-ribbon {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #6c3bff;
  color: #fff;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 800;
}
.store-card-best .store-card-ribbon { background: #3fb950; }
.store-credits { font-size:32px;font-weight:900;color:#e6edf3;line-height:1.05 }
.store-label { font-size:12px;color:#888;margin-bottom:4px }
.store-price { font-size:18px;font-weight:800;color:#a78bfa;margin-bottom:8px }
.store-card p {
  color: #8b949e;
  font-size: 12px;
  line-height: 1.45;
  margin: 0 0 14px;
  min-height: 34px;
}
.rank-card { text-align:center;padding:14px 10px;background:rgba(21,21,48,0.4);border:1px solid rgba(108,59,255,0.1);border-radius:8px;display:flex;flex-direction:column;gap:2px }
.rank-card strong { font-size:13px;color:#e0e0e0 }
.rank-card span { font-size:11px;color:#888 }
.cat-tag { padding:6px 14px;background:rgba(108,59,255,0.1);border:1px solid rgba(108,59,255,0.2);border-radius:20px;font-size:12px;color:#a78bfa }
.store-buy { margin-top:auto;width:100%;padding:10px;background:linear-gradient(135deg,#6c3bff,#8b5cf6);color:#fff;border:none;border-radius:8px;font-size:13px;font-weight:800;cursor:pointer;transition:opacity 0.2s, transform 0.2s }
.store-buy:hover { opacity:0.9; transform: translateY(-1px); }
.store-item { text-align:center;padding:12px;background:rgba(21,21,48,0.62);border:1px solid rgba(108,59,255,0.12);border-radius:12px;transition:all 0.2s;display:flex;flex-direction:column;align-items:center;gap:7px;min-height:190px }
.store-item:hover { border-color:rgba(108,59,255,0.36);transform:translateY(-2px);background:rgba(25,25,58,0.72) }
.store-item-top { width:100%;display:flex;justify-content:space-between;align-items:center;gap:6px;min-height:22px }
.store-type-badge,
.store-stock { font-size:10px;border-radius:999px;padding:4px 7px;font-weight:800;line-height:1;background:rgba(167,139,250,0.09);border:1px solid rgba(167,139,250,0.14);color:#c9b7ff }
.store-stock { color:#8b949e;background:rgba(255,255,255,0.035);border-color:rgba(255,255,255,0.07) }
.store-item-img { width:56px;height:56px;object-fit:contain;image-rendering:pixelated;margin:2px 0 4px;filter:drop-shadow(0 8px 14px rgba(0,0,0,0.35)) }
.store-item-name { font-size:12px;color:#e6edf3;font-weight:800;line-height:1.25;min-height:30px;display:flex;align-items:center;justify-content:center }
.store-item-meta { color:#8b949e;font-size:11px }
.store-item-price { display:flex;align-items:baseline;justify-content:center;gap:4px;font-size:14px;color:#a78bfa;font-weight:800 }
.store-item-price small { color:#8b949e;font-size:10px;font-weight:700;text-transform:uppercase }
.store-price-old { color:#8b949e;text-decoration:line-through;font-weight:600;margin-right:3px }
.store-add-inline { width:100%;margin-top:auto;background:linear-gradient(135deg,#6c3bff,#8b5cf6);color:#fff;border:none;border-radius:8px;padding:8px 10px;font-size:12px;font-weight:800;cursor:pointer }
.store-add-inline:hover { opacity:0.88 }
.store-add { position:absolute;top:6px;right:6px;width:24px;height:24px;background:#6c3bff;color:#fff;border:none;border-radius:50%;font-size:16px;font-weight:700;cursor:pointer;line-height:24px;transition:all 0.15s;opacity:0 }
.store-item:hover .store-add { opacity:1 }
.store-add:hover { background:#8b5cf6;transform:scale(1.15) }
.store-item { position:relative }
.cart-chip { display:inline-flex;align-items:center;gap:9px;padding:8px 10px;background:#161b22;border:1px solid #30363d;border-radius:9px;font-size:12px;color:#e0e0e0 }
.cart-chip-icon { width:24px;height:24px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;background:rgba(167,139,250,0.1);border:1px solid rgba(167,139,250,0.14) }
.cart-chip strong { display:block;color:#e6edf3;font-size:12px;line-height:1.2 }
.cart-chip small { display:block;color:#8b949e;font-size:11px;margin-top:2px }
.cart-chip button { margin-left:auto;background:rgba(218,54,51,0.1);border:1px solid rgba(218,54,51,0.2);color:#ff7b72;cursor:pointer;font-size:13px;font-weight:800;padding:2px 7px;border-radius:7px }

.journey-section {
  max-width: 1120px;
  margin: 12px auto 44px;
  padding: 0 40px;
  position: relative;
  z-index: 4;
}
.journey-header {
  text-align: center;
  margin-bottom: 20px;
}
.journey-header span {
  color: #a78bfa;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.journey-header h2 {
  color: #fff;
  font-size: 28px;
  margin: 6px 0;
}
.journey-header p { color: #8b949e; font-size: 14px; }
.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.journey-card {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 16px 16px;
  min-height: 112px;
  color: inherit;
  cursor: pointer;
  background: rgba(21,21,48,0.78);
  border: 1px solid rgba(108,59,255,0.16);
  border-radius: 14px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.22);
  transition: transform 0.16s, border-color 0.16s, background 0.16s;
}
.journey-card:nth-child(n+4) { min-height: 94px; }
.journey-card em {
  position: absolute;
  top: -9px;
  left: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #6c3bff;
  border: 2px solid #0d1117;
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}
.journey-card:hover {
  transform: translateY(-2px);
  border-color: rgba(167,139,250,0.42);
  background: rgba(27,27,64,0.86);
}
.journey-card.primary { border-color: rgba(63,185,80,0.32); }
.journey-card.primary em { background: #3fb950; }
.journey-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(108,59,255,0.22), rgba(167,139,250,0.14));
  border: 1px solid rgba(167,139,250,0.18);
  flex-shrink: 0;
}
.journey-card strong {
  display: block;
  color: #e6edf3;
  font-size: 14px;
  margin-bottom: 5px;
}
.journey-card span {
  display: block;
  color: #8b949e;
  font-size: 12px;
  line-height: 1.45;
}

.live-world-section,
.update-log-section,
.retention-section {
  padding: 0 40px 60px;
  max-width: 1120px;
  margin: 0 auto;
}
.section-header.compact { margin-bottom: 24px; }
.section-header.compact h2 { font-size: 30px; }
.live-world-grid,
.update-log-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.live-world-card,
.update-card {
  background: rgba(21,21,48,0.62);
  border: 1px solid rgba(108,59,255,0.15);
  border-radius: 14px;
  padding: 20px;
  transition: transform 0.16s, border-color 0.16s;
}
.live-world-card:hover,
.update-card:hover { transform: translateY(-2px); border-color: rgba(167,139,250,0.32); }
.live-world-card.online { border-color: rgba(63,185,80,0.28); }
.live-world-card.offline { border-color: rgba(218,54,51,0.24); }
.live-world-card.muted,
.update-card.muted { color: #8b949e; text-align: center; }
.update-card.pinned {
  border-color: rgba(210,153,34,0.36);
  background: linear-gradient(180deg,rgba(44,36,18,0.58),rgba(21,21,48,0.62));
}
.live-world-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #e6edf3;
  margin-bottom: 16px;
}
.live-world-top > div { display: flex; align-items: center; gap: 8px; }
.live-world-top span:last-child { color: #8b949e; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.live-world-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #da3633;
  display: inline-block;
}
.live-world-card.online .live-world-dot { background: #3fb950; box-shadow: 0 0 12px rgba(63,185,80,0.55); }
.live-world-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.live-world-stats div {
  background: rgba(13,17,23,0.65);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 10px;
}
.live-world-stats span,
.store-account-summary span,
.dashboard-stat span {
  display: block;
  color: #8b949e;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.live-world-stats strong { color: #e6edf3; font-size: 13px; }
.live-boosts { display: flex; flex-wrap: wrap; gap: 6px; }
.live-boost {
  background: rgba(108,59,255,0.12);
  color: #c9b7ff;
  border: 1px solid rgba(108,59,255,0.22);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
}
.live-boost.empty { color: #8b949e; background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.06); }
.retention-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.retention-card {
  background: linear-gradient(180deg,rgba(21,21,48,0.72),rgba(9,9,20,0.78));
  border: 1px solid rgba(108,59,255,0.16);
  border-radius: 14px;
  padding: 20px;
  min-height: 190px;
}
.retention-card.featured {
  border-color: rgba(63,185,80,0.32);
  background: linear-gradient(180deg,rgba(20,48,31,0.5),rgba(21,21,48,0.72));
}
.retention-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108,59,255,0.16);
  border: 1px solid rgba(167,139,250,0.18);
  margin-bottom: 14px;
  font-size: 21px;
}
.retention-card span {
  color: #a78bfa;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.retention-card h3 {
  color: #e6edf3;
  font-size: 17px;
  margin: 8px 0;
}
.retention-card p {
  color: #9a9a9a;
  font-size: 13px;
  line-height: 1.6;
}
.update-card h3 { color: #e6edf3; font-size: 16px; margin-bottom: 8px; }
.update-card p { color: #9a9a9a; font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
.update-card time { color: #6e7681; font-size: 11px; }
.update-type { color: #a78bfa; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.update-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.update-card-top .update-type { margin-bottom: 0; }
.update-pin {
  color: #f0d070;
  background: rgba(210,153,34,0.1);
  border: 1px solid rgba(210,153,34,0.2);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.store-account-summary {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.store-account-summary > div,
.dashboard-stat {
  background: rgba(21,21,48,0.62);
  border: 1px solid rgba(108,59,255,0.14);
  border-radius: 12px;
  padding: 14px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.store-account-summary strong,
.dashboard-stat strong { color: #e6edf3; font-size: 15px; }
.store-status-check.offline { color: #3fb950; }
.store-status-check.online { color: #da3633; }
.store-status-check.warning,
.store-status-check.checking { color: #d29922; }
.dashboard-stat em {
  font-style: normal;
  font-size: 20px;
  margin-bottom: 7px;
}
.dashboard-stat strong {
  overflow-wrap: anywhere;
}
.store-warning {
  background: rgba(210,153,34,0.08);
  border: 1px solid rgba(210,153,34,0.24);
  border-radius: 10px;
  color: #d8b96d;
  font-size: 13px;
  line-height: 1.55;
  padding: 13px 15px;
  margin-bottom: 16px;
}
.store-trust-row {
  background: rgba(21,21,48,0.42);
  border: 1px solid rgba(108,59,255,0.12);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 12px;
  color: #9a9a9a;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.store-trust-row span { color: #aab0bd; }
.store-trust-row span::first-letter { color: #3fb950; }
.store-cart-panel {
  background: rgba(63,185,80,0.06);
  border: 1px solid rgba(63,185,80,0.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.store-cart-head,
.store-cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.store-cart-head { margin-bottom: 12px; }
.store-cart-head h3 { color: #3fb950; font-size: 16px; }
.store-cart-head > span { color: #a78bfa; font-weight: 800; font-size: 18px; }
.store-cart-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.store-gift-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.store-gift-toggle label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8b949e;
  font-size: 12px;
  cursor: pointer;
}
.store-gift-toggle input {
  accent-color: #6c3bff;
  cursor: pointer;
}
.store-gift-row {
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.store-gift-row input {
  flex: 1;
  max-width: 240px;
  background: rgba(21,21,48,0.6);
  border: 1px solid rgba(108,59,255,0.2);
  color: #e6edf3;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
}
.store-gift-row span {
  color: #9a9a9a;
  font-size: 11px;
}
.store-cart-actions { justify-content: flex-end; }
.store-section-head {
  margin-bottom: 16px;
}
.store-section-head span {
  display: inline-flex;
  color: #c4b5fd;
  background: rgba(108,59,255,0.1);
  border: 1px solid rgba(108,59,255,0.2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.store-section-head h3 {
  color: #f0f0f8;
  font-size: 20px;
  margin-bottom: 6px;
}
.store-section-head p,
.store-panel-subtitle,
.store-panel-footnote {
  color: #9a9a9a;
  font-size: 13px;
  line-height: 1.55;
}
.rank-table-wrap {
  overflow-x: auto;
  margin-bottom: 22px;
  border: 1px solid rgba(108,59,255,0.14);
  border-radius: 14px;
  background: rgba(15,15,35,0.55);
}
.rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 760px;
}
.rank-table th {
  text-align: left;
  padding: 12px;
  color: #c4b5fd;
  background: rgba(108,59,255,0.08);
  border-bottom: 1px solid rgba(108,59,255,0.16);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rank-table td {
  padding: 12px;
  color: #aeb0bd;
  border-bottom: 1px solid rgba(255,255,255,0.045);
  vertical-align: top;
}
.rank-table td:nth-child(2),
.rank-table td:nth-child(3),
.rank-table td:nth-child(4) {
  text-align: center;
  color: #e0e0e0;
  white-space: nowrap;
}
.rank-table td:nth-child(3) { color: #d29922; font-weight: 800; }
.rank-table tr:last-child td { border-bottom: 0; }
.rank-row-highlight { background: rgba(212,175,55,0.055); }
.rank-row-special { background: rgba(218,54,51,0.055); }
.donor-rank-progress-panel {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(260px, 1.4fr) minmax(180px, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.donor-rank-progress-card {
  background: rgba(13,17,23,0.72);
  border: 1px solid rgba(108,59,255,0.16);
  border-radius: 12px;
  padding: 15px;
}
.donor-rank-progress-card span,
.donor-rank-progress-head span {
  display: block;
  color: #8b949e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.donor-rank-progress-card strong {
  display: block;
  color: #e6edf3;
  font-size: 17px;
  margin-bottom: 7px;
}
.donor-rank-progress-card p {
  color: #9da7b3;
  font-size: 12px;
  line-height: 1.55;
}
.donor-rank-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.donor-rank-progress-head strong {
  color: #a78bfa;
  font-size: 13px;
  margin: 0;
}
.donor-rank-page-bar {
  height: 11px;
  background: rgba(0,0,0,0.38);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 9px;
}
.donor-rank-page-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #6c3bff, #d4af37);
  transition: width 0.25s ease;
}
.donor-rank-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.donor-rank-card {
  position: relative;
  min-height: 166px;
  background: rgba(21,21,48,0.56);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.donor-rank-card.active,
.donor-rank-card.unlocked {
  border-color: rgba(212,175,55,0.34);
  background: rgba(212,175,55,0.06);
}
.donor-rank-card.locked { opacity: 0.84; }
.donor-rank-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.donor-rank-card-top span {
  font-size: 14px;
  font-weight: 900;
}
.donor-rank-card-top strong {
  color: #e6edf3;
  font-size: 12px;
  white-space: nowrap;
}
.donor-rank-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.donor-rank-card-stats em {
  color: #d8b96d;
  background: rgba(210,153,34,0.08);
  border: 1px solid rgba(210,153,34,0.16);
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.donor-rank-card p {
  color: #aeb6c2;
  font-size: 12px;
  line-height: 1.45;
  flex: 1;
}
.donor-rank-card small {
  color: #8b949e;
  font-size: 11px;
  font-weight: 800;
}
.rank-premium { color: #3fb950; }
.rank-expansion { color: #58a6ff; }
.rank-extreme { color: #f85149; }
.rank-respected { color: #d2a8ff; }
.rank-legendary { color: #f0883e; }
.rank-mythical { color: #bc8cff; }
.rank-uber { color: #d4af37; }
.rank-amascut { color: #da3633; }
.store-info-panel {
  background: rgba(21,21,48,0.62);
  border: 1px solid rgba(108,59,255,0.15);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 22px;
}
.store-info-panel h3 {
  color: #f0f0f8;
  font-size: 16px;
  margin-bottom: 12px;
}
.store-info-grid,
.game-mode-grid,
.server-feature-grid {
  display: grid;
  gap: 12px;
}
.store-info-grid { grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); }
.game-mode-grid { grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); margin-top: 14px; }
.server-feature-grid { grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); }
.store-info-grid > div,
.game-mode-grid > div,
.server-feature-grid > div {
  background: rgba(13,17,23,0.55);
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 12px;
  padding: 14px;
}
.store-info-grid h4,
.game-mode-grid strong,
.server-feature-grid strong {
  color: #e6edf3;
  font-size: 13px;
}
.store-info-grid h4 {
  color: #c4b5fd;
  margin-bottom: 6px;
}
.store-info-grid p,
.game-mode-grid p,
.server-feature-grid p {
  color: #8b949e;
  font-size: 12px;
  line-height: 1.55;
  margin-top: 5px;
}
.game-mode-grid > div {
  text-align: center;
}
.game-mode-grid span {
  display: block;
  font-size: 24px;
  margin-bottom: 7px;
}
.server-feature-grid > div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.server-feature-grid span {
  font-size: 18px;
  line-height: 1;
}
.store-panel-footnote {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
}
.account-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.account-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(108,59,255,0.12);
}
.account-section-head > div > span {
  display: block;
  color: #8b949e;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.account-section-head h3 {
  margin: 0;
  padding: 0;
  border: 0;
}
.account-mini-action {
  color: #c4b5fd;
  background: rgba(108,59,255,0.12);
  border: 1px solid rgba(108,59,255,0.22);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.account-mini-action:hover {
  border-color: rgba(167,139,250,0.45);
  background: rgba(108,59,255,0.18);
}
.donor-progress-card {
  margin-top: 18px;
  background: rgba(108,59,255,0.07);
  border: 1px solid rgba(108,59,255,0.16);
  border-radius: 12px;
  padding: 14px;
}
.donor-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #e6edf3;
  font-size: 13px;
  margin-bottom: 10px;
}
.donor-progress-head strong { color: #a78bfa; }
.donor-progress-bar {
  height: 9px;
  background: rgba(13,17,23,0.8);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 10px;
}
.donor-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6c3bff, #3fb950);
  transition: width 0.25s ease;
}
.donor-progress-card p { color: #8b949e; font-size: 12px; line-height: 1.5; }
.security-warning-list { display: grid; gap: 8px; margin-top: 14px; }
.security-warning,
.security-ok {
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
}
.security-warning { background: rgba(210,153,34,0.08); border: 1px solid rgba(210,153,34,0.22); color: #d8b96d; }
.security-ok { background: rgba(63,185,80,0.08); border: 1px solid rgba(63,185,80,0.22); color: #7ee787; }
.security-warning::before { content: "Needs attention: "; color: #f0d070; font-weight: 800; }
.security-ok::before { content: "Protected: "; color: #7ee787; font-weight: 800; }
.store-history-list {
  display: grid;
  gap: 10px;
}
.store-history-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  background: rgba(13,17,23,0.72);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}
.store-history-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.store-history-main strong {
  color: #e6edf3;
  font-size: 14px;
}
.store-history-main span,
.store-history-reason,
.store-history-empty {
  color: #8b949e;
  font-size: 12px;
  line-height: 1.5;
}
.store-history-reason {
  color: #d8b96d;
}
.store-history-empty {
  padding: 14px;
  text-align: center;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.09);
  border-radius: 10px;
}
.store-history-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.store-history-status.success {
  color: #7ee787;
  background: rgba(63,185,80,0.1);
  border: 1px solid rgba(63,185,80,0.24);
}
.store-history-status.failed {
  color: #ffb4a8;
  background: rgba(248,81,73,0.1);
  border: 1px solid rgba(248,81,73,0.24);
}
.account-detail-grid,
.security-status-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}
.account-detail-wide {
  grid-column: 1 / -1;
}
.status-pill {
  justify-self: end;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}
.hiscore-note {
  color: #8b949e;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 12px;
  text-align: center;
}
.hiscores-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 20px 56px;
}
.hiscores-hero {
  text-align: center;
  margin-bottom: 22px;
}
.hiscores-hero .eyebrow {
  display: inline-block;
  color: #a78bfa;
  background: rgba(108,59,255,0.12);
  border: 1px solid rgba(108,59,255,0.22);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hiscores-hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg,#fff,#a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hiscores-hero p { color: #8b949e; font-size: 15px; }
.hiscore-search {
  max-width: 520px;
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.hiscore-search input {
  background: rgba(21,21,48,0.72);
  border: 1px solid rgba(108,59,255,0.22);
  color: #e6edf3;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 14px;
}
.hiscore-search button {
  padding: 10px 18px;
  background: #6c3bff;
  color: #fff;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.hiscore-mode-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 auto 16px;
}
.hiscore-mode-filter span { color: #8b949e; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.hiscore-mode-filter select {
  background: rgba(21,21,48,0.72);
  border: 1px solid rgba(108,59,255,0.22);
  color: #e6edf3;
  padding: 9px 12px;
  border-radius: 8px;
}
.player-profile-card {
  max-width: 1040px;
  margin: 0 auto 22px;
  background:
    radial-gradient(circle at top left, rgba(108,59,255,0.16), transparent 34%),
    rgba(21,21,48,0.72);
  border: 1px solid rgba(167,139,250,0.26);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.28);
}
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg,#6c3bff,#8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 0 0 4px rgba(108,59,255,0.14);
}
.profile-title { min-width: 0; }
.profile-head h3 { color: #e6edf3; font-size: 24px; margin: 0 0 8px; }
.profile-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-badge {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(13,17,23,0.64);
  color: #c9d1d9;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.profile-badge.online { border-color: rgba(63,185,80,0.4); color: #3fb950; }
.profile-badge.offline { border-color: rgba(210,153,34,0.38); color: #d29922; }
.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.profile-stat-grid div {
  background: rgba(13,17,23,0.62);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 11px;
}
.profile-stat-grid span { color: #8b949e; font-size: 11px; text-transform: uppercase; display: block; margin-bottom: 4px; }
.profile-stat-grid strong { color: #e6edf3; font-size: 13px; }
.profile-sections { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 12px; align-items: start; }
.profile-section {
  background: rgba(13,17,23,0.38);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
}
.profile-section summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  color: #a78bfa;
  font-size: 13px;
  font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.profile-section summary::-webkit-details-marker { display: none; }
.profile-section summary small {
  color: #8b949e;
  font-size: 11px;
  font-weight: 700;
}
.profile-list {
  max-height: 390px;
  overflow: auto;
  padding: 4px 12px 10px;
}
.profile-skill-grid,
.profile-boss-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 12px;
}
.profile-skill-card,
.profile-boss-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  background: rgba(21,21,48,0.68);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 9px 10px;
  min-width: 0;
}
.profile-skill-card strong,
.profile-boss-card strong {
  display: block;
  color: #e6edf3;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-skill-card small,
.profile-boss-card small {
  display: block;
  color: #8b949e;
  font-size: 10px;
  margin-top: 2px;
}
.profile-skill-card b,
.profile-boss-card b {
  color: #f0f6fc;
  font-size: 13px;
}
.profile-skill-icon,
.profile-boss-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108,59,255,0.12);
  border: 1px solid rgba(108,59,255,0.2);
  font-size: 17px;
}
.profile-filter { padding: 10px 12px 0; }
.profile-filter input {
  width: 100%;
  background: rgba(21,21,48,0.72);
  border: 1px solid rgba(108,59,255,0.18);
  color: #e6edf3;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 12px;
}
.mini-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #8b949e;
  font-size: 12px;
}
.mini-row strong { color: #e6edf3; }
.muted-small { color: #8b949e; font-size: 12px; }
.hiscore-filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(15,15,35,0.42);
  border: 1px solid rgba(108,59,255,0.09);
  border-radius: 14px;
  padding: 12px;
}
.hiscore-filter-group.compact { padding: 10px; }
.hiscore-filter-title {
  width: 100%;
  color: #6e7681;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}
.hiscore-board {
  background: rgba(21,21,48,0.66);
  border: 1px solid rgba(108,59,255,0.15);
  border-radius: 16px;
  padding: 20px;
}
.hiscore-board-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.hiscore-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hiscore-title-icon,
.podium-card .player-mini-icon,
.podium-card .score-mini-icon,
.hiscore-table .player-mini-icon,
.hiscore-table .score-mini-icon {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(108,59,255,0.18));
  border: 1px solid rgba(212,175,55,0.28);
  font-size: 12px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1 !important;
  margin: 0 !important;
}
.hiscore-title-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 21px !important;
}
.hiscore-board-head span {
  color: #6e7681;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hiscore-board-head h2 { color: #e6edf3; font-size: 22px; }
.hiscore-board-meta {
  color: #8b949e;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  color: #c9b7ff !important;
  letter-spacing: 0 !important;
}
.hiscore-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.podium-card {
  background: linear-gradient(180deg, rgba(108,59,255,0.15), rgba(13,17,23,0.72));
  border: 1px solid rgba(108,59,255,0.2);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  color: #e6edf3;
  transition: transform 0.16s, border-color 0.16s;
}
.podium-card:hover { transform: translateY(-2px); border-color: rgba(167,139,250,0.55); }
.podium-card.rank-1 { border-color: rgba(212,175,55,0.36); }
.podium-medal { font-size: 28px; margin-bottom: 4px; }
.podium-rank { color: #8b949e; font-size: 12px; font-weight: 800; margin-bottom: 4px; }
.podium-card strong {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 16px;
  margin-bottom: 6px;
}
.podium-card > span { display: flex; align-items: center; justify-content: center; gap: 6px; color: #a78bfa; font-size: 12px; font-weight: 700; }
.podium-card small { display: block; color: #8b949e; font-size: 11px; margin-top: 4px; }
.hiscore-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.hiscore-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.hiscore-table th {
  text-align: left;
  color: #8b949e;
  background: rgba(13,17,23,0.7);
  padding: 11px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hiscore-table td {
  color: #e6edf3;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 11px 12px;
}
.hiscore-table td:nth-child(n+3),
.hiscore-table th:nth-child(n+3) { text-align: right; }
.hiscore-table a { color: #c9b7ff; font-weight: 700; }
.hiscore-player-link,
.score-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.score-cell {
  justify-content: flex-end;
  color: #e6edf3;
  font-weight: 700;
}
.score-cell.xp { color: #8b949e; font-weight: 600; }
.player-mini-icon,
.score-mini-icon {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.14);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: inherit !important;
}
.score-mini-icon {
  background: rgba(212,175,55,0.09);
  border-color: rgba(212,175,55,0.16);
}
.rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  justify-content: center;
  color: #8b949e;
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 800;
}
.rank-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,175,55,0.12);
  color: #d4af37;
  font-size: 9px;
  letter-spacing: 0;
}
.hiscore-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}
.hiscore-pagination span,
.hiscore-loading,
.hiscore-empty {
  color: #8b949e;
  text-align: center;
  padding: 18px;
}
.hiscore-empty.error { color: #da3633; }
.wiki-page { max-width: 1120px !important; }
.wiki-hero {
  text-align: center;
  margin-bottom: 18px;
}
.wiki-hero span {
  display: inline-block;
  color: #a78bfa;
  background: rgba(108,59,255,0.12);
  border: 1px solid rgba(108,59,255,0.22);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.wiki-hero h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg,#fff,#a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wiki-hero p { color: #8b949e; font-size: 15px; max-width: 640px; margin: 0 auto; }
.wiki-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 680px;
  margin: 0 auto 18px;
}
.wiki-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(21,21,48,0.72);
  border: 1px solid rgba(108,59,255,0.22);
  border-radius: 10px;
  padding: 0 13px;
}
.wiki-search-box span { color: #a78bfa; }
.wiki-search-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #e6edf3;
  padding: 12px 0;
  font-size: 14px;
}
.wiki-clear-btn {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #8b949e;
  border-radius: 10px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 800;
}
.wiki-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  background: rgba(15,15,35,0.36);
  border: 1px solid rgba(108,59,255,0.09);
  border-radius: 14px;
  padding: 12px;
}
.wiki-tabs .cat-tag {
  cursor: pointer;
  border: 1px solid rgba(108,59,255,0.18);
  border-radius: 999px;
  font-weight: 800;
}
.wiki-tabs .cat-tag.active {
  background: #6c3bff;
  color: #fff;
  border-color: rgba(167,139,250,0.42);
}
.wiki-results-meta {
  color: #8b949e;
  text-align: center;
  font-size: 12px;
  margin-bottom: 18px;
}
.wiki-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 16px;
}
.wiki-guide-grid .guide-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
}
.wiki-guide-grid .guide-card .feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.16);
  margin-bottom: 12px;
}
.wiki-guide-grid .guide-card p {
  color: #aeb6c2;
  font-size: 13px;
  line-height: 1.65;
}
.checkout-modal { position: fixed; inset: 0; z-index: 3000; }
.checkout-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.72); }
.checkout-dialog {
  position: relative;
  max-width: 560px;
  margin: 9vh auto 0;
  background: #0d1117;
  border: 1px solid rgba(108,59,255,0.28);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.65);
}
.checkout-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.checkout-head span { color: #a78bfa; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.checkout-head h3 { color: #fff; font-size: 21px; }
.checkout-head button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #e6edf3;
  border-radius: 8px;
  cursor: pointer;
}
.checkout-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.checkout-grid div {
  background: rgba(21,21,48,0.62);
  border: 1px solid rgba(108,59,255,0.12);
  border-radius: 10px;
  padding: 11px;
}
.checkout-grid span { color: #8b949e; font-size: 11px; text-transform: uppercase; display: block; margin-bottom: 4px; }
.checkout-grid strong { color: #e6edf3; font-size: 13px; }
.checkout-items {
  display: grid;
  gap: 7px;
  max-height: 220px;
  overflow: auto;
  margin-bottom: 14px;
}
.checkout-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255,255,255,0.035);
  border-radius: 8px;
  padding: 9px 10px;
  color: #e6edf3;
  font-size: 13px;
}
.checkout-item span { display:flex;align-items:center;gap:7px;font-weight:800 }
.checkout-item span b { font-weight:400 }
.checkout-item small { color:#8b949e;font-size:11px;margin-left:auto }
.checkout-item strong { color:#a78bfa;white-space:nowrap }
.checkout-warning {
  color: #d8b96d;
  background: rgba(210,153,34,0.08);
  border: 1px solid rgba(210,153,34,0.22);
  border-radius: 10px;
  padding: 11px;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.checkout-message {
  border-radius: 10px;
  padding: 11px;
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 14px;
  border: 1px solid rgba(88,166,255,0.24);
  background: rgba(88,166,255,0.08);
  color: #79c0ff;
}
.checkout-message.success {
  border-color: rgba(63,185,80,0.24);
  background: rgba(63,185,80,0.08);
  color: #3fb950;
}
.checkout-message.error {
  border-color: rgba(218,54,51,0.28);
  background: rgba(218,54,51,0.08);
  color: #ff7b72;
}
.checkout-actions { display: flex; justify-content: flex-end; gap: 10px; }
.btn-outline-clean,
.btn-confirm-clean {
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}
.btn-outline-clean { background: transparent; border: 1px solid #30363d; color: #8b949e; }
.btn-confirm-clean { background: linear-gradient(135deg,#3fb950,#2ea043); border: none; color: #fff; }
.btn-confirm-clean:disabled { opacity: .65; cursor: wait; }

/* ── Stats bar ── */
.stats-bar {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 64px;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
}
.stat-value {
  font-size: 30px;
  font-weight: 800;
  color: #a78bfa;
  line-height: 1.2;
}
.stat-label {
  font-size: 12px;
  color: #9a9a9a;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ── Features Grid ── */
.features-section {
  padding: 100px 40px;
  max-width: 1120px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.section-header p {
  color: #9a9a9a;
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: rgba(15, 15, 35, 0.6);
  border: 1px solid rgba(108, 59, 255, 0.08);
  border-radius: 14px;
  padding: 30px;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: rgba(108, 59, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(108, 59, 255, 0.1);
  box-shadow: 0 8px 30px rgba(108, 59, 255, 0.08);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(108, 59, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #e8e8e8;
}
.feature-card p {
  font-size: 13px;
  color: #9a9a9a;
  line-height: 1.65;
}

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  padding: 100px 20px;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 59, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
  position: relative;
}
.cta-section p {
  color: #9a9a9a;
  font-size: 16px;
  margin-bottom: 32px;
  position: relative;
}

/* ── Footer ── */
.footer {
  padding: 32px 20px;
  border-top: 1px solid rgba(108, 59, 255, 0.08);
  color: #888;
  font-size: 13px;
}
.footer-main { padding: 48px 40px 32px; }
.footer-compact { padding: 32px 40px; }
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.footer-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  text-align: left;
}
.footer-brand img {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 12px rgba(108,59,255,0.35));
}
.footer-brand p {
  color: #9a9a9a;
  font-size: 13px;
  line-height: 1.7;
  max-width: 280px;
}
.footer-support { margin-top: 12px; }
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  background: rgba(108,59,255,0.1);
  border: 1px solid rgba(108,59,255,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.footer-title {
  font-size: 11px;
  font-weight: 800;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-compact-top,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-compact-top { margin-bottom: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(108,59,255,0.08);
  padding-top: 16px;
  color: #555;
  font-size: 11px;
}
.footer-main .footer-bottom {
  padding-top: 20px;
  font-size: 12px;
}
.footer-wordmark {
  font-size: 18px;
  font-weight: 800;
}
.footer-wordmark span:first-child { color: #6c3bff; }
.footer-wordmark span:last-child { color: #a78bfa; }
.footer-link-row,
.footer-legal-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-link-row { gap: 20px; font-size: 12px; }
.footer-legal-row { font-size: 11px; }
.footer a {
  color: #9a9a9a;
  cursor: pointer;
  transition: color 0.2s;
}
.footer a:hover { color: #a78bfa; }

/* ── Auth Forms (Register / Login) ── */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 80px 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(15, 15, 35, 0.7);
  border: 1px solid rgba(108, 59, 255, 0.1);
  border-radius: 16px;
  padding: 40px;
}
.auth-card h2 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-align: center;
}
.auth-card .auth-subtitle {
  text-align: center;
  color: #9a9a9a;
  font-size: 14px;
  margin-bottom: 32px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #999;
  margin-bottom: 8px;
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(5, 5, 16, 0.8);
  border: 1px solid rgba(108, 59, 255, 0.15);
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
}
.form-group input:focus {
  border-color: #6c3bff;
  box-shadow: 0 0 0 3px rgba(108, 59, 255, 0.1);
}
.form-group input::placeholder {
  color: #888;
}
.form-group .field-hint {
  font-size: 11px;
  color: #9a9a9a;
  margin-top: 4px;
}
.form-group .field-error {
  font-size: 11px;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}
.form-group.error input {
  border-color: #ef4444;
}
.form-group.error .field-error {
  display: block;
}
.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #6c3bff, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}
.btn-submit:hover {
  box-shadow: 0 4px 20px rgba(108, 59, 255, 0.35);
  transform: translateY(-1px);
}
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: #9a9a9a;
}
.auth-footer a {
  color: #a78bfa;
  font-weight: 500;
  cursor: pointer;
}
.auth-footer a:hover { color: #6c3bff; }

/* ── Alert messages ── */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
  display: none;
}
.alert.show { display: block; }
.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80;
}
.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

/* ── Account Page ── */
.account-page {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 88px 20px 60px;
  min-height: calc(100vh - 64px);
}
.account-container {
  width: 100%;
  max-width: 900px;
}
.account-header {
  text-align: center;
  margin-bottom: 24px;
}
.account-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.account-header p {
  color: #9a9a9a;
  font-size: 14px;
}
.account-avatar {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #6c3bff, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 12px 34px rgba(108,59,255,0.24);
}
.account-info {
  background: rgba(15, 15, 35, 0.68);
  border: 1px solid rgba(108, 59, 255, 0.14);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.16);
}
.account-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: #a78bfa;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(108, 59, 255, 0.1);
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(13,17,23,0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.info-label {
  font-size: 13px;
  color: #9a9a9a;
  font-weight: 500;
}
.info-value {
  font-size: 14px;
  color: #e0e0e0;
  font-weight: 500;
}
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.quick-link {
  background: rgba(15, 15, 35, 0.66);
  border: 1px solid rgba(108, 59, 255, 0.14);
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  color: inherit;
}
.quick-link:hover {
  border-color: rgba(108, 59, 255, 0.3);
  transform: translateY(-2px);
}
.quick-link-icon {
  font-size: 24px;
  margin-bottom: 8px;
}
.quick-link-label {
  font-size: 12px;
  color: #888;
  font-weight: 500;
}
.btn-logout {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-logout:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.5);
}

/* ── Vote Page ── */
.vote-page {
  padding: 100px 20px 60px;
  max-width: 800px;
  margin: 0 auto;
}
.vote-header {
  text-align: center;
  margin-bottom: 48px;
}
.vote-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.vote-header p {
  color: #9a9a9a;
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
}
.vote-rewards {
  background: rgba(15, 15, 35, 0.6);
  border: 1px solid rgba(108, 59, 255, 0.1);
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 24px;
}
.vote-rewards h3 {
  font-size: 18px;
  font-weight: 600;
  color: #a78bfa;
  margin-bottom: 20px;
}
.reward-list {
  list-style: none;
  display: grid;
  gap: 12px;
}
.reward-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(5, 5, 16, 0.5);
  border-radius: 8px;
}
.reward-icon {
  width: 36px;
  height: 36px;
  background: rgba(108, 59, 255, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.reward-text {
  font-size: 14px;
  color: #ccc;
}
.reward-text strong { color: #a78bfa; }
.bonus-section {
  background: rgba(15, 15, 35, 0.6);
  border: 1px solid rgba(108, 59, 255, 0.1);
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 24px;
}
.bonus-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #a78bfa;
  margin-bottom: 20px;
}
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.bonus-card {
  background: rgba(5, 5, 16, 0.5);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.bonus-mult {
  font-size: 24px;
  font-weight: 800;
  color: #6c3bff;
  margin-bottom: 4px;
}
.bonus-label {
  font-size: 12px;
  color: #888;
  font-weight: 500;
}
.vote-sites {
  background: rgba(15, 15, 35, 0.6);
  border: 1px solid rgba(108, 59, 255, 0.1);
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 24px;
}
.vote-sites h3 {
  font-size: 18px;
  font-weight: 600;
  color: #a78bfa;
  margin-bottom: 20px;
}
.vote-site-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(5, 5, 16, 0.5);
  border: 1px solid rgba(108, 59, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.vote-site-link:last-child { margin-bottom: 0; }
.vote-site-link:hover {
  border-color: rgba(108, 59, 255, 0.3);
  background: rgba(108, 59, 255, 0.04);
}
.vote-site-name {
  font-size: 15px;
  font-weight: 600;
  color: #e0e0e0;
}
.vote-site-btn {
  background: linear-gradient(135deg, #6c3bff, #8b5cf6);
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-block;
}
.vote-site-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 59, 255, 0.3);
}
.vote-instructions {
  background: rgba(15, 15, 35, 0.6);
  border: 1px solid rgba(108, 59, 255, 0.1);
  border-radius: 14px;
  padding: 32px;
}
.vote-instructions h3 {
  font-size: 18px;
  font-weight: 600;
  color: #a78bfa;
  margin-bottom: 20px;
}
.steps-list {
  list-style: none;
  counter-reset: step;
}
.steps-list li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.steps-list li:last-child { border-bottom: none; }
.steps-list li::before {
  content: counter(step);
  width: 32px;
  height: 32px;
  background: rgba(108, 59, 255, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #a78bfa;
  flex-shrink: 0;
}
.steps-list li span {
  padding-top: 5px;
  font-size: 14px;
  color: #999;
  line-height: 1.5;
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .features-section { padding: 80px 24px; }
  .section-header h2 { font-size: 30px; }
  .hero h1 { font-size: 48px; }
}

/* Game modes grid responsive */
@media (max-width: 900px) {
  div[style*="repeat(5"] { grid-template-columns: repeat(3,1fr) !important; }
  #page-store div[style*="200px 1fr"] { grid-template-columns: 1fr !important; }
  #page-store div[style*="200px 1fr"] > div:first-child { position: static !important; display: flex; flex-wrap: wrap; gap: 4px; padding: 8px !important; border-radius: 8px !important; }
  #page-store div[style*="200px 1fr"] > div:first-child > div { display: none; }
  #page-store div[style*="200px 1fr"] > div:first-child > a { padding: 6px 12px !important; font-size: 12px !important; }
  #page-store div[style*="repeat(3,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
}

/* Mobile */
@media (max-width: 768px) {
  .nav { padding: 0 12px; height: 64px; }
  .nav-center { display: none; }
  .nav-right .nav-link-desktop { display: none; }
  .nav-hamburger { display: flex; }
  .nav-btn { padding: 8px 16px; font-size: 12px; }
  .nav-logo img { height: 44px !important; }
  .nav-play-img img { height: 54px !important; }

  .hero { min-height: auto; padding: 30px 16px 50px; background-position: center center; }
  .hero h1 { font-size: 42px; letter-spacing: -1px; }
  .hero p { font-size: 14px; margin-bottom: 28px; }
  .hero-badge { font-size: 10px; padding: 4px 12px; }
  .btn-primary, .btn-outline { padding: 12px 24px; font-size: 14px; width: 100%; justify-content: center; }
  .hero-btns { flex-direction: column; align-items: stretch; gap: 10px; }
  .stats-bar { gap: 20px; margin-top: 40px; }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 10px; }

  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .features-section { padding: 48px 16px; }
  .feature-card { padding: 20px; }
  .section-header h2 { font-size: 26px; }
  .section-header p { font-size: 14px; }

  .auth-card { padding: 24px 16px; margin: 0 12px; }

  .quick-links { grid-template-columns: 1fr !important; }
  .account-page { padding: 76px 12px 42px; }
  .account-info { padding: 16px; }
  .account-section-head { flex-direction: column; align-items: stretch; }
  .account-mini-action { text-align: center; }
  .account-detail-grid,
  .security-status-grid { grid-template-columns: 1fr; }
  .store-history-row { flex-direction: column; }
  .store-history-status { align-self: flex-start; }
  .info-row { align-items: flex-start; }
  .status-pill { justify-self: start; }
  .journey-section { margin: 12px auto 34px; padding: 0 16px; }
  .journey-grid { grid-template-columns: 1fr !important; }
  .journey-card { min-height: auto; }
  .bonus-grid { grid-template-columns: 1fr !important; }
  .account-dashboard-grid,
  .store-account-summary,
  .donor-rank-progress-panel,
  .retention-grid,
  .live-world-stats,
  .hiscore-podium { grid-template-columns: 1fr !important; }
  .donor-rank-card-grid { grid-template-columns: 1fr !important; }
  .live-world-section,
  .update-log-section,
  .retention-section { padding: 0 16px 44px; }
  .live-world-top,
  .donor-progress-head,
  .hiscore-board-head { flex-direction: column; align-items: flex-start; }
  .hiscores-page { padding: 80px 12px 40px; }
  .hiscore-search { grid-template-columns: 1fr; }
  .wiki-search-row { grid-template-columns: 1fr; }
  .wiki-hero h1 { font-size: 32px; }
  .wiki-tabs { justify-content: flex-start; }
  .wiki-guide-grid { grid-template-columns: 1fr !important; }
  .hiscore-board { padding: 12px; }
  .hiscore-filter-group { justify-content: flex-start; }
  .profile-stat-grid,
  .profile-sections,
  .profile-skill-grid,
  .profile-boss-grid,
  .checkout-grid { grid-template-columns: 1fr !important; }
  .profile-head,
  .checkout-actions { flex-direction: column; align-items: stretch; }
  .checkout-dialog { margin: 5vh 12px 0; max-height: 90vh; overflow: auto; }

  .vote-page { padding: 80px 12px 40px; max-width: 100% !important; }
  .vote-sites { gap: 8px; }
  .vote-site-link { flex-direction: column; text-align: center; padding: 16px; }

  /* Store responsive */
  .store-card { padding: 16px 12px; }
  .store-credits { font-size: 22px; }
  .store-price { font-size: 16px; }
  .store-account-summary { display: grid !important; }
  .store-warning { text-align: left !important; }
  .store-page { padding: 72px 12px 34px; }
  .store-page-head { align-items: flex-start; }
  .store-layout { grid-template-columns: 1fr; }
  .store-sidebar { position: static; display: flex; overflow-x: auto; gap: 4px; align-items: center; }
  .store-side-title { display: none; }
  .store-side-link { white-space: nowrap; margin-bottom: 0; }
  .store-credit-grid { grid-template-columns: 1fr; }
  .store-cart-actions { justify-content: stretch; }
  .store-cart-actions button { flex: 1; }
  .store-gift-row { flex-direction: column; align-items: stretch; }
  .store-gift-row input { max-width: none; }

  /* Tables responsive */
  table { font-size: 11px !important; }
  th, td { padding: 6px 4px !important; }

  /* Download cards */
  .download-page { padding: 72px 12px 34px; }
  .download-hero h1 { font-size: 32px; }
  .download-grid { grid-template-columns: 1fr; }
  .download-help-grid { grid-template-columns: 1fr; }
  .download-steps { padding: 18px; }
  .support-page,
  .rules-page,
  .legal-page,
  .database-page,
  .media-page { padding: 72px 12px 34px; }
  .support-hero h1 { font-size: 32px; }
  .database-hero h1 { font-size: 32px; }
  .media-hero h1 { font-size: 32px; }
  .media-featured,
  .media-achievement-grid { grid-template-columns: 1fr; }
  .media-gallery { grid-template-columns: 1fr; }
  .media-card-large { min-height: auto; }
  .media-section-head { flex-direction: column; align-items: flex-start; }
  .media-submit-card { flex-direction: column; align-items: flex-start; }
  .database-tips { justify-content: flex-start; }
  .support-help-grid,
  .support-checklist-grid,
  .support-response-grid,
  .support-fix-grid,
  .rule-summary-grid,
  .legal-summary-grid,
  .refund-decision-grid,
  .rule-list,
  .good-behavior-grid { grid-template-columns: 1fr; }
  .rule-section-title,
  .rules-appeal-card { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
  .rules-appeal-card a { grid-row: auto; grid-column: auto; justify-self: start; }
  .dl-card { padding: 20px 14px; }
  .dl-card-icon { font-size: 32px; }
  .dl-card h3 { font-size: 15px; }

  /* Download dropdown */
  .download-menu { min-width: 220px; left: auto; right: 0; transform: none; }

  /* Footer */
  .footer,
  .footer-main,
  .footer-compact { padding: 32px 16px; }
  .footer-main-grid { grid-template-columns: 1fr 1fr; gap: 24px; text-align: center; }
  .footer-brand img { margin-left: auto; margin-right: auto; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-socials,
  .footer-link-row,
  .footer-legal-row,
  .footer-compact-top,
  .footer-bottom { justify-content: center; text-align: center; }

  /* Hiscores */
  #hiscores-table { padding: 12px !important; overflow-x: auto; }

  /* Account page */
  .auth-form input { font-size: 14px; }

  /* CTA section */
  .cta-section { padding: 60px 16px; }
  .cta-section h2 { font-size: 28px; }

  /* Grid overrides for inline-styled grids */
  div[style*="grid-template-columns: repeat(auto-fit"] { grid-template-columns: 1fr !important; }
  div[style*="grid-template-columns:repeat(auto-fit"] { grid-template-columns: 1fr !important; }

  /* ── Center everything on mobile ── */
  .hero, .hero-content, .hero-content *, .features-section, .feature-card, .feature-card *,
  .section-header, .section-header *, .cta-section, .cta-section *,
  .footer, .footer *,
  .auth-card, .auth-card *,
  #page-home, #page-home .page-content, .page, .page .page-content { text-align: center !important; }
  .feature-card { align-items: center !important; }
  .feature-card p, .feature-card h3 { text-align: center !important; }
  /* Generic flex/grid content centering */
  .hero-btns, .stats-bar, .hero-badge { justify-content: center !important; align-items: center !important; margin-left: auto !important; margin-right: auto !important; }
  /* Prevent max-width constraints from left-aligning */
  .hero p { max-width: 100% !important; }
}

/* Small mobile */
@media (max-width: 480px) {
  .nav { height: 56px; padding: 0 10px; }
  .nav-logo img { height: 36px !important; }
  .nav-play-img img { height: 44px !important; }
  .hero { padding: 24px 12px 40px; }
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .hero p { font-size: 13px; }
  .stats-bar { flex-direction: column; gap: 12px; }
  .stat { display: flex; align-items: center; gap: 8px; }
  .stat-value { font-size: 20px; }
  .nav-logo { font-size: 20px; }
  .store-credits { font-size: 18px; }
  .section-header h2 { font-size: 22px; }
  .feature-icon { width: 40px; height: 40px; font-size: 18px; }
  /* Footer brand column stacks single column on very small */
  .footer-main-grid { grid-template-columns: 1fr; }
}
/* Prevent horizontal overflow from any oversized element */
html, body { overflow-x: hidden; max-width: 100%; }
img { max-width: 100%; }
#scroll-top{position:fixed;bottom:24px;right:24px;width:44px;height:44px;background:linear-gradient(135deg,#6c3bff,#8b5cf6);border:none;border-radius:50%;color:#fff;font-size:20px;cursor:pointer;opacity:0;transition:opacity 0.3s,transform 0.3s;transform:translateY(10px);z-index:999;box-shadow:0 4px 16px rgba(108,59,255,0.3)}
#scroll-top.show{opacity:1;transform:translateY(0)}
#scroll-top:hover{transform:translateY(-2px);box-shadow:0 6px 24px rgba(108,59,255,0.4)}
::-webkit-scrollbar{width:8px}
::-webkit-scrollbar-track{background:#0a0a1a}
::-webkit-scrollbar-thumb{background:#30363d;border-radius:4px}
::-webkit-scrollbar-thumb:hover{background:#6c3bff}
::selection{background:rgba(108,59,255,0.3);color:#fff}

@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:0.5;transform:scale(1.3)}}@keyframes scrollHint{0%,100%{transform:translate(-50%,0);opacity:.55}50%{transform:translate(-50%,8px);opacity:1}}
