/* ============================================
   摇跑活力指数排行榜 - 全局样式
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #FF6B35;
  --primary-dark: #E55A2B;
  --primary-light: #FF8C5A;
  --primary-glow: rgba(255, 107, 53, 0.3);
  --secondary: #004E89;
  --secondary-light: #1A6FB5;
  --accent: #1A936F;
  --accent-light: #23B88A;
  --gold: #FFD700;
  --silver: #C0C0C0;
  --bronze: #CD7F32;
  --bg-body: #0B1120;
  --bg-header: rgba(11, 17, 32, 0.85);
  --bg-card: #151D30;
  --bg-card-hover: #1A2540;
  --bg-input: #0F1729;
  --bg-modal: #151D30;
  --border: #1E2A45;
  --border-light: #2A3655;
  --text-primary: #E8ECF1;
  --text-secondary: #8892A4;
  --text-muted: #5A6478;
  --danger: #EF4444;
  --success: #22C55E;
  --warning: #F59E0B;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px var(--primary-glow);
  --transition: 0.3s ease;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo i {
  font-size: 24px;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.nav-item.active {
  color: var(--primary);
  background: rgba(255, 107, 53, 0.1);
}

.nav-item i { font-size: 15px; }

.header-actions { flex-shrink: 0; }

.btn-login {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 12px var(--primary-glow);
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--primary-glow);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  font-size: 22px;
  color: var(--text-primary);
  padding: 8px;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 420px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 16px;
  transition: var(--transition);
}

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

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.auth-tab:hover { color: var(--text-secondary); }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-form.hidden { display: none; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input::placeholder { color: var(--text-muted); }

.input-row {
  display: flex;
  gap: 10px;
}

.input-row input { flex: 1; }

.btn-code {
  padding: 10px 16px;
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-code:hover { background: var(--secondary-light); }
.btn-code:disabled { opacity: 0.5; cursor: not-allowed; }

.checkbox-group { flex-direction: row; align-items: center; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
}

.btn-primary {
  padding: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 12px var(--primary-glow);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-wechat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #07C160;
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-wechat:hover { background: #06AD56; }

/* --- Main Content --- */
.main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 24px 40px;
  min-height: calc(100vh - 200px);
}

.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }

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

/* --- Section Title --- */
.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* --- Tab System --- */
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* --- Group Selector --- */
.group-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.group-selector label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.group-selector select {
  padding: 8px 32px 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892A4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.group-selector select:focus {
  border-color: var(--primary);
}

/* --- Leaderboard Table --- */
.leaderboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table thead {
  background: rgba(255,255,255,0.03);
}

.leaderboard-table th {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.leaderboard-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid rgba(30, 42, 69, 0.5);
  transition: var(--transition);
}

.leaderboard-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

.leaderboard-table tbody tr:last-child td {
  border-bottom: none;
}

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

.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #1a1a1a; box-shadow: 0 0 12px rgba(255,215,0,0.4); }
.rank-2 { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #1a1a1a; box-shadow: 0 0 12px rgba(192,192,192,0.3); }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #B06A28); color: #fff; box-shadow: 0 0 12px rgba(205,127,50,0.3); }
.rank-default { background: var(--bg-input); color: var(--text-secondary); }

/* User cell */
.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.user-name { font-weight: 500; }
.user-city { font-size: 12px; color: var(--text-muted); }

/* Value cell */
.value-cell {
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
}

/* Trend */
.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }
.trend-same { color: var(--text-muted); }

/* Group ranking specific */
.brand-logo, .city-icon, .country-flag {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.brand-logo { background: rgba(255,107,53,0.15); }
.city-icon { background: rgba(26,147,111,0.15); }
.country-flag { background: rgba(0,78,137,0.15); }

.group-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.group-name { font-weight: 600; }
.group-sub { font-size: 12px; color: var(--text-muted); }

.score-bar {
  width: 100%;
  max-width: 120px;
  height: 6px;
  background: var(--bg-input);
  border-radius: 3px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 0.6s ease;
}

/* --- Profile Page --- */
.profile-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.profile-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 0 24px var(--primary-glow);
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-group {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,107,53,0.15);
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
}

.profile-info-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.profile-info-item .label { color: var(--text-secondary); }
.profile-info-item .value { font-weight: 500; }

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

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

.stat-value {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title i { color: var(--primary); }

/* Edit form */
.edit-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.edit-form .form-group.full-width {
  grid-column: 1 / -1;
}

.btn-save {
  padding: 10px 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  justify-self: start;
}

.btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--primary-glow);
}

/* Upload area */
.upload-area {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.upload-area:hover {
  border-color: var(--primary);
  background: rgba(255,107,53,0.05);
}

.upload-area i {
  font-size: 40px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.upload-area p {
  font-size: 14px;
  color: var(--text-secondary);
}

.upload-area .hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Chart container */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

/* --- News Page --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
}

.news-card-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,0.3);
}

.news-card-body {
  padding: 20px;
}

.news-card-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
}

.tag-announcement { background: rgba(255,107,53,0.15); color: var(--primary); }
.tag-sports { background: rgba(26,147,111,0.15); color: var(--accent-light); }
.tag-ranking { background: rgba(255,215,0,0.15); color: var(--gold); }
.tag-event { background: rgba(0,78,137,0.15); color: var(--secondary-light); }

.news-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* --- About Page --- */
.about-hero {
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(0,78,137,0.1));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

.about-hero h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.about-hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.about-section {
  margin-bottom: 32px;
}

.about-section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-section-title i {
  color: var(--primary);
  font-size: 22px;
}

.about-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-content p { margin-bottom: 12px; }
.about-content p:last-child { margin-bottom: 0; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.team-member {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  margin: 0 auto 12px;
}

.team-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.team-role { font-size: 12px; color: var(--text-muted); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
}

.contact-item i {
  font-size: 20px;
  color: var(--primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,107,53,0.1);
  border-radius: var(--radius-sm);
}

.contact-item .info { font-size: 14px; }
.contact-item .info .label { font-size: 12px; color: var(--text-muted); }

.coop-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.coop-card {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.coop-card:hover {
  border-color: var(--primary);
  background: rgba(255,107,53,0.05);
}

.coop-card i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 12px;
}

.coop-card h4 { font-size: 16px; margin-bottom: 8px; }
.coop-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* --- Footer --- */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-left .logo-text {
  font-weight: 700;
  color: var(--primary);
}

.footer-links {
  display: flex;
  gap: 20px;
}

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

.footer-links a:hover { color: var(--text-primary); }

/* --- Toast Notification --- */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
  min-width: 280px;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--secondary-light); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p { font-size: 14px; }

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.page-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.page-btn.active { background: var(--primary); color: #fff; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 16px; }

  .nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }

  .nav.open { display: flex; }

  .nav-item {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  .menu-toggle { display: block; }

  .main { padding: 80px 16px 32px; }

  .section-title { font-size: 22px; }

  .tabs { gap: 2px; }
  .tab-btn { padding: 8px 14px; font-size: 13px; }

  .leaderboard-table th,
  .leaderboard-table td { padding: 10px 12px; font-size: 13px; }

  .edit-form { grid-template-columns: 1fr; }

  .news-grid { grid-template-columns: 1fr; }

  .profile-stats { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .logo span { font-size: 16px; }
  .btn-login span { display: none; }
  .modal { padding: 24px; }
  .group-selector { flex-direction: column; align-items: flex-start; }
}
