/* ===== DESIGN SYSTEM ===== */
:root {
  --bg-primary: #0d0b2e;
  --bg-secondary: #16133a;
  --bg-card: #1e1a4a;
  --bg-card-hover: #272260;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --accent-gold: #ffd700;
  --accent-gold-glow: rgba(255, 215, 0, 0.3);
  --accent-silver: #c0c0c0;
  --accent-bronze: #cd7f32;
  --accent-green: #00e676;
  --accent-green-glow: rgba(0, 230, 118, 0.25);
  --accent-purple: #a855f7;
  --accent-purple-glow: rgba(168, 85, 247, 0.3);
  --accent-pink: #ec4899;
  --accent-blue: #3b82f6;
  --accent-cyan: #22d3ee;
  --gradient-main: linear-gradient(135deg, #1a1145 0%, #0d0b2e 50%, #16133a 100%);
  --gradient-gold: linear-gradient(135deg, #ffd700, #ffaa00);
  --gradient-silver: linear-gradient(135deg, #e0e0e0, #a0a0a0);
  --gradient-bronze: linear-gradient(135deg, #cd7f32, #a0522d);
  --gradient-btn: linear-gradient(135deg, #7c3aed, #a855f7);
  --gradient-btn-alt: linear-gradient(135deg, #3b82f6, #22d3ee);
  --gradient-celebrate: linear-gradient(180deg, #1a1145 0%, #2d1b69 40%, #16133a 100%);
  --font-primary: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow-gold: 0 0 20px rgba(255, 215, 0, 0.3);
  --shadow-glow-purple: 0 0 20px rgba(168, 85, 247, 0.3);
  --transition-fast: 0.15s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  background: var(--gradient-main);
  color: #e2e8f0;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

#app {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: var(--space-3xl);
}

/* ===== NAVBAR ===== */
#navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: rgba(13, 11, 46, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.nav-left { display: flex; align-items: center; gap: var(--space-sm); }
.logo-icon { font-size: 1.5rem; }
.logo-text {
  font-size: 1.2rem;
  font-weight: var(--font-weight-bold);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-tabs {
  display: flex;
  gap: var(--space-xs);
  background: var(--surface);
  padding: 3px;
  border-radius: var(--radius-full);
}
.nav-tab {
  background: none; border: none;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-medium);
}
.nav-tab:hover { color: rgba(255,255,255,0.8); background: var(--surface-hover); }
.nav-tab.active {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: var(--shadow-glow-purple);
}
.nav-right { display: flex; align-items: center; gap: var(--space-sm); }
.month-select {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e2e8f0;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
}
.month-select:focus { border-color: var(--accent-purple); }
.btn-admin {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e2e8f0;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-medium);
}
.btn-admin:hover {
  background: var(--surface-hover);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

/* ===== VIEWS ===== */
.view {
  display: none;
  padding: var(--space-lg);
  animation: fadeSlideIn 0.4s ease;
}
.view.active { display: block; }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: var(--font-weight-black);
  margin-bottom: var(--space-xl);
  letter-spacing: -0.02em;
}
.title-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== PODIUM ===== */
.podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  padding: 0 var(--space-md);
}
.podium-spot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  flex: 1;
  max-width: 200px;
}
.podium-first { order: 2; }
.podium-second { order: 1; }
.podium-third { order: 3; }
.crown-icon {
  font-size: 2rem;
  animation: crownBounce 2s ease-in-out infinite;
  margin-bottom: var(--space-xs);
}
@keyframes crownBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.podium-avatar-wrap {
  position: relative;
  width: 90px; height: 90px;
  border-radius: 50%;
  padding: 4px;
  margin-bottom: var(--space-sm);
  transition: var(--transition-medium);
}
.podium-first .podium-avatar-wrap { width: 110px; height: 110px; }
.podium-avatar-wrap.gold { background: var(--gradient-gold); box-shadow: var(--shadow-glow-gold); }
.podium-avatar-wrap.silver { background: var(--gradient-silver); }
.podium-avatar-wrap.bronze { background: var(--gradient-bronze); }
.podium-avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: #fff;
  overflow: hidden;
}
.podium-first .podium-avatar { font-size: 2.5rem; }
.laurel {
  position: absolute;
  font-size: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
}
.laurel-left { left: -14px; transform: translateY(-50%) scaleX(-1); }
.laurel-right { right: -14px; transform: translateY(-50%); }
.podium-badge {
  font-size: 0.8rem;
  font-weight: var(--font-weight-bold);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xs);
}
.podium-badge sup { font-size: 0.6rem; }
.gold-badge { background: var(--gradient-gold); color: #1a1145; }
.silver-badge { background: var(--gradient-silver); color: #1a1145; }
.bronze-badge { background: var(--gradient-bronze); color: #fff; }
.podium-name {
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 2px;
  text-align: center;
  line-height: 1.3;
  max-width: 160px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.podium-score {
  font-size: 0.85rem;
  color: var(--accent-green);
  font-weight: var(--font-weight-bold);
}
.score-star { font-size: 0.75rem; }
.podium-deals {
  display: block;
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: var(--font-weight-semibold);
  margin-top: 2px;
}
.podium-close {
  display: block;
  font-size: 0.75rem;
  color: #ffa726;
  font-weight: var(--font-weight-semibold);
  margin-top: 1px;
}
.rank-deals {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: var(--font-weight-semibold);
  margin-left: 6px;
}
.rank-close {
  font-size: 0.75rem;
  color: #ffa726;
  font-weight: var(--font-weight-semibold);
  margin-left: 6px;
}
.podium-pillar {
  width: 100%;
  margin-top: var(--space-sm);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: var(--transition-slow);
}
.gold-pillar {
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 215, 0, 0.05) 100%);
  border-top: 3px solid var(--accent-gold);
}
.silver-pillar {
  height: 90px;
  background: linear-gradient(180deg, rgba(192, 192, 192, 0.2) 0%, rgba(192, 192, 192, 0.03) 100%);
  border-top: 3px solid var(--accent-silver);
}
.bronze-pillar {
  height: 70px;
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.2) 0%, rgba(205, 127, 50, 0.03) 100%);
  border-top: 3px solid var(--accent-bronze);
}

/* ===== RANKING LIST ===== */
.rankings-list, .full-rankings-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.rank-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  transition: var(--transition-medium);
  animation: slideIn 0.3s ease backwards;
  border: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
}
.rank-row:hover {
  background: var(--bg-card-hover);
  transform: translateX(4px);
  border-color: rgba(168, 85, 247, 0.2);
}
.rank-row .rank-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: var(--font-weight-bold);
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.1);
}
.rank-row[data-rank="1"] .rank-avatar { border-color: var(--accent-gold); }
.rank-row[data-rank="2"] .rank-avatar { border-color: var(--accent-silver); }
.rank-row[data-rank="3"] .rank-avatar { border-color: var(--accent-bronze); }
.rank-info { flex: 1; min-width: 0; }
.rank-name {
  font-size: 0.95rem;
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-score-value {
  font-size: 0.85rem;
  color: var(--accent-green);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  gap: 4px;
}
.rank-number {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
}
.rank-row[data-rank="1"] .rank-number { background: var(--gradient-gold); color: #1a1145; border: none; box-shadow: var(--shadow-glow-gold); }
.rank-row[data-rank="2"] .rank-number { background: var(--gradient-silver); color: #1a1145; border: none; }
.rank-row[data-rank="3"] .rank-number { background: var(--gradient-bronze); color: #fff; border: none; }
.rank-change { font-size: 0.7rem; font-weight: var(--font-weight-bold); margin-left: 4px; }
.rank-up { color: var(--accent-green); }
.rank-down { color: var(--accent-pink); }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Clickable name styling */
.clickable-name { cursor: pointer; }
.podium-name.clickable-name:hover { color: var(--accent-cyan); text-decoration: underline; }
.rank-name { cursor: pointer; }
.rank-name:hover { color: var(--accent-cyan); text-decoration: underline; }

/* ===== LIST VIEW EXTRAS ===== */
.list-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  background: var(--surface);
  padding: 4px;
  border-radius: var(--radius-full);
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.list-tab {
  flex: 1;
  background: none; border: none;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-medium);
}
.list-tab:hover { color: rgba(255,255,255,0.8); }
.list-tab.active {
  background: var(--accent-pink);
  color: #fff;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
}
.top-ranking-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: var(--font-weight-medium);
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-md);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== CELEBRATION VIEW ===== */
#view-celebrate {
  background: var(--gradient-celebrate);
  min-height: calc(100vh - 70px);
  display: none;
  position: relative;
  padding: var(--space-3xl) var(--space-lg);
}
#view-celebrate.active { display: flex; align-items: center; justify-content: center; }
.celebrate-content { text-align: center; position: relative; z-index: 2; }
.celebrate-title {
  font-size: 2.2rem;
  font-weight: var(--font-weight-black);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-lg);
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}
.celebrate-crown { font-size: 4rem; animation: crownBounce 2s ease-in-out infinite; margin-bottom: var(--space-md); }
.celebrate-avatar-wrap {
  width: 140px; height: 140px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  padding: 5px;
  background: var(--gradient-gold);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.4), 0 0 80px rgba(255, 215, 0, 0.15);
  animation: avatarFloat 3s ease-in-out infinite;
}
@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.celebrate-avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: var(--font-weight-bold);
  color: #fff;
}
.celebrate-rank-badge {
  display: inline-block;
  background: var(--gradient-gold);
  color: #1a1145;
  font-weight: var(--font-weight-bold);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  margin-bottom: var(--space-md);
}
.celebrate-name { font-size: 1.6rem; font-weight: var(--font-weight-bold); margin-bottom: var(--space-sm); }
.celebrate-score { font-size: 1.8rem; color: var(--accent-green); font-weight: var(--font-weight-black); margin-bottom: var(--space-2xl); }
.celebrate-buttons { display: flex; gap: var(--space-md); justify-content: center; }
.btn-celebrate {
  border: none;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  padding: 14px 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-medium);
  background: var(--gradient-btn);
  color: #fff;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-glow-purple);
}
.btn-celebrate:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(168, 85, 247, 0.5); }
.btn-share { background: var(--gradient-btn-alt); box-shadow: 0 0 15px rgba(59, 130, 246, 0.3); }
.btn-share:hover { box-shadow: 0 0 30px rgba(59, 130, 246, 0.5); }
#confetti-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 999; }

/* ===== MODAL (shared) ===== */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal.hidden { display: none; }
.modal-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}
.modal-content {
  position: relative;
  z-index: 501;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.08);
  width: 90%;
  max-width: 550px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.modal-header h2 { font-size: 1.2rem; font-weight: var(--font-weight-bold); }
.modal-close {
  background: none; border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition-fast);
  position: relative;
  z-index: 10;
}
.modal-close:hover { color: #fff; }
.modal-body { padding: var(--space-lg); }
.admin-section { margin-bottom: var(--space-xl); }
.admin-section:last-child { margin-bottom: 0; }
.admin-section h3 { font-size: 0.95rem; font-weight: var(--font-weight-semibold); margin-bottom: var(--space-md); color: rgba(255,255,255,0.7); }
.form-row { display: flex; gap: var(--space-sm); }
.input-field {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e2e8f0;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  flex: 1;
  transition: var(--transition-fast);
}
.input-field:focus { border-color: var(--accent-purple); box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1); }
.input-small { max-width: 120px; }
.input-tiny { max-width: 60px; }
.btn-action {
  border: none;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-medium);
  white-space: nowrap;
}
.btn-add { background: var(--gradient-btn); color: #fff; }
.btn-add:hover { box-shadow: var(--shadow-glow-purple); transform: translateY(-1px); }
.btn-warning { background: rgba(236, 72, 153, 0.15); color: var(--accent-pink); border: 1px solid rgba(236, 72, 153, 0.3); }
.btn-warning:hover { background: rgba(236, 72, 153, 0.25); }
.btn-info { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); border: 1px solid rgba(59, 130, 246, 0.3); }
.btn-info:hover { background: rgba(59, 130, 246, 0.25); }
.btn-security { background: rgba(255, 215, 0, 0.12); color: var(--accent-gold); border: 1px solid rgba(255, 215, 0, 0.3); }
.btn-security:hover { background: rgba(255, 215, 0, 0.22); box-shadow: 0 0 12px rgba(255, 215, 0, 0.15); }
.quick-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.admin-rep-list { display: flex; flex-direction: column; gap: var(--space-sm); max-height: 280px; overflow-y: auto; }
.admin-rep-row { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); background: var(--bg-card); border-radius: var(--radius-sm); }
.admin-rep-name { flex: 1; font-size: 0.85rem; font-weight: var(--font-weight-medium); }
.admin-rep-row .input-field { max-width: 90px; padding: 6px 10px; font-size: 0.85rem; }
.admin-rep-row .input-tiny { max-width: 50px; }
.btn-save-score {
  background: var(--accent-green); color: #1a1145; border: none;
  font-family: var(--font-primary); font-size: 0.8rem; font-weight: var(--font-weight-bold);
  padding: 6px 12px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition-fast);
}
.btn-save-score:hover { box-shadow: 0 0 10px var(--accent-green-glow); }
.btn-delete-rep {
  background: rgba(236, 72, 153, 0.2); color: var(--accent-pink); border: none;
  font-size: 0.85rem; padding: 6px 10px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition-fast);
}
.btn-delete-rep:hover { background: rgba(236, 72, 153, 0.4); }

/* Manager toggle */
.btn-manager {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
  line-height: 1;
}
.btn-manager:hover { border-color: var(--accent-gold); }
.btn-manager.active {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--accent-gold);
}
.admin-rep-row-manager { opacity: 0.55; }
.admin-rep-row-manager:hover { opacity: 0.8; }
.mgr-tag {
  font-size: 0.6rem;
  background: rgba(255, 215, 0, 0.2);
  color: var(--accent-gold);
  padding: 1px 5px;
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-bold);
  margin-left: 4px;
  vertical-align: middle;
}

/* Manager rows in ranking list */
.manager-row { opacity: 0.6; }
.manager-row:hover { opacity: 0.85; }
.rank-number-mgr {
  border-color: rgba(255, 215, 0, 0.2) !important;
  color: rgba(255,255,255,0.25) !important;
  font-size: 0.9rem !important;
}
.rank-mgr-badge {
  font-size: 0.6rem;
  background: rgba(255, 215, 0, 0.15);
  color: var(--accent-gold);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-bold);
  margin-left: 4px;
  vertical-align: middle;
}

/* ===== SPARKLINE ===== */
.sparkline-container { width: 80px; height: 30px; flex-shrink: 0; }
.sparkline-container svg { width: 100%; height: 100%; }

/* ===== BADGES ===== */
.rank-badges { display: flex; gap: 3px; margin-top: 2px; flex-wrap: wrap; }
.badge { font-size: 0.65rem; padding: 1px 6px; border-radius: var(--radius-full); font-weight: var(--font-weight-semibold); }
.badge-closer { background: rgba(255, 215, 0, 0.15); color: var(--accent-gold); }
.badge-100k { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }
.badge-50k { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.badge-streak { background: rgba(236, 72, 153, 0.15); color: var(--accent-pink); }
.badge-rising { background: rgba(0, 230, 118, 0.15); color: var(--accent-green); }
.badge-top5 { background: rgba(34, 211, 238, 0.15); color: var(--accent-cyan); }

/* ===== PLAYER PROFILE MODAL ===== */
.profile-modal-content {
  max-width: 500px;
  padding: 0;
  overflow-y: auto;
}
.profile-header {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.15) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.profile-modal-content .modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
}
.profile-avatar-wrap {
  width: 100px; height: 100px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  padding: 4px;
  background: var(--gradient-btn);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
  position: relative;
}

/* Profile photo upload button */
.profile-photo-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gradient-btn);
  border: 2px solid var(--bg-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-medium);
  z-index: 5;
  padding: 0;
}
.profile-photo-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow-purple);
}

/* Admin avatar overlay for photo upload */
.admin-avatar-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
  font-size: 0.7rem;
}
.admin-avatar-wrap:hover .admin-avatar-overlay {
  opacity: 1;
}

/* Celebrate avatar overflow for photos */
.celebrate-avatar { overflow: hidden; }
.profile-avatar-wrap.gold-ring { background: var(--gradient-gold); box-shadow: var(--shadow-glow-gold); }
.profile-avatar-wrap.silver-ring { background: var(--gradient-silver); }
.profile-avatar-wrap.bronze-ring { background: var(--gradient-bronze); }
.profile-avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.profile-rank-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
  background: var(--surface);
  color: rgba(255,255,255,0.7);
}
.profile-rank-badge.gold { background: var(--gradient-gold); color: #1a1145; }
.profile-rank-badge.silver { background: var(--gradient-silver); color: #1a1145; }
.profile-rank-badge.bronze { background: var(--gradient-bronze); color: #fff; }
.profile-name { font-size: 1.4rem; font-weight: var(--font-weight-bold); margin-bottom: 4px; }
.profile-title { font-size: 0.85rem; color: rgba(255,255,255,0.5); font-weight: var(--font-weight-medium); }

.profile-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  padding: var(--space-lg);
}
.profile-stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition-medium);
}
.profile-stat-card:hover { border-color: rgba(168, 85, 247, 0.2); background: var(--bg-card-hover); }
.stat-icon { font-size: 1.3rem; margin-bottom: 4px; }
.stat-value { font-size: 1.2rem; font-weight: var(--font-weight-black); color: #fff; }
.stat-label { font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.05em; }

.profile-section { padding: 0 var(--space-lg) var(--space-lg); }
.profile-section-title {
  font-size: 0.9rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-md);
  color: rgba(255,255,255,0.6);
}
.profile-badges { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.profile-badges .badge {
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* Profile chart */
.profile-chart {
  height: 100px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.profile-chart:hover {
  border-color: rgba(168, 85, 247, 0.3);
}
.profile-chart::after {
  content: 'Click to expand';
  position: absolute;
  bottom: 4px;
  right: 12px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.25);
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.profile-chart:hover::after {
  color: rgba(168, 85, 247, 0.5);
}
.profile-chart.expanded {
  height: 250px;
  padding: var(--space-lg);
}
.profile-chart.expanded::after {
  content: 'Click to collapse';
}
.profile-chart svg { width: 100%; height: 100%; }

/* Profile history */
.profile-history { display: flex; flex-direction: column; gap: var(--space-xs); }
.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.04);
}
.history-month { color: rgba(255,255,255,0.6); }
.history-score { color: var(--accent-green); font-weight: var(--font-weight-bold); }
.history-rank {
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  background: var(--surface);
  color: rgba(255,255,255,0.6);
}
.history-rank.top3 { background: rgba(255, 215, 0, 0.15); color: var(--accent-gold); }

/* ===== SALESROOM RANKINGS ===== */
.salesroom-scoring-info {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.scoring-badge {
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--surface);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.08);
}
.salesroom-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.salesroom-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition-medium);
  animation: slideIn 0.3s ease backwards;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.salesroom-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(168, 85, 247, 0.2);
  transform: translateX(4px);
}
.salesroom-rank {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: var(--font-weight-black);
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
}
.salesroom-card[data-rank="1"] .salesroom-rank { background: var(--gradient-gold); color: #1a1145; border: none; box-shadow: var(--shadow-glow-gold); }
.salesroom-card[data-rank="2"] .salesroom-rank { background: var(--gradient-silver); color: #1a1145; border: none; }
.salesroom-card[data-rank="3"] .salesroom-rank { background: var(--gradient-bronze); color: #fff; border: none; }
.salesroom-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.salesroom-info { flex: 1; min-width: 0; }
.salesroom-name {
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.salesroom-stats {
  display: flex;
  gap: var(--space-lg);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-sm);
}
.salesroom-stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.salesroom-stat-item strong {
  color: #e2e8f0;
  font-weight: var(--font-weight-semibold);
}
.salesroom-bars {
  display: flex;
  gap: var(--space-sm);
}
.salesroom-bar-group {
  flex: 1;
}
.salesroom-bar-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.salesroom-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.salesroom-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.salesroom-bar-fill.bar-volume {
  background: linear-gradient(90deg, #3b82f6, #22d3ee);
}
.salesroom-bar-fill.bar-close {
  background: linear-gradient(90deg, #a855f7, #ec4899);
}
.salesroom-weighted-score {
  text-align: right;
  flex-shrink: 0;
  min-width: 60px;
}
.salesroom-weighted-value {
  font-size: 1.4rem;
  font-weight: var(--font-weight-black);
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.salesroom-weighted-label {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Confetti canvas (moved outside sections) */
#confetti-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 999; }

/* ===== ADMIN SEARCH ===== */
.admin-search-wrap {
  position: relative;
  margin-bottom: var(--space-md);
}
.admin-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 1;
}
.admin-search-input {
  padding-left: 38px !important;
  background: rgba(30, 26, 74, 0.8) !important;
  border: 1px solid rgba(168, 85, 247, 0.2) !important;
  border-radius: var(--radius-md) !important;
  width: 100%;
  font-size: 0.9rem;
  transition: var(--transition-medium);
}
.admin-search-input:focus {
  border-color: var(--accent-purple) !important;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15), 0 0 20px rgba(168, 85, 247, 0.1) !important;
  background: rgba(30, 26, 74, 1) !important;
}
.admin-search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.admin-rep-row.search-hidden {
  display: none !important;
}
.admin-search-no-results {
  text-align: center;
  padding: var(--space-lg);
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}
.admin-search-no-results .no-results-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

/* ===== ADMIN SALESROOM ===== */
.admin-salesroom-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-height: 400px;
  overflow-y: auto;
}
.admin-salesroom-row {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition-medium);
}
.admin-salesroom-row:hover {
  border-color: rgba(168, 85, 247, 0.15);
}
.admin-salesroom-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.admin-salesroom-icon {
  font-size: 1.1rem;
}
.admin-salesroom-name {
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-salesroom-fields {
  display: flex;
  align-items: flex-end;
  gap: var(--space-xs);
  flex-wrap: wrap;
}
.admin-salesroom-field {
  flex: 1;
  min-width: 65px;
}
.admin-salesroom-field label {
  display: block;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.admin-salesroom-field .input-field {
  padding: 6px 8px;
  font-size: 0.8rem;
  width: 100%;
}
.admin-salesroom-fields .btn-save-score {
  align-self: flex-end;
  margin-bottom: 1px;
}

/* ===== 3D TROPHY ===== */
#trophy-section {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-xl);
}
#trophy-container {
  position: relative;
  width: 320px;
  height: 340px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(30, 26, 74, 0.9) 0%, rgba(13, 11, 46, 0.95) 100%);
  border: 1px solid rgba(255, 215, 0, 0.15);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.08), 0 8px 32px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  overflow: hidden;
}
/* Pop-in entrance animation */
#trophy-container.trophy-pop {
  animation: trophyPopIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes trophyPopIn {
  0%   { opacity: 0; transform: scale(0.3) translateY(60px); }
  50%  { opacity: 1; transform: scale(1.08) translateY(-10px); }
  70%  { transform: scale(0.95) translateY(3px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
#trophy-container:hover {
  transform: scale(1.03);
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.15), 0 12px 48px rgba(0,0,0,0.5);
}
#trophy-container canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
}
#trophy-nameplate {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  pointer-events: none;
}
/* CONGRATS label — animated gold glow */
.trophy-congrats-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: var(--font-weight-black);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #ffd700, #ffaa00, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
  animation: congratsPulse 2s ease-in-out infinite;
  margin-bottom: 4px;
}
@keyframes congratsPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5)); }
  50% { filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.9)); }
}
.trophy-nameplate-name {
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  white-space: nowrap;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trophy-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.2);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#trophy-container:hover .trophy-hint {
  color: rgba(255, 215, 0, 0.4);
}

/* Trophy Modal (expanded) */
#trophy-modal .trophy-modal-content {
  position: relative;
  z-index: 501;
  background: linear-gradient(180deg, #1a1145 0%, #0d0b2e 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 215, 0, 0.2);
  width: 92%;
  max-width: 600px;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  text-align: center;
  box-shadow: 0 0 80px rgba(255, 215, 0, 0.1), var(--shadow-lg);
  animation: trophyModalIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes trophyModalIn {
  from { opacity: 0; transform: scale(0.85) translateY(30px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
#trophy-modal .modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 1.8rem;
  z-index: 10;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-medium);
}
#trophy-modal .modal-close:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
/* Modal CONGRATS heading */
.trophy-modal-congrats {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: var(--font-weight-black);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #ffd700, #ffaa00, #ffe066, #ffd700);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: congratsShimmer 3s ease-in-out infinite, congratsPulseModal 2s ease-in-out infinite;
  margin-bottom: 4px;
  padding-top: var(--space-sm);
}
@keyframes congratsShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes congratsPulseModal {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.8)); transform: scale(1.03); }
}
/* Modal winner name */
.trophy-modal-winner {
  font-size: 1.2rem;
  font-weight: var(--font-weight-bold);
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  margin-bottom: var(--space-md);
}
#trophy-modal-canvas {
  display: block;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  max-width: 100%;
}
.trophy-modal-hint {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.25);
  margin-top: var(--space-xs);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  #navbar { flex-direction: column; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); }
  .nav-tabs { order: 3; width: 100%; }
  .nav-tab { flex: 1; text-align: center; font-size: 0.8rem; padding: 8px 12px; }
  .nav-right { order: 2; width: 100%; justify-content: space-between; }
  .view { padding: var(--space-md); }
  .podium-container { gap: var(--space-sm); padding: 0; }
  .podium-avatar-wrap { width: 70px; height: 70px; }
  .podium-first .podium-avatar-wrap { width: 85px; height: 85px; }
  .podium-name { font-size: 0.75rem; max-width: 80px; }
  .podium-score { font-size: 0.75rem; }
  .gold-pillar { height: 90px; }
  .silver-pillar { height: 65px; }
  .bronze-pillar { height: 50px; }
  .rank-row { padding: var(--space-sm) var(--space-md); gap: var(--space-sm); }
  .rank-row .rank-avatar { width: 40px; height: 40px; font-size: 1rem; }
  .rank-name { font-size: 0.85rem; }
  .sparkline-container { width: 60px; height: 24px; }
  .celebrate-title { font-size: 1.6rem; }
  .celebrate-avatar-wrap { width: 110px; height: 110px; }
  .celebrate-name { font-size: 1.3rem; }
  .celebrate-score { font-size: 1.4rem; }
  .celebrate-buttons { flex-direction: column; }
  .btn-celebrate { padding: 12px 30px; font-size: 0.9rem; }
  .form-row { flex-direction: column; }
  .input-small, .input-tiny { max-width: 100%; }
  .profile-stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xs); padding: var(--space-md); }
  .profile-stat-card { padding: var(--space-sm); }
  .stat-value { font-size: 1rem; }
  .profile-section { padding: 0 var(--space-md) var(--space-md); }
  #trophy-container { width: 260px; height: 280px; }
  .trophy-congrats-label { font-size: 0.9rem; }
  .trophy-nameplate-name { font-size: 0.75rem; max-width: 200px; }
  #trophy-modal-canvas { max-height: 320px; }
  .trophy-modal-content { padding: var(--space-md); }
  .trophy-modal-congrats { font-size: 1.4rem; }
  .trophy-modal-winner { font-size: 1rem; }
}

.empty-state { text-align: center; padding: var(--space-3xl) var(--space-lg); color: rgba(255,255,255,0.3); }
.empty-state-icon { font-size: 3rem; margin-bottom: var(--space-md); }
.empty-state-text { font-size: 1rem; margin-bottom: var(--space-md); }
.empty-state .btn-action { display: inline-block; }
