/* ===================== Reset & Base (v20260807c2) ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --border: #2a2a2a;
  --text: #f0f0f0;
  --text-dim: #c0c0c0;
  --text-muted: #9a9a9a;
  --accent: #FF6B35;
  --accent-hover: #ff7d4f;
  --accent-dim: rgba(255, 107, 53, 0.15);
  --blue: #00D4FF;
  --green: #4ADE80;
  --red: #FF4444;
  --gold: #FFD700;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================== Header ===================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 60px;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.logo-icon { font-size: 24px; }
.logo-text { color: var(--text); }
.logo-text .accent { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-link:hover { color: var(--text); background: var(--bg-card); }
.nav-link.active { color: var(--accent); background: var(--accent-dim); }

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===================== Language Switcher ===================== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.user-btn:hover { background: var(--bg-card-hover); }

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.btn-logout {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-logout:hover { color: var(--red); background: rgba(255,68,68,0.1); }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }

.btn-alt {
  background: #004E89;
  color: #fff;
  border: 1px solid #004E89;
}
.btn-alt:hover { background: #0066b3; transform: translateY(-1px); }

.btn-lg { padding: 14px 32px; font-size: 17px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ===================== Pages ===================== */
.page { display: none; padding-top: 60px; min-height: 100vh; }
.page.active { display: block; }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255, 107, 53, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #111 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 60px 20px;
  max-width: 700px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero-title .accent { color: var(--accent); }

.hero-subtitle {
  font-size: clamp(15px, 2.5vw, 19px);
  color: var(--text-dim);
  margin-bottom: 32px;
  letter-spacing: 1px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
  margin-bottom: 48px;
}
.hero-cta .btn { min-width: 200px; flex: 1 1 0; max-width: 280px; }

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.stat-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}

/* ===================== Section ===================== */
.section-header {
  text-align: center;
  margin-bottom: 32px;
  padding-top: 60px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 1px;
}

.section-sub {
  color: var(--text-dim);
  font-size: 15px;
  margin-top: 8px;
}

/* ===================== Ranking ===================== */
.ranking-section {
  padding: 0 0 60px;
}

/* ===================== Leaderboard Mode Tabs ===================== */
.leaderboard-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.lb-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.lb-tab i { font-size: 16px; }

.lb-tab:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--bg-card-hover);
}

.lb-tab.active {
  background: linear-gradient(135deg, var(--accent), #e0552a);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

/* Annual tab — extra eye-catching */
.lb-tab-annual {
  background: linear-gradient(135deg, #1a1a1a, #2a1a00);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
}

.lb-tab-annual::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #FFD700, #FF6B35, #FFD700);
  border-radius: var(--radius-sm);
  z-index: -1;
  animation: annualGlow 3s ease-in-out infinite;
}

.lb-tab-annual {
  animation: annualPulse 2s ease-in-out infinite;
}

@keyframes annualPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 24px rgba(255, 215, 0, 0.6); }
}

@keyframes annualGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.lb-tab-annual:hover {
  color: var(--gold);
  background: linear-gradient(135deg, #2a2a00, #3a2a00);
}

.lb-tab-annual.active {
  background: linear-gradient(135deg, #FFD700, #FF6B35);
  color: #1a1a1a;
  font-weight: 700;
}

.lb-tab-annual.active::before { display: none; }

.lb-tab-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 215, 0, 0.2);
  color: var(--gold);
  margin-left: 4px;
  letter-spacing: 0;
}

.lb-tab-annual.active .lb-tab-badge {
  background: rgba(0,0,0,0.2);
  color: #1a1a1a;
}

/* ===================== Month Selector ===================== */
.month-selector {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.month-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 100px;
  position: relative;
}

.month-btn:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.month-btn.active {
  background: linear-gradient(135deg, var(--accent-dim), rgba(0, 212, 255, 0.08));
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.2);
}

.month-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.month-btn.active .month-num {
  text-shadow: 0 0 12px rgba(255, 107, 53, 0.4);
}

.month-label {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 600;
}

.month-deadline {
  font-size: 11px;
  color: var(--red);
  font-weight: 600;
  margin-top: 4px;
}

/* ===================== Annual Promo Banner ===================== */
.annual-promo {
  margin-bottom: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1a00 50%, #1a1a1a 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 24px rgba(255, 215, 0, 0.08);
}

.annual-promo-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px;
  flex-wrap: wrap;
}

.annual-promo-left { flex: 1 1 400px; }

.annual-promo-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.annual-promo-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.annual-promo-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.annual-promo-desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}

.annual-promo-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.aps-item { text-align: center; }

.aps-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 16px rgba(255, 215, 0, 0.3);
  line-height: 1;
}

.aps-label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}

.annual-trophy {
  font-size: 64px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.3));
  animation: trophyFloat 3s ease-in-out infinite;
}

@keyframes trophyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.annual-cta {
  background: linear-gradient(135deg, #FFD700, #FF6B35) !important;
  color: #1a1a1a !important;
  font-weight: 700;
  border: none;
}

.annual-cta:hover {
  background: linear-gradient(135deg, #FFE55C, #ff7d4f) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

/* ===================== Sport Page Cards ===================== */
.sport-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px 0 60px;
}

.sport-card {
  flex: 1 1 280px;
  max-width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sport-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.sport-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 24px rgba(255,107,53,0.1);
}

.sport-card:hover::before { opacity: 1; }

.sport-card-icon {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 20px;
}

.sport-card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.sport-card-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 20px;
}

.sport-card-cta {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
}

/* ===================== Register Nav Button ===================== */
.nav-register {
  background: linear-gradient(135deg, var(--accent), #e0552a) !important;
  color: #fff !important;
  border-radius: 20px;
  padding: 6px 18px !important;
  font-weight: 700;
  animation: registerPulse 2s ease-in-out infinite;
}

.nav-register:hover {
  background: linear-gradient(135deg, var(--accent-hover), #ff7d4f) !important;
  transform: translateY(-1px);
}

@keyframes registerPulse {
  0%, 100% { box-shadow: 0 0 4px rgba(255, 107, 53, 0.3); }
  50% { box-shadow: 0 0 16px rgba(255, 107, 53, 0.6); }
}

/* ===================== Register Page ===================== */
.register-packages {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px 0 40px;
}

/* Qualification Notice — 体能选手 选手专属 */
.register-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 20px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(255,107,53,0.08), rgba(0,78,137,0.08));
  border: 1px solid rgba(255,107,53,0.2);
  border-radius: 12px;
}
.register-notice-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text);
}
.register-notice-item i {
  color: var(--primary);
  font-size: 18px;
}

.register-card {
  flex: 1 1 300px;
  max-width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.register-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 24px rgba(255,107,53,0.1);
}

.register-card-popular {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(255,107,53,0.05), var(--bg-card));
}

.register-card-robot {
  border-color: var(--blue);
  background: linear-gradient(180deg, rgba(0,212,255,0.05), var(--bg-card));
}

.register-card-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 4px 12px;
  border: 1px solid var(--accent);
  border-radius: 12px;
}

.register-card-robot .register-card-badge {
  color: var(--blue);
  border-color: var(--blue);
}

.register-card-popular-tag {
  position: absolute;
  top: 12px;
  right: -8px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  transform: rotate(15deg);
}

.register-card-price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.register-card-price-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 20px;
}

.register-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.register-card-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.register-card-features li {
  font-size: 14px;
  color: var(--text-dim);
  padding: 6px 0;
  line-height: 1.5;
}

.register-cta {
  font-weight: 700;
  letter-spacing: 1px;
}

/* Registration Form */
.register-form-wrap {
  max-width: 600px;
  margin: 0 auto 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.register-form-inner {
  padding: 32px;
}

.register-form-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
  text-align: center;
}

.register-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.register-form-group {
  flex: 1;
  margin-bottom: 16px;
}

.register-form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.register-form-group input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.register-form-group input:focus {
  border-color: var(--accent);
}

.register-form-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-dim);
}

.register-form-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* Registration Info Cards */
.register-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px 0 60px;
}

.register-info-card {
  flex: 1 1 200px;
  max-width: 260px;
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.register-info-card i {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 12px;
}

.register-info-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.register-info-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.filter-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-group select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.filter-group select:hover { border-color: var(--accent); }

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.ranking-table th {
  background: #1a1a1a;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.ranking-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(42, 42, 42, 0.5);
  vertical-align: middle;
}

.ranking-table tbody tr {
  transition: background 0.15s;
}

.ranking-table tbody tr:hover { background: var(--bg-card-hover); }
.ranking-table tbody tr:last-child td { border-bottom: none; }

.col-rank { width: 60px; text-align: center; }
.col-name { min-width: 120px; }
.col-energy { min-width: 100px; }
.col-rpm { min-width: 100px; }
.col-dist { min-width: 100px; }
.col-region { min-width: 80px; }

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-display);
}

.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; }
.rank-2 { background: linear-gradient(135deg, #C0C0C0, #808080); color: #000; }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #8B4513); color: #fff; }
.rank-other { background: var(--border); color: var(--text-dim); }

.player-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.player-nickname {
  font-weight: 600;
  font-size: 15px;
}

.energy-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
}

.rpm-value, .dist-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
}

.region-text {
  font-size: 13px;
  color: var(--text-dim);
}

.loading-row {
  text-align: center;
  padding: 40px !important;
  color: var(--text-muted);
}

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.page-btn {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.page-btn:hover { border-color: var(--accent); color: var(--text); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ===================== Test Page ===================== */
.test-page {
  padding-bottom: 60px;
}

.test-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 18px;
}

.step-text {
  font-weight: 600;
  font-size: 15px;
}

.step-divider {
  width: 40px;
  height: 2px;
  background: var(--border);
}

.test-area {
  max-width: 600px;
  margin: 0 auto;
}

.test-step {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Connect Card */
.connect-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
}

.connect-icon {
  font-size: 64px;
  color: var(--accent);
  margin-bottom: 20px;
}

.connect-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 12px;
}

.connect-desc {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 24px;
}

.diag-info {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  border: 1px dashed var(--border);
  padding: 10px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  text-align: left;
  word-break: break-all;
}

.error-hint {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 14px;
}

.bluefy-notice {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 16px 0;
  text-align: center;
}

.bluefy-notice h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--blue);
}

.bluefy-notice p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.btn-connect {
  margin-top: 8px;
}

.connect-status {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 14px;
}

/* Test Dashboard */
.test-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.device-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.device-name {
  font-weight: 600;
  font-size: 15px;
}

.battery {
  font-size: 13px;
  color: var(--green);
}

.test-status {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

.gauge-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#speedGauge {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 280px;
  max-height: 280px;
}

.gauge-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  z-index: 2;
}

.gauge-countdown {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: #FF4444;
  z-index: 3;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(255,68,68,0.5);
}

.gauge-value {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.gauge-label {
  font-size: 14px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

.test-timer {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.test-metrics {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.metric-card {
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  min-width: 110px;
  text-align: center;
}

.metric-card.highlight {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.metric-card.highlight .metric-value {
  color: var(--accent);
}

.metric-label {
  font-size: 16px;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.debug-info {
  font-size: 11px;
  color: var(--text-muted);
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: 16px 0;
  text-align: left;
  word-break: break-all;
  font-family: monospace;
}

/* Result Card */
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
}

.result-trophy {
  font-size: 64px;
  color: var(--gold);
  margin-bottom: 16px;
}

.result-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 24px;
}

.result-main {
  margin-bottom: 32px;
}

.result-energy {
  display: inline-block;
}

.result-value {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.result-label {
  font-size: 16px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 8px;
}

.result-details {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.result-item {
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  min-width: 120px;
}

.result-item-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.result-item-label {
  font-size: 16px;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.result-message {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 24px;
}

.save-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.save-nickname {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 8px;
}

.input-nickname, .input-select {
  background: #1a1a1a;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.input-nickname:focus, .input-select:focus {
  border-color: var(--accent);
}

.input-nickname { min-width: 180px; }
.input-select { min-width: 100px; }

.rank-result {
  margin-top: 20px;
  padding: 16px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
}

/* ===================== Guide Page ===================== */
.guide-page {
  padding-bottom: 60px;
}

.guide-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.guide-icon {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 16px;
}

.guide-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 16px;
}

.guide-card ul, .guide-card ol {
  list-style: none;
  padding: 0;
}

.guide-card li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(42,42,42,0.5);
}

.guide-card li:last-child { border-bottom: none; }

.guide-card li strong { color: var(--text); }

.formula {
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.formula p {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-dim);
}

.formula strong { color: var(--accent); }

/* ===================== Profile Page ===================== */
.profile-page {
  padding-bottom: 60px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.profile-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.profile-stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
}

.profile-stat-label {
  font-size: 16px;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.profile-stat-rank {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 6px;
}

.profile-history h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 16px;
}

/* ===================== Profile Trend Charts ===================== */
.profile-trend h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 16px;
}

.trend-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.trend-chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.trend-chart-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trend-chart-wrap {
  position: relative;
  height: 200px;
}

@media (max-width: 600px) {
  .trend-charts-grid {
    grid-template-columns: 1fr;
  }
  .trend-chart-wrap {
    height: 180px;
  }
}

/* ===================== Modal ===================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-sm { max-width: 420px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.modal-close:hover { color: var(--red); background: rgba(255,68,68,0.1); }

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font-body);
}

.form-input:focus { border-color: var(--accent); }

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group { flex: 1; }

.form-error {
  background: rgba(255,68,68,0.1);
  border: 1px solid rgba(255,68,68,0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  color: var(--red);
  font-size: 14px;
}

.form-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-dim);
}

.form-switch a { font-weight: 600; }

/* ===================== Toast ===================== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease;
  max-width: 90%;
}

.toast.success { border-color: var(--green); color: var(--green); }
.toast.error { border-color: var(--red); color: var(--red); }

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ===================== Footer ===================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: #060606;
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.footer-logo .accent { color: var(--accent); }

.footer-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===================== Responsive ===================== */
@media (max-width: 768px) {
  #header { height: auto; padding-bottom: 8px; }
  .header-inner { flex-wrap: wrap; gap: 4px; }
  .logo { font-size: 16px; }
  .logo-icon { font-size: 20px; }
  .header-right { flex-shrink: 0; }
  .nav-links {
    width: 100%;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-top: 4px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link { padding: 6px 10px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
  .nav-dropdown-menu { position: absolute; top: 100%; }
  .page { padding-top: 100px; }

  .hero { min-height: 420px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 320px; }
  .hero-stats { gap: 24px; }

  .filter-bar { flex-direction: column; gap: 10px; }
  .filter-group { width: 100%; }
  .filter-group select { width: 100%; }

  .ranking-table { font-size: 13px; }
  .ranking-table th, .ranking-table td { padding: 10px 8px; }
  .col-region { display: none; }

  .test-steps { gap: 8px; }
  .step-divider { width: 20px; }
  .step-text { font-size: 13px; }

  .connect-card { padding: 32px 20px; }
  .gauge-container { width: 220px; height: 220px; }
  .gauge-value { font-size: 44px; }

  .result-value { font-size: 56px; }
  .result-details { gap: 8px; }
  .result-item { min-width: 90px; padding: 12px 16px; }

  .form-row { flex-direction: column; }

  .user-btn span:not(.user-avatar) { display: none; }
}

@media (max-width: 480px) {
  .col-rpm, .col-dist, .col-secondary, .col-tertiary { display: none; }
  /* 主指标列始终显示 */
  .primary-metric { display: table-cell !important; }
  .hero-title { font-size: 32px; }
  .section-title { font-size: 24px; }
}

/* ===================== Demo Video ===================== */
.demo-video-wrap {
  max-width: 400px;
  margin: 0 auto 24px;
  text-align: center;
}
.demo-video {
  width: 100%;
  max-width: 360px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.demo-video-caption {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 8px;
}

/* ===================== Contest Poster (首页海报) ===================== */
.contest-poster {
  position: relative;
  margin: 0 auto 24px;
  max-width: 960px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contest-poster:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(255,107,53,0.3);
}
.contest-poster-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #FF6B35 130%);
}
.contest-poster-bg::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,107,53,0.25), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(0,212,255,0.15), transparent 50%);
}
.contest-poster-content {
  position: relative;
  padding: 40px 32px;
  text-align: center;
}
.contest-poster-badge {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  color: #FF6B35;
  background: rgba(255,107,53,0.15);
  border: 1px solid rgba(255,107,53,0.4);
  border-radius: 20px;
  padding: 4px 16px;
  margin-bottom: 16px;
}
.contest-poster-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.contest-poster-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
}
.contest-poster-gift {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,107,53,0.2);
  border: 1px solid rgba(255,107,53,0.5);
  border-radius: 24px;
  padding: 8px 20px;
  margin-bottom: 24px;
  font-size: 15px;
  font-weight: 600;
  color: #FF6B35;
}
.contest-poster-gift i {
  font-size: 18px;
}
.contest-poster-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 28px;
}
.cps-item { text-align: center; }
.cps-num {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 800;
  color: #FF6B35;
}
.cps-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.contest-poster-cta {
  pointer-events: none;
}

/* ===================== Contest Rules Modal (比赛规则弹窗) ===================== */
.contest-rules-modal {
  display: none;
  position: fixed; inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.contest-rules-modal.active {
  display: flex;
}
.contest-rules-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 40px 32px 32px;
}
.contest-rules-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none;
  color: var(--text-dim);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.contest-rules-close:hover { color: var(--text); }
.contest-rules-content h2 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 24px;
  text-align: center;
}
.contest-rules-body h3 {
  font-size: 17px;
  color: var(--text);
  margin: 20px 0 10px;
}
.contest-rules-body ul {
  list-style: none;
  padding-left: 0;
}
.contest-rules-body li {
  font-size: 14px;
  color: var(--text-dim);
  padding: 5px 0 5px 20px;
  position: relative;
  line-height: 1.6;
}
.contest-rules-body li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--accent);
}
.contest-rules-footer {
  text-align: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ===================== 体能选手 Image Upload ===================== */
.体能选手-upload-area {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.体能选手-upload-area:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.体能选手-upload-area i {
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}
#体能选手UploadText {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}
.体能选手-upload-hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}
.体能选手-preview {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  margin-top: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ===================== Outline Button ===================== */
.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-dim);
}
.btn-sm {
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 8px;
}

/* ===================== Nav Dropdown ===================== */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  overflow: hidden;
  z-index: 100;
}
.nav-dropdown-menu.active {
  display: block;
}
.nav-dropdown-item {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-dropdown-item:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

/* ===================== Contact Modal ===================== */
.contact-info {
  padding: 8px 0;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child {
  border-bottom: none;
}
.contact-item i {
  font-size: 22px;
  color: var(--accent);
  margin-top: 2px;
  width: 28px;
  text-align: center;
}
.contact-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-value {
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}
.contact-value a {
  color: var(--accent);
  text-decoration: none;
}
.contact-value a:hover {
  text-decoration: underline;
}

/* ===================== Qual Type Selector ===================== */
.qual-type-selector {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.qual-type-option {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.qual-type-option:hover {
  border-color: var(--accent);
}
.qual-type-option input[type="radio"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}
.qual-type-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.qual-type-label {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

/* ===================== Guide Link Buttons ===================== */
.guide-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guide-link-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.guide-link-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateX(4px);
}
.guide-link-btn > i:first-child {
  color: var(--accent);
  font-size: 18px;
  width: 24px;
  text-align: center;
}
.guide-link-btn > i:last-child {
  color: var(--text-muted);
  font-size: 13px;
  margin-left: auto;
}

/* ===================== Admin Backend ===================== */
.admin-page { max-width: 1100px; }
.admin-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.admin-stat-card {
  flex: 1;
  min-width: 120px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.admin-stat-card.pending { border-color: #FFA500; }
.admin-stat-card.approved { border-color: #4CAF50; }
.admin-stat-card.shipped { border-color: #00D4FF; }
.admin-stat-card.hyrox { border-color: var(--accent); }
.admin-stat-card.wheelchair { border-color: var(--blue); }
.admin-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
}
.admin-stat-card.pending .admin-stat-num { color: #FFA500; }
.admin-stat-card.approved .admin-stat-num { color: #4CAF50; }
.admin-stat-card.shipped .admin-stat-num { color: #00D4FF; }
.admin-stat-card.hyrox .admin-stat-num { color: var(--accent); }
.admin-stat-card.wheelchair .admin-stat-num { color: var(--blue); }
.admin-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.admin-filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.admin-filter-bar select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
}
.admin-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th {
  background: var(--bg);
  padding: 12px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.admin-table tr:hover {
  background: var(--bg-card-hover);
}
.admin-table td button {
  margin-right: 4px;
}

/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
}
.admin-tab {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }
.admin-pagination {
  text-align: center;
  padding: 16px;
  color: var(--text-dim);
  font-size: 14px;
}
