/* PrimeLoans v1.5.0 — Clean Minimal White Institutional Banking Redesign
   Signature Tri-Color Palette: Emerald (#156736) · Royal Blue (#1D4ED8) · Crimson (#B21117)
   Bright, high-trust neo-bank aesthetic across Header, Ticker, Home, Auth, Live Activity, Wallet, Profile & Bottom Nav */

:root {
  --pl-green: #156736;
  --pl-green-bright: #059669;
  --pl-green-soft: #ecfdf5;
  --pl-red: #b21117;
  --pl-red-soft: #fef2f2;
  --pl-blue: #1d4ed8;
  --pl-blue-deep: #1e3a8a;
  --pl-blue-soft: #eff6ff;
  --pl-ink: #0f172a;
  --pl-slate: #334155;
  --pl-muted: #64748b;
  --pl-surface: #ffffff;
  --pl-canvas: #f8fafc;
  --pl-border: #e2e8f0;
  --pl-tricolor: linear-gradient(90deg, #156736 0%, #156736 33.33%, #1d4ed8 33.33%, #1d4ed8 66.66%, #b21117 66.66%, #b21117 100%);
}

/* 1. Ultra-Clean Bright White/Pearl Canvas */
html, body {
  background: #f4f7fb !important;
  color: var(--pl-ink) !important;
  font-variant-numeric: tabular-nums;
}
#root > div {
  background: transparent !important;
}

/* 2. Crisp Minimal White Banking Header with 3.5px Tri-Color Top Line */
header.sticky.top-0 {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05) !important;
}
header.sticky.top-0::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: var(--pl-tricolor);
  z-index: 60;
}
header.sticky.top-0 button.pl-btn-login {
  border: 1.5px solid #bfdbfe !important;
  color: #1e3a8a !important;
  background: #eff6ff !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
}
header.sticky.top-0 button.pl-btn-register {
  background: linear-gradient(135deg, #156736 0%, #059669 100%) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 12px rgba(21, 103, 54, 0.24) !important;
  font-weight: 800 !important;
}

/* 3. Clean Light Institutional Notice Ticker (replaces harsh black/green strip) */
.pl-clean-ticker {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03) !important;
}
.pl-clean-ticker-badge {
  background: #b21117 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* 4. Main Layout Spacing */
main {
  padding-top: 14px !important;
  padding-bottom: 126px !important;
}

/* 5. Clean Minimal White Hero & Profile Banking Cards (replaces heavy dark navy boxes) */
.pl-hero-bank-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 60%, #f2fdf8 100%) !important;
  color: #0f172a !important;
  border: 1.5px solid #dbeafe !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07) !important;
  position: relative !important;
  overflow: hidden !important;
}
.pl-hero-bank-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--pl-tricolor);
  z-index: 3;
}
.pl-hero-bank-card,
.pl-hero-bank-card h1,
.pl-hero-bank-card h2,
.pl-hero-bank-card h3,
.pl-hero-bank-card p,
.pl-hero-bank-card span,
.pl-hero-bank-card div {
  color: #0f172a !important;
}
.pl-hero-bank-card .text-emerald-300,
.pl-hero-bank-card .text-emerald-200,
.pl-hero-bank-card .text-amber-300 {
  color: #156736 !important;
}

/* 6. Clean Primary CTA Button */
.pl-primary-cta-btn {
  background: linear-gradient(135deg, #156736 0%, #059669 100%) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(21, 103, 54, 0.28) !important;
  border: none !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
}
.pl-primary-cta-btn:active {
  transform: scale(0.985) !important;
}

/* 7. Balanced Tri-Color 3-Step Cards (Pure White Surface + Crisp Top Accent) */
.pl-step-badge-1 {
  background: #b21117 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(178, 17, 23, 0.24) !important;
}
.pl-step-card-1 {
  background: #ffffff !important;
  border: 1px solid #fee2e2 !important;
  border-top: 3.5px solid #b21117 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}
.pl-step-badge-2 {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.24) !important;
}
.pl-step-card-2 {
  background: #ffffff !important;
  border: 1px solid #dbeafe !important;
  border-top: 3.5px solid #1d4ed8 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}
.pl-step-badge-3 {
  background: #156736 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(21, 103, 54, 0.24) !important;
}
.pl-step-card-3 {
  background: #ffffff !important;
  border: 1px solid #d1fae5 !important;
  border-top: 3.5px solid #156736 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}

/* 8. Clean White Institutional Cards (Auth Modal, Drawer, Wallet, Profile, Reviews) */
.pl-tricolor-top {
  position: relative !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05) !important;
}
.pl-tricolor-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: var(--pl-tricolor);
  z-index: 4;
}

.pl-clean-brand-header {
  background: #ffffff !important;
  background-image: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  position: relative !important;
}
.pl-clean-brand-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: var(--pl-tricolor);
}
.pl-clean-brand-header p {
  color: #475569 !important;
  font-weight: 700 !important;
}
.pl-clean-brand-header button {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}
.pl-clean-brand-header span[style*="box-shadow"] {
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Clean Form Inputs & Buttons */
form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
form select,
form textarea {
  min-height: 46px;
  border-radius: 12px !important;
  border: 1.5px solid #cbd5e1 !important;
  background-color: #f8fafc !important;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease !important;
}
form input:focus,
form select:focus,
form textarea:focus {
  background-color: #ffffff !important;
  border-color: var(--pl-blue) !important;
  box-shadow: 0 0 0 3.5px rgba(29, 78, 216, 0.14) !important;
  outline: none !important;
}
button.pl-auth-login-submit {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.24) !important;
}
button.pl-auth-register-submit {
  background: linear-gradient(135deg, #156736 0%, #059669 100%) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 18px rgba(21, 103, 54, 0.24) !important;
}

/* 9. Clean Minimal Live Activity Contact Cards & Simple 7 Daily Reviews */
.pl-card-blue-accent {
  border: 1px solid #dbeafe !important;
  border-left: 4px solid var(--pl-blue) !important;
  background: #ffffff !important;
  border-radius: 14px !important;
}
.pl-card-green-accent {
  border: 1px solid #d1fae5 !important;
  border-left: 4px solid var(--pl-green) !important;
  background: #ffffff !important;
  border-radius: 14px !important;
}
.pl-card-red-accent {
  border: 1px solid #fee2e2 !important;
  border-left: 4px solid var(--pl-red) !important;
  background: #ffffff !important;
  border-radius: 14px !important;
}

.pl-speed-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 340px;
}
.pl-daily-review-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 10px;
}
.pl-daily-review-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 13px;
}
.pl-rev-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.pl-rev-name {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}
.pl-rev-stars {
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 800;
  flex-shrink: 0;
}
.pl-rev-body {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.55;
  margin: 0;
}

/* 10. Modern Clean White Frosted Bottom Navigation Bar (replaces heavy black bar!) */
nav.fixed.bottom-0 {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-top: 2px solid transparent !important;
  background-image: linear-gradient(rgba(255,255,255,0.98), rgba(255,255,255,0.98)), var(--pl-tricolor) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08) !important;
}
nav.fixed.bottom-0 button,
nav.fixed.bottom-0 a {
  color: #475569 !important;
}
nav.fixed.bottom-0 button[class*="bg-emerald"],
nav.fixed.bottom-0 button[class*="text-emerald"] {
  background: #ecfdf5 !important;
  color: #156736 !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
}

/* 11. Floating Install App Icon stacked cleanly ABOVE Floating Chat Icon on the right */
.pl-floating-chat-btn {
  right: max(14px, calc(50% - 226px)) !important;
  bottom: 96px !important;
}
#ux-pwa-install-pill {
  left: auto !important;
  right: max(14px, calc(50% - 226px)) !important;
  bottom: 184px !important;
  transform: scale(0.88) !important;
  transform-origin: right bottom !important;
}

@keyframes hoSeaWave {
  0%, 55%, 100% { transform: translateY(0px) scale(0.92); opacity: 0.38; }
  22% { transform: translateY(-6px) scale(1.12); opacity: 1; }
}
.ho-wave-dot {
  animation-name: hoSeaWave !important;
  animation-duration: 0.92s !important;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
  animation-iteration-count: infinite !important;
}
.ho-wave-dot:nth-child(1) { animation-delay: 0ms !important; }
.ho-wave-dot:nth-child(2) { animation-delay: 145ms !important; }
.ho-wave-dot:nth-child(3) { animation-delay: 290ms !important; }
