/* ==========================================================================
   BCM (BECAUSE CREDIT MATTERS) — ULTRA-PREMIUM FINTECH DESIGN SYSTEM
   Palette:
   - Evergreen: #0E3B2E
   - Sage Green: #5FB88A
   - Sandstone Cream: #FAF7F1
   - Deep Charcoal: #2C2A28
   ========================================================================== */

:root {
  --bcm-evergreen: #0E3B2E;
  --bcm-evergreen-dark: #07231B;
  --bcm-evergreen-light: #165643;
  --bcm-sage: #5FB88A;
  --bcm-sage-subtle: rgba(95, 184, 138, 0.14);
  --bcm-sage-glow: rgba(95, 184, 138, 0.35);
  --bcm-sandstone: #FAF7F1;
  --bcm-sandstone-card: #FFFFFF;
  --bcm-sandstone-border: rgba(14, 59, 46, 0.08);
  --bcm-sandstone-elevated: #F5EFE6;
  --bcm-charcoal: #2C2A28;
  --bcm-charcoal-muted: #736F6A;
  --bcm-charcoal-subtle: #A39E97;
  
  --font-main: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  
  --shadow-subtle: 0 4px 20px -2px rgba(14, 59, 46, 0.05);
  --shadow-elevated: 0 16px 36px -6px rgba(14, 59, 46, 0.10);
  --shadow-glow: 0 0 30px rgba(95, 184, 138, 0.35);
  --shadow-card-hover: 0 20px 40px -10px rgba(14, 59, 46, 0.15);
  
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.hidden {
  display: none !important;
}

body {
  background-color: var(--bcm-sandstone);
  color: var(--bcm-charcoal);
  font-family: var(--font-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Canvas Background for subtle particle/light waves */
.ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Floating Atmospheric Background Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(95, 184, 138, 0.22) 0%, transparent 70%);
  top: -120px;
  right: -80px;
  animation: floatOrb 18s infinite alternate ease-in-out;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 59, 46, 0.12) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: floatOrb 22s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* ==========================================================================
   AMBIENT ATMOSPHERIC GLOW SPOTS
   ========================================================================== */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(100px);
  opacity: 0.55;
}

.glow-top-left {
  width: 550px;
  height: 550px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, rgba(95, 184, 138, 0.18) 0%, transparent 70%);
  animation: driftGlowTL 24s infinite alternate ease-in-out;
}

.glow-center-right {
  width: 600px;
  height: 600px;
  top: 30%;
  right: -150px;
  background: radial-gradient(circle, rgba(14, 59, 46, 0.09) 0%, transparent 70%);
  animation: driftGlowCR 28s infinite alternate-reverse ease-in-out;
}

.glow-bottom-left {
  width: 480px;
  height: 480px;
  bottom: -80px;
  left: 10%;
  background: radial-gradient(circle, rgba(95, 184, 138, 0.14) 0%, transparent 70%);
  animation: driftGlowBL 20s infinite alternate ease-in-out;
}

@keyframes driftGlowTL {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, -30px, 0) scale(1.08); }
  100% { transform: translate3d(-20px, 35px, 0) scale(0.94); }
}

@keyframes driftGlowCR {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-35px, 40px, 0) scale(1.06); }
  100% { transform: translate3d(25px, -30px, 0) scale(0.96); }
}

@keyframes driftGlowBL {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, 25px, 0) scale(1.1); }
  100% { transform: translate3d(-30px, -20px, 0) scale(0.92); }
}

/* ==========================================================================
   FLOATING ORBITAL FINTECH OBJECTS STAGE
   Non-blocking, 60fps GPU-accelerated elliptical trajectories around the portal
   ========================================================================== */
.orbital-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.orbital-item {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.42, 0.05, 0.58, 0.95);
  animation-duration: var(--orbit-duration, 28s);
  animation-delay: var(--orbit-delay, 0s);
}

/* Depth Layers: Scale, Blur, Shadow, Opacity */
.orbital-item.foreground {
  z-index: 3;
}
.orbital-item.foreground .physical-object {
  box-shadow: 0 16px 36px -4px rgba(14, 59, 46, 0.12), 0 4px 10px rgba(14, 59, 46, 0.05);
}

.orbital-item.midground {
  z-index: 2;
  opacity: 0.88;
}
.orbital-item.midground .physical-object {
  box-shadow: 0 10px 22px -4px rgba(14, 59, 46, 0.08);
}

.orbital-item.background {
  z-index: 1;
  opacity: 0.68;
  filter: blur(0.5px);
}
.orbital-item.background .physical-object {
  box-shadow: 0 6px 16px -2px rgba(14, 59, 46, 0.05);
}

/* Physical Objects Base Design */
.physical-object {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(14, 59, 46, 0.09);
  border-radius: 12px;
  color: var(--bcm-charcoal);
  font-family: var(--font-main);
  transition: transform 0.4s ease;
}

/* 1. Credit Report Document Card */
.doc-card {
  width: 142px;
  padding: 12px 14px;
}
.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.doc-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--bcm-evergreen);
  background: rgba(14, 59, 46, 0.07);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.doc-id {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--bcm-charcoal-muted);
}
.doc-line {
  height: 4px;
  background: rgba(14, 59, 46, 0.08);
  border-radius: 2px;
  margin-bottom: 6px;
}
.doc-line.short { width: 55%; }
.doc-line.long { width: 92%; }
.doc-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--bcm-sage);
  margin-top: 8px;
}
.doc-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bcm-sage);
}

/* 2. Receipt Slip */
.receipt-slip {
  width: 132px;
  padding: 12px 14px;
  position: relative;
  border-radius: 8px;
}
.receipt-notch {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 5px;
  background: var(--bcm-sandstone);
  border-radius: 0 0 8px 8px;
  border-bottom: 1px solid rgba(14, 59, 46, 0.08);
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.receipt-row strong {
  color: var(--bcm-sage);
  font-size: 12px;
}
.receipt-row.muted {
  font-size: 9px;
  color: var(--bcm-charcoal-muted);
  margin-top: 4px;
}
.receipt-zigzag {
  margin-top: 8px;
  border-bottom: 1px dashed rgba(14, 59, 46, 0.18);
}

/* 3. Tiny Bank / Ledger Card */
.ledger-card {
  width: 128px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #165643, #0E3B2E);
  color: #FAF7F1;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.mini-chip {
  width: 16px;
  height: 12px;
  background: linear-gradient(135deg, #D4AF37, #F5D77F);
  border-radius: 2px;
  margin-bottom: 8px;
}
.ledger-brand {
  font-size: 9px;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--bcm-sage);
  text-transform: uppercase;
}
.ledger-balance {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  margin-top: 4px;
  color: #FAF7F1;
}

/* 4. Telemetry Radar Node */
.telemetry-node-disc {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(255, 255, 255, 0.92);
}
.radar-ring {
  position: absolute;
  inset: 6px;
  border: 1.5px dashed rgba(95, 184, 138, 0.45);
  border-radius: 50%;
  animation: spinRadar 12s linear infinite;
}
@keyframes spinRadar {
  to { transform: rotate(360deg); }
}
.radar-center-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bcm-sage);
  margin-bottom: 2px;
}
.node-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--bcm-evergreen);
}

/* 5. Mini Score Pill */
.score-pill-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
}
.mini-score-num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--bcm-evergreen);
}
.mini-tier-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--bcm-sage);
  background: var(--bcm-sage-subtle);
  padding: 2px 7px;
  border-radius: 10px;
}

/* 6. Abstract Line-Chart Card */
.mini-chart-card {
  width: 120px;
  padding: 10px 12px;
  border-radius: 10px;
}
.mini-chart-head {
  font-size: 9px;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--bcm-charcoal-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.mini-wave-svg {
  width: 100%;
  height: 24px;
  display: block;
}

/* 7. Calculator / Delta APR Metric */
.calc-card {
  padding: 8px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.calc-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--bcm-charcoal-muted);
  font-weight: 700;
}
.calc-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--bcm-sage);
}

/* 8. Geometric Sage Pill */
.geom-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bcm-sage-subtle);
  border: 1px solid rgba(95, 184, 138, 0.35);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--bcm-evergreen);
}
.geom-check {
  color: var(--bcm-sage);
  font-weight: 900;
}

/* 9. Micro Data Chip */
.chip-card {
  padding: 6px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 59, 46, 0.05);
  border: 1px solid rgba(14, 59, 46, 0.12);
}
.chip-grid {
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, var(--bcm-sage) 30%, transparent 31%);
  background-size: 4px 4px;
}
.chip-text {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--bcm-evergreen);
}

/* 10. Paper Compliance Note */
.paper-slip {
  padding: 8px 12px;
  border-radius: 4px;
  border-left: 3px solid var(--bcm-evergreen);
  width: 106px;
}
.paper-title {
  font-size: 9px;
  font-weight: 800;
  color: var(--bcm-evergreen);
  letter-spacing: 0.05em;
}
.paper-line {
  height: 3px;
  background: rgba(14, 59, 46, 0.08);
  border-radius: 1px;
  margin-top: 4px;
}

/* ==========================================================================
   ORBITAL MOTION KEYFRAMES (10 DISTINCT ELLIPTICAL PATHS)
   ========================================================================== */
.orbit-doc {
  animation-name: animOrbitDoc;
}
@keyframes animOrbitDoc {
  0% {
    transform: translate3d(3vw, 14vh, 0) rotate(-4deg) scale(0.96);
    opacity: 0.85;
  }
  25% {
    transform: translate3d(7vw, 30vh, 0) rotate(2deg) scale(1.02);
    opacity: 0.95;
  }
  50% {
    transform: translate3d(5vw, 52vh, 0) rotate(-2deg) scale(1);
    opacity: 0.9;
  }
  75% {
    transform: translate3d(1vw, 36vh, 0) rotate(-6deg) scale(0.94);
    opacity: 0.75;
  }
  100% {
    transform: translate3d(3vw, 14vh, 0) rotate(-4deg) scale(0.96);
    opacity: 0.85;
  }
}

.orbit-receipt {
  animation-name: animOrbitReceipt;
}
@keyframes animOrbitReceipt {
  0% {
    transform: translate3d(68vw, 6vh, 0) rotate(5deg) scale(0.95);
    opacity: 0.85;
  }
  30% {
    transform: translate3d(80vw, 14vh, 0) rotate(-2deg) scale(1.03);
    opacity: 0.95;
  }
  60% {
    transform: translate3d(74vw, 26vh, 0) rotate(3deg) scale(0.98);
    opacity: 0.88;
  }
  85% {
    transform: translate3d(62vw, 16vh, 0) rotate(-4deg) scale(0.92);
    opacity: 0.78;
  }
  100% {
    transform: translate3d(68vw, 6vh, 0) rotate(5deg) scale(0.95);
    opacity: 0.85;
  }
}

.orbit-ledger {
  animation-name: animOrbitLedger;
}
@keyframes animOrbitLedger {
  0% {
    transform: translate3d(84vw, 18vh, 0) rotate(-3deg) scale(0.98);
    opacity: 0.9;
  }
  30% {
    transform: translate3d(90vw, 36vh, 0) rotate(4deg) scale(1.04);
    opacity: 0.95;
  }
  65% {
    transform: translate3d(85vw, 54vh, 0) rotate(-2deg) scale(0.96);
    opacity: 0.88;
  }
  85% {
    transform: translate3d(80vw, 34vh, 0) rotate(-6deg) scale(0.94);
    opacity: 0.8;
  }
  100% {
    transform: translate3d(84vw, 18vh, 0) rotate(-3deg) scale(0.98);
    opacity: 0.9;
  }
}

.orbit-node {
  animation-name: animOrbitNode;
}
@keyframes animOrbitNode {
  0% {
    transform: translate3d(88vw, 56vh, 0) scale(0.95);
    opacity: 0.85;
  }
  35% {
    transform: translate3d(92vw, 70vh, 0) scale(1.05);
    opacity: 0.95;
  }
  70% {
    transform: translate3d(86vw, 82vh, 0) scale(0.94);
    opacity: 0.85;
  }
  90% {
    transform: translate3d(83vw, 66vh, 0) scale(0.92);
    opacity: 0.75;
  }
  100% {
    transform: translate3d(88vw, 56vh, 0) scale(0.95);
    opacity: 0.85;
  }
}

.orbit-score {
  animation-name: animOrbitScore;
}
@keyframes animOrbitScore {
  0% {
    transform: translate3d(76vw, 74vh, 0) rotate(-4deg) scale(0.96);
    opacity: 0.9;
  }
  30% {
    transform: translate3d(84vw, 84vh, 0) rotate(3deg) scale(1.03);
    opacity: 0.95;
  }
  60% {
    transform: translate3d(72vw, 91vh, 0) rotate(-2deg) scale(0.98);
    opacity: 0.88;
  }
  85% {
    transform: translate3d(65vw, 80vh, 0) rotate(-5deg) scale(0.94);
    opacity: 0.8;
  }
  100% {
    transform: translate3d(76vw, 74vh, 0) rotate(-4deg) scale(0.96);
    opacity: 0.9;
  }
}

.orbit-chart {
  animation-name: animOrbitChart;
}
@keyframes animOrbitChart {
  0% {
    transform: translate3d(52vw, 85vh, 0) rotate(2deg) scale(0.95);
    opacity: 0.85;
  }
  35% {
    transform: translate3d(40vw, 89vh, 0) rotate(-3deg) scale(1.02);
    opacity: 0.92;
  }
  70% {
    transform: translate3d(32vw, 83vh, 0) rotate(1deg) scale(0.94);
    opacity: 0.82;
  }
  90% {
    transform: translate3d(44vw, 78vh, 0) rotate(-2deg) scale(0.92);
    opacity: 0.75;
  }
  100% {
    transform: translate3d(52vw, 85vh, 0) rotate(2deg) scale(0.95);
    opacity: 0.85;
  }
}

.orbit-calc {
  animation-name: animOrbitCalc;
}
@keyframes animOrbitCalc {
  0% {
    transform: translate3d(24vw, 83vh, 0) rotate(-3deg) scale(0.95);
    opacity: 0.75;
  }
  30% {
    transform: translate3d(16vw, 88vh, 0) rotate(2deg) scale(1.02);
    opacity: 0.88;
  }
  65% {
    transform: translate3d(10vw, 80vh, 0) rotate(-2deg) scale(0.96);
    opacity: 0.8;
  }
  85% {
    transform: translate3d(18vw, 75vh, 0) rotate(3deg) scale(0.9);
    opacity: 0.7;
  }
  100% {
    transform: translate3d(24vw, 83vh, 0) rotate(-3deg) scale(0.95);
    opacity: 0.75;
  }
}

.orbit-geom {
  animation-name: animOrbitGeom;
}
@keyframes animOrbitGeom {
  0% {
    transform: translate3d(5vw, 72vh, 0) rotate(3deg) scale(0.96);
    opacity: 0.9;
  }
  35% {
    transform: translate3d(2vw, 58vh, 0) rotate(-3deg) scale(1.03);
    opacity: 0.95;
  }
  65% {
    transform: translate3d(6vw, 46vh, 0) rotate(2deg) scale(0.98);
    opacity: 0.88;
  }
  85% {
    transform: translate3d(10vw, 62vh, 0) rotate(-2deg) scale(0.94);
    opacity: 0.82;
  }
  100% {
    transform: translate3d(5vw, 72vh, 0) rotate(3deg) scale(0.96);
    opacity: 0.9;
  }
}

.orbit-chip {
  animation-name: animOrbitChip;
}
@keyframes animOrbitChip {
  0% {
    transform: translate3d(2vw, 38vh, 0) rotate(-5deg) scale(0.95);
    opacity: 0.82;
  }
  30% {
    transform: translate3d(5vw, 24vh, 0) rotate(3deg) scale(1.02);
    opacity: 0.9;
  }
  65% {
    transform: translate3d(1vw, 20vh, 0) rotate(-3deg) scale(0.96);
    opacity: 0.8;
  }
  85% {
    transform: translate3d(3vw, 32vh, 0) rotate(2deg) scale(0.92);
    opacity: 0.75;
  }
  100% {
    transform: translate3d(2vw, 38vh, 0) rotate(-5deg) scale(0.95);
    opacity: 0.82;
  }
}

.orbit-paper {
  animation-name: animOrbitPaper;
}
@keyframes animOrbitPaper {
  0% {
    transform: translate3d(14vw, 5vh, 0) rotate(4deg) scale(0.94);
    opacity: 0.75;
  }
  35% {
    transform: translate3d(23vw, 8vh, 0) rotate(-3deg) scale(1.01);
    opacity: 0.85;
  }
  70% {
    transform: translate3d(17vw, 15vh, 0) rotate(2deg) scale(0.95);
    opacity: 0.78;
  }
  90% {
    transform: translate3d(8vw, 9vh, 0) rotate(-4deg) scale(0.9);
    opacity: 0.7;
  }
  100% {
    transform: translate3d(14vw, 5vh, 0) rotate(4deg) scale(0.94);
    opacity: 0.75;
  }
}

/* ==========================================================================
   LOGIN SCREEN OVERLAY & CARD
   ========================================================================== */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  overflow-y: auto;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-overlay.hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}

.fintech-login-container {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  width: 100%;
  max-width: 1040px;
  max-height: calc(100vh - 32px);
  background: #FFFFFF;
  border-radius: 22px;
  border: 1px solid rgba(14, 59, 46, 0.12);
  box-shadow: 0 25px 60px -15px rgba(14, 59, 46, 0.18), 0 0 0 1px rgba(226, 232, 240, 0.9);
  overflow: hidden;
  position: relative;
  z-index: 2;
  margin: auto;
  animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  0% { opacity: 0; transform: translateY(20px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   LEFT SECTION: Form Area
   ========================================================================== */
.fintech-login-left {
  padding: 26px 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #FFFFFF;
  position: relative;
  overflow-y: auto;
  max-height: calc(100vh - 32px);
  scrollbar-width: thin;
  scrollbar-color: rgba(14, 59, 46, 0.2) transparent;
}

.fintech-login-left::-webkit-scrollbar {
  width: 5px;
}
.fintech-login-left::-webkit-scrollbar-thumb {
  background: rgba(14, 59, 46, 0.2);
  border-radius: 4px;
}
.fintech-login-left::-webkit-scrollbar-thumb:hover {
  background: rgba(14, 59, 46, 0.35);
}

.fintech-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.fintech-brand-badge {
  display: flex;
  align-items: center;
}

.fintech-brand-badge .brand-badge {
  background: var(--bcm-evergreen);
  color: #FAF7F1;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  padding: 5px 11px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(14, 59, 46, 0.2);
}

.fintech-brand-meta {
  display: flex;
  flex-direction: column;
}

.fintech-brand-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.fintech-brand-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: #64748B;
}

.login-view-block {
  animation: fadeIn 0.3s ease;
}

.login-view-block.hidden {
  display: none !important;
}

.form-heading-group {
  margin-bottom: 12px;
}

.form-main-heading {
  font-size: 23px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.025em;
  margin: 0 0 3px 0;
}

.form-sub-heading {
  font-size: 12.5px;
  color: #64748B;
  margin: 0;
  line-height: 1.4;
}

/* Alert Banner */
.login-alert-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  animation: fadeIn 0.3s ease;
}

.login-alert-banner.success {
  background: #ECFDF5;
  border-color: #6EE7B7;
  color: #065F46;
}

.login-alert-banner.hidden {
  display: none !important;
}

/* Form Inputs & Fields */
.fintech-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
  letter-spacing: -0.01em;
}

.form-input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.input-inline-icon {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  color: #94A3B8;
  pointer-events: none;
}

.fintech-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-size: 13.5px;
  font-family: var(--font-main);
  color: #0F172A;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.fintech-input::placeholder {
  color: #94A3B8;
}

.fintech-input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--bcm-sage);
  box-shadow: 0 0 0 3px rgba(95, 184, 138, 0.2);
}

.fintech-input.input-error {
  border-color: #EF4444;
  background: #FEF2F2;
}

.fintech-input.input-error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.fintech-input.input-with-toggle {
  padding-right: 44px;
}

.pwd-visibility-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  color: #64748B;
  transition: color 0.15s ease;
}

.pwd-visibility-toggle:hover {
  color: #0F172A;
}

.eye-hide.hidden, .eye-show.hidden {
  display: none !important;
}

.form-error-hint {
  font-size: 11.5px;
  color: #DC2626;
  font-weight: 500;
}

.form-error-hint.hidden {
  display: none !important;
}

/* Options Row: Remember Me & Forgot Password */
.form-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 12.5px;
  color: #475569;
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--bcm-evergreen);
  cursor: pointer;
  border-radius: 4px;
}

.link-forgot-pwd {
  background: none;
  border: none;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--bcm-evergreen);
  cursor: pointer;
  transition: color 0.15s ease;
}

.link-forgot-pwd:hover {
  color: var(--bcm-sage);
  text-decoration: underline;
}

/* Primary Action Button (Brand Evergreen & Sage Gradient) */
.btn-purple-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  margin-top: 4px;
  background: linear-gradient(135deg, #0E3B2E 0%, #165643 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 59, 46, 0.28);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-purple-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 59, 46, 0.38);
  background: linear-gradient(135deg, #09261E 0%, #0E3B2E 100%);
}

.btn-purple-primary:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(14, 59, 46, 0.25);
}

.btn-purple-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-arrow-icon {
  transition: transform 0.2s ease;
}

.btn-purple-primary:hover:not(:disabled) .btn-arrow-icon {
  transform: translateX(3px);
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

.btn-spinner.hidden {
  display: none !important;
}

/* Demo Quick Box for Evaluators */
.demo-quick-box {
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(250, 247, 241, 0.7);
  border: 1px dashed rgba(14, 59, 46, 0.22);
  border-radius: 10px;
}

.demo-box-label {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bcm-evergreen);
  margin-bottom: 5px;
}

.demo-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.demo-credential-pill {
  flex: 1 1 calc(33.333% - 6px);
  min-width: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 5px 8px;
  background: #FFFFFF;
  border: 1.5px solid rgba(14, 59, 46, 0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.demo-credential-pill:hover,
.demo-credential-pill.active {
  border-color: var(--bcm-sage);
  background: rgba(95, 184, 138, 0.12);
  box-shadow: 0 2px 8px rgba(14, 59, 46, 0.08);
  transform: translateY(-1px);
}

.demo-pill-role {
  font-size: 8.5px;
  font-weight: 800;
  color: var(--bcm-evergreen);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.demo-pill-name {
  font-size: 11px;
  font-weight: 600;
  color: #0F172A;
  white-space: nowrap;
}

/* Footer note & register switch */
.form-footer-note {
  margin-top: 10px;
  text-align: center;
  font-size: 12.5px;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.link-switch-auth {
  background: none;
  border: none;
  padding: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bcm-evergreen);
  cursor: pointer;
}

.link-switch-auth:hover {
  color: var(--bcm-sage);
  text-decoration: underline;
}

.left-security-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: #94A3B8;
  margin-top: 14px;
}

.sec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}

/* ==========================================================================
   RIGHT SECTION: Visual Panel Area
   ========================================================================== */
.fintech-login-right {
  background: linear-gradient(145deg, #F8FAFC 0%, #FAF7F1 100%);
  border-left: 1px solid #E2E8F0;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  max-height: calc(100vh - 32px);
}

.fintech-login-right::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 184, 138, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.fintech-login-right::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 184, 138, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.visual-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #0E3B2E;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.visual-main-heading {
  font-size: 24px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.visual-sub-heading {
  font-size: 13px;
  color: #64748B;
  margin: 0;
  line-height: 1.5;
}

/* Fintech Stage with Floating Elements */
.fintech-card-stage {
  position: relative;
  margin: 28px 0;
  padding: 12px 0;
}

/* Titanium Metallic Card Mockup */
.titanium-card {
  width: 100%;
  max-width: 370px;
  margin: 0 auto;
  aspect-ratio: 1.586 / 1;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 45%, #0E3B2E 100%);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 22px 40px -10px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-2deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.titanium-card:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 28px 50px -10px rgba(15, 23, 42, 0.45);
}

.card-mesh-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.4;
  pointer-events: none;
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.card-chip-graphic {
  width: 36px;
  height: 28px;
  background: linear-gradient(135deg, #FDE68A 0%, #D97706 100%);
  border-radius: 6px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.chip-line.horizontal {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.25);
}

.chip-line.vertical {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
}

.card-contactless {
  margin-left: 12px;
  margin-right: auto;
}

.card-brand-logo {
  font-family: var(--font-main);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 15px;
  background: linear-gradient(135deg, #FFFFFF, #94A3B8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-number-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.card-dots {
  letter-spacing: 0.2em;
  font-size: 14px;
}

.card-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.card-meta-label {
  display: block;
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.card-meta-val {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #FFFFFF;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.12);
  z-index: 2;
  animation: floatAnim 4s ease-in-out infinite alternate;
}

@keyframes floatAnim {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}

.badge-score {
  top: -12px;
  right: 6px;
}

.badge-growth {
  bottom: -16px;
  left: 6px;
  animation-delay: -2s;
}

.badge-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-icon-bg {
  background: rgba(95, 184, 138, 0.18);
}

.growth-icon-bg {
  background: rgba(95, 184, 138, 0.2);
}

.badge-content {
  display: flex;
  flex-direction: column;
}

.badge-metric-primary {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-value-score {
  font-size: 16px;
  font-weight: 800;
  color: #0E3B2E;
}

.badge-tier-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(95, 184, 138, 0.2);
  color: #0E3B2E;
}

.badge-growth-highlight {
  display: flex;
  align-items: center;
  gap: 6px;
}

.growth-number {
  font-size: 15px;
  font-weight: 800;
  color: #10B981;
}

.growth-period {
  font-size: 11px;
  font-weight: 600;
  color: #0F172A;
}

.badge-sub-label {
  font-size: 10px;
  color: #64748B;
  font-weight: 500;
}

/* Feature Grid at Bottom of Visual Panel */
.visual-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.visual-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.feat-check-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(95, 184, 138, 0.2);
  color: #0E3B2E;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.feat-info {
  display: flex;
  flex-direction: column;
}

.feat-title {
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
}

.feat-desc {
  font-size: 11px;
  color: #64748B;
  line-height: 1.35;
}

/* Mobile and Tablet Responsive Breakpoints */
@media (max-width: 980px) {
  .fintech-login-container {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: auto;
  }
  .fintech-login-right {
    display: none;
  }
  .fintech-login-left {
    padding: 24px 22px;
    max-height: calc(100vh - 24px);
  }
}

/* ==========================================================================
   TOP NAVIGATION BAR
   ========================================================================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bcm-sandstone-border);
  padding: 16px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--bcm-evergreen);
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 12px;
  color: var(--bcm-charcoal-muted);
  font-weight: 500;
  margin-left: 2px;
}

.telemetry-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 59, 46, 0.04);
  border: 1px solid var(--bcm-sandstone-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  color: var(--bcm-charcoal);
}

.telemetry-radar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bcm-sage);
  animation: radarPing 2s infinite ease-out;
}

@keyframes radarPing {
  0% { box-shadow: 0 0 0 0 rgba(95, 184, 138, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(95, 184, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 184, 138, 0); }
}

.perspective-toggle-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-session-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bcm-sandstone-card);
  border: 1px solid var(--bcm-sandstone-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--bcm-charcoal);
  box-shadow: var(--shadow-subtle);
  animation: fadeIn 0.4s ease;
}

.user-session-pill.hidden {
  display: none;
}

.btn-logout {
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.2);
  color: #C0392B;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-logout:hover {
  background: #C0392B;
  color: #FFFFFF;
}

.toggle-capsule {
  background: var(--bcm-sandstone-elevated);
  border: 1px solid var(--bcm-sandstone-border);
  padding: 4px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 4px;
}

.toggle-btn {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--bcm-charcoal-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.toggle-btn.active {
  background: var(--bcm-evergreen);
  color: #FFFFFF;
  box-shadow: 0 3px 12px rgba(14, 59, 46, 0.22);
}

.lang-toggle-capsule {
  background: var(--bcm-sandstone-elevated);
  border: 1px solid var(--bcm-sandstone-border);
  padding: 3px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--bcm-charcoal-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-btn.active {
  background: var(--bcm-evergreen);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(14, 59, 46, 0.2);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bcm-sage-subtle);
  color: var(--bcm-evergreen);
  border: 1px solid rgba(95, 184, 138, 0.35);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bcm-sage);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

/* ==========================================================================
   MAIN DASHBOARD APPLICATION
   Expanded 1440px enterprise spatial system, generous margins and line-heights
   ========================================================================== */
.app-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 36px 48px 96px;
  position: relative;
  z-index: 2;
  transition: filter 0.5s ease, opacity 0.5s ease;
}

.app-container.portal-locked {
  filter: blur(10px);
  pointer-events: none;
  user-select: none;
  opacity: 0.5;
}

/* ==========================================================================
   EDITORIAL HERO SECTION
   Editorial fintech composition, generous whitespace, confident typography
   ========================================================================== */
.editorial-hero {
  margin: 12px 0 28px;
  padding: 4px 4px 10px;
  text-align: left;
}

.hero-meta-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.meta-tag-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(14, 59, 46, 0.06);
  color: var(--bcm-evergreen);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--bcm-sandstone-border);
}

.meta-divider {
  color: var(--bcm-charcoal-subtle);
  font-size: 11px;
}

.meta-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--bcm-charcoal-muted);
}

.editorial-title {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--bcm-evergreen);
  margin-bottom: 12px;
  max-width: 840px;
}

.title-highlight {
  color: var(--bcm-sage);
  font-style: italic;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.editorial-subtitle {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--bcm-charcoal-muted);
  max-width: 700px;
  font-weight: 450;
}

/* Preset Persona Selector Strip */
.preset-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  background: var(--bcm-sandstone-card);
  border: 1px solid var(--bcm-sandstone-border);
  border-radius: var(--radius-lg);
  padding: 14px 22px;
  box-shadow: var(--shadow-subtle);
  gap: 16px;
}

.preset-header-info {
  display: flex;
  flex-direction: column;
}

.preset-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--bcm-charcoal-muted);
}

.preset-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: var(--bcm-evergreen);
}

.preset-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.persona-btn {
  border: 1px solid var(--bcm-sandstone-border);
  background: var(--bcm-sandstone-elevated);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-spring);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.persona-emoji {
  font-size: 20px;
}

.persona-meta {
  display: flex;
  flex-direction: column;
  min-width: 140px;
}

.persona-top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.persona-role-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--bcm-charcoal);
  line-height: 1.2;
}

.persona-score-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(14, 59, 46, 0.08);
  color: var(--bcm-charcoal);
  border: 1px solid rgba(14, 59, 46, 0.12);
}

.persona-score-badge.prime {
  background: var(--bcm-sage-subtle);
  color: var(--bcm-evergreen);
  border-color: rgba(95, 184, 138, 0.4);
}

.persona-score-badge.warn {
  background: rgba(224, 159, 62, 0.15);
  color: #B36B00;
  border-color: rgba(224, 159, 62, 0.35);
}

.persona-subtag {
  font-size: 10px;
  color: var(--bcm-charcoal-muted);
  font-weight: 600;
  margin-top: 2px;
}

.persona-btn:hover {
  background: #FFFFFF;
  border-color: var(--bcm-sage);
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle);
}

.persona-btn.selected {
  background: var(--bcm-evergreen);
  border-color: var(--bcm-evergreen);
  box-shadow: 0 6px 18px rgba(14, 59, 46, 0.22);
  transform: translateY(-1px);
}

.persona-btn.selected .persona-role-title {
  color: #FFFFFF;
}

.persona-btn.selected .persona-score-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.persona-btn.selected .persona-subtag {
  color: var(--bcm-sage);
}

/* Profile Headline Header */
.profile-meta-card {
  background: var(--bcm-sandstone-card);
  border: 1px solid var(--bcm-sandstone-border);
  border-radius: var(--radius-lg);
  padding: 20px 26px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-subtle);
}

.profile-left-cluster {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bcm-evergreen);
  color: #FAF7F1;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(14, 59, 46, 0.2);
}

.name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.name-row h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--bcm-evergreen);
  letter-spacing: -0.02em;
}

.kyc-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--bcm-sage-subtle);
  color: var(--bcm-evergreen);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(95, 184, 138, 0.3);
}

.profile-info p {
  font-size: 13px;
  color: var(--bcm-charcoal-muted);
  margin-top: 3px;
}

.human-review-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(224, 159, 62, 0.12);
  color: #B36B00;
  border: 1px solid rgba(224, 159, 62, 0.35);
  box-shadow: 0 2px 8px rgba(224, 159, 62, 0.1);
}

.human-review-tag.clear {
  background: var(--bcm-sage-subtle);
  color: var(--bcm-evergreen);
  border-color: rgba(95, 184, 138, 0.35);
  box-shadow: 0 2px 8px rgba(95, 184, 138, 0.1);
}

/* Dashboard Grid (De-congested Spacious Layout) */
.dashboard-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 1040px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   HERO SCORE CARD
   Roomy 36px padding, subtle hairline borders, and dual-ghost visualizer
   ========================================================================== */
.left-col {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.hero-score-card {
  background: linear-gradient(145deg, var(--bcm-evergreen), var(--bcm-evergreen-dark));
  color: #FAF7F1;
  border-radius: var(--radius-xl);
  padding: 36px 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card-header,
.hero-top-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.score-badge-header-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.score-badge-header {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bcm-sage);
  font-weight: 800;
}

.score-live-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--bcm-sage);
  opacity: 0.85;
}

/* Official Underwriting Decision Stamp */
.financial-decision-stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1.5px dashed;
  transform: rotate(-3deg);
  font-family: var(--font-mono);
  line-height: 1.15;
  transition: var(--transition-smooth);
}

.financial-decision-stamp .stamp-meta {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.financial-decision-stamp .stamp-text {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.financial-decision-stamp.stamp-approved {
  color: var(--bcm-sage);
  border-color: rgba(95, 184, 138, 0.65);
  background: rgba(95, 184, 138, 0.12);
  box-shadow: 0 0 14px rgba(95, 184, 138, 0.2);
}

.financial-decision-stamp.stamp-review {
  color: #F59E0B;
  border-color: rgba(245, 158, 11, 0.65);
  background: rgba(245, 158, 11, 0.12);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.2);
}

/* Circular Score Visualizer */
.score-circle-wrapper {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-radial-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 184, 138, 0.28) 0%, transparent 70%);
  pointer-events: none;
  transition: all 0.6s ease;
}

.score-radial-glow.tier-a-glow {
  background: radial-gradient(circle, rgba(95, 184, 138, 0.6) 0%, transparent 75%);
  animation: pulseTierAGlow 2.5s infinite ease-in-out;
}

@keyframes pulseTierAGlow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.22); opacity: 1; filter: drop-shadow(0 0 24px rgba(95, 184, 138, 0.6)); }
}

.score-svg {
  transform: rotate(-90deg);
  width: 190px;
  height: 190px;
}

.score-svg circle {
  fill: none;
  stroke-width: 13;
  stroke-linecap: round;
}

.score-bg-circle {
  stroke: rgba(250, 247, 241, 0.12);
}

/* Specification 2: Dynamic Electric-Blue Projection Ghost Arc */
.score-ghost-circle {
  stroke: #3B82F6;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  stroke-width: 13;
  stroke-linecap: round;
  fill: none;
  transition: stroke-dashoffset 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.75));
  opacity: 0.95;
}

/* Specification 2: Primary Base Score Arc */
.score-progress-circle {
  stroke: var(--bcm-sage);
  stroke-dasharray: 502;
  stroke-dashoffset: 120;
  transition: stroke-dashoffset 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 10px rgba(95, 184, 138, 0.55));
}

.score-center-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-number {
  font-size: 52px;
  font-weight: 800;
  color: #FAF7F1;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* Specification 2: Live Electric Blue Projected Value Badge */
.score-projected-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #60A5FA;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  margin-top: 4px;
  animation: fadeIn 0.3s ease;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.score-projected-badge.hidden {
  display: none;
}

.score-projected-badge .proj-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.score-projected-badge .proj-delta {
  color: #93C5FD;
  font-weight: 700;
}

.score-sublabel {
  font-size: 10px;
  color: var(--bcm-sage);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.tier-container {
  margin-bottom: 22px;
}

.score-tier-pill {
  display: inline-block;
  background: rgba(95, 184, 138, 0.18);
  border: 1px solid rgba(95, 184, 138, 0.4);
  color: var(--bcm-sage);
  font-weight: 800;
  font-size: 13px;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 16px rgba(95, 184, 138, 0.2);
}

.score-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid rgba(250, 247, 241, 0.12);
  padding-top: 18px;
  text-align: left;
}

.metric-mini-item label {
  font-size: 11px;
  color: rgba(250, 247, 241, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.metric-mini-item .val {
  font-size: 20px;
  font-weight: 800;
  color: #FAF7F1;
  margin-top: 2px;
}

.trajectory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 18px;
}

.trajectory-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(250, 247, 241, 0.7);
}

.mini-sparkline {
  width: 80px;
  height: 20px;
}

.trajectory-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--bcm-sage);
}

/* ==========================================================================
   WHAT-IF SENSITIVITY SIMULATOR
   ========================================================================== */
.what-if-card {
  background: var(--bcm-sandstone-card);
  border: 1px solid var(--bcm-sandstone-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-subtle);
  position: relative;
}

.what-if-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.what-if-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--bcm-evergreen);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.what-if-sub {
  font-size: 12px;
  color: var(--bcm-charcoal-muted);
  margin-top: 2px;
}

.sim-delta-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--bcm-sage-subtle);
  color: var(--bcm-evergreen);
  border: 1px solid rgba(95, 184, 138, 0.4);
  transition: var(--transition-spring);
}

/* Celebration banner when Tier A is achieved */
.celebration-banner {
  background: linear-gradient(90deg, #E6F7ED, #C9EEDB);
  border: 1px solid var(--bcm-sage);
  color: var(--bcm-evergreen);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  animation: pulseCard 2s infinite ease-in-out;
}

.celebration-banner.hidden {
  display: none;
}

@keyframes pulseCard {
  0%, 100% { box-shadow: 0 0 0 0 rgba(95, 184, 138, 0.4); }
  50% { box-shadow: 0 0 16px 2px rgba(95, 184, 138, 0.35); }
}

.slider-group {
  margin-bottom: 20px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--bcm-charcoal);
  margin-bottom: 8px;
}

.slider-label-row span.val {
  color: var(--bcm-evergreen);
  font-family: var(--font-mono);
  font-weight: 700;
}

.custom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  background: var(--bcm-sandstone-elevated);
  border-radius: 4px;
  outline: none;
  transition: var(--transition-smooth);
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bcm-evergreen);
  border: 2.5px solid #FFFFFF;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(14, 59, 46, 0.35);
  transition: var(--transition-spring);
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.22);
  background: var(--bcm-sage);
  box-shadow: 0 0 14px var(--bcm-sage);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--bcm-charcoal-subtle);
  font-weight: 600;
  margin-top: 4px;
}

.sim-projection-box {
  background: var(--bcm-sandstone-elevated);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
  text-align: center;
}

.proj-stat {
  font-size: 10px;
  color: var(--bcm-charcoal-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.proj-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--bcm-evergreen);
  margin-top: 2px;
}

.savings-ticker-box {
  background: rgba(95, 184, 138, 0.1);
  border: 1px dashed rgba(95, 184, 138, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.savings-icon {
  font-size: 18px;
}

.savings-text {
  display: flex;
  flex-direction: column;
}

.savings-title {
  font-size: 11px;
  color: var(--bcm-charcoal-muted);
  font-weight: 600;
}

.savings-amount {
  font-size: 14px;
  font-weight: 800;
  color: var(--bcm-evergreen);
}

/* ==========================================================================
   SPECIFICATION 3: AI FINANCIAL RECOVERY BLUEPRINT
   Personalized action-oriented prescriptive cards for halted/low-tier profiles
   ========================================================================== */
.recovery-blueprint-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFBF7 100%);
  border: 1.5px solid rgba(224, 159, 62, 0.3);
  border-radius: var(--radius-xl);
  padding: 34px 36px;
  box-shadow: 0 12px 30px -4px rgba(224, 159, 62, 0.12), var(--shadow-subtle);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.4s ease;
}

.recovery-blueprint-card.hidden {
  display: none;
}

.blueprint-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.blueprint-title-group {
  max-width: 720px;
}

.blueprint-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #B45309;
  background: rgba(245, 158, 11, 0.12);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 158, 11, 0.35);
  margin-bottom: 8px;
}

.blueprint-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--bcm-evergreen);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.blueprint-sub {
  font-size: 13.5px;
  color: var(--bcm-charcoal-muted);
  line-height: 1.5;
}

.blueprint-status-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.blueprint-status-tag.priority {
  background: rgba(220, 38, 38, 0.1);
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.blueprint-status-tag.optimized {
  background: var(--bcm-sage-subtle);
  color: var(--bcm-evergreen);
  border: 1px solid rgba(95, 184, 138, 0.4);
}

.blueprint-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.blueprint-action-item {
  background: #FFFFFF;
  border: 1px solid rgba(14, 59, 46, 0.08);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 14px rgba(14, 59, 46, 0.04);
  transition: var(--transition-smooth);
}

.blueprint-action-item:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 184, 138, 0.45);
  box-shadow: var(--shadow-subtle);
}

.action-top-cluster {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.action-icon-disc {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(14, 59, 46, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.action-content h5 {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--bcm-evergreen);
  line-height: 1.35;
  margin-bottom: 4px;
}

.action-content p {
  font-size: 12px;
  color: var(--bcm-charcoal-muted);
  line-height: 1.45;
}

.action-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed rgba(14, 59, 46, 0.1);
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.action-impact-badge {
  font-weight: 800;
  color: var(--bcm-sage);
  background: var(--bcm-sage-subtle);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(95, 184, 138, 0.3);
}

.action-timeframe {
  color: var(--bcm-charcoal-muted);
  font-weight: 600;
}

/* ==========================================================================
   SPECIFICATION 4: BANK MANUAL OVERRIDE & AUDIT TRIAGE TOOLBAR
   ========================================================================== */
.underwriter-override-card {
  background: var(--bcm-sandstone-card);
  border: 1px solid var(--bcm-sandstone-border);
  border-radius: var(--radius-xl);
  padding: 34px 36px;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 12px;
}

.override-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 16px;
}

.override-badge-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bcm-evergreen);
  background: rgba(14, 59, 46, 0.07);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.override-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--bcm-evergreen);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.override-sub {
  font-size: 13px;
  color: var(--bcm-charcoal-muted);
  line-height: 1.5;
}

.override-current-state {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.state-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--bcm-charcoal-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.state-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid;
  transition: var(--transition-smooth);
}

.state-badge.approved {
  background: var(--bcm-sage-subtle);
  color: var(--bcm-evergreen);
  border-color: rgba(95, 184, 138, 0.4);
}

.state-badge.halted {
  background: rgba(220, 38, 38, 0.1);
  color: #DC2626;
  border-color: rgba(220, 38, 38, 0.35);
}

.state-badge.guarantor {
  background: rgba(245, 158, 11, 0.12);
  color: #B45309;
  border-color: rgba(245, 158, 11, 0.35);
}

.override-actions-bar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-override {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-spring);
}

.btn-override.approve {
  background: var(--bcm-evergreen);
  color: #FFFFFF;
  border: 1px solid var(--bcm-evergreen);
  box-shadow: 0 4px 14px rgba(14, 59, 46, 0.2);
}

.btn-override.approve:hover {
  background: var(--bcm-evergreen-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(14, 59, 46, 0.3);
}

.btn-override.guarantor {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.btn-override.guarantor:hover {
  background: #FEF3C7;
  transform: translateY(-2px);
}

.btn-override.halt {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.btn-override.halt:hover {
  background: #FEE2E2;
  transform: translateY(-2px);
}

.override-audit-container {
  background: var(--bcm-sandstone-elevated);
  border: 1px solid var(--bcm-sandstone-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.audit-log-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--bcm-evergreen);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.audit-log-entries {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.audit-entry {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--bcm-sandstone-border);
  line-height: 1.45;
  animation: fadeIn 0.3s ease;
}

.audit-entry .audit-time {
  color: var(--bcm-charcoal-muted);
  margin-right: 6px;
}

.audit-entry .audit-code {
  font-weight: 800;
  color: var(--bcm-evergreen);
  margin-right: 8px;
}

.audit-entry .audit-text {
  color: var(--bcm-charcoal);
}

/* ==========================================================================
   FLOATING ACTION TOAST NOTIFICATIONS
   ========================================================================== */
.bcm-toast-container {
  position: fixed;
  bottom: 24px;
  right: 28px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.bcm-toast {
  pointer-events: auto;
  background: var(--bcm-evergreen);
  color: #FAF7F1;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(14, 59, 46, 0.35);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(95, 184, 138, 0.4);
  animation: slideInToast 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bcm-toast.halt {
  background: #7F1D1D;
  border-color: rgba(239, 68, 68, 0.5);
}

.bcm-toast.guarantor {
  background: #78350F;
  border-color: rgba(245, 158, 11, 0.5);
}

@keyframes slideInToast {
  from {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   TRANSPARENT FACTOR BREAKDOWN CARDS (INTERACTIVE ACCORDION)
   ========================================================================== */
.right-col {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--bcm-evergreen);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.shapley-pill {
  font-size: 11px;
  font-weight: 700;
  background: var(--bcm-sandstone-elevated);
  border: 1px solid var(--bcm-sandstone-border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  color: var(--bcm-charcoal);
}

.factors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.factor-card {
  background: var(--bcm-sandstone-card);
  border: 1px solid var(--bcm-sandstone-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.factor-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: transparent;
  transition: background 0.3s ease;
}

.factor-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(95, 184, 138, 0.4);
}

.factor-card.positive:hover::after {
  background: var(--bcm-sage);
}

.factor-card.negative:hover::after {
  background: #C0392B;
}

.factor-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.factor-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--bcm-charcoal);
}

.factor-impact {
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
}

.factor-impact.positive {
  background: var(--bcm-sage-subtle);
  color: var(--bcm-evergreen);
  border: 1px solid rgba(95, 184, 138, 0.4);
}

.factor-impact.negative {
  background: rgba(220, 53, 69, 0.08);
  color: #C0392B;
  border: 1px solid rgba(220, 53, 69, 0.25);
}

.factor-summary {
  font-size: 13px;
  color: var(--bcm-charcoal-muted);
  line-height: 1.45;
}

/* Micro Bar Fill Track */
.factor-bar-track {
  width: 100%;
  height: 5px;
  background: var(--bcm-sandstone-elevated);
  border-radius: 3px;
  margin-top: 14px;
  overflow: hidden;
}

.factor-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.factor-bar-fill.positive {
  background: linear-gradient(90deg, var(--bcm-evergreen-light), var(--bcm-sage));
}

.factor-bar-fill.negative {
  background: linear-gradient(90deg, #E74C3C, #C0392B);
}

.factor-expand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--bcm-charcoal-muted);
}

.expand-chevron {
  transition: transform 0.3s ease;
}

.factor-card.expanded .expand-chevron {
  transform: rotate(180deg);
}

/* Factor Deep Dive Drawer */
.factor-deep-dive {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
  opacity: 0;
  border-top: 1px dashed rgba(14, 59, 46, 0.1);
  margin-top: 0;
  padding-top: 0;
}

.factor-card.expanded .factor-deep-dive {
  max-height: 250px;
  opacity: 1;
  margin-top: 14px;
  padding-top: 14px;
}

.deep-dive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 12px;
}

.deep-dive-item {
  background: var(--bcm-sandstone-elevated);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.deep-dive-item label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--bcm-charcoal-muted);
  font-weight: 700;
}

.deep-dive-item .val {
  font-weight: 700;
  color: var(--bcm-evergreen);
  margin-top: 2px;
}

/* ==========================================================================
   BANK UNDERWRITING VIEW
   ========================================================================== */
.lender-view {
  display: none;
}

.lender-view.active {
  display: block;
}

.borrower-view {
  display: block;
}

.borrower-view.hidden {
  display: none;
}

.policy-table-card {
  background: var(--bcm-sandstone-card);
  border: 1px solid var(--bcm-sandstone-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
}

.policy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--bcm-sandstone-border);
  transition: var(--transition-smooth);
}

.policy-row:hover {
  background: rgba(14, 59, 46, 0.02);
}

.policy-row:last-child {
  border-bottom: none;
}

.policy-rule-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--bcm-charcoal);
}

.policy-rule-desc {
  font-size: 12px;
  color: var(--bcm-charcoal-muted);
  margin-top: 2px;
}

.policy-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

.policy-badge.PASS {
  background: var(--bcm-sage-subtle);
  color: var(--bcm-evergreen);
  border: 1px solid rgba(95, 184, 138, 0.4);
}

.policy-badge.WARN {
  background: rgba(224, 159, 62, 0.12);
  color: #B36B00;
  border: 1px solid rgba(224, 159, 62, 0.35);
}

.policy-badge.FAIL {
  background: rgba(220, 53, 69, 0.08);
  color: #C0392B;
  border: 1px solid rgba(220, 53, 69, 0.25);
}

.underwriter-notes-box {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--bcm-sandstone-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--bcm-sandstone-border);
}

.notes-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--bcm-evergreen);
}

.notes-body {
  font-size: 13px;
  color: var(--bcm-charcoal);
  margin-top: 6px;
  line-height: 1.45;
}

/* Normalized Transactions Drawer */
.tx-table-card {
  background: var(--bcm-sandstone-card);
  border: 1px solid var(--bcm-sandstone-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
}

.table-responsive {
  overflow-x: auto;
  margin-top: 14px;
}

table.tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.tx-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 800;
  color: var(--bcm-charcoal-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--bcm-sandstone-border);
}

table.tx-table td {
  padding: 12px;
  border-bottom: 1px solid var(--bcm-sandstone-border);
  color: var(--bcm-charcoal);
}

table.tx-table tr:hover td {
  background: rgba(14, 59, 46, 0.02);
}

table.tx-table tr:last-child td {
  border-bottom: none;
}

.amount-credit {
  color: var(--bcm-sage);
  font-weight: 800;
}

.amount-debit {
  color: var(--bcm-charcoal);
  font-weight: 700;
}

/* Footer */
footer.bcm-footer {
  text-align: center;
  padding: 44px 0 24px;
  font-size: 12px;
  color: var(--bcm-charcoal-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.footer-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--bcm-evergreen);
}

/* Utility Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1024px) {
  .orbit-chart,
  .orbit-calc,
  .orbit-geom,
  .orbit-chip,
  .orbit-paper {
    display: none !important;
  }
  .editorial-title {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  .top-nav { padding: 14px 20px; }
  .app-container { padding: 18px 16px 48px; }
  .hide-mobile { display: none; }
  .preset-bar { flex-direction: column; align-items: flex-start; }
  
  /* Orbital stage mobile density optimization */
  .orbit-ledger,
  .orbit-node,
  .orbit-score {
    display: none !important;
  }
  
  .editorial-title {
    font-size: 32px;
  }
  .editorial-subtitle {
    font-size: 14px;
  }
  .hero-meta-strip {
    gap: 6px;
  }
  .hero-card-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .preset-pills {
    width: 100%;
  }
  .persona-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbital-item,
  .ambient-glow,
  .glow-orb,
  .radar-ring,
  .score-radial-glow.tier-a-glow {
    animation: none !important;
  }
  .orbital-item {
    opacity: 0.45 !important;
  }
}

/* ==========================================================================
   BANK STATEMENT FINANCIAL HEALTH TRIAGE FEATURE COMPONENT
   ========================================================================== */
.triage-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.triage-pill.green { background: #E7F6ED; color: #107C41; border: 1px solid #A3E3BE; }
.triage-pill.yellow { background: #FEF7E6; color: #B27B00; border: 1px solid #FCD680; }
.triage-pill.red { background: #FCE8E6; color: #C5221F; border: 1px solid #F7A8A3; }

.triage-headline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.triage-headline-badge.green { background: #E7F6ED; color: #107C41; border: 1px solid #A3E3BE; }
.triage-headline-badge.yellow { background: #FEF7E6; color: #B27B00; border: 1px solid #FCD680; }
.triage-headline-badge.red { background: #FCE8E6; color: #C5221F; border: 1px solid #F7A8A3; }

.triage-main-card {
  background: var(--bcm-card-bg);
  border: 1px solid var(--bcm-sandstone-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.triage-main-card.GREEN {
  border-left: 5px solid #107C41;
}
.triage-main-card.YELLOW {
  border-left: 5px solid #B27B00;
}
.triage-main-card.RED {
  border-left: 5px solid #C5221F;
}

.triage-header-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.triage-title-group .triage-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bcm-evergreen);
  background: rgba(14, 59, 46, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.triage-feature-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--bcm-charcoal);
  letter-spacing: -0.01em;
}

.triage-feature-sub {
  font-size: 12px;
  color: var(--bcm-charcoal-muted);
  margin-top: 2px;
  max-width: 650px;
}

.traffic-light-display {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bcm-sandstone-elevated);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--bcm-sandstone-border);
}

.traffic-bulb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}
.traffic-bulb.bulb-green { background: #107C41; box-shadow: 0 0 8px #107C41; }
.traffic-bulb.bulb-yellow { background: #E3A008; box-shadow: 0 0 8px #E3A008; }
.traffic-bulb.bulb-red { background: #E02424; box-shadow: 0 0 8px #E02424; }

.traffic-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* Triage Action Box */
.triage-action-box {
  background: #FFFFFF;
  border: 1px solid var(--bcm-sandstone-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.triage-action-box.GREEN { border-left: 4px solid #107C41; background: #FAFDFB; }
.triage-action-box.YELLOW { border-left: 4px solid #B27B00; background: #FFFEFA; }
.triage-action-box.RED { border-left: 4px solid #C5221F; background: #FDF9F9; }

.triage-action-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.triage-action-content .action-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--bcm-charcoal-muted);
  margin-bottom: 2px;
}

.triage-action-content .action-main-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--bcm-charcoal);
  line-height: 1.4;
}

/* Criteria Grid */
.triage-criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.criteria-mini-card {
  background: var(--bcm-sandstone-elevated);
  border: 1px solid var(--bcm-sandstone-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.criteria-mini-info .c-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--bcm-charcoal);
}

.criteria-mini-info .c-target {
  font-size: 10px;
  color: var(--bcm-charcoal-muted);
}

.criteria-pill-status {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 4px;
}
.criteria-pill-status.pass { background: #E7F6ED; color: #107C41; border: 1px solid #A3E3BE; }
.criteria-pill-status.warn { background: #FEF7E6; color: #B27B00; border: 1px solid #FCD680; }
.criteria-pill-status.fail { background: #FCE8E6; color: #C5221F; border: 1px solid #F7A8A3; }

/* Advisory Checklist for RED */
.triage-advisory-wrapper {
  background: #FFF8F7;
  border: 1px solid #F7A8A3;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 20px;
}

.triage-advisory-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #C5221F;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}

.triage-advisory-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.triage-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(197, 34, 31, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.triage-step-number {
  background: #C5221F;
  color: #FFFFFF;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.triage-step-content strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--bcm-charcoal);
  margin-bottom: 2px;
}

.triage-step-content p {
  font-size: 11px;
  color: var(--bcm-charcoal-muted);
  line-height: 1.4;
  margin: 0;
}

/* Aggregation Section Inside Triage Card */
.triage-aggregation-box {
  background: #FFFFFF;
  border: 1px solid var(--bcm-sandstone-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.triage-agg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.triage-agg-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--bcm-charcoal);
}

.triage-agg-toggle {
  display: inline-flex;
  gap: 6px;
}

.triage-toggle-btn {
  background: var(--bcm-sandstone-elevated);
  border: 1px solid var(--bcm-sandstone-border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  color: var(--bcm-charcoal-muted);
  transition: all 0.2s ease;
}

.triage-toggle-btn.active {
  background: var(--bcm-evergreen);
  color: #FFFFFF;
  border-color: var(--bcm-evergreen);
}

.triage-table-responsive {
  overflow-x: auto;
  max-height: 240px;
}

.triage-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.triage-mini-table th {
  background: var(--bcm-sandstone-elevated);
  color: var(--bcm-charcoal-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--bcm-sandstone-border);
  position: sticky;
  top: 0;
}

.triage-mini-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(44, 42, 40, 0.05);
  font-family: var(--font-mono);
}

.triage-mini-table tr:hover td {
  background: rgba(243, 239, 230, 0.4);
}

.t-tag-surplus {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  background: #E7F6ED;
  color: #107C41;
}

.t-tag-deficit {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  background: #FCE8E6;
  color: #C5221F;
}

.t-tag-bounce {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  background: #FEE2E2;
  color: #991B1B;
}

/* ==========================================================================
   FEATURE 1: PERSONA-ADAPTIVE ONBOARDING & TERMS MODAL STYLES
   ========================================================================== */
.onboarding-persona-section {
  margin: 12px 0;
}

.onboarding-persona-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sub-label-note {
  font-size: 11px;
  color: var(--bcm-sage);
  font-weight: 600;
}

.onboarding-persona-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.onboarding-persona-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid rgba(44, 42, 40, 0.08);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.onboarding-persona-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(95, 184, 138, 0.6);
  transform: translateY(-1px);
}

.onboarding-persona-card.active {
  background: #FFFFFF;
  border-color: var(--bcm-sage);
  box-shadow: 0 4px 12px rgba(14, 59, 46, 0.08), 0 0 0 1px var(--bcm-sage);
}

.onboarding-persona-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.onboarding-persona-info {
  display: flex;
  flex-direction: column;
}

.onboarding-persona-info strong {
  font-size: 12px;
  color: var(--bcm-evergreen);
  font-weight: 700;
}

.onboarding-persona-info span {
  font-size: 10px;
  color: var(--bcm-charcoal-muted);
}

.adaptive-fields-box {
  background: rgba(250, 247, 241, 0.8);
  border: 1px dashed rgba(95, 184, 138, 0.5);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 6px;
}

.adaptive-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.adaptive-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label-xs {
  font-size: 11px;
  font-weight: 600;
  color: var(--bcm-charcoal);
}

.fintech-input-xs {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
  font-family: var(--font-sans);
  color: var(--bcm-charcoal);
  background: #FFFFFF;
  border: 1px solid rgba(44, 42, 40, 0.15);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fintech-input-xs:focus {
  border-color: var(--bcm-sage);
  box-shadow: 0 0 0 2px rgba(95, 184, 138, 0.2);
}

/* Terms & Account Aggregator Modal */
.terms-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 59, 46, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px;
  overflow-y: auto;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.terms-modal-overlay.hidden {
  display: none !important;
}

.terms-modal-card {
  width: 92%;
  max-width: 580px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bcm-sandstone-card);
  border: 1px solid var(--bcm-sandstone-border);
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: 0 24px 48px rgba(14, 59, 46, 0.25);
  scrollbar-width: thin;
  scrollbar-color: rgba(14, 59, 46, 0.2) transparent;
  animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.94) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.terms-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.terms-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bcm-evergreen);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.terms-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--bcm-evergreen);
  margin: 0;
}

.terms-modal-sub {
  font-size: 12px;
  color: var(--bcm-charcoal-muted);
  margin: 3px 0 0 0;
}

.terms-summary-callout {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(44, 42, 40, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.terms-callout-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.terms-callout-icon {
  font-size: 16px;
  margin-top: 1px;
}

.terms-callout-item strong {
  font-size: 12px;
  color: var(--bcm-charcoal);
  display: block;
}

.terms-callout-item p {
  font-size: 11px;
  color: var(--bcm-charcoal-muted);
  margin: 1px 0 0 0;
}

.terms-meta-preview {
  background: rgba(95, 184, 138, 0.08);
  border-left: 3px solid var(--bcm-sage);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--bcm-evergreen);
  margin-bottom: 16px;
  font-weight: 500;
}

.terms-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--bcm-charcoal);
  cursor: pointer;
  margin-bottom: 24px;
  line-height: 1.45;
}

.terms-checkbox-wrap input {
  margin-top: 3px;
  accent-color: var(--bcm-evergreen);
  cursor: pointer;
}

.terms-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-terms-back {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid rgba(44, 42, 40, 0.2);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--bcm-charcoal-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-terms-back:hover {
  background: rgba(44, 42, 40, 0.05);
  color: var(--bcm-charcoal);
}

.btn-terms-close {
  margin-left: auto;
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--bcm-charcoal-muted);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.btn-terms-close:hover {
  color: var(--bcm-evergreen);
  background: rgba(14, 59, 46, 0.08);
}

.terms-trigger-row {
  margin-top: 10px;
  margin-bottom: 6px;
  text-align: center;
}

.link-terms-button {
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--bcm-sage);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.link-terms-button:hover {
  color: var(--bcm-evergreen);
  background: rgba(95, 184, 138, 0.1);
}

.nav-terms-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 59, 46, 0.06);
  border: 1px solid var(--bcm-sandstone-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--bcm-evergreen);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-terms-pill:hover {
  background: var(--bcm-evergreen);
  color: #FFFFFF;
  border-color: var(--bcm-evergreen);
}

/* ==========================================================================
   FEATURE 2: 5TH CUSTOM SANDBOX SIMULATOR & TUNING DRAWER STYLES
   ========================================================================== */
@keyframes pulseSage {
  0%, 100% {
    border-color: rgba(95, 184, 138, 0.45);
    box-shadow: 0 0 0 0 rgba(95, 184, 138, 0.4);
  }
  50% {
    border-color: var(--bcm-sage);
    box-shadow: 0 0 14px 2px rgba(95, 184, 138, 0.35);
  }
}

.custom-sandbox-btn {
  border: 1.5px solid var(--bcm-sage) !important;
  animation: pulseSage 2.4s infinite ease-in-out;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(95, 184, 138, 0.06)) !important;
}

.custom-sandbox-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(95, 184, 138, 0.3) !important;
}

/* Live Parameter Tuning Drawer */
.sandbox-tuning-drawer {
  background: var(--bcm-sandstone-card);
  border: 1.5px solid var(--bcm-sage);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(14, 59, 46, 0.08);
  animation: drawerSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawerSlideDown {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.sandbox-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bcm-sandstone-border);
}

.sandbox-sparkle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 20px;
  background: #E7F6ED;
  color: var(--bcm-evergreen);
  border: 1px solid rgba(95, 184, 138, 0.4);
  margin-bottom: 6px;
}

.sandbox-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--bcm-evergreen);
  margin: 0 0 4px 0;
}

.sandbox-sub {
  font-size: 12px;
  color: var(--bcm-charcoal-muted);
  margin: 0;
  max-width: 620px;
}

.sandbox-status-cluster {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.sandbox-score-preview {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.score-sm-lbl {
  font-size: 11px;
  color: var(--bcm-charcoal-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.score-sm-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--bcm-evergreen);
  font-family: var(--font-mono);
}

.sandbox-triage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.sandbox-triage-badge.green {
  background: #E7F6ED;
  color: #107C41;
  border: 1px solid rgba(16, 124, 65, 0.3);
}

.sandbox-triage-badge.yellow {
  background: #FEF7E0;
  color: #B06000;
  border: 1px solid rgba(176, 96, 0, 0.3);
}

.sandbox-triage-badge.red {
  background: #FCE8E6;
  color: #C5221F;
  border: 1px solid rgba(197, 34, 31, 0.3);
}

.sandbox-controls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .sandbox-controls-grid {
    grid-template-columns: 1fr;
  }
}

.sandbox-control-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(44, 42, 40, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.control-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.control-label-row .c-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--bcm-evergreen);
}

.control-label-row .c-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--bcm-evergreen);
  font-family: var(--font-mono);
}

.control-hint {
  font-size: 11px;
  color: var(--bcm-charcoal-muted);
  margin-top: 8px;
}

/* Segmented Control Buttons */
.segmented-control {
  display: flex;
  background: rgba(44, 42, 40, 0.06);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
}

.seg-btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--bcm-charcoal-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.seg-btn.active {
  background: #FFFFFF;
  color: var(--bcm-evergreen);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Student Addon Sub-Panel */
.sandbox-student-addon {
  background: rgba(243, 239, 230, 0.5);
  border: 1px solid rgba(95, 184, 138, 0.35);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}

.addon-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toggle-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--bcm-evergreen);
  cursor: pointer;
}

.toggle-checkbox-label input {
  display: none;
}

.toggle-switch-slider {
  width: 36px;
  height: 20px;
  background: rgba(44, 42, 40, 0.2);
  border-radius: 20px;
  position: relative;
  transition: background 0.25s ease;
}

.toggle-switch-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-checkbox-label input:checked + .toggle-switch-slider {
  background: var(--bcm-sage);
}

.toggle-checkbox-label input:checked + .toggle-switch-slider::after {
  transform: translateX(16px);
}

.addon-sub-tag {
  font-size: 11px;
  color: var(--bcm-charcoal-muted);
}

.student-addon-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(44, 42, 40, 0.1);
}

/* Quick Bar */
.sandbox-quick-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid rgba(44, 42, 40, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 18px;
}

.q-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.q-lbl {
  font-size: 11px;
  color: var(--bcm-charcoal-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.q-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--bcm-evergreen);
  font-family: var(--font-mono);
}

.q-val.green { color: #107C41; }
.q-val.yellow { color: #B06000; }
.q-val.red { color: #C5221F; }



