/**
 * AGENTS — Pages complètes avec accordéons
 */

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* pulse-dot animation removed */

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

/* ============================================================
   SHARED — Badge & Dot
   ============================================================ */

.agent-badge {
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  flex-shrink: 0;
}

.badge-dot.pulse-dot {
  /* animation removed */
}

/* ============================================================
   GRID — Agent Fiches
   ============================================================ */

.agent-fiche {
  background: #111827;
  border: 1px solid #1e2d3d;
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.agent-fiche--inactive {
  opacity: 0.5;
  filter: grayscale(0.4);
}

.agent-fiche--inactive:hover {
  opacity: 0.75;
  filter: grayscale(0.1);
}

/* Per-agent hover */
.agent-fiche[data-agent="magnus"]:hover {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6, 0 0 30px rgba(59,130,246,0.15);
  transform: translateY(-2px);
}

.agent-fiche[data-agent="eugene"]:hover {
  border-color: #059669;
  box-shadow: 0 0 0 1px #059669, 0 0 30px rgba(5,150,105,0.15);
  transform: translateY(-2px);
}

.agent-fiche[data-agent="lisa"]:hover {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 1px #8b5cf6, 0 0 30px rgba(139,92,246,0.15);
  transform: translateY(-2px);
}

.agent-fiche[data-agent="avinash"]:hover {
  border-color: #374151;
  box-shadow: 0 0 0 1px #374151;
  transform: translateY(-2px);
}

/* Card internals */
.agent-fiche-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.agent-fiche-avatar-wrap {
  flex-shrink: 0;
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
}

/* Fallback: cercle coloré + initiale via data-initial, CSS pur, zéro JS */
.agent-fiche-avatar-wrap::after {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--agent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  z-index: 0;
}

.agent-fiche-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--agent-color);
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.2s;
}

.agent-fiche-avatar.loaded {
  opacity: 1;
}

.agent-fiche-identity { flex: 1; min-width: 0; }

.agent-fiche-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f9fafb;
  margin: 0 0 2px;
}

.agent-fiche-role {
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0 0 6px;
}

.agent-fiche-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

.agent-fiche-activity {
  border-top: 1px solid #1e2d3d;
  padding-top: 10px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: #6b7280;
}

/* ============================================================
   AGENT PAGE — Layout
   ============================================================ */

.ap-page {
  animation: fadeInPage 0.3s ease;
}

.ap-page--inactive .ap-sections {
  opacity: 0.5;
  filter: grayscale(0.3);
}

.ap-back {
  background: none;
  border: 1px solid #1e2d3d;
  color: #9ca3af;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  margin-bottom: 20px;
  transition: all 0.2s;
}

.ap-back:hover {
  border-color: #374151;
  color: #e2e8f0;
}

.ap-inactive-banner {
  background: rgba(31,41,55,0.25);
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: #9ca3af;
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 2;
}

.ap-activate-btn {
  margin-top: 8px;
  padding: 10px 32px;
  background: #3b82f6;
  border: none;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.ap-activate-btn:hover { background: #2563eb; }

/* ============================================================
   HERO — Agent page header
   ============================================================ */

.agent-hero {
  position: relative;
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 32px;
}

/* Glow orb */
.agent-hero::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  top: -100px;
  left: 80px;
  filter: blur(80px);
  opacity: 0.12;
  background: var(--hero-glow, #3b82f6);
  z-index: 1;
}

.agent-hero-bg {
  position: absolute;
  inset: 0;
}

/* CSS grid overlay */
.agent-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.agent-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px 48px;
}

.agent-avatar-wrap {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.agent-hero-text { flex: 1; }

.agent-name {
  font-size: 2.8rem;
  font-weight: 700;
  color: #f9fafb;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.agent-role {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 500;
}

/* ============================================================
   KPI BAR
   ============================================================ */

.ap-kpi-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.ap-kpi {
  flex: 1;
  min-width: 140px;
  background: #111827;
  border: 1px solid #1e2d3d;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.ap-kpi-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #3b82f6;
}

.ap-kpi-lbl {
  display: block;
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* ============================================================
   ACCORDIONS
   ============================================================ */

.accordion-item {
  background: #0f172a;
  border: 1px solid #1e2d3d;
  border-left: 3px solid var(--acc-border, #3b82f6);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

.accordion-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e2e8f0;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.15s;
}

.accordion-title:hover {
  background: rgba(255,255,255,0.02);
}

.accordion-icon { font-size: 14px; }
.accordion-label { flex: 1; }
.accordion-chevron {
  font-size: 12px;
  color: #6b7280;
  transition: transform 0.2s;
}

.accordion-content {
  background: #080f1a;
  padding: 24px 28px;
  border-top: 1px solid #1e2d3d;
}

/* ============================================================
   MARKDOWN TYPOGRAPHY (inside accordion-content)
   ============================================================ */

.ap-md-content, .ap-md-render {
  color: #94a3b8;
  line-height: 1.7;
  font-size: 14px;
}

.ap-md-content h1, .ap-md-render h1 {
  font-size: 1.3rem;
  color: #e2e8f0;
  margin: 20px 0 10px;
  border-bottom: 1px solid #1e2d3d;
  padding-bottom: 6px;
}

.ap-md-content h2, .ap-md-render h2 {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin: 20px 0 8px;
}

.ap-md-content h3, .ap-md-render h3 {
  font-size: 1rem;
  color: #e2e8f0;
  margin: 20px 0 8px;
}

.ap-md-content p, .ap-md-render p {
  color: #94a3b8;
  line-height: 1.7;
  font-size: 14px;
  margin: 0 0 12px;
}

.ap-md-content ul, .ap-md-render ul,
.ap-md-content ol, .ap-md-render ol {
  padding-left: 1.5rem;
  margin: 0 0 12px;
}

.ap-md-content li, .ap-md-render li {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 2px;
}

.ap-md-content strong, .ap-md-render strong {
  color: #e2e8f0;
}

.ap-md-content code, .ap-md-render code {
  background: #1e2d3d;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #7dd3fc;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.ap-md-content pre, .ap-md-render pre {
  background: #0a0e14;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid #1e2d3d;
  margin: 12px 0;
}

.ap-md-content pre code, .ap-md-render pre code {
  background: none;
  padding: 0;
  color: #94a3b8;
  font-size: 13px;
}

.ap-md-content blockquote, .ap-md-render blockquote {
  border-left: 3px solid #374151;
  padding-left: 16px;
  margin: 12px 0;
  color: #6b7280;
}

.ap-md-content hr, .ap-md-render hr {
  border: none;
  border-top: 1px solid #1e2d3d;
  margin: 20px 0;
}

.ap-md-content a, .ap-md-render a {
  color: #60a5fa;
  text-decoration: none;
}

.ap-md-content a:hover, .ap-md-render a:hover {
  text-decoration: underline;
}

.ap-md-content table, .ap-md-render table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.ap-md-content th, .ap-md-render th,
.ap-md-content td, .ap-md-render td {
  border: 1px solid #1e2d3d;
  padding: 6px 10px;
  font-size: 13px;
  text-align: left;
}

.ap-md-content th, .ap-md-render th {
  background: #0f172a;
  color: #e2e8f0;
  font-weight: 600;
}

/* ============================================================
   CONTENT TYPES — States
   ============================================================ */

.ap-loading {
  color: #6b7280;
  font-style: italic;
  /* animation removed */
}

.ap-empty { color: #4b5563; text-align: center; padding: 24px; font-style: italic; font-size: 13px; }

.ap-error {
  color: #ef4444;
  font-style: italic;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
}

/* ============================================================
   CONTENT — Sessions list
   ============================================================ */

.ap-sessions-list { display: flex; flex-direction: column; gap: 4px; }

.ap-session-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #0f172a;
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid #1e2d3d;
}

.ap-session-date {
  color: #6b7280;
  width: 130px;
  flex-shrink: 0;
  font-family: monospace;
  font-size: 12px;
}

.ap-session-label {
  flex: 1;
  color: #d1d5db;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-session-type {
  color: #6b7280;
  font-size: 11px;
  text-transform: uppercase;
}

.ap-status-active {
  color: #22c55e;
  font-size: 11px;
  font-weight: 600;
  background: rgba(34,197,94,0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.ap-status-done {
  color: #6b7280;
  font-size: 11px;
  background: rgba(107,114,128,0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ============================================================
   CONTENT — Timeline
   ============================================================ */

.ap-timeline {
  position: relative;
  padding-left: 24px;
}

.ap-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #3b82f6 0%, #1e2d3d 100%);
}

.ap-timeline-item {
  position: relative;
  padding: 6px 0 6px 16px;
}

.ap-timeline-dot {
  position: absolute;
  left: -24px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #080f1a;
}

.ap-timeline-time {
  font-size: 11px;
  color: #6b7280;
  font-family: monospace;
}

.ap-timeline-content p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #d1d5db;
}

/* ============================================================
   CONTENT — Journal cards
   ============================================================ */

.ap-journal-cards { display: flex; flex-direction: column; gap: 10px; }

.ap-journal-card {
  background: #0f172a;
  border: 1px solid #1e2d3d;
  border-radius: 8px;
  padding: 16px;
}

.ap-journal-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ap-journal-action {
  font-size: 11px;
  text-transform: uppercase;
  color: #3b82f6;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.ap-journal-date {
  font-size: 11px;
  color: #6b7280;
  font-family: monospace;
}

.ap-journal-desc {
  margin: 0;
  font-size: 13px;
  color: #d1d5db;
  line-height: 1.5;
}

.ap-journal-full {
  margin: 8px 0 0;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
}

/* ============================================================
   CONTENT — Files list
   ============================================================ */

.ap-files-list { display: flex; flex-direction: column; gap: 4px; }

.ap-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #0f172a;
  border: 1px solid #1e2d3d;
  border-radius: 6px;
}

.ap-file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.ap-file-icon { font-size: 14px; }

.ap-file-name {
  font-size: 13px;
  color: #d1d5db;
  font-family: 'SF Mono', 'Fira Code', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-file-size {
  font-size: 11px;
  color: #4b5563;
  flex-shrink: 0;
}

.ap-file-btn {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  color: #60a5fa;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  margin-left: 8px;
}

.ap-file-btn:hover { background: rgba(59,130,246,0.2); }

.ap-file-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 8px;
}
.ap-file-actions .ap-file-btn { margin-left: 0; }
.ap-file-btn--copy {
  background: rgba(156,163,175,0.08);
  border-color: rgba(156,163,175,0.25);
  color: #9ca3af;
}
.ap-file-btn--copy:hover {
  background: rgba(156,163,175,0.18);
  color: #d1d5db;
}

.ap-copy-list-btn {
  background: rgba(156,163,175,0.08);
  border: 1px solid rgba(156,163,175,0.25);
  color: #9ca3af;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  white-space: nowrap;
}
.ap-copy-list-btn:hover {
  background: rgba(156,163,175,0.18);
  color: #d1d5db;
}

.ap-file-content {
  background: #080f1a;
  border: 1px solid #1e2d3d;
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 16px 20px;
  margin-top: -4px;
}

/* ============================================================
   CONTENT — Crons, Telegram, Config
   ============================================================ */

.ap-crons-list, .ap-telegram-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ap-cron-item, .ap-telegram-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #0f172a;
  border: 1px solid #1e2d3d;
  border-radius: 8px;
}

.ap-cron-icon, .ap-telegram-icon {
  font-size: 18px;
  margin-top: 1px;
}

.ap-cron-item strong, .ap-telegram-item strong {
  color: #e2e8f0;
  font-size: 13px;
  display: block;
}

.ap-cron-item p, .ap-telegram-item p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.ap-telegram-item code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: #1e2d3d;
  padding: 2px 8px;
  border-radius: 4px;
  color: #7dd3fc;
  font-size: 13px;
  display: inline-block;
}

/* Config grid */
.ap-config-grid { display: flex; flex-direction: column; gap: 4px; }

.ap-config-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  background: #0f172a;
  border: 1px solid #1e2d3d;
  border-radius: 6px;
  font-size: 13px;
}

.ap-config-key { color: #6b7280; }
.ap-config-val { color: #e2e8f0; font-weight: 600; font-family: monospace; }

/* ============================================================
   CONTENT — Subagent card
   ============================================================ */

.ap-subagent-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: #0f172a;
  border: 1px solid #1e2d3d;
  border-radius: 12px;
}

.ap-subagent-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid;
}

.ap-subagent-card h4 { margin: 0 0 2px; color: #e2e8f0; font-size: 1rem; }
.ap-subagent-role { margin: 0 0 8px; font-size: 12px; color: #059669; font-weight: 500; }
.ap-subagent-last { margin: 8px 0 0; font-size: 12px; color: #6b7280; }
.ap-subagents-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.ap-subagents-grid .ap-subagent-card { flex: 1; min-width: 220px; }

/* ============================================================
   CONTENT — Demandes
   ============================================================ */

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

.ap-demande-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #0f172a;
  border: 1px solid #1e2d3d;
  border-radius: 8px;
}

.ap-demande-prio {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

.ap-prio-haute { background: rgba(239,68,68,0.15); color: #ef4444; }
.ap-prio-normale { background: rgba(59,130,246,0.15); color: #3b82f6; }
.ap-prio-basse { background: rgba(107,114,128,0.15); color: #6b7280; }

.ap-demande-item strong { color: #e2e8f0; font-size: 13px; display: block; }
.ap-demande-item p { margin: 2px 0 0; font-size: 12px; color: #94a3b8; }

/* ============================================================
   CONTENT — Costs Chart
   ============================================================ */

.ap-costs-chart {
  background: #0f172a;
  border: 1px solid #1e2d3d;
  border-radius: 10px;
  padding: 16px;
}

/* ============================================================
   SCROLLBAR — File content
   ============================================================ */

.ap-file-content::-webkit-scrollbar {
  width: 6px;
}

.ap-file-content::-webkit-scrollbar-track {
  background: transparent;
}

.ap-file-content::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 3px;
}

/* ============================================================
   UNIFIED GRID — Single grid for agents + droids
   ============================================================ */

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Section headers span full width */
.equipe-section-header {
  grid-column: 1 / -1;
}

.equipe-section-header--droids {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #0e7490;
}

.agents-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.agents-category-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.agents-category-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0;
  letter-spacing: 0.02em;
}

.agents-category-title--droids {
  color: #06b6d4;
}

.agents-category-desc {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0 0 1rem;
  padding-left: 30px;
}

.agents-category-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #1e2d3d 20%, #1e2d3d 80%, transparent);
  margin-bottom: 0;
}

.agents-category-divider--droids {
  background: linear-gradient(90deg, transparent, #0e7490 20%, #0e7490 80%, transparent);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .equipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .agent-hero-content {
    flex-direction: column;
    text-align: center;
    padding: 24px;
    gap: 16px;
  }

  .agent-avatar-wrap { width: 100px; height: 100px; }
  .agent-name { font-size: 2rem; }

  .ap-kpi-bar { flex-direction: column; }
  .ap-kpi { min-width: auto; }

  .ap-session-row { flex-wrap: wrap; }
  .ap-session-date { width: auto; }

  .ap-config-grid { flex-direction: column; }
  .ap-config-row { flex-direction: column; gap: 2px; }

  .ap-subagents-grid { flex-direction: column; }
  .ap-subagents-grid .ap-subagent-card { min-width: auto; }

  .accordion-content { padding: 16px; }
  .accordion-title { padding: 12px 14px; }
}

@media (max-width: 600px) {
  .equipe-grid {
    grid-template-columns: 1fr;
  }
  .agent-fiche-top {
    flex-direction: column;
    text-align: center;
  }

  .agent-fiche-identity { align-items: center; }
  .agent-fiche-activity { align-items: center; }

  .agent-avatar-wrap { width: 80px; height: 80px; }
  .agent-name { font-size: 1.6rem; }

  .ap-kpi-bar { gap: 8px; }
}


/* ============================================================
   GAMIFICATION — XP Bar & Badges on fiches
   ============================================================ */

.agent-fiche-xp {
  margin-top: 10px;
  min-height: 0;
}

.agent-xp-bar-wrap {
  border-top: 1px solid #1e2d3d;
  padding-top: 10px;
}

.agent-xp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.agent-xp-level {
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agent-xp-value {
  font-size: 11px;
  color: #6b7280;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.agent-xp-track {
  height: 4px;
  background: #1e2d3d;
  border-radius: 2px;
  overflow: hidden;
}

.agent-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
  transition: width 0.6s ease;
}

.agent-badges-row {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.agent-badge-xp {
  font-size: 14px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid #1e2d3d;
  border-radius: 6px;
  cursor: default;
  transition: background 0.15s;
}

.agent-badge-xp:hover {
  background: rgba(255,255,255,0.08);
}
