/* ═════════════════════════════════════════════════════════════════════════
   MÉTODO FUSION - DESIGN SYSTEM & STYLESHEET
   Paleta Premium: #0B132B (Navy) | #1C2541 (Card) | #C5A059 (Gold)
   ═════════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@600;700;800;900&family=Cinzel:wght@700;800;900&display=swap');

:root {
  --bg-dark: #0B132B;
  --card-bg: #1C2541;
  --card-inner: #151D35;
  --input-bg: #050A15;
  --gold: #C5A059;
  --gold-light: #E6C27A;
  --gold-hover: #D4AF37;
  --gold-soft: rgba(197, 160, 89, 0.15);
  --text-main: #FFFFFF;
  --text-muted: #8D99AE;
  --border: #3A506B;
  --border-focus: #C5A059;
  --emerald: #10B981;
  --cyan: #06B6D4;
  --danger: #EF4444;
  --warn: #F59E0B;
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-cinzel: 'Cinzel', serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 14.5px;
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button { cursor: pointer; }
a { text-decoration: none; color: inherit; }

/* ── Typography & Accents ── */
.font-montserrat { font-family: var(--font-title); }
.font-cinzel { font-family: var(--font-cinzel); }
.gold-text { color: var(--gold); }
.gold-gradient-text {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gold-gradient-bg {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #050A15;
  font-weight: 800;
}

/* ── Layout App Shell ── */
.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: linear-gradient(180deg, #0B132B 0%, #151D35 100%);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 40;
}
.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  flex-shrink: 0;
}
  margin-bottom: 12px;
}
.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #050A15;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.35);
}

.fusion-logo-login-wrap {
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
}
.fusion-logo-login-wrap:hover {
  transform: scale(1.03);
}

.brand-title {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-subtitle {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-heading {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 8px 3px;
  flex-shrink: 0;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s;
  text-align: left;
  flex-shrink: 0;
}
.nav-btn:hover {
  background: rgba(28, 37, 65, 0.7);
  color: #fff;
  border-color: rgba(58, 80, 107, 0.5);
  transform: translateX(2px);
}
.nav-btn.active {
  background: linear-gradient(90deg, rgba(197, 160, 89, 0.18) 0%, rgba(28, 37, 65, 0.4) 100%);
  color: var(--gold-light);
  border-color: var(--gold);
  font-weight: 700;
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.15);
}
.nav-btn .badge-pill {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(197, 160, 89, 0.3);
}

/* ── Main Column & Topbar ── */
.main-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  height: 72px;
  background: rgba(11, 19, 43, 0.85);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  backdrop-filter: blur(12px);
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
}

/* ── Content Area & Containers ── */
.content-area {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.fusion-card {
  background: linear-gradient(160deg, var(--card-bg) 0%, var(--card-inner) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* ── Wizard Progress Bar ── */
.progress-bar-wrap {
  display: flex;
  justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
}
.progress-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 0;
  transform: translateY(-50%);
}
.step-indicator {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--input-bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  z-index: 1;
  transition: all 0.3s;
}
.step-indicator.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--card-bg);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
}
.step-indicator.completed {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-color: var(--gold);
  color: var(--input-bg);
}

/* ── Form Inputs & Controls ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.full-width { grid-column: span 2; }

label.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.fusion-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.25s;
}
.fusion-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.25);
  background: #070e1e;
}
textarea.fusion-input {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

/* ── Urgency Slider with Dynamic Glow ── */
.urgency-slider {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ef4444 100%);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: 10px;
}
.urgency-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-light);
  border: 3px solid var(--input-bg);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(230, 194, 122, 0.6);
  transition: all 0.2s;
}
.urgency-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.urgency-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 700;
}

/* ── Expert Selection Cards (Matriz Fusion) ── */
.experts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.expert-card {
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}
.expert-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-light);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
.expert-card.selected {
  border-color: var(--gold);
  background: rgba(197, 160, 89, 0.1);
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.2);
}
.expert-card.selected::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg-dark);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
}
.expert-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.expert-card.selected .expert-avatar {
  border-color: var(--gold);
}

.expert-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}
.expert-tag {
  display: inline-block;
  font-size: 10px;
  padding: 3px 8px;
  background: var(--gold-soft);
  color: var(--gold);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 800;
}

/* ── Tooltip Trilingue (PT / EN / ES) ── */
.tooltip-trilingual {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #050A15;
  border: 1.5px solid var(--gold);
  padding: 14px;
  border-radius: 12px;
  width: 260px;
  z-index: 100;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 15px rgba(197, 160, 89, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.expert-card:hover .tooltip-trilingual {
  visibility: visible;
  opacity: 1;
  bottom: calc(100% + 16px);
}
.tooltip-trilingual p {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.4;
}
.tooltip-trilingual p:last-child { margin-bottom: 0; }
.tooltip-trilingual strong { color: var(--gold-light); font-weight: 800; }

/* ── Buttons ── */
.btn-fusion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 800;
  border: 0;
  transition: all 0.25s;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
}
.btn-fusion-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #050A15;
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.35);
}
.btn-fusion-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.5);
  filter: brightness(1.05);
}
.btn-fusion-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}
.btn-fusion-outline:hover {
  border-color: var(--gold);
  color: #fff;
  background: rgba(28, 37, 65, 0.5);
}

/* ── Login Box Specifics ── */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 20%, #1C2541 0%, #0B132B 70%);
}
.login-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(160deg, #1C2541 0%, #0B132B 100%);
  border: 1.5px solid rgba(197, 160, 89, 0.4);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(197, 160, 89, 0.15);
  position: relative;
}

/* ── Mentoria VIP Sidebar & Dashboard Card ── */
.mentoria-sidebar-card {
  flex-shrink: 0 !important;
  width: 100%;
  background: linear-gradient(145deg, #101B3B 0%, #0D162E 100%);
  border: 1.5px solid rgba(197, 160, 89, 0.5);
  border-radius: 12px;
  padding: 14px 12px;
  margin: 6px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(197, 160, 89, 0.25);
  position: relative;
  overflow: visible !important;
  box-sizing: border-box;
}
.mentoria-sidebar-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.mentoria-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold-light);
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 20px;
  padding: 2px 8px;
  margin-bottom: 8px;
}
.mentoria-title {
  font-family: var(--font-title);
  font-size: 12.5px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.35;
  margin-bottom: 6px;
}
.mentoria-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}
.btn-mentoria {
  width: 100%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #050A15;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 10px;
  border-radius: 7px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-mentoria:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(197, 160, 89, 0.45);
}

/* ── Locked Nav Item (For non-superadmin) ── */
.nav-btn-locked {
  opacity: 0.75;
  position: relative;
  transition: all 0.2s ease;
}
.nav-btn-locked:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}
.badge-lock {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid rgba(197, 160, 89, 0.3);
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ── Modal Overlay Universal ── */
.fusion-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 21, 0.88);
  backdrop-filter: blur(8px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.fusion-modal-content {
  width: 100%;
  max-width: 540px;
  background: linear-gradient(160deg, #1C2541 0%, #0F172A 100%);
  border: 1.5px solid var(--gold);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(197, 160, 89, 0.2);
  padding: 26px;
  color: #fff;
  position: relative;
}

/* ── Glossary Tabs, Pills & Cards ── */
.glossary-tab-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.glossary-tab-btn.active {
  background: rgba(197, 160, 89, 0.15);
  border-color: var(--gold);
  color: var(--gold-light);
}
.glossary-pill {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.glossary-pill:hover, .glossary-pill.active {
  background: rgba(197, 160, 89, 0.2);
  border-color: var(--gold);
  color: #fff;
}
.glossary-term-card {
  background: var(--card-inner);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s;
}
.glossary-term-card:hover {
  border-color: rgba(197, 160, 89, 0.55);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* ── Categories Pills Scrollbar & Container Fix ── */
#fusion_glossary_cat_pills,
.glossary-cat-pills-bar {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 12px !important;
  padding-top: 4px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  flex-shrink: 0 !important;
  scrollbar-width: thin !important;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.05) !important;
  scroll-behavior: smooth;
}

#fusion_glossary_cat_pills::-webkit-scrollbar,
.glossary-cat-pills-bar::-webkit-scrollbar {
  height: 6px !important;
}

#fusion_glossary_cat_pills::-webkit-scrollbar-track,
.glossary-cat-pills-bar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06) !important;
  border-radius: 10px !important;
}

#fusion_glossary_cat_pills::-webkit-scrollbar-thumb,
.glossary-cat-pills-bar::-webkit-scrollbar-thumb {
  background: var(--gold) !important;
  border-radius: 10px !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

#fusion_glossary_cat_pills::-webkit-scrollbar-thumb:hover,
.glossary-cat-pills-bar::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light) !important;
}

/* ── Prevent Accidental Lateral Scroll on Modal Panes ── */
#fusion_glossary_pane_dict,
#fusion_glossary_pane_flashcards {
  overflow-x: hidden !important;
}

#fusion_glossary_terms_grid {
  overflow-x: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 160, 89, 0.5) rgba(255, 255, 255, 0.04);
}

#fusion_glossary_terms_grid::-webkit-scrollbar,
#fusion_glossary_pane_dict::-webkit-scrollbar,
#fusion_glossary_pane_flashcards::-webkit-scrollbar {
  width: 6px !important;
}

#fusion_glossary_terms_grid::-webkit-scrollbar-track,
#fusion_glossary_pane_dict::-webkit-scrollbar-track,
#fusion_glossary_pane_flashcards::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04) !important;
  border-radius: 10px !important;
}

#fusion_glossary_terms_grid::-webkit-scrollbar-thumb,
#fusion_glossary_pane_dict::-webkit-scrollbar-thumb,
#fusion_glossary_pane_flashcards::-webkit-scrollbar-thumb {
  background: rgba(197, 160, 89, 0.45) !important;
  border-radius: 10px !important;
}

#fusion_glossary_terms_grid::-webkit-scrollbar-thumb:hover,
#fusion_glossary_pane_dict::-webkit-scrollbar-thumb:hover,
#fusion_glossary_pane_flashcards::-webkit-scrollbar-thumb:hover {
  background: var(--gold) !important;
}

/* ── 3D Flashcard ── */
.flashcard-3d-wrap {
  perspective: 1000px;
  width: 100%;
  max-width: 520px;
  height: 230px;
  margin: 0 auto;
}
.flashcard-3d-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}
.flashcard-3d-inner.flipped {
  transform: rotateY(180deg);
}
.flashcard-3d-front, .flashcard-3d-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}
.flashcard-3d-front {
  background: linear-gradient(145deg, #1C2541 0%, #101B3B 100%);
  border: 2px solid var(--gold);
  color: #fff;
}
.flashcard-3d-back {
  background: linear-gradient(145deg, #0F172A 0%, #1E293B 100%);
  border: 2px solid var(--cyan);
  color: #fff;
  transform: rotateY(180deg);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 768px) {
  .form-grid, .experts-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: span 1; }
  .fusion-card { padding: 22px; }
  .topbar { padding: 0 16px; }
}

/* ═════════════════════════════════════════════════════════════════════════
   RADAR SCANNER HUD & DYNAMIC MATCHING ENGINE
   ═════════════════════════════════════════════════════════════════════════ */
.radar-scan-container {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.radar-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.35) 0%, rgba(197, 160, 89, 0) 70%);
  animation: radarPulse 1.8s ease-out infinite;
}
.radar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed var(--gold);
  animation: radarSpin 4s linear infinite;
  box-shadow: 0 0 25px rgba(197, 160, 89, 0.3);
}
.radar-core {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0B132B;
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  font-size: 24px;
  color: var(--gold);
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.45);
  z-index: 2;
}

@keyframes radarPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes radarSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.scan-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 30px;
  background: rgba(16, 27, 59, 0.85);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(197, 160, 89, 0.2);
  transition: all 0.3s ease;
}

/* ── Dynamic Expert Cards Refinements ── */
.expert-card {
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.expert-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}
.expert-card.selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(28, 37, 65, 0.95) 0%, rgba(197, 160, 89, 0.08) 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(197, 160, 89, 0.18);
}
.expert-check-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: transparent;
  transition: all 0.2s;
}
.expert-card.selected .expert-check-badge {
  background: var(--gold);
  border-color: var(--gold);
  color: #070D1E;
}
.expert-match-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  color: var(--gold-light);
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid rgba(197, 160, 89, 0.35);
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 6px;
  line-height: 1.3;
}

/* ── Deliberation HUD (Labor Illusion / Staged Council Loader) ── */
.deliberation-council-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.deliberation-radar-ring {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1.5px solid rgba(197, 160, 89, 0.4);
  animation: deliberationPulse 3s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  pointer-events: none;
}
.deliberation-radar-ring.deliberation-ring-2 {
  animation-delay: 1.5s;
}

@keyframes deliberationPulse {
  0% { transform: scale(0.7); opacity: 0.9; border-color: rgba(197, 160, 89, 0.8); }
  50% { border-color: rgba(6, 182, 212, 0.5); }
  100% { transform: scale(1.9); opacity: 0; border-color: rgba(197, 160, 89, 0); }
}

.deliberation-avatars-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: -14px;
  position: relative;
  z-index: 3;
  padding: 10px;
}

.deliberation-avatar-bubble {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2.5px solid var(--gold);
  overflow: hidden;
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.45), 0 8px 16px rgba(0, 0, 0, 0.6);
  background: var(--bg-dark);
  margin: 0 -8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: avatarHeartbeat 2.4s ease-in-out infinite;
}

.deliberation-avatar-bubble:nth-child(2) { animation-delay: 0.4s; }
.deliberation-avatar-bubble:nth-child(3) { animation-delay: 0.8s; }
.deliberation-avatar-bubble:nth-child(4) { animation-delay: 1.2s; }
.deliberation-avatar-bubble:nth-child(5) { animation-delay: 1.6s; }
.deliberation-avatar-bubble:nth-child(6) { animation-delay: 2.0s; }

@keyframes avatarHeartbeat {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.25); box-shadow: 0 0 28px rgba(197, 160, 89, 0.7); }
}

.deliberation-avatar-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  display: inline-block;
  animation: liveDotBlink 1.4s infinite;
}
@keyframes liveDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

/* Staged Progress Bar */
.deliberation-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(197, 160, 89, 0.25);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.deliberation-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, #F59E0B 50%, #38BDF8 100%);
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(197, 160, 89, 0.7);
  transition: width 0.35s ease;
}

/* Staged Step Pills */
.delib-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.3s ease;
}
.delib-pill i {
  font-size: 9px;
  opacity: 0.6;
}
.delib-pill.active {
  background: rgba(197, 160, 89, 0.15);
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.25);
}
.delib-pill.active i {
  color: var(--gold);
  opacity: 1;
}
.delib-pill.completed {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--emerald);
  color: #6EE7B7;
}
.delib-pill.completed i {
  color: var(--emerald);
  opacity: 1;
}



