/* ==============================================================================
   trader-persona.css — Trader Persona Switcher & New Trader Zero-State System
   ============================================================================== */

/* Top Navigation Persona Switcher Pill */
.mxf-persona-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 3px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.mxf-pill-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  outline: none;
  color: #8c9cb4;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  white-space: nowrap;
}

.mxf-pill-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.mxf-pill-toggle.active {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.45);
}

.mxf-toggle-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #60a5fa;
  flex-shrink: 0;
}

.mxf-toggle-dot.cyan {
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

/* Floating Persona Switcher Pill */
.mxf-floating-persona {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 20, 44, 0.94);
  border: 1.5px solid rgba(96, 165, 250, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.65), 0 0 24px rgba(37, 99, 235, 0.3);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  user-select: none;
  animation: appleFluidEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mxf-floating-label {
  font-size: 11px;
  font-weight: 700;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mxf-floating-buttons {
  display: inline-flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px;
  border-radius: 999px;
}

.mxf-float-btn {
  background: transparent;
  border: none;
  outline: none;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.mxf-float-btn:hover {
  color: #ffffff;
}

.mxf-float-btn.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.5);
}

/* New Trader Onboarding Banner Card */
.mxf-new-trader-banner {
  background: linear-gradient(135deg, rgba(16, 32, 70, 0.85) 0%, rgba(8, 18, 42, 0.95) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 28px rgba(37, 99, 235, 0.2);
  position: relative;
  overflow: hidden;
}

.mxf-new-trader-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background: radial-gradient(circle at 100% 50%, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.mxf-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  align-self: flex-start;
  letter-spacing: 0.02em;
}

.mxf-banner-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.mxf-banner-subtitle {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
  max-width: 900px;
}

/* 3-Step Evaluation Pathway Cards */
.mxf-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  margin-top: 6px;
}

.mxf-roadmap-step {
  background: rgba(12, 22, 46, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.mxf-roadmap-step.current {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(180deg, rgba(20, 40, 85, 0.8) 0%, rgba(10, 22, 50, 0.8) 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 16px rgba(56, 189, 248, 0.2);
}

.mxf-step-num {
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mxf-step-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.mxf-step-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

/* MT5 Quick Connect Credentials Card */
.mxf-creds-card {
  background: rgba(12, 22, 46, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.mxf-creds-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 240px;
  flex-shrink: 0;
}

.mxf-creds-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.mxf-creds-title svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  stroke: #38bdf8;
  flex-shrink: 0;
}

.mxf-creds-tag {
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
}

.mxf-creds-grid {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.mxf-cred-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mxf-cred-label {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mxf-cred-val {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'JetBrains Mono', 'Plus Jakarta Sans', monospace;
}

.mxf-copy-mini-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #93c5fd;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mxf-copy-mini-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Empty State Inspiring Helper */
.mxf-zero-state-box {
  background: rgba(10, 20, 42, 0.65);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  margin: 16px 0;
}

.mxf-zero-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  margin-bottom: 4px;
}

.mxf-zero-icon svg {
  width: 24px;
  height: 24px;
}

.mxf-zero-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.mxf-zero-sub {
  font-size: 13px;
  color: #94a3b8;
  max-width: 480px;
  line-height: 1.5;
  margin: 0;
}

/* Ehsan Moin Zero-State Card for Accounts Table */
.eh-zero-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 24px 48px;
  background: rgba(13, 23, 46, 0.45);
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  margin: 12px 0;
  width: 100%;
}

.eh-zero-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.22) 0%, rgba(37, 99, 235, 0.08) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  margin-bottom: 20px;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.2);
}

.eh-zero-icon-wrap svg {
  width: 30px;
  height: 30px;
}

.eh-zero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.eh-zero-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: #94a3b8;
  max-width: 540px;
  line-height: 1.55;
  margin: 0 0 24px;
}

.eh-zero-actions {
  display: inline-flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.eh-zero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.eh-zero-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.6);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.eh-zero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.eh-zero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.eh-zero-perks {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 760px;
  width: 100%;
}

.eh-perk-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #8a95ad;
  font-weight: 500;
}

.eh-perk-check {
  color: #38bdf8;
  font-weight: 700;
}

/* phones: the top-bar switcher is enough; the floating one covers content */
@media (max-width: 720px) {
  .mxf-floating-persona { display: none !important; }
}
