/* ==============================================================================
   Juspay Instant Disbursal & Bank Payout Portal Stylesheet
   Modern FinTech Design: Linear / Stripe / Apple Inspired
   ============================================================================== */

:root {
  --jp-primary: #BE185D;
  --jp-primary-hover: #9D174D;
  --jp-primary-light: rgba(190, 24, 93, 0.12);
  --jp-primary-glow: rgba(224, 33, 87, 0.35);
  --jp-fundlelo-grad: linear-gradient(135deg, #E02157 0%, #C4327D 45%, #712474 100%);
  --jp-fundlelo-hover: linear-gradient(135deg, #F43F5E 0%, #D92662 45%, #86198F 100%);
  --jp-emerald: #10b981;
  --jp-emerald-light: rgba(16, 185, 129, 0.12);
  --jp-emerald-glow: rgba(16, 185, 129, 0.3);
  --jp-amber: #f59e0b;
  --jp-amber-light: rgba(245, 158, 11, 0.12);
  --jp-rose: #f43f5e;
  --jp-rose-light: rgba(244, 63, 94, 0.12);
  --jp-slate-900: #0f172a;
  --jp-slate-800: #1e293b;
  --jp-slate-700: #334155;
  --jp-slate-600: #475569;
  --jp-slate-400: #94a3b8;
  --jp-slate-100: #f1f5f9;
  --jp-slate-50: #f8fafc;
  --jp-card-bg: rgba(255, 255, 255, 0.98);
  --jp-border: #e2e8f0;
  --jp-shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  --jp-radius-sm: 8px;
  --jp-radius-md: 12px;
  --jp-radius-lg: 16px;
  --jp-radius-xl: 24px;
}

/* Quick Launch Floating Button & Header Badge */
.jp-quick-launcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--jp-fundlelo-grad);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 9999px;
  box-shadow: 0 4px 14px var(--jp-primary-glow);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  user-select: none;
}
.jp-quick-launcher:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px var(--jp-primary-glow);
  background: var(--jp-fundlelo-hover);
}
.jp-quick-launcher:active {
  transform: translateY(0) scale(0.98);
}
.jp-lightning-icon {
  animation: jpFlicker 2s infinite ease-in-out;
}
@keyframes jpFlicker {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.15); }
}

/* In-Card Action Button inside Disbursal Queue */
.jp-disburse-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: var(--jp-radius-md);
  box-shadow: 0 4px 12px var(--jp-emerald-glow);
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  width: 100%;
}
.jp-disburse-card-btn:hover {
  transform: translateY(-1.5px);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 18px var(--jp-emerald-glow);
}
.jp-disburse-card-btn:active {
  transform: translateY(0) scale(0.99);
}

/* Modal Backdrop */
.jp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: jpFadeIn 0.2s ease-out forwards;
}
@keyframes jpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modal Container */
.jp-modal-container {
  background: #ffffff;
  color: var(--jp-slate-900);
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  border-radius: var(--jp-radius-xl);
  box-shadow: var(--jp-shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: jpSpringUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes jpSpringUp {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Modal Header */
.jp-modal-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}
.jp-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.jp-logo-pill {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
.jp-header-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.jp-header-subtitle {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: #c7d2fe;
}
.jp-gateway-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.jp-gateway-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}
.jp-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 18px;
}
.jp-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

/* Modal Body */
.jp-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #f8fafc;
}

/* Borrower Banner & Badges */
.jp-borrower-banner {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--jp-radius-md);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.jp-borrower-info h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--jp-slate-900);
}
.jp-borrower-info p {
  margin: 3px 0 0 0;
  font-size: 12px;
  color: var(--jp-slate-600);
}
.jp-badges-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.jp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.jp-badge-fcu {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.jp-badge-credit {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

/* CAM Approval Hero Card */
.jp-cam-hero-card {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 60%, #047857 100%);
  border-radius: var(--jp-radius-lg);
  padding: 22px 24px;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(6, 78, 59, 0.25);
  position: relative;
  overflow: hidden;
}
.jp-cam-hero-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.jp-cam-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.jp-cam-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a7f3d0;
  font-weight: 700;
}
.jp-cam-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #ffffff;
}
.jp-cam-net-amount {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.jp-cam-net-subtext {
  font-size: 12px;
  color: #d1fae5;
  margin: 6px 0 16px 0;
  font-weight: 500;
}
.jp-cam-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--jp-radius-md);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.jp-cam-col p:first-child {
  margin: 0;
  font-size: 10px;
  color: #a7f3d0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.jp-cam-col p:last-child {
  margin: 3px 0 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  font-family: monospace;
}

/* Bank Details Form Card */
.jp-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--jp-radius-lg);
  padding: 20px;
}
.jp-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.jp-form-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--jp-slate-900);
  display: flex;
  align-items: center;
  gap: 8px;
}
.jp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.jp-form-grid-full {
  grid-column: span 2;
}
.jp-input-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--jp-slate-600);
  margin-bottom: 5px;
}
.jp-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.jp-input {
  width: 100%;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--jp-radius-md);
  font-size: 13px;
  color: var(--jp-slate-900);
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.jp-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--jp-primary);
  box-shadow: 0 0 0 3px var(--jp-primary-light);
}
.jp-input-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.jp-validation-icon {
  position: absolute;
  right: 12px;
  font-size: 14px;
  pointer-events: none;
}

/* Transfer Mode Selector Pills */
.jp-mode-selector {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.jp-mode-pill {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--jp-radius-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--jp-slate-700);
  cursor: pointer;
  background: #f8fafc;
  transition: all 0.15s ease;
  user-select: none;
}
.jp-mode-pill.active {
  background: #eef2ff;
  border-color: var(--jp-primary);
  color: var(--jp-primary);
  box-shadow: 0 0 0 1px var(--jp-primary);
}

/* Modal Footer */
.jp-modal-footer {
  padding: 16px 24px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.jp-security-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--jp-slate-600);
}
.jp-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.jp-btn-cancel {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--jp-slate-700);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: var(--jp-radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}
.jp-btn-cancel:hover {
  background: #e2e8f0;
}
.jp-btn-pay {
  background: var(--jp-fundlelo-grad);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--jp-radius-md);
  box-shadow: 0 4px 14px var(--jp-primary-glow);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.jp-btn-pay:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--jp-primary-glow);
  background: var(--jp-fundlelo-hover);
}
.jp-btn-pay:active:not(:disabled) {
  transform: translateY(0);
}
.jp-btn-pay:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Processing Overlay */
.jp-processing-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 30px;
  text-align: center;
  animation: jpFadeIn 0.2s ease-out;
}
.jp-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--jp-primary);
  border-radius: 50%;
  animation: jpSpin 0.8s linear infinite;
  margin-bottom: 20px;
}
@keyframes jpSpin {
  to { transform: rotate(360deg); }
}
.jp-stepper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  margin-top: 20px;
  text-align: left;
}
.jp-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--jp-slate-600);
}
.jp-step-item.active {
  color: var(--jp-primary);
  font-weight: 700;
}
.jp-step-item.done {
  color: var(--jp-emerald);
}

/* Success Receipt Screen */
.jp-receipt-screen {
  text-align: center;
  padding: 10px 0;
  animation: jpSpringUp 0.3s ease-out;
}
.jp-success-pop {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 14px;
  border: 2px solid #a7f3d0;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.3);
  animation: jpScalePop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes jpScalePop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.jp-receipt-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--jp-radius-lg);
  padding: 20px;
  margin: 20px 0;
  text-align: left;
}
.jp-receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 13px;
}
.jp-receipt-row:last-child {
  border-bottom: none;
}
.jp-receipt-row span:first-child {
  color: var(--jp-slate-600);
}
.jp-receipt-row span:last-child {
  font-weight: 700;
  color: var(--jp-slate-900);
  font-family: monospace;
}

@media (max-width: 640px) {
  .jp-form-grid {
    grid-template-columns: 1fr;
  }
  .jp-form-grid-full {
    grid-column: span 1;
  }
  .jp-cam-breakdown-grid {
    grid-template-columns: 1fr;
  }
  .jp-modal-footer {
    flex-direction: column-reverse;
  }
  .jp-footer-actions {
    width: 100%;
  }
  .jp-btn-pay, .jp-btn-cancel {
    flex: 1;
  }
}

/* ==============================================================================
   Per-Lead Action Suite: Salora LMS Sync (v1, v2, v3) & Gated Juspay Disbursal
   ============================================================================== */

/* Wrapper container for lead action suite */
.salora-lead-suite {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  padding: 4px 0 !important;
}

.salora-buttons-cluster {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(241, 245, 249, 0.8) !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9999px !important;
  padding: 2px 4px !important;
  gap: 3px !important;
}

:root[class~="dark"] .salora-buttons-cluster {
  background: rgba(30, 41, 59, 0.7) !important;
  border-color: #334155 !important;
}

/* Salora Auto-Sync Pill Status (Replaces manual button cluster) */
.salora-autosync-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  letter-spacing: 0.02em !important;
  line-height: 1.2 !important;
  user-select: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.salora-autosync-pill.is-ready {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #047857 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}
:root[class~="dark"] .salora-autosync-pill.is-ready {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
}

.salora-autosync-pill.is-syncing {
  background: rgba(99, 102, 241, 0.12) !important;
  color: #4f46e5 !important;
  border: 1px solid rgba(99, 102, 241, 0.35) !important;
  animation: saloraPulseGlow 2s infinite ease-in-out !important;
}
:root[class~="dark"] .salora-autosync-pill.is-syncing {
  background: rgba(99, 102, 241, 0.22) !important;
  color: #818cf8 !important;
  border-color: rgba(99, 102, 241, 0.45) !important;
}

.salora-autosync-pill.is-error {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #dc2626 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}
:root[class~="dark"] .salora-autosync-pill.is-error {
  background: rgba(239, 68, 68, 0.22) !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
}

.salora-autosync-pill.is-pending {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #d97706 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
}
:root[class~="dark"] .salora-autosync-pill.is-pending {
  background: rgba(245, 158, 11, 0.22) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
}

@keyframes saloraPulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(0.99); }
}

.jp-pay-btn-syncing {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(99, 102, 241, 0.12) !important;
  color: #4338ca !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  padding: 5px 11px !important;
  border-radius: 8px !important;
  border: 1px dashed rgba(99, 102, 241, 0.5) !important;
  cursor: wait !important;
  user-select: none !important;
}
:root[class~="dark"] .jp-pay-btn-syncing {
  background: rgba(99, 102, 241, 0.22) !important;
  color: #a5b4fc !important;
  border-color: rgba(129, 140, 248, 0.5) !important;
}

/* Individual stage button / status pill */
.salora-step-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  padding: 3px 8px !important;
  border-radius: 9999px !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
}

/* State: SUCCESS (Emerald) */
.salora-step-btn.status-success {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #047857 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
}
:root[class~="dark"] .salora-step-btn.status-success {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
}
.salora-step-btn.status-success:hover {
  background: rgba(16, 185, 129, 0.25) !important;
  transform: translateY(-1px) !important;
}

/* State: PENDING (Indigo / Amber push button) */
.salora-step-btn.status-pending {
  background: #ffffff !important;
  color: #4338ca !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}
:root[class~="dark"] .salora-step-btn.status-pending {
  background: #1e293b !important;
  color: #818cf8 !important;
  border-color: #475569 !important;
}
.salora-step-btn.status-pending:hover {
  background: #6366f1 !important;
  color: #ffffff !important;
  border-color: #4f46e5 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35) !important;
}

/* State: FAILED (Rose alert) */
.salora-step-btn.status-failed {
  background: rgba(244, 63, 94, 0.15) !important;
  color: #be123c !important;
  border-color: rgba(244, 63, 94, 0.4) !important;
}
:root[class~="dark"] .salora-step-btn.status-failed {
  background: rgba(244, 63, 94, 0.25) !important;
  color: #fb7185 !important;
  border-color: rgba(244, 63, 94, 0.5) !important;
}
.salora-step-btn.status-failed:hover {
  background: #f43f5e !important;
  color: #ffffff !important;
  border-color: #e11d48 !important;
}

/* State: LOADING / SYNCING */
.salora-step-btn.status-loading {
  background: #f1f5f9 !important;
  color: #64748b !important;
  cursor: wait !important;
  pointer-events: none !important;
}
.salora-step-spinner {
  display: inline-block !important;
  width: 10px !important;
  height: 10px !important;
  border: 1.5px solid currentColor !important;
  border-right-color: transparent !important;
  border-radius: 50% !important;
  animation: saloraSpin 0.75s linear infinite !important;
}
@keyframes saloraSpin {
  to { transform: rotate(360deg); }
}

/* Push All Pill Button */
.salora-push-all-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%) !important;
  color: #ffffff !important;
  padding: 3px 8px !important;
  border-radius: 9999px !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 1px 4px rgba(79, 70, 229, 0.3) !important;
  transition: all 0.2s ease !important;
}
.salora-push-all-btn:hover {
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.45) !important;
}

/* ==============================================================================
   GATED JUSPAY PAY BUTTON (Enabled ONLY when v1, v2, v3 are all SUCCESS)
   ============================================================================== */

/* UNLOCKED: All v1, v2, v3 are SUCCESS */
.jp-pay-btn-unlocked {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  padding: 6px 13px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
}
.jp-pay-btn-unlocked:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  transform: translateY(-1.5px) scale(1.03) !important;
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.5) !important;
}
.jp-pay-btn-unlocked:active {
  transform: translateY(0) scale(0.98) !important;
}

/* LOCKED: Any of v1, v2, v3 is pending or failed */
.jp-pay-btn-locked {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: rgba(148, 163, 184, 0.12) !important;
  color: #64748b !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  padding: 5px 11px !important;
  border-radius: 8px !important;
  border: 1px dashed #cbd5e1 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
}
:root[class~="dark"] .jp-pay-btn-locked {
  background: rgba(30, 41, 59, 0.5) !important;
  color: #94a3b8 !important;
  border-color: #475569 !important;
}
.jp-pay-btn-locked:hover {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #b45309 !important;
  border-color: #f59e0b !important;
  border-style: solid !important;
  transform: translateY(-1px) !important;
}
:root[class~="dark"] .jp-pay-btn-locked:hover {
  color: #fbbf24 !important;
}

.jp-lock-icon {
  font-size: 11px !important;
  opacity: 0.85 !important;
}

/* Table View Pay Button */
.jp-table-pay-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  margin-right: 6px !important;
  vertical-align: middle !important;
}

/* Modal Salora LMS Verification Box */
.salora-modal-checkcard {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
:root[class~="dark"] .salora-modal-checkcard {
  background: #0f172a;
  border-color: #334155;
}
.salora-modal-checkcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.salora-modal-checkcard-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
:root[class~="dark"] .salora-modal-checkcard-title {
  color: #e2e8f0;
}
.salora-modal-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.salora-modal-step-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 64px;
}
:root[class~="dark"] .salora-modal-step-item {
  background: #1e293b;
  border-color: #334155;
}
.salora-modal-step-item.is-success {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}
.salora-modal-step-label {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}
.salora-modal-step-name {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  margin: 2px 0 4px 0;
}
:root[class~="dark"] .salora-modal-step-name {
  color: #f8fafc;
}

/* ==============================================================================
   Salora LMS Application ID Pill, Tag, and Modal Styling
   ============================================================================== */
.salora-appid-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  color: #047857 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  border-radius: 9999px !important;
  padding: 2.5px 8.5px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.15) !important;
}
:root[class~="dark"] .salora-appid-pill {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
}
.salora-appid-pill:hover {
  background: rgba(16, 185, 129, 0.22) !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3) !important;
}
.salora-appid-label {
  font-size: 9px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  opacity: 0.85 !important;
  font-weight: 800 !important;
}
.salora-appid-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
}
.salora-appid-copy-icon {
  font-size: 9.5px !important;
  opacity: 0.8 !important;
  margin-left: 2px !important;
}

/* Identification column tags */
.salora-table-appid-tag,
.salora-card-appid-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  font-size: 11px !important;
  color: #475569 !important;
}
:root[class~="dark"] .salora-table-appid-tag,
:root[class~="dark"] .salora-card-appid-tag {
  color: #94a3b8 !important;
}
.salora-table-appid-tag:hover,
.salora-card-appid-tag:hover {
  color: #059669 !important;
  text-decoration: underline !important;
}
.salora-appid-highlight {
  color: #059669 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-weight: 700 !important;
}
:root[class~="dark"] .salora-appid-highlight {
  color: #34d399 !important;
}

/* Modal App ID Banner */
.salora-modal-appid-banner {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.25s ease !important;
}
:root[class~="dark"] .salora-modal-appid-banner {
  background: #0f172a !important;
  border-color: #334155 !important;
}
.salora-copy-pill-btn {
  transition: all 0.15s ease !important;
}
.salora-copy-pill-btn:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  transform: translateY(-0.5px) !important;
}
:root[class~="dark"] .salora-copy-pill-btn {
  background: #1e293b !important;
  border-color: #475569 !important;
  color: #e2e8f0 !important;
}
:root[class~="dark"] .salora-copy-pill-btn:hover {
  background: #334155 !important;
}

/* Ensure emerald buttons are always visible with high contrast */
.bg-emerald-600,
button.bg-emerald-600,
.jp-companion-pay-btn {
  background-color: #059669 !important;
  background-image: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4) !important;
  display: inline-flex !important;
  align-items: center !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.bg-emerald-600:hover,
button.bg-emerald-600:hover,
.jp-companion-pay-btn:hover {
  background-color: #047857 !important;
  background-image: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5) !important;
}


