.section-py {
  padding: 6.25rem 0;
}
@media (max-width: 1199.98px) {
  .section-py {
    padding: 4rem 0;
  }
}
@media (max-width: 767.98px) {
  .section-py {
    padding: 3rem 0;
  }
}

.first-section-pt {
  padding-top: 10.3rem;
}
@media (max-width: 1199.98px) {
  .first-section-pt {
    padding-top: 6.5rem;
  }
}

.card[class*=card-hover-border-] {
  transition: all 0.2s ease-in-out;
}

.banner-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: left;
  z-index: -1;
}

.bg-icon-left,
.bg-icon-right {
  position: relative;
}
.bg-icon-left::before,
.bg-icon-right::before {
  position: absolute;
  display: block;
  top: 0;
}

.bg-icon-left::before {
  left: 0;
}
@media (max-width: 575.98px) {
  .bg-icon-left::before {
    left: 0.625rem;
  }
}

.bg-icon-right::before {
  right: 0;
}
@media (max-width: 575.98px) {
  .bg-icon-right::before {
    right: 0.625rem;
  }
}

.dropdown-toggle::after {
  margin-top: -0.28em;
  width: 0.42em;
  height: 0.42em;
  border: 1px solid !important;
  border-top: 0 !important;
  border-left: 0 !important;
  transform: rotate(45deg);
}

.light-style body {
  background-color: #fff;
}

.dark-style body {
  background-color: #30334e;
}
.dark-style .landing-light-mode {
  display: none;
}
.dark-style .landing-dark-mode {
  display: block;
}

nav.layout-navbar {
  backdrop-filter: unset !important;
  height: auto !important;
  z-index: 999 !important;
}

.navbar.landing-navbar {
  box-shadow: none;
  transition: all 0.2s ease-in-out;
  transform: unset !important;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom-right-radius: 0.625rem;
  border-bottom-left-radius: 0.625rem;
}
.navbar.landing-navbar .navbar-nav .nav-link {
  padding: 0.5rem 0.8375rem;
}
@media (max-width: 1199.98px) {
  .navbar.landing-navbar .navbar-nav .nav-link {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}
.navbar.landing-navbar .navbar-nav .nav-link .menu-icon, .navbar.landing-navbar .navbar-nav .nav-link .menu-icon::before {
  font-size: 0.5rem;
}
@media (min-width: 992px) {
  .navbar.landing-navbar .navbar-nav .nav-item.mega-dropdown > .dropdown-menu {
    max-width: 1300px;
    inset-inline-start: 50% !important;
    transform: translateX(-50%);
    top: 100%;
  }
}
@media (max-width: 991.98px) {
  .navbar.landing-navbar .navbar-nav .nav-item.mega-dropdown > .dropdown-menu {
    background: transparent;
    box-shadow: none;
    border: none;
  }
}
.navbar.landing-navbar .navbar-nav .nav-item.mega-dropdown > .dropdown-menu .mega-dropdown-link {
  padding-left: 0;
  padding-right: 0;
}
.navbar.landing-navbar .navbar-nav .nav-item .nav-img-col,
.navbar.landing-navbar .navbar-nav .nav-item .nav-img-col img {
  border-radius: 0.625rem;
}
@media (max-width: 991.98px) {
  .navbar.landing-navbar .landing-nav-menu .navbar-nav .nav-item.dropdown .dropdown-menu {
    position: unset !important;
    box-shadow: none;
    border: none;
    margin: 0;
    margin-left: 1rem;
  }
}
@media (max-width: 991.98px) {
  .navbar.landing-navbar .landing-menu-overlay {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(38, 43, 67, 0.78);
    transition: all 0.2s ease-in-out;
    z-index: 9998;
  }
  .navbar.landing-navbar .landing-nav-menu {
    position: fixed;
    display: block !important;
    height: 100%;
    max-width: 300px;
    width: 80%;
    inset-inline-start: -100%;
    top: 0;
    overflow-y: auto;
    transition: all 0.3s ease-in-out;
    z-index: 9999;
  }
  .navbar.landing-navbar .landing-nav-menu.show {
    inset-inline-start: 0;
  }
  .navbar.landing-navbar .landing-nav-menu.show ~ .landing-menu-overlay {
    display: block;
  }
}

.light-style .navbar.landing-navbar {
  background-color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.78);
}
.light-style .navbar.landing-navbar.navbar-active {
  box-shadow: 0 0.125rem 0.625rem 0 rgba(38, 43, 67, 0.16);
}
.light-style .navbar.landing-navbar .navbar-brand .navbar-toggler {
  color: #3b4056;
}
.light-style .navbar.landing-navbar .navbar-nav .nav-link {
  color: #3b4056;
}
.light-style .navbar.landing-navbar .navbar-nav .nav-link .menu-icon {
  color: #a8aab4;
}
@media (max-width: 991.98px) {
  .light-style .navbar.landing-navbar .landing-nav-menu {
    background-color: #fff;
  }
}
.light-style .menu-text {
  color: #3b4056;
}

.dark-style .navbar.landing-navbar {
  background-color: #30334e;
  border: 1px solid rgba(48, 51, 78, 0.78);
}
.dark-style .navbar.landing-navbar.navbar-active {
  box-shadow: 0 0.125rem 0.625rem 0 rgba(16, 17, 33, 0.24);
}
.dark-style .navbar.landing-navbar .navbar-brand .navbar-toggler {
  color: #d7d8ed;
}
.dark-style .navbar.landing-navbar .navbar-nav .nav-link {
  color: #d7d8ed;
}
.dark-style .navbar.landing-navbar .navbar-nav .nav-link .menu-icon {
  color: #7b7c95;
}
@media (max-width: 991.98px) {
  .dark-style .navbar.landing-navbar .landing-nav-menu {
    background-color: #30334e;
  }
}
.dark-style .navbar .menu-text {
  color: #d7d8ed;
}

@media (min-width: 992px) {
  [dir=rtl] .navbar.landing-navbar .navbar-nav .nav-item.mega-dropdown > .dropdown-menu {
    transform: translateX(50%);
  }
}

.landing-footer .footer-link {
  transition: all 0.2s ease-in-out;
}
.landing-footer .footer-link:hover {
  opacity: 1;
}
.landing-footer .footer-link,
.landing-footer .footer-text,
.landing-footer .footer-title {
  color: #fff;
}
.landing-footer .footer-link,
.landing-footer .footer-text {
  opacity: 0.78;
}
.landing-footer .app-brand-text.footer-link {
  opacity: 1;
}
.landing-footer .footer-title {
  opacity: 0.92;
}
.landing-footer .footer-top {
  padding: 3rem 0;
}
@media (max-width: 767.98px) {
  .landing-footer .footer-top {
    padding: 3rem 0;
  }
}
.landing-footer .footer-top .footer-bg {
  object-position: center;
}
@media (min-width: 992px) {
  .landing-footer .footer-logo-description {
    max-width: 385px;
  }
}
.landing-footer .footer-bottom {
  background-color: #211b2c;
}
.landing-footer .footer-bottom .footer-text,
.landing-footer .footer-bottom .footer-link {
  opacity: 0.92;
}
.landing-footer .form-floating.form-floating-outline .form-control {
  color: #d7d8ed;
}
.landing-footer .form-floating.form-floating-outline .form-control:focus ~ label:after,
.landing-footer .form-floating.form-floating-outline .form-control:not(:placeholder-shown) ~ label:after {
  background: #241d31 !important;
}

/* UnoPay custom front styles (shared between landing and legal pages) */
:root {
  --primary: #666CFF;
  --primary-light: #8B8FFF;
  --primary-dark: #4B50E6;
  --secondary: #00D4FF;
  --accent: #22C55E;
  --background: #F8F7FA;
  --foreground: #1E293B;
  --card: #FFFFFF;
  --muted: #F1F0F4;
  --muted-foreground: #64748B;
  --border: #E2E8F0;
  --gradient-primary: linear-gradient(135deg, #666CFF 0%, #00D4FF 100%);
  --gradient-button: linear-gradient(135deg, #666CFF 0%, #5A5FE6 100%);
  --shadow-sm: 0 2px 8px -2px rgba(100, 116, 139, 0.1);
  --shadow-md: 0 4px 20px -4px rgba(100, 116, 139, 0.15);
  --shadow-lg: 0 10px 40px -10px rgba(102, 108, 255, 0.2);
  --shadow-glow: 0 8px 30px -4px rgba(102, 108, 255, 0.4);
  --font-display: 'Public Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container-max: 1200px;
  --section-padding: 80px;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  /* Bootstrap-compatible vars used in vendor CSS */
  --bs-primary: #666CFF;
  --bs-body-font-family: 'Inter', sans-serif;
  --bs-body-color: #1E293B;
  --bs-body-bg: #F8F7FA;
  --bs-nav-link-padding-x: 1.375rem;
  --bs-nav-link-padding-y: 0.5435rem;
  --bs-nav-link-font-size: 0.9375rem;
  --bs-nav-link-font-weight: 500;
  --bs-nav-link-color: #3b4056;
  --bs-nav-link-hover-color: #666CFF;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20000;
  display: block;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid transparent;
  padding: 28px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(248, 247, 250, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: var(--shadow-sm);
  padding: 16px 0;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 8px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}

.navbar-links {
  display: none;
  gap: 14px;
}

@media (min-width: 1024px) {
  .navbar-links {
    display: flex;
  }
}

.nav-link {
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(102, 108, 255, 0.08);
}

.navbar-actions {
  display: none;
  gap: 18px;
  align-items: center;
}

@media (min-width: 1024px) {
  .navbar-actions {
    display: flex;
  }
}

.btn-outline-nav {
  background: transparent;
  color: var(--foreground);
  border: 2px solid rgba(102, 108, 255, 0.3);
  padding: 10px 18px;
  font-size: 14px;
}

.btn-outline-nav:hover {
  background: rgba(102, 108, 255, 0.05);
  border-color: rgba(102, 108, 255, 0.5);
}

.btn-primary-nav {
  background: var(--gradient-button);
  color: #fff;
  padding: 10px 22px;
  font-size: 14px;
  box-shadow: 0 4px 15px -3px rgba(102, 108, 255, 0.4);
}

.btn-primary-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -3px rgba(102, 108, 255, 0.5);
}

/* Align navbar action buttons with landing */
.navbar-actions .btn-ghost { color: var(--foreground); }
.navbar-actions .btn-ghost:hover { color: var(--foreground); }
.navbar-actions .btn-outline-nav { color: var(--foreground); }
.navbar-actions .btn-outline-nav:hover { color: var(--foreground); }
.navbar-actions .btn-primary-nav { color: #fff; }

/* Base button styles to match landing */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-icon { width: 18px; height: 18px; transition: transform 0.3s ease; }
.btn-icon-left { width: 16px; height: 16px; margin-right: 4px; }
.btn:hover .btn-icon { transform: translateX(4px); }
.btn-primary { background: var(--gradient-button); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 35px -4px rgba(102,108,255,0.5); }
.btn-outline { background: transparent; color: var(--foreground); border: 2px solid rgba(102,108,255,0.3); }
.btn-outline:hover { background: rgba(102,108,255,0.05); border-color: rgba(102,108,255,0.5); }
.btn-ghost { background: transparent; color: var(--muted-foreground); }
.btn-ghost:hover { background: var(--muted); color: var(--foreground); }
.btn-white { background: #fff; color: var(--primary); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-block { width: 100%; }

.footer {
  background: var(--foreground);
  color: white;
  padding: 60px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1.6fr;
    gap: 72px;
  }
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-links-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
  opacity: 1;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Legal pages: match landing visuals */
.legal-hero {
  padding: 140px 0 48px;
  background: linear-gradient(135deg, rgba(102, 108, 255, 0.06) 0%, rgba(0, 212, 255, 0.06) 100%);
  border-bottom: 1px solid var(--border);
}
.legal-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 40px);
  color: var(--foreground);
  margin: 0;
}
.legal-content {
  padding: 48px 0 80px;
  background: var(--background);
}
.legal-content .card {
  background: var(--card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.6);
}
.legal-content .card .card-body {
  line-height: 1.7;
  color: var(--foreground);
}
.legal-content .card .card-body h1 {
  font-size: clamp(22px, 3.5vw, 32px);
  margin-bottom: 16px;
}

/* Mobile menu (shared with landing) */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
}
@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}
.mobile-menu-btn:hover { background: var(--muted); }
.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-menu-btn.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 16px;
  right: 16px;
  background: var(--card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.5);
  padding: 20px;
  z-index: 99999;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}
.mobile-menu.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.mobile-nav-link {
  padding: 12px 16px;
  color: var(--muted-foreground);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.mobile-nav-link:hover {
  color: var(--primary);
  background: rgba(102, 108, 255, 0.05);
}
.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Footer fine-tuning to match landing */
.footer-brand .navbar-logo { margin-bottom: 16px; }
.footer-brand .logo-text {
  color: white;
  background: none;
  -webkit-text-fill-color: white;
}
.footer-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 280px;
}
.footer-email { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,0.75); }
.footer-email a { color: rgba(255,255,255,0.85); }
.footer-email a:hover { color: #fff; }
