/* dashboard/dashboard.css — Clean minimal dark dashboard */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #0d0d14;
  color: #eee;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
}

/* ── Page fade-in ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Auth Gate ── */
#auth-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  padding: 20px;
  animation: fadeInUp 0.5s ease both;
}

.auth-card {
  text-align: center;
  max-width: 380px;
  background: linear-gradient(145deg, rgba(22, 22, 40, 0.7), rgba(14, 14, 24, 0.9));
  border: 1px solid rgba(88, 101, 242, 0.15);
  border-radius: 16px;
  padding: 48px 36px 40px;
  backdrop-filter: blur(12px);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(88, 101, 242, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.auth-card svg {
  margin-bottom: 24px;
  filter: drop-shadow(0 0 12px rgba(88, 101, 242, 0.35));
}

.auth-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.auth-card p {
  color: #777;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 28px;
}

@keyframes signinPulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(88, 101, 242, 0.3); }
  50% { box-shadow: 0 2px 20px rgba(88, 101, 242, 0.5), 0 0 0 4px rgba(88, 101, 242, 0.08); }
}

.signin-btn {
  background: linear-gradient(135deg, #F5A623, #FFD054);
  color: #0d0f1a;
  border: none;
  border-radius: 10px;
  padding: 13px 36px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 12px rgba(245, 166, 35, 0.3);
  position: relative;
  overflow: hidden;
  animation: signinPulse 3s ease-in-out infinite;
}

.signin-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.4);
  animation: none;
}

.signin-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 8px rgba(88, 101, 242, 0.3);
}

/* ── Dashboard Layout ── */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 60px);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Sidebar ── */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0c0c18, #0a0a12);
  border-right: 1px solid #1a1a2a;
  padding: 32px 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeInUp 0.4s ease both;
}

.profile-section { text-align: center; }

@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(88, 101, 242, 0.15), 0 0 0 0 rgba(88, 101, 242, 0.1); }
  50% { box-shadow: 0 0 20px rgba(88, 101, 242, 0.2), 0 0 0 4px rgba(88, 101, 242, 0.04); }
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #1a1a2a;
  object-fit: cover;
  margin-bottom: 12px;
  border: 2px solid rgba(88, 101, 242, 0.4);
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.15);
  transition: border-color 0.3s, box-shadow 0.3s;
  animation: avatarPulse 4s ease-in-out infinite;
}

.avatar:hover {
  border-color: rgba(88, 101, 242, 0.7);
  box-shadow: 0 0 24px rgba(88, 101, 242, 0.3), 0 0 0 6px rgba(88, 101, 242, 0.06);
  animation: none;
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.profile-since {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.sidebar-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #1e1e30, transparent);
}

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

.stat-hero-number {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #FFD700 20%, #ff9500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.2));
}

.stat-hero-label {
  font-size: 11px;
  color: #606068;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ── Spin Percentile Badge ── */
.spin-percentile {
  text-align: center;
  margin-top: 8px;
}

.percentile-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid;
}

.percentile-sub {
  display: block;
  font-size: 10px;
  color: #444;
  margin-top: 4px;
}

.tier-default {
  color: #666;
  border-color: #2a2a3a;
  background: rgba(20, 20, 30, 0.6);
}

.tier-bronze {
  color: #cd7f32;
  border-color: rgba(205, 127, 50, 0.25);
  background: rgba(205, 127, 50, 0.06);
}

.tier-silver {
  color: #c0c0c0;
  border-color: rgba(192, 192, 192, 0.2);
  background: rgba(192, 192, 192, 0.06);
}

.tier-gold {
  color: #FFD700;
  border-color: rgba(255, 215, 0, 0.25);
  background: rgba(255, 215, 0, 0.06);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.tier-platinum {
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.25);
  background: rgba(167, 139, 250, 0.06);
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.2);
}

.tier-diamond {
  color: #00D4FF;
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.08);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.08);
}

@keyframes legendaryShift {
  0%, 100% {
    border-color: rgba(255, 215, 0, 0.35);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.12);
  }
  33% {
    border-color: rgba(255, 20, 147, 0.35);
    box-shadow: 0 0 16px rgba(255, 20, 147, 0.12);
  }
  66% {
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.12);
  }
}

.tier-legendary {
  color: #FFD700;
  border-color: rgba(255, 215, 0, 0.35);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 20, 147, 0.06), rgba(0, 212, 255, 0.08));
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.12);
  animation: legendaryShift 3s ease infinite;
}

.stat-split {
  display: flex;
  gap: 8px;
  width: 100%;
}

.stat-box {
  flex: 1;
  text-align: center;
  background: #12121e;
  border: 1px solid #1a1a2a;
  border-radius: 8px;
  padding: 12px 4px;
  transition: border-color 0.2s, background 0.2s;
}

.stat-box:hover {
  border-color: #252540;
  background: #141422;
}

.stat-main {
  border-color: rgba(0, 212, 255, 0.12);
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.03), #12121e);
}

.stat-main:hover {
  border-color: rgba(0, 212, 255, 0.25);
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.06), #141422);
}

.stat-squad {
  border-color: rgba(255, 20, 147, 0.12);
  background: linear-gradient(145deg, rgba(255, 20, 147, 0.03), #12121e);
}

.stat-squad:hover {
  border-color: rgba(255, 20, 147, 0.25);
  background: linear-gradient(145deg, rgba(255, 20, 147, 0.06), #141422);
}

.stat-rage {
  border-color: rgba(239, 68, 68, 0.12);
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.03), #12121e);
}

.stat-rage:hover {
  border-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.06), #141422);
}

.stat-box-number {
  font-size: 20px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

@media (hover: hover) {
  .stat-box:hover .stat-box-number {
    transform: scale(1.1);
  }
}

.stat-main .stat-box-number {
  color: #00D4FF;
  text-shadow: 0 0 16px rgba(0, 212, 255, 0.15);
}

.stat-squad .stat-box-number {
  color: #FF1493;
  text-shadow: 0 0 16px rgba(255, 20, 147, 0.15);
}

.stat-rage .stat-box-number {
  color: #ef4444;
  text-shadow: 0 0 16px rgba(239, 68, 68, 0.15);
}

.stat-box-label {
  font-size: 10px;
  color: #555;
  text-transform: uppercase;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.your-main {
  text-align: center;
  width: 100%;
  background: #12121e;
  border: 1px solid #1a1a2a;
  border-radius: 8px;
  padding: 14px 12px;
  transition: border-color 0.2s;
}

.your-main:hover {
  border-color: #252540;
}

.your-main-label {
  font-size: 11px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.your-main-class {
  font-size: 22px;
  font-weight: 700;
  transition: color 0.3s;
}

.your-main-class[data-class="Light"] {
  color: #00D4FF;
  text-shadow: 0 0 16px rgba(0, 212, 255, 0.2);
}

.your-main-class[data-class="Medium"] {
  color: #FFD700;
  text-shadow: 0 0 16px rgba(255, 215, 0, 0.2);
}

.your-main-class[data-class="Heavy"] {
  color: #FF1493;
  text-shadow: 0 0 16px rgba(255, 20, 147, 0.2);
}

.your-main-pct {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

/* Class-colored Your Main card */
.your-main:has([data-class="Light"]) {
  border-color: rgba(0, 212, 255, 0.12);
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.03), #12121e);
}
.your-main:has([data-class="Light"]):hover {
  border-color: rgba(0, 212, 255, 0.25);
}

.your-main:has([data-class="Medium"]) {
  border-color: rgba(255, 215, 0, 0.12);
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.03), #12121e);
}
.your-main:has([data-class="Medium"]):hover {
  border-color: rgba(255, 215, 0, 0.25);
}

.your-main:has([data-class="Heavy"]) {
  border-color: rgba(255, 20, 147, 0.12);
  background: linear-gradient(145deg, rgba(255, 20, 147, 0.03), #12121e);
}
.your-main:has([data-class="Heavy"]):hover {
  border-color: rgba(255, 20, 147, 0.25);
}

/* ── Content Area ── */
.content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  animation: fadeInUp 0.5s ease 0.1s both;
}

/* ── Empty State ── */
.empty-card {
  text-align: center;
  padding: 80px 20px;
}

.empty-card h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.empty-card p {
  color: #666;
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.5;
}

.empty-cta {
  display: inline-block;
  background: #1e1e30;
  color: #00D4FF;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.empty-cta:hover {
  background: #252540;
  border-color: rgba(0, 212, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.1);
}

/* ── Section Group Headers ── */
.section-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  margin-top: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid #1a1a2e;
  animation: fadeInUp 0.4s ease both;
}

.section-group-accent {
  width: 3px;
  height: 32px;
  border-radius: 2px;
  background: #00D4FF;
  flex-shrink: 0;
}

.section-group-wt .section-group-accent {
  background: #FFD700;
}

.section-group-title {
  font-size: 14px;
  font-weight: 700;
  color: #c0c0d0;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin: 0;
  line-height: 1.2;
}

.section-group-subtitle {
  font-size: 11px;
  color: #4e4e62;
  margin: 2px 0 0;
  letter-spacing: 0.3px;
}

.section-group-wt {
  margin-top: 32px;
}

/* ── Charts ── */
.chart-section {
  background: linear-gradient(145deg, #13131f, #11111c);
  border: 1px solid #1e1e30;
  border-left: 2px solid #2a2a44;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s ease;
  animation: fadeInUp 0.5s ease both;
}

.chart-row:nth-child(1) .chart-section:nth-child(1) { animation-delay: 0.05s; }
.chart-row:nth-child(1) .chart-section:nth-child(2) { animation-delay: 0.12s; }
.chart-row:nth-child(2) .chart-section:nth-child(1) { animation-delay: 0.19s; }
.chart-row:nth-child(2) .chart-section:nth-child(2) { animation-delay: 0.26s; }

@media (hover: hover) {
  .chart-section:hover {
    border-color: #282844;
    border-left-color: #00D4FF;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 212, 255, 0.04);
    transform: translateY(-2px);
  }
}

.chart-section:hover {
  border-color: #282844;
  border-left-color: #00D4FF;
}

.chart-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.chart-header h3 {
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.chart-subtitle {
  font-size: 11px;
  color: #4e4e62;
}

.chart-container {
  position: relative;
  height: 180px;
}

.chart-row {
  display: flex;
  gap: 20px;
}

.chart-half { flex: 1; min-width: 0; }
.chart-third { flex: 1; min-width: 0; }
.chart-two-thirds { flex: 2; min-width: 0; }

/* ── Collection Progress ── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.collection-section {
  background: linear-gradient(145deg, #13131f, #11111c);
  border: 1px solid #1e1e30;
  border-left: 2px solid #2a2a44;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s ease;
  animation: fadeInUp 0.5s ease 0.33s both;
}

@media (hover: hover) {
  .collection-section:hover {
    border-color: #282844;
    border-left-color: #FFD700;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 215, 0, 0.04);
    transform: translateY(-2px);
  }
}

.collection-section:hover {
  border-color: #282844;
  border-left-color: #FFD700;
}

.collection-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.collection-stats span {
  font-size: 14px;
  color: #aaa;
}

.collection-pct {
  color: #FFD700 !important;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
}

.collection-track {
  background: #1a1a2a;
  border-radius: 7px;
  height: 12px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.collection-fill {
  height: 100%;
  background:
    linear-gradient(90deg, #FFD700, #ff8c00, #FFD700);
  background-size: 200% 100%;
  border-radius: 7px;
  transition: width 0.6s ease;
  animation: shimmer 3s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

/* ── World Tour Section ── */
.wt-section {
  background: linear-gradient(145deg, #13131f, #11111c);
  border: 1px solid #1e1e30;
  border-left: 2px solid #2a2a44;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s ease;
  animation: fadeInUp 0.5s ease 0.4s both;
}

@media (hover: hover) {
  .wt-section:hover {
    border-color: #282844;
    border-left-color: #FFD700;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 215, 0, 0.04);
    transform: translateY(-2px);
  }
}

.wt-section:hover {
  border-color: #282844;
  border-left-color: #FFD700;
}

.wt-section .chart-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.wt-link {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: #00D4FF;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.15);
  transition: all 0.2s;
}

.wt-link:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.3);
  text-decoration: none;
}

.wt-empty-text {
  color: #666;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.wt-rank-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.wt-current-rank,
.wt-goal-rank {
  flex: 1;
  text-align: center;
  border: 1px solid #1a1a2a;
  border-radius: 10px;
  padding: 16px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wt-current-rank {
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.03), #0d0d14);
  border-color: rgba(255, 215, 0, 0.12);
}

.wt-current-rank:hover {
  border-color: rgba(255, 215, 0, 0.25);
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.05);
}

.wt-goal-rank {
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.03), #0d0d14);
  border-color: rgba(0, 212, 255, 0.12);
}

.wt-goal-rank:hover {
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 2px 12px rgba(0, 212, 255, 0.05);
}

.wt-rank-label {
  font-size: 10px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.wt-rank-name {
  font-size: 18px;
  font-weight: 700;
}

.wt-current-rank .wt-rank-name {
  color: #FFD700;
  text-shadow: 0 0 16px rgba(255, 215, 0, 0.15);
}

.wt-goal-rank .wt-rank-name {
  color: #00D4FF;
  text-shadow: 0 0 16px rgba(0, 212, 255, 0.15);
}

.wt-rank-points {
  font-size: 12px;
  color: #555;
  margin-top: 4px;
}

.wt-progress-arrow {
  font-size: 16px;
  color: #555;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d14;
  border-radius: 50%;
  border: 1px solid #1a1a2a;
}

.wt-progress-bar { margin-bottom: 14px; }

.wt-progress-fill {
  height: 100%;
  background:
    linear-gradient(90deg, #FFD700, #00D4FF, #FFD700);
  background-size: 200% 100%;
  border-radius: 7px;
  transition: width 0.6s ease;
  animation: shimmer 4s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}

.wt-progress-label {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
  text-align: right;
}

.wt-progress-label span {
  color: #FFD700;
  font-weight: 600;
}

.wt-pace {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(13, 13, 20, 0.6);
  border-radius: 8px;
  border-left: 3px solid #333;
  transition: border-color 0.2s;
}

.wt-pace:has(.ahead) {
  border-left-color: #4ade80;
  background: rgba(74, 222, 128, 0.03);
}

.wt-pace:has(.behind) {
  border-left-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.03);
}

.wt-pace-status {
  font-size: 14px;
  font-weight: 600;
}

.wt-pace-status.ahead { color: #4ade80; }
.wt-pace-status.behind { color: #ff6b6b; }

.wt-pace-detail {
  font-size: 13px;
  color: #666;
}

/* ── Focus States (Accessibility) ── */
.signin-btn:focus-visible,
.empty-cta:focus-visible,
.wt-link:focus-visible {
  outline: 2px solid #5865F2;
  outline-offset: 2px;
}

/* ── Error Toast ── */
.error-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #2a1a1a;
  border: 1px solid #5a2a2a;
  color: #ff6b6b;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 0.3s ease both;
}

/* ── Mobile (< 768px) ── */
@media (max-width: 768px) {
  .dashboard-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid #1a1a2a;
    gap: 10px;
    background: linear-gradient(180deg, #0e0e1a, #0b0b14);
  }

  .profile-section {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .avatar {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    border-width: 2px;
  }

  .profile-name { font-size: 16px; }

  .sidebar-divider { display: none; }

  .stat-hero {
    grid-column: 1;
    grid-row: 2;
    background: #12121e;
    border: 1px solid #1a1a2a;
    border-radius: 10px;
    padding: 10px 8px;
  }

  .stat-hero-number { font-size: 22px; }

  .spin-percentile { margin-top: 6px; }
  .percentile-badge { font-size: 10px; padding: 3px 10px; }
  .percentile-sub { font-size: 9px; margin-top: 2px; }

  .your-main {
    grid-column: 2;
    grid-row: 2;
    border-radius: 10px;
    padding: 10px 8px;
  }

  .stat-split {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    gap: 8px;
  }

  .stat-box {
    flex: 1;
    padding: 10px 6px;
    border-radius: 10px;
  }

  .your-main-class { font-size: 16px; }

  .content { padding: 14px; }

  .chart-row {
    flex-direction: column;
    gap: 14px;
  }

  .chart-section {
    margin-bottom: 14px;
    padding: 16px;
  }

  .chart-container { height: 190px; }

  .collection-section {
    padding: 16px;
  }

  /* Auth gate mobile */
  .auth-card {
    padding: 36px 24px 32px;
    margin: 0 8px;
  }

  .auth-card svg {
    width: 40px;
    height: 40px;
  }

  .auth-card h2 { font-size: 20px; }

  .signin-btn {
    width: 100%;
    padding: 14px 32px;
    font-size: 16px;
  }

  /* WT mobile */
  .wt-rank-row {
    gap: 10px;
  }

  .wt-current-rank,
  .wt-goal-rank {
    padding: 12px 8px;
  }

  .wt-rank-name { font-size: 16px; }

  .wt-progress-arrow {
    font-size: 14px;
    width: 28px;
    height: 28px;
    min-width: 28px;
  }

  .wt-pace {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 10px 12px;
  }

  /* Mobile active/pressed states */
  .stat-box:active {
    transform: scale(0.96);
    transition-duration: 0.08s;
  }

  .chart-section:active {
    transform: scale(0.99);
    transition-duration: 0.08s;
  }

  .your-main:active {
    transform: scale(0.97);
    transition-duration: 0.08s;
  }
}

/* ── Small phones (< 380px) ── */
@media (max-width: 380px) {
  .stat-hero-number { font-size: 20px; }
  .stat-box-number { font-size: 18px; }
  .your-main-class { font-size: 15px; }
  .content { padding: 10px; }
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  color: #6B7194;
  margin-top: 3rem;
  border-top: 1px solid #252A3A;
  background: linear-gradient(180deg, rgba(13, 15, 26, 0.85), rgba(10, 12, 21, 0.95));
  font-size: 0.85rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.25), transparent);
}

.footer-credit {
  margin: 0 0 0.5rem 0;
  color: #6B7194;
}

.footer-author-link {
  color: #C8CCD8;
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  font-weight: 600;
}

.footer-author-link:hover {
  color: #F5A623;
  text-shadow: 0 0 10px rgba(245, 166, 35, 0.35);
}

.footer-disclaimer {
  color: #6B7194;
  font-size: 0.72rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  margin-top: 0.75rem;
}

.footer-nav a {
  color: #C8CCD8;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.2s ease;
  padding: 2px 0;
  position: relative;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #F5A623;
  transition: width 0.25s ease;
}

.footer-nav a:hover::after {
  width: 100%;
}

.footer-nav a:hover {
  color: #F5A623;
}

.footer-feedback-link {
  color: rgba(245, 166, 35, 0.85) !important;
}

.footer-feedback-link:hover {
  color: #FFD054 !important;
  text-shadow: 0 0 8px rgba(245, 166, 35, 0.25);
}

.footer-feedback-link::after {
  background: #F5A623 !important;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 2rem 1rem 1.5rem;
    margin-top: 2rem;
  }

  .footer-nav {
    gap: 0.75rem 1.25rem;
    font-size: 0.78rem;
  }

  .footer-nav a {
    padding: 4px 0;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }
}
