/* ──────────────────────────────────────────
   RamKing - STYLE SYSTEM
   Cyber-Gym Dark Aesthetic (Mobile-First)
────────────────────────────────────────── */

/* 1. RESET & VARIABLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Theme Colors */
  --bg-desktop: #1e1e1e;
  --bg-app: #2c2c2c;
  --bg-card: #383838;
  --bg-card-glass: rgba(56, 56, 56, 0.85);
  --bg-input: #1f1f1f;
  --border: rgba(235, 235, 235, 0.10);
  --border-focus: #73c88d;
  
  /* Text Colors */
  --text-primary: #ebebeb;
  --text-secondary: #b5b5b5;
  --text-muted: #7e7d8a;
  
  /* Brand & Accents */
  --primary: #73c88d; /* Verde da Paleta */
  --orange: #ff5925;
  --yellow: #ffaa00;
  --green: #73c88d;
  
  /* League Tiers & Theme Gradients */
  --tier-olimpico: #00f6ff;
  --tier-tita: #e65151;
  --tier-campeao: #b57cff;
  --tier-diamante: #4facfe;
  --tier-platina: #00ffd2;
  --tier-ouro: #ffaa00;
  --tier-prata: #b0b5c0;
  --tier-bronze: #cd7f32;
  --tier-madeira: #a05a2c;
  
  /* Fonts */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Nav Height */
  --nav-height: 72px;
}

body {
  background: var(--bg-desktop);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

/* 2. APP SHELL (MOBILE CONTAINER) */
.app-shell {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background: var(--bg-app);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* No desktop centraliza sem frame */
@media (min-width: 481px) {
  body {
    background: var(--bg-desktop);
    align-items: center;
    justify-content: center;
  }
  .app-shell {
    height: 100vh;
    max-width: 480px;
  }
}

/* 3. APP HEADER */
.app-header {
  background: linear-gradient(180deg, rgba(23, 21, 32, 0.95) 0%, rgba(14, 13, 22, 0.95) 100%);
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-container {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, var(--primary), var(--tier-campeao));
}

.avatar-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
}

.level-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #000;
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1.5px 7px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.account-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-dropdown {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  max-width: 100px;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  padding: 4px;
}

.btn-icon:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.stats-row {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

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

.text-orange { color: var(--orange); }
.text-yellow { color: var(--yellow); }

/* 4. APP CONTENT AREA */
.app-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  padding-bottom: calc(var(--nav-height) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: none; /* Firefox */
}

.app-content::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.tab-pane {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: tabFadeIn 0.3s ease;
}

.tab-pane.active {
  display: flex;
}

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

.section-header h2 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* 5. GLASS CARDS & FORMS */
.card-glass {
  background: var(--bg-card-glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

label {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

select, input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}

select:focus, input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 10px rgba(115, 200, 141, 0.15);
}

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

.flex-1 { flex: 1; }

.input-with-unit {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-unit input {
  padding-right: 45px;
}

.input-with-unit .unit {
  position: absolute;
  right: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* BUTTONS */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #3ea164 100%);
  color: #000000;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s, opacity 0.2s;
  width: 100%;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--primary);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 6px;
}

/* 6. HISTORY SECTION */
.history-section h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.history-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.history-val {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  background: rgba(86, 180, 247, 0.08);
  border: 1px solid rgba(86, 180, 247, 0.2);
  border-radius: 6px;
  padding: 4px 8px;
}

.empty-state {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
  font-style: italic;
}

/* 7. SEGMENT CONTROLS */
.segment-control {
  background: #151322;
  border-radius: 50px;
  padding: 4px;
  display: flex;
  gap: 4px;
  width: 100%;
}

.segment-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.segment-btn.active {
  background: var(--primary);
  color: #000000;
  box-shadow: 0 2px 8px rgba(86, 180, 247, 0.3);
}

.segment-pane {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.segment-pane.active {
  display: flex;
}

/* 8. HERO RANK CARD (TAB 2: SEU RANK) */
.hero-rank-card {
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.08) 0%, rgba(23, 21, 32, 0.95) 100%);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.hero-rank-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.winged-badge-container {
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
  animation: heroFloat 3.5s ease-in-out infinite;
}

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

.winged-badge-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#overall-rank-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #fff 40%, #ffaa00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.overall-lp {
  font-size: 1rem;
  font-weight: 700;
  color: var(--yellow);
  background: rgba(255, 170, 0, 0.1);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255, 170, 0, 0.2);
}

.overall-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
}

.stat-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 10px;
}

.stat-card-val {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.stat-card-lbl {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.weight-status {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* 9. EXERCISE CARDS (TAB 2: GALERIA) */
.exercise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 400px) {
  .exercise-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.exercise-card {
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
  overflow: hidden;
}

.exercise-card:hover {
  transform: translateY(-2px);
}

/* Base overlay background reflection */
.exercise-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

/* TIER CARD SPECIFICS */
.card-olimpico {
  border-color: rgba(0, 246, 255, 0.45);
  background: linear-gradient(180deg, rgba(0, 246, 255, 0.08) 0%, var(--bg-card) 70%);
  box-shadow: 0 6px 20px rgba(0, 246, 255, 0.15);
}
.card-olimpico .tier-lbl {
  background: linear-gradient(90deg, #00f6ff, #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card-olimpico .v-box { border-color: rgba(0, 246, 255, 0.25); color: var(--tier-olimpico); }
.card-olimpico .progress-fill { background: linear-gradient(90deg, #00f6ff, #00ff88); }
.card-olimpico .card-badge-container { filter: drop-shadow(0 0 10px rgba(0, 246, 255, 0.5)); }

.card-tita {
  border-color: rgba(230, 81, 81, 0.35);
  background: linear-gradient(180deg, rgba(230, 81, 81, 0.08) 0%, var(--bg-card) 70%);
  box-shadow: 0 6px 20px rgba(230, 81, 81, 0.08);
}
.card-tita .tier-lbl { color: var(--tier-tita); }
.card-tita .v-box { border-color: rgba(230, 81, 81, 0.25); color: var(--tier-tita); }
.card-tita .progress-fill { background: var(--tier-tita); }
.card-tita .card-badge-container { filter: drop-shadow(0 0 10px rgba(230, 81, 81, 0.4)); }

.card-campeao {
  border-color: rgba(181, 124, 255, 0.35);
  background: linear-gradient(180deg, rgba(181, 124, 255, 0.08) 0%, var(--bg-card) 70%);
  box-shadow: 0 6px 20px rgba(181, 124, 255, 0.08);
}
.card-campeao .tier-lbl { color: var(--tier-campeao); }
.card-campeao .v-box { border-color: rgba(181, 124, 255, 0.25); color: var(--tier-campeao); }
.card-campeao .progress-fill { background: var(--tier-campeao); }
.card-campeao .card-badge-container { filter: drop-shadow(0 0 10px rgba(181, 124, 255, 0.4)); }

.card-diamante {
  border-color: rgba(79, 172, 254, 0.35);
  background: linear-gradient(180deg, rgba(79, 172, 254, 0.08) 0%, var(--bg-card) 70%);
  box-shadow: 0 6px 20px rgba(79, 172, 254, 0.08);
}
.card-diamante .tier-lbl { color: var(--tier-diamante); }
.card-diamante .v-box { border-color: rgba(79, 172, 254, 0.25); color: var(--tier-diamante); }
.card-diamante .progress-fill { background: var(--tier-diamante); }
.card-diamante .card-badge-container { filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.4)); }

.card-platina {
  border-color: rgba(0, 255, 210, 0.35);
  background: linear-gradient(180deg, rgba(0, 255, 210, 0.08) 0%, var(--bg-card) 70%);
  box-shadow: 0 6px 20px rgba(0, 255, 210, 0.08);
}
.card-platina .tier-lbl { color: var(--tier-platina); }
.card-platina .v-box { border-color: rgba(0, 255, 210, 0.25); color: var(--tier-platina); }
.card-platina .progress-fill { background: var(--tier-platina); }
.card-platina .card-badge-container { filter: drop-shadow(0 0 10px rgba(0, 255, 210, 0.4)); }

.card-ouro {
  border-color: rgba(255, 170, 0, 0.35);
  background: linear-gradient(180deg, rgba(255, 170, 0, 0.08) 0%, var(--bg-card) 70%);
  box-shadow: 0 6px 20px rgba(255, 170, 0, 0.08);
}
.card-ouro .tier-lbl { color: var(--tier-ouro); }
.card-ouro .v-box { border-color: rgba(255, 170, 0, 0.25); color: var(--tier-ouro); }
.card-ouro .progress-fill { background: var(--tier-ouro); }
.card-ouro .card-badge-container { filter: drop-shadow(0 0 10px rgba(255, 170, 0, 0.4)); }

.card-prata {
  border-color: rgba(176, 181, 192, 0.35);
  background: linear-gradient(180deg, rgba(176, 181, 192, 0.08) 0%, var(--bg-card) 70%);
}
.card-prata .tier-lbl { color: var(--tier-prata); }
.card-prata .v-box { border-color: rgba(176, 181, 192, 0.25); color: var(--tier-prata); }
.card-prata .progress-fill { background: var(--tier-prata); }
.card-prata .card-badge-container { filter: drop-shadow(0 0 10px rgba(176, 181, 192, 0.3)); }

.card-bronze {
  border-color: rgba(205, 127, 50, 0.35);
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.08) 0%, var(--bg-card) 70%);
}
.card-bronze .tier-lbl { color: var(--tier-bronze); }
.card-bronze .v-box { border-color: rgba(205, 127, 50, 0.25); color: var(--tier-bronze); }
.card-bronze .progress-fill { background: var(--tier-bronze); }
.card-bronze .card-badge-container { filter: drop-shadow(0 0 10px rgba(205, 127, 50, 0.3)); }

.card-madeira {
  border-color: rgba(160, 90, 44, 0.35);
  background: linear-gradient(180deg, rgba(160, 90, 44, 0.08) 0%, var(--bg-card) 70%);
}
.card-madeira .tier-lbl { color: var(--tier-madeira); }
.card-madeira .v-box { border-color: rgba(160, 90, 44, 0.25); color: var(--tier-madeira); }
.card-madeira .progress-fill { background: var(--tier-madeira); }
.card-madeira .card-badge-container { filter: drop-shadow(0 0 10px rgba(160, 90, 44, 0.3)); }


.tier-lbl {
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.lp-lbl {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.card-badge-container {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.card-badge-container svg, .card-badge-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.exercise-name {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Weight/Reps Boxes (Fiel ao print) */
.values-container {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 16px;
}

.v-box {
  flex: 1;
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.v-lbl {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.v-val {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* PROGRESS BAR */
.progress-container {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-top: auto;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* 10. LEADERBOARD (TAB 3) */
.leaderboard-filters {
  display: flex;
  background: #151322;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.filter-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active {
  background: var(--primary);
  color: #000;
}

.leaderboard-container {
  background: var(--bg-card-glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow-y: auto;
  padding: 10px;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.01);
  border: 1px solid transparent;
  transition: background 0.2s;
}

.leaderboard-row:hover {
  background: rgba(255,255,255,0.03);
}

.leaderboard-row.active-row {
  border-color: rgba(86, 180, 247, 0.25);
  background: rgba(86, 180, 247, 0.05);
}

.rank-pos {
  width: 24px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
}

.rank-pos.pos-1 { color: #ffd700; font-size: 1.1rem; }
.rank-pos.pos-2 { color: #c0c0c0; font-size: 1.05rem; }
.rank-pos.pos-3 { color: #cd7f32; font-size: 1rem; }

.rank-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border);
}

.rank-name-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rank-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.rank-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.rank-value-col {
  text-align: right;
}

.rank-coeff {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary);
}

.rank-lp {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* ATHLETE SEARCH & DISCOVERY */
.discovery-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.discovery-header h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar i {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-bar input {
  padding-left: 45px;
}

.athletes-list {
  background: var(--bg-card-glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.athlete-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.01);
}

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

.athlete-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-input);
}

.athlete-name-wrapper {
  display: flex;
  flex-direction: column;
}

.athlete-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.athlete-level {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-follow {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-follow:hover {
  background: rgba(86, 180, 247, 0.08);
}

.btn-follow.following {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

/* 11. BOTTOM NAVIGATION */
.app-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: #110f1c;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 10;
}

.nav-item {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 100%;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-item i {
  font-size: 1.25rem;
}

.nav-item span {
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-item.active {
  color: var(--primary);
}

/* 12. MODAL OVERLAY */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 380px;
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.open .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 20px;
}

/* 13. LEADERBOARD PODIUM & CURRENT USER STYLING */
.leaderboard-podium {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  margin-bottom: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
  border-radius: 12px 12px 0 0;
}

.podium-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 30%;
}

.podium-avatar-wrapper {
  position: relative;
  width: 58px;
  height: 58px;
  margin-bottom: 8px;
}

.podium-col.place-1 .podium-avatar-wrapper {
  width: 74px;
  height: 74px;
}

.podium-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  background: var(--bg-card);
  object-fit: cover;
}

.podium-col.place-1 .podium-avatar {
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.45);
}
.podium-col.place-2 .podium-avatar {
  border-color: #c0c0c0;
}
.podium-col.place-3 .podium-avatar {
  border-color: #cd7f32;
}

.podium-wreath {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.podium-wreath i {
  font-size: 1.3rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.podium-col.place-1 .podium-wreath i { color: #ffd700; font-size: 1.7rem; }
.podium-col.place-2 .podium-wreath i { color: #c0c0c0; }
.podium-col.place-3 .podium-wreath i { color: #cd7f32; }

.podium-name {
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-score {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

.podium-col.place-1 .podium-score { color: #ffd700; }
.podium-col.place-2 .podium-score { color: #c0c0c0; }
.podium-col.place-3 .podium-score { color: #cd7f32; }

/* Floating Active User footer */
.leaderboard-current-user {
  background: var(--primary);
  color: #000000;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  box-shadow: 0 4px 15px rgba(86, 180, 247, 0.35);
}

.leaderboard-current-user .rank-avatar {
  border: 1px solid #000000;
  background: var(--bg-card);
}

.leaderboard-current-user .rank-name {
  font-weight: 800;
}

.leaderboard-current-user .rank-title {
  color: rgba(0, 0, 0, 0.65);
  font-weight: 700;
}

.leaderboard-current-user .rank-coeff {
  color: #000000;
  font-weight: 900;
}

.leaderboard-current-user .rank-lp {
  color: rgba(0, 0, 0, 0.65);
}

/* ═══════════════════════════════════════════════
   14. NEW PROFILE & EDIT PROFILE ADDITIONS
═══════════════════════════════════════════════ */

/* --- Handle (@) display in header --- */
.name-handle-col {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.user-handle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* --- Avatar edit hint overlay --- */
.avatar-edit-hint {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 0.75rem;
  color: #fff;
  pointer-events: none;
}

.avatar-container:hover .avatar-edit-hint {
  opacity: 1;
}

/* --- Modal large variant for full forms --- */
.modal-container.modal-lg {
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
}

.modal-container.modal-lg::-webkit-scrollbar {
  display: none;
}

/* --- Modal hero icon & subtitle --- */
.modal-icon-hero {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 12px rgba(86, 180, 247, 0.3));
}

.modal-sub {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  margin-top: -12px;
}

/* --- Photo Upload Area --- */
.photo-upload-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  cursor: pointer;
  border: 2px dashed var(--border);
  background: var(--bg-input);
  transition: border-color 0.25s, background 0.25s;
  overflow: hidden;
}

.photo-upload-area:hover {
  border-color: var(--primary);
  background: rgba(86, 180, 247, 0.05);
}

.photo-preview-wrap {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  display: none;
}

.photo-preview-wrap.has-image {
  display: block;
}

.photo-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-upload-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  transition: color 0.2s;
  z-index: 1;
}

.photo-upload-cta i {
  font-size: 1.4rem;
}

.photo-upload-area:hover .photo-upload-cta {
  color: var(--primary);
}

/* When an image is loaded, hide the CTA and show an overlay edit on hover */
.photo-upload-area.has-photo .photo-upload-cta {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 50%;
  z-index: 2;
  justify-content: center;
}

.photo-upload-area.has-photo:hover .photo-upload-cta {
  opacity: 1;
}

/* --- Input with @ prefix --- */
.input-with-prefix {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.input-with-prefix:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 10px rgba(86, 180, 247, 0.15);
}

.input-with-prefix.readonly {
  opacity: 0.6;
  cursor: not-allowed;
}

.input-prefix {
  padding: 12px 4px 12px 16px;
  color: var(--primary);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.input-with-prefix input {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 4px;
  flex: 1;
}

.input-with-prefix input:focus {
  border: none !important;
  box-shadow: none !important;
}

/* --- Form hint text (small helper below field) --- */
.form-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -4px;
}

/* --- Modal actions row (save + delete) --- */
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

/* --- Danger ghost button (delete profile) --- */
.btn-danger-ghost {
  background: transparent;
  border: 1px solid rgba(255, 50, 50, 0.3);
  color: #ff5555;
  border-radius: 12px;
  padding: 12px 20px;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, border-color 0.2s;
  width: 100%;
}

.btn-danger-ghost:hover {
  background: rgba(255, 50, 50, 0.08);
  border-color: #ff5555;
}

/* --- @handle shown in athlete card & leaderboard --- */
.athlete-handle {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
}

.rank-handle {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   15. GUIA VISUAL DE RANKS
═══════════════════════════════════════════════ */

.guia-header {
  margin-bottom: 4px;
}

.guia-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  text-align: center;
  padding: 0 4px;
}

.guia-exercise-selector {
  margin-bottom: 8px;
}

.guia-exercise-selector select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  width: 100%;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.guia-exercise-selector select:focus {
  border-color: var(--border-focus);
}

/* --- Streak info card --- */
.streak-info-card {
  background: rgba(255, 89, 37, 0.06);
  border: 1px solid rgba(255, 89, 37, 0.2);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.streak-info-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.streak-info-text strong {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.streak-info-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.streak-info-text b {
  color: var(--orange);
}

/* --- Tier progression list --- */
#tier-progression-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Vertical connector line between tiers */
#tier-progression-list::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--border) 10%, var(--border) 90%, transparent);
  pointer-events: none;
}

/* --- Individual tier row --- */
.tier-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid transparent;
  transition: all 0.25s;
  position: relative;
}

.tier-row.is-current {
  border-color: var(--tier-color, rgba(86, 180, 247, 0.4));
  background: var(--tier-bg, rgba(86, 180, 247, 0.06));
  box-shadow: 0 0 16px var(--tier-glow, rgba(86, 180, 247, 0.12));
}

.tier-row.is-current::before {
  content: '◀ Você está aqui';
  position: absolute;
  right: 10px;
  top: -9px;
  font-size: 0.6rem;
  font-weight: 800;
  font-family: var(--font-title);
  letter-spacing: 0.06em;
  color: var(--tier-label-color, var(--primary));
  background: var(--bg-app);
  padding: 1px 6px;
  border-radius: 10px;
  border: 1px solid var(--tier-color, rgba(86, 180, 247, 0.3));
  white-space: nowrap;
  text-transform: uppercase;
}

.tier-row.is-above {
  opacity: 0.45;
}

/* --- Tier icon dot (left) --- */
.tier-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 2px solid var(--tier-color, var(--border));
  background: var(--tier-bg, rgba(255,255,255,0.03));
  box-shadow: 0 0 10px var(--tier-glow, transparent);
  position: relative;
  z-index: 1;
}

.tier-row.is-current .tier-dot {
  animation: tierPulse 2s ease-in-out infinite;
}

@keyframes tierPulse {
  0%, 100% { box-shadow: 0 0 8px var(--tier-glow, transparent); }
  50% { box-shadow: 0 0 20px var(--tier-glow, transparent); }
}

/* --- Tier info column --- */
.tier-info {
  flex: 1;
  min-width: 0;
}

.tier-name-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.tier-name {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 800;
  color: var(--tier-label-color, var(--text-primary));
}

.tier-subtier-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--tier-bg, rgba(255,255,255,0.06));
  color: var(--tier-label-color, var(--text-muted));
  border: 1px solid var(--tier-color, var(--border));
  border-radius: 6px;
  padding: 1px 5px;
  letter-spacing: 0.05em;
}

.tier-benchmark {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.tier-benchmark span {
  color: var(--text-secondary);
  font-weight: 600;
}

.tier-benchmark .tier-abs-kg {
  display: inline-block;
  margin-top: 2px;
  color: var(--tier-label-color, var(--primary));
  font-weight: 700;
  font-size: 0.8rem;
}

/* --- Right column: current progress or lock --- */
.tier-status {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.tier-progress-bar {
  width: 56px;
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
}

.tier-progress-fill {
  height: 100%;
  border-radius: 10px;
  background: var(--tier-color, var(--primary));
  transition: width 0.5s ease;
}

.tier-lp-label {
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--tier-label-color, var(--text-secondary));
}

.tier-lock {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.4;
}

/* --- Olimpico special row --- */
.tier-row.is-olimpico {
  background: linear-gradient(135deg, rgba(0, 246, 255, 0.05) 0%, rgba(181, 124, 255, 0.05) 100%);
  border-color: rgba(0, 246, 255, 0.2);
}

.tier-row.is-olimpico .tier-dot {
  background: linear-gradient(135deg, #00f6ff, #b57cff);
  border-color: transparent;
}

/* ──────────────────────────────────────────
   EVOLUTION TAB & GALLERY HINT STYLES
────────────────────────────────────────── */

/* Gallery Hint */
.gallery-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(86, 180, 247, 0.08);
  border: 1px solid rgba(86, 180, 247, 0.15);
  border-radius: 12px;
  padding: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.gallery-hint i {
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Chart Styles */
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.chart-header h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.chart-select {
  width: auto;
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.chart-container {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

/* Calendar Styles */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calendar-header h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.calendar-month-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(86, 180, 247, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
}

.calendar-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.c-stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.c-stat-val {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.c-stat-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.calendar-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  position: relative;
}

.calendar-day.empty-day {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}

.calendar-day.active-day {
  background: linear-gradient(135deg, var(--orange) 0%, #d03000 100%);
  border-color: var(--orange);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(255, 89, 37, 0.4);
  animation: pulseFire 2s infinite alternate;
}

@keyframes pulseFire {
  from { transform: scale(1); box-shadow: 0 0 8px rgba(255, 89, 37, 0.4); }
  to { transform: scale(1.03); box-shadow: 0 0 14px rgba(255, 89, 37, 0.6); }
}

/* XP & Level Details */
.xp-detail-card {
  display: flex;
  flex-direction: column;
}

.xp-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.xp-badge-lg {
  background: var(--primary);
  color: #000;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 900;
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(86, 180, 247, 0.3);
}

.xp-detail-info h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
}

.xp-detail-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.xp-sources {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.xp-source-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border);
  border-radius: 10px;
}

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

.xp-src-icon {
  font-size: 1.1rem;
}

.xp-src-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.xp-src-val {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

/* XP progress fill color default */
.xp-detail-card .progress-fill {
  background: linear-gradient(90deg, var(--primary) 0%, var(--tier-campeao) 100%);
  box-shadow: 0 0 8px rgba(86, 180, 247, 0.4);
}

/* XP Milestones list */
.xp-milestones-title {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid var(--border);
  padding-top: 15px;
}

.xp-milestones-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.milestone-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  transition: all 0.25s;
}

.milestone-item.is-passed {
  border-color: rgba(34, 197, 94, 0.15);
  background: rgba(34, 197, 94, 0.02);
  color: var(--text-secondary);
}

.milestone-item.is-current {
  border-color: rgba(86, 180, 247, 0.3);
  background: rgba(86, 180, 247, 0.08);
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 10px rgba(86, 180, 247, 0.1);
}

.milestone-item.is-locked {
  opacity: 0.5;
  color: var(--text-muted);
}

.milestone-status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
}

.milestone-name {
  flex: 1;
}

.milestone-xp {
  font-family: var(--font-title);
  font-weight: 700;
}

/* ==========================================================================
   16. CLANS & ATHLETE PROFILE VIEW MODAL ADDITIONS
   ========================================================================== */

/* Clans Tags Container & Single Tag styling (Discord style) */
.clans-tags-container {
  display: flex;
  gap: 4px;
  align-items: center;
}

.clan-tag {
  font-family: var(--font-title);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(86, 180, 247, 0.08);
  border: 1px solid rgba(86, 180, 247, 0.2);
  padding: 1.5px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Custom coloring for SHRD clan */
.clan-tag-shrd {
  color: var(--tier-campeao);
  background: rgba(181, 124, 255, 0.08);
  border-color: rgba(181, 124, 255, 0.2);
}

/* Custom coloring for PWR clan */
.clan-tag-pwr {
  color: var(--tier-tita);
  background: rgba(230, 81, 81, 0.08);
  border-color: rgba(230, 81, 81, 0.2);
}

/* General tags styling */
.clan-tag-generic {
  color: var(--primary);
  background: rgba(86, 180, 247, 0.08);
  border-color: rgba(86, 180, 247, 0.2);
}

/* Discord tags display slightly differently in names */
.name-clans-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Leaderboard row hover and cursor */
.leaderboard-row, .athlete-card {
  cursor: pointer;
}

/* View Athlete Modal Exercises Grid Scrollbar */
#view-athlete-exercise-grid {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

#view-athlete-exercise-grid::-webkit-scrollbar {
  width: 4px;
}

#view-athlete-exercise-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Specific exercise sub-card styles in profile modal */
#view-athlete-exercise-grid .exercise-card {
  padding: 10px 8px;
  border-radius: 12px;
  min-height: 140px;
}

#view-athlete-exercise-grid .exercise-card .exercise-name {
  font-size: 0.75rem;
  height: 24px;
  margin-bottom: 6px;
}

#view-athlete-exercise-grid .exercise-card .card-badge-container {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
}

#view-athlete-exercise-grid .exercise-card .tier-lbl {
  font-size: 0.55rem;
}

#view-athlete-exercise-grid .exercise-card .lp-lbl {
  font-size: 0.52rem;
  margin-bottom: 6px;
}

#view-athlete-exercise-grid .exercise-card .values-container {
  margin-bottom: 0px;
  gap: 4px;
}

#view-athlete-exercise-grid .exercise-card .v-box {
  padding: 3px;
}

#view-athlete-exercise-grid .exercise-card .v-lbl {
  font-size: 0.5rem;
  margin-bottom: 0px;
}

#view-athlete-exercise-grid .exercise-card .v-val {
  font-size: 0.85rem;
}

#view-athlete-exercise-grid .exercise-card .progress-container {
  display: none; /* Hide progress bar in mini cards to save space */
}

/* Clan panel dropdown styles */
#clan-leaderboard-select {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 700;
  outline: none;
}

#clan-create-panel input {
  padding: 10px 14px;
  font-size: 0.9rem;
}

#btn-join-leave-clan {
  transition: all 0.25s ease;
}

#btn-join-leave-clan.joined {
  background: transparent !important;
  border: 1px solid #ff5555 !important;
  color: #ff5555 !important;
  box-shadow: none !important;
}

#btn-join-leave-clan.joined:hover {
  background: rgba(255, 85, 85, 0.08) !important;
}

/* 👑 RamKing PRO STYLES */
.pro-badge {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  color: #000000;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.62rem;
  padding: 1.5px 6px;
  border-radius: 4px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

.chart-locked-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 150px;
}

.chart-locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 13, 22, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 15px;
  border-radius: 12px;
  z-index: 5;
  border: 1px dashed rgba(255, 215, 0, 0.2);
}

.chart-locked-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffd700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-locked-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  max-width: 280px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.btn-upgrade-sm {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #000;
  border: none;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
  transition: all 0.2s ease;
}

.btn-upgrade-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.3);
}

.modal-paywall-hero {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 8px;
  margin-top: 10px;
  animation: proPulse 2.5s infinite ease-in-out;
}

@keyframes proPulse {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.7)); transform: scale(1.05); }
}

.paywall-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.paywall-feature-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
}

.paywall-feature-icon {
  font-size: 1rem;
  color: #ffd700;
  margin-top: 2px;
}

.paywall-feature-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.paywall-feature-title {
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.paywall-feature-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.pricing-options {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.pricing-card {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pricing-card.active {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.02);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.08);
}

.pricing-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #ffd700;
  color: #000;
  font-size: 0.52rem;
  font-weight: 900;
  padding: 1.5px 5px;
  border-bottom-left-radius: 6px;
  text-transform: uppercase;
}

.pricing-title {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.pricing-price {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
}

.pricing-subtext {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Clans locked panel */
.clans-locked-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 15px;
  text-align: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed var(--border);
  border-radius: 12px;
  margin-top: 8px;
}

.clans-locked-icon {
  font-size: 2.5rem;
  color: #ffd700;
}

.clans-locked-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.clans-locked-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  max-width: 320px;
  line-height: 1.4;
  margin-bottom: 4px;
}

/* Custom Switch Group */
.switch-group {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.switch-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.switch-label {
  margin-bottom: 2px;
  font-size: 0.82rem;
  color: #ffd700;
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Custom Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  display: none !important; /* Esconde e evita conflitos com select, input { width: 100% } */
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-input);
  border: 1px solid var(--border);
  transition: .3s ease;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-secondary);
  transition: .3s ease;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.switch input:checked + .slider:before {
  transform: translateX(22px);
  background-color: #000000;
}





