/* ==========================================================================
   STARWAY MODERN UI/UX ENHANCEMENTS - V2
   Modern Fintech Design System - Enterprise Banking & Digital Wealth
   ========================================================================== */

:root {
  --fin-primary: #0A1128;
  --fin-primary-rgb: 10, 17, 40;
  --fin-dark: #070C1E;
  --fin-surface: #0F1A3A;
  --fin-card-bg: #FFFFFF;
  --fin-card-border: #E2E8F0;
  --fin-accent: #1A4DBE;
  --fin-accent-light: #2563EB;
  --fin-accent-glow: rgba(37, 99, 235, 0.25);
  --fin-cyan: #06B6D4;
  --fin-emerald: #10B981;
  --fin-text-head: #000000;
  --fin-text-body: #1E293B;
  --fin-text-muted: #475569;
  --fin-radius-sm: 8px;
  --fin-radius-md: 14px;
  --fin-radius-lg: 20px;
  --fin-radius-xl: 28px;
  --fin-shadow-sm: 0 2px 8px rgba(10, 17, 40, 0.04);
  --fin-shadow-md: 0 12px 30px -10px rgba(10, 17, 40, 0.08);
  --fin-shadow-lg: 0 24px 50px -12px rgba(10, 17, 40, 0.12);
  --fin-shadow-glow: 0 20px 40px -15px rgba(26, 77, 190, 0.35);
  --fin-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   STRICT CONTRAST RULES: Any text on white or light background MUST be black/dark
   -------------------------------------------------------------------------- */
.bg-white, .bg-light, 
.modern-feature-card, 
.contact-info-card, 
.loan-rate-card, 
.contact-form-modern, 
.table-responsive,
.card,
.accordion-item,
section:not(.modern-hero):not(.modern-inner-banner):not(.modern-stats-ribbon):not([style*="background: #0A1128"]):not([style*="background:#0A1128"]) {
  color: #000000 !important;
}

.bg-white p, .bg-white span:not(.btn-primary span):not(.badge-white), .bg-white li, 
.bg-light p, .bg-light span:not(.btn-primary span):not(.badge-white), .bg-light li,
.modern-feature-card p, .contact-info-card p, .loan-rate-card p {
  color: #1E293B !important;
}

.bg-white h1, .bg-white h2, .bg-white h3, .bg-white h4, .bg-white h5, .bg-white h6,
.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5, .bg-light h6,
.modern-feature-card h4, .modern-feature-card h5, .contact-info-card h5, .loan-rate-card h5 {
  color: #000000 !important;
  font-weight: 700;
}

/* Specific Badge Rule: "Personal", "Wealth Builder", "Commercial" MUST be black */
.ecosystem-badge {
  display: inline-block !important;
  padding: 6px 16px !important;
  background: #E2E8F0 !important;
  color: #000000 !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  border-radius: 9999px !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  border: 1px solid #CBD5E1 !important;
}

/* Buttons on white/light background MUST have black text */
.btn-open-account-white,
.btn-open-account-white *,
.btn-light,
.btn-light *,
a.btn-light,
a.btn-light *,
.btn-light:hover,
.btn-light:hover *,
.btn-light:focus,
.btn-light:active {
  color: #000000 !important;
  background-color: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

.btn-open-account-white:hover,
.btn-open-account-white:hover * {
  background-color: #0F172A !important;
  color: #FFFFFF !important;
  border-color: #0F172A !important;
}

.btn-open-account-white i,
.btn-light i {
  color: #000000 !important;
}

.btn-open-account-white:hover i {
  color: #FFFFFF !important;
}

/* Secondary outline buttons */
.btn-outline-primary {
  color: #000000 !important;
  border: 2px solid #1A4DBE !important;
  background-color: #FFFFFF !important;
  font-weight: 700 !important;
  transition: var(--fin-transition);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #FFFFFF !important;
  background-color: #1A4DBE !important;
  border-color: #1A4DBE !important;
}

/* Primary Solid Buttons */
.btn-primary,
.hero-btn-primary {
  background: linear-gradient(135deg, #1A4DBE 0%, #2563EB 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border: none !important;
}

.btn-primary:hover,
.hero-btn-primary:hover {
  background: linear-gradient(135deg, #143C96 0%, #1D4ED8 100%) !important;
  color: #FFFFFF !important;
}

/* --------------------------------------------------------------------------
   Header & Navigation Modernization
   -------------------------------------------------------------------------- */
.header-section {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: var(--fin-transition);
}

.header-section.header-fixed {
  background: #FFFFFF !important;
  box-shadow: 0 10px 30px rgba(10, 17, 40, 0.08) !important;
  border-bottom: 1px solid #CBD5E1;
}

.header-section .navbar {
  padding: 14px 0 !important;
}

.header-section .navbar .navbar-brand {
  padding: 0 !important;
  display: flex;
  align-items: center;
}

.header-section .navbar .navbar-brand img.logo {
  height: 60px !important;
  max-height: 70px !important;
  width: auto !important;
  object-fit: contain !important;
  transition: transform 0.2s ease;
}

.header-section .navbar .navbar-brand:hover img.logo {
  transform: scale(1.03);
}

.header-section .navbar-nav .nav-item .nav-link {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #0F172A !important;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: var(--fin-transition);
}

.header-section .navbar-nav .nav-item .nav-link:hover,
.header-section .navbar-nav .nav-item .nav-link.active {
  color: var(--fin-accent-light) !important;
  background: rgba(37, 99, 235, 0.06);
}

.header-section .navbar-nav .dropdown-menu {
  border: 1px solid #CBD5E1 !important;
  border-radius: var(--fin-radius-md) !important;
  box-shadow: 0 20px 40px rgba(10, 17, 40, 0.12) !important;
  padding: 10px !important;
  background: #FFFFFF !important;
}

.header-section .navbar-nav .dropdown-menu li a.dropdown-item,
.header-section .navbar-nav .dropdown-menu li a.nav-link {
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 10px 16px !important;
  border-radius: 8px !important;
  color: #0F172A !important;
}

.header-section .navbar-nav .dropdown-menu li a.dropdown-item:hover,
.header-section .navbar-nav .dropdown-menu li a.nav-link:hover {
  background: #F1F5F9 !important;
  color: var(--fin-accent) !important;
}

.header-action .cmn-btn {
  background: linear-gradient(135deg, #1A4DBE 0%, #2563EB 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  padding: 11px 24px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28) !important;
}

.header-action .cmn-btn.second {
  background: transparent !important;
  color: #0F172A !important;
  border: 1.5px solid #CBD5E1 !important;
  box-shadow: none !important;
}

.header-action .cmn-btn.second:hover {
  background: #F1F5F9 !important;
  color: #1A4DBE !important;
  border-color: #1A4DBE !important;
}

/* --------------------------------------------------------------------------
   STRICT HERO RULES: Every text on Hero Section MUST BE WHITE
   -------------------------------------------------------------------------- */
.modern-hero,
.modern-hero * {
  color: #FFFFFF !important;
}

.modern-hero {
  position: relative;
  background: linear-gradient(175deg, #070D1E 0%, #0A1432 50%, #0E1D45 100%) !important;
  padding: 160px 0 100px;
  overflow: hidden;
  z-index: 1;
}

.modern-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, rgba(6, 182, 212, 0.15) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

.modern-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.hero-mesh-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF !important;
  margin-bottom: 24px;
}

.hero-badge-pill * {
  color: #FFFFFF !important;
}

.hero-badge-pill .pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: #34D399;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-headline {
  font-size: 54px;
  line-height: 1.15;
  font-weight: 800;
  color: #FFFFFF !important;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

.hero-headline span.gradient-text {
  background: linear-gradient(135deg, #93C5FD 0%, #67E8F9 50%, #6EE7B7 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline;
}

.hero-subtext {
  font-size: 19px;
  line-height: 1.6;
  color: #FFFFFF !important;
  font-weight: 400;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-cta-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 36px;
  border-radius: 12px;
  box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.hero-btn-primary * {
  color: #FFFFFF !important;
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.hero-btn-secondary * {
  color: #FFFFFF !important;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #FFFFFF !important;
  font-weight: 600;
}

.hero-trust-item i {
  color: #34D399 !important;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   Fintech Visual Mockup UI in Hero (Right Column)
   -------------------------------------------------------------------------- */
.hero-visual-card {
  position: relative;
  padding: 24px;
}

.fintech-main-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--fin-radius-xl);
  padding: 32px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.metal-card-preview {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 50%, #020617 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--fin-radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
}

.metal-card-preview * {
  color: #FFFFFF !important;
}

.card-number-masked {
  font-family: 'Courier New', monospace;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #FFFFFF !important;
  margin-bottom: 20px;
}

.portfolio-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--fin-radius-md);
  margin-bottom: 18px;
}

.portfolio-metric-row * {
  color: #FFFFFF !important;
}

.floating-activity-pill {
  position: absolute;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2;
}

.floating-activity-pill * {
  color: #FFFFFF !important;
}

.floating-activity-pill.pill-top-right {
  top: 10px;
  right: -15px;
}

.floating-activity-pill.pill-bottom-left {
  bottom: 0px;
  left: -20px;
}

/* --------------------------------------------------------------------------
   STRICT INNER BANNER HERO RULES: All text MUST BE WHITE
   -------------------------------------------------------------------------- */
.modern-inner-banner,
.modern-inner-banner * {
  color: #FFFFFF !important;
}

.modern-inner-banner {
  background: linear-gradient(175deg, #070D1E 0%, #0A1432 60%, #10214D 100%) !important;
  padding: 170px 0 90px !important;
  position: relative;
  overflow: hidden;
}

.modern-inner-banner h1.inner-title {
  font-size: 46px;
  line-height: 1.2;
  font-weight: 800;
  color: #FFFFFF !important;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.modern-inner-banner p.inner-desc {
  font-size: 18px;
  line-height: 1.6;
  color: #FFFFFF !important;
  max-width: 650px;
  margin-bottom: 24px;
}

.modern-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF !important;
}

.modern-breadcrumb a {
  color: #FFFFFF !important;
  text-decoration: underline;
}

.modern-breadcrumb span.current {
  color: #93C5FD !important;
}

/* --------------------------------------------------------------------------
   Modern High-Conversion Bottom CTA Banner
   -------------------------------------------------------------------------- */
.modern-cta-banner {
  background: linear-gradient(135deg, #0A1128 0%, #111C44 60%, #1A4DBE 100%) !important;
  border-radius: var(--fin-radius-xl) !important;
  padding: 56px 48px !important;
  box-shadow: 0 25px 60px -15px rgba(10, 17, 40, 0.25) !important;
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.modern-cta-banner h2 {
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

.modern-cta-banner p {
  color: #E2E8F0 !important;
}

/* --------------------------------------------------------------------------
   MODERN FOOTER: Light Grey Background for Dark Footer Logo
   -------------------------------------------------------------------------- */
.footer-section {
  background: #E9ECEF !important;
  color: #1E293B !important;
  border-top: 1px solid #CBD5E1 !important;
  padding-top: 80px !important;
  padding-bottom: 30px !important;
}

.footer-section * {
  color: #1E293B;
}

.footer-section .footer-box h5 {
  color: #000000 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  margin-bottom: 20px !important;
  letter-spacing: 0.02em;
}

.footer-section .footer-box img {
  height: 70px !important;
  max-height: 80px !important;
  width: auto !important;
  object-fit: contain !important;
  margin-bottom: 15px;
}

.footer-section .footer-box p {
  color: #334155 !important;
  font-size: 15px;
  line-height: 1.6;
}

.footer-section .footer-link li {
  margin-bottom: 10px;
}

.footer-section .footer-link li a {
  color: #334155 !important;
  font-size: 15px !important;
  font-weight: 500;
  transition: var(--fin-transition);
}

.footer-section .footer-link li a:hover {
  color: #1A4DBE !important;
  font-weight: 700;
  padding-left: 6px;
}

.footer-section .social-link a {
  width: 40px;
  height: 40px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1E293B !important;
  margin-right: 8px;
  transition: var(--fin-transition);
}

.footer-section .social-link a:hover {
  background: #1A4DBE;
  color: #FFFFFF !important;
  border-color: #1A4DBE;
}

.footer-section .footer-bottom {
  border-top: 1px solid #CBD5E1 !important;
  padding-top: 24px !important;
  margin-top: 50px !important;
}

.footer-section .footer-bottom p,
.footer-section .footer-bottom a {
  color: #475569 !important;
  font-size: 14px;
}

.footer-section .footer-bottom a:hover {
  color: #1A4DBE !important;
}

/* --------------------------------------------------------------------------
   Modern Bento Cards & Feature Grids
   -------------------------------------------------------------------------- */
.modern-feature-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: var(--fin-radius-lg);
  padding: 36px 30px;
  height: 100%;
  transition: var(--fin-transition);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(10, 17, 40, 0.04);
}

.modern-feature-card:hover {
  transform: translateY(-6px);
  border-color: #94A3B8 !important;
  box-shadow: 0 20px 40px -10px rgba(10, 17, 40, 0.1);
}

.modern-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.modern-icon-box.blue {
  background: rgba(37, 99, 235, 0.12);
  color: #1A4DBE !important;
}

.modern-icon-box.green {
  background: rgba(16, 185, 129, 0.12);
  color: #059669 !important;
}

.modern-icon-box.cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #0891B2 !important;
}

.modern-icon-box.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #D97706 !important;
}

/* --------------------------------------------------------------------------
   Responsive Tweaks
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .hero-headline {
    font-size: 38px;
  }
  .modern-inner-banner {
    padding: 130px 0 60px !important;
  }
  .modern-inner-banner h1.inner-title {
    font-size: 32px;
  }
}
