/* HyperformIQ — Custom Styles */
:root {
  --primary: #3B82F6;
  --primary-dark: #1D4ED8;
  --accent: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --purple: #8B5CF6;
  --bg-dark: #030712;
  --bg-card: #111827;
  --bg-card2: #1F2937;
  --border: #374151;
  --text-muted: #6B7280;
}

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

body {
  background: var(--bg-dark);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
}

/* ======== LAYOUT ======== */
#app { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 50;
  transition: transform 0.3s;
}

.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

.sidebar-nav { flex: 1; padding: 16px 0; overflow-y: auto; }

.nav-section-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 12px 20px 6px;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: #9CA3AF;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

.nav-item:hover { color: white; background: rgba(59,130,246,0.08); }

.nav-item.active {
  color: var(--primary);
  background: rgba(59,130,246,0.12);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 70%;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}

.nav-item i { width: 18px; text-align: center; font-size: 15px; }

.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.avatar-text { font-size: 11px; color: #9CA3AF; }
.avatar-name { font-size: 13px; color: white; font-weight: 600; }

.main-content {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 64px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-title { font-size: 18px; font-weight: 700; color: white; }
.topbar-sub { font-size: 13px; color: var(--text-muted); }

.topbar-actions { display: flex; align-items: center; gap: 12px; }

.page { padding: 28px; flex: 1; }

/* ======== CARDS ======== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

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

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.card-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ======== METRICS GRID ======== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.metric-card:hover { border-color: var(--primary); }

.metric-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 16px;
}

.metric-value {
  font-size: 26px;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.metric-unit { font-size: 13px; color: var(--text-muted); margin-left: 4px; }
.metric-label { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.metric-delta { font-size: 11px; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.metric-delta.up { color: var(--accent); }
.metric-delta.down { color: var(--danger); }

/* ======== BUTTONS ======== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-ghost {
  background: transparent;
  color: #9CA3AF;
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-card2); color: white; border-color: #4B5563; }

.btn-success { background: var(--accent); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 8px; }

/* ======== BADGES ======== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-optimal { background: rgba(16,185,129,0.15); color: var(--accent); }
.badge-fresh { background: rgba(59,130,246,0.15); color: var(--primary); }
.badge-overreaching { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-overtraining { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge-detraining { background: rgba(107,114,128,0.15); color: var(--text-muted); }
.badge-info { background: rgba(59,130,246,0.15); color: var(--primary); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); }

/* ======== SPORT ICONS ======== */
.sport-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ======== STATUS / RISK ======== */
.risk-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-card2);
  overflow: hidden;
  margin-top: 4px;
}

.risk-fill { height: 100%; border-radius: 3px; transition: width 0.5s; }

/* ======== SESSION LIST ======== */
.session-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  border: 1px solid transparent;
}

.session-item:hover {
  background: var(--bg-card2);
  border-color: var(--border);
}

.session-item.selected {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.3);
}

/* ======== ACWR GAUGE ======== */
.acwr-gauge {
  position: relative;
  width: 120px; height: 120px;
  margin: 0 auto;
}

/* ======== LOADING ======== */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(59,130,246,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--bg-card2) 25%, #2D3748 50%, var(--bg-card2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ======== CHARTS ======== */
.chart-container { position: relative; }

/* ======== ALERTS ======== */
.alert-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  border-left: 3px solid;
  margin-bottom: 10px;
}

.alert-item.danger { background: rgba(239,68,68,0.08); border-color: var(--danger); }
.alert-item.warning { background: rgba(245,158,11,0.08); border-color: var(--warning); }
.alert-item.info { background: rgba(59,130,246,0.08); border-color: var(--primary); }

.alert-icon { font-size: 16px; margin-top: 1px; }
.alert-title { font-size: 13px; font-weight: 600; color: white; }
.alert-msg { font-size: 12px; color: #9CA3AF; margin-top: 2px; line-height: 1.5; }

/* ======== ZONES BAR ======== */
.zones-container { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; }
.zone-segment { height: 100%; border-radius: 2px; transition: width 0.5s; }
.z1 { background: #6B7280; }
.z2 { background: #3B82F6; }
.z3 { background: #10B981; }
.z4 { background: #F59E0B; }
.z5 { background: #EF4444; }

/* ======== TABS ======== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  margin-bottom: -1px;
}
.tab:hover { color: white; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ======== FORM ======== */
.form-group { margin-bottom: 16px; }
.form-label { font-size: 12px; font-weight: 600; color: #9CA3AF; margin-bottom: 6px; display: block; text-transform: uppercase; letter-spacing: 0.5px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: white;
  font-size: 14px;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
}

.form-range { width: 100%; accent-color: var(--primary); }

/* ======== INTEGRATION CARDS ======== */
.integration-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s;
}

.integration-card.connected { border-color: rgba(16,185,129,0.3); }
.integration-card:hover { border-color: #4B5563; }

.integration-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

/* ======== SOURCE PRIORITY ======== */
.priority-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.priority-dots {
  display: flex;
  gap: 3px;
}

.priority-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.priority-dot.filled { background: var(--primary); }

/* ======== COACH PANEL ======== */
.athlete-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.athlete-row:hover { background: var(--bg-card2); }

/* ======== MODAL ======== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-body { padding: 24px; }

/* ======== TOAST ======== */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  min-width: 280px;
  animation: slideIn 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.toast.success { border-color: var(--accent); }
.toast.error { border-color: var(--danger); }
.toast.info { border-color: var(--primary); }

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

/* ======== SCROLLBAR ======== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4B5563; }

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
}

/* ======== ANIMATIONS ======== */
.fade-in { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ======== SPECIFIC COMPONENTS ======== */
.readiness-ring {
  width: 100px; height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  position: relative;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(139,92,246,0.2));
  border: 1px solid rgba(139,92,246,0.3);
  color: #A78BFA;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: #9CA3AF;
}

.dedup-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(16,185,129,0.1);
}

/* PSE Scale visual */
.pse-scale {
  display: flex;
  gap: 3px;
  height: 28px;
  align-items: flex-end;
}

.pse-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  transition: all 0.3s;
  cursor: pointer;
}

.hr-zones-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hr-zone-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #9CA3AF;
}

.hr-zone-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

/* ======== PRESCRIPTION STYLES ======== */
.prescription-week-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.prescription-week-nav::-webkit-scrollbar { display: none; }

.week-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-card2);
  color: #9CA3AF;
  transition: all 0.2s;
  white-space: nowrap;
}
.week-btn:hover { border-color: var(--primary); color: white; }
.week-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.week-btn.current { border-color: var(--accent); }
.week-btn.completed { background: rgba(16,185,129,0.15); color: var(--accent); border-color: rgba(16,185,129,0.3); }

.day-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
}
.day-card:hover { border-color: #4B5563; transform: translateY(-1px); }
.day-card.completed { border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.03); }
.day-card.today { border-color: var(--primary); box-shadow: 0 0 0 1px rgba(59,130,246,0.2); }
.day-card.rest { opacity: 0.6; }

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

.day-sport-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.session-block {
  padding: 12px 14px;
}

.block-section {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  background: var(--bg-card2);
}

.block-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.block-text {
  font-size: 12px;
  color: #D1D5DB;
  line-height: 1.6;
}

.zone-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  font-family: monospace;
}

.zone-Z1 { background: rgba(107,114,128,0.2); color: #9CA3AF; }
.zone-Z2 { background: rgba(59,130,246,0.2); color: #93C5FD; }
.zone-Z3 { background: rgba(16,185,129,0.2); color: #6EE7B7; }
.zone-Z4 { background: rgba(245,158,11,0.2); color: #FCD34D; }
.zone-Z5 { background: rgba(239,68,68,0.2); color: #FCA5A5; }
.zone-Z2-Z3 { background: rgba(16,185,129,0.15); color: #86EFAC; }
.zone-Z3-Z4 { background: rgba(245,158,11,0.15); color: #FDE68A; }
.zone-livre { background: rgba(139,92,246,0.15); color: #C4B5FD; }

.var-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-family: monospace;
  background: rgba(59,130,246,0.15);
  color: #93C5FD;
  border: 1px solid rgba(59,130,246,0.2);
  margin: 1px;
}

.coach-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: var(--bg-card);
  transition: border-color 0.2s;
  cursor: pointer;
}
.coach-card:hover { border-color: #4B5563; }
.coach-card.selected { border-color: var(--primary); background: rgba(59,130,246,0.04); }

.certified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(245,158,11,0.15);
  color: #FCD34D;
  border: 1px solid rgba(245,158,11,0.3);
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-card2);
}
.upload-zone:hover, .upload-zone.dragging {
  border-color: var(--primary);
  background: rgba(59,130,246,0.04);
}

.progress-ring-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.intensity-bar {
  height: 4px;
  border-radius: 2px;
  margin-top: 6px;
}

.sport-natacao  { background: #06B6D4; }
.sport-ciclismo { background: #10B981; }
.sport-corrida  { background: #3B82F6; }
.sport-forca    { background: #8B5CF6; }
.sport-mobilidade { background: #F59E0B; }
.sport-recuperacao { background: #6B7280; }
.sport-descanso { background: #374151; }

.timeline-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid;
  flex-shrink: 0;
  margin-top: 4px;
}

.excel-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.excel-preview-table th {
  background: #1F2937;
  color: #9CA3AF;
  padding: 6px 10px;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10px;
  border-bottom: 1px solid #374151;
}
.excel-preview-table td {
  padding: 6px 10px;
  color: #D1D5DB;
  border-bottom: 1px solid #1F2937;
}
.excel-preview-table tr:hover td { background: #111827; }

.week-summary-bar {
  display: flex;
  gap: 3px;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}

.cbtri-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(0,105,180,0.2), rgba(0,166,81,0.2));
  border: 1px solid rgba(0,105,180,0.4);
  color: #93C5FD;
}

/* ======== FORÇA / STRENGTH MODULE ======== */
.btn-success {
  background: rgba(16,185,129,0.2);
  color: #10B981;
  border: 1px solid rgba(16,185,129,0.3);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.btn-success:hover {
  background: rgba(16,185,129,0.3);
  border-color: rgba(16,185,129,0.5);
}

.strength-day-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
  cursor: pointer;
}
.strength-day-card:hover {
  border-color: #4B5563;
  transform: translateY(-1px);
}
.strength-day-card.completed {
  border-color: rgba(16,185,129,0.4);
  background: rgba(16,185,129,0.03);
}

.exercise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.exercise-card:hover { border-color: #4B5563; }

.rir-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
}

.cadence-display {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
  color: white;
}
.cadence-display .cadence-num {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C4B5FD;
  font-weight: 800;
}
.cadence-display .cadence-sep {
  color: #4B5563;
  font-size: 10px;
}

.superset-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(245,158,11,0.2);
  border: 1px solid rgba(245,158,11,0.3);
  color: #FCD34D;
}

.pse-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.pse-btn:hover {
  border-color: #4B5563;
  color: white;
}
.pse-btn.selected {
  font-weight: 800;
}
