/**
 * FinAuto Modern Theme — layered on top of Anyar / style.css
 */

:root {
  --fa-primary: #0F4C81;
  --fa-primary-dark: #0a3558;
  --fa-secondary: #00A676;
  --fa-accent: #00A676;
  --fa-accent-bright: #34d399;
  --fa-gold: #D4AF37;
  --fa-gold-light: #e8c547;
  --fa-surface: #F8FAFC;
  --fa-surface-alt: #f0f9ff;
  --fa-text: #1F2937;
  --fa-text-muted: #64748b;
  --fa-gradient-hero: linear-gradient(135deg, #0F4C81 0%, #0a5a8c 45%, #00A676 100%);
  --fa-gradient-accent: linear-gradient(135deg, #00A676, #0F4C81);
  --fa-gradient-gold: linear-gradient(135deg, #D4AF37, #c49a2c);
  --fa-shadow-sm: 0 1px 3px rgba(8, 47, 73, 0.08);
  --fa-shadow-md: 0 8px 30px rgba(8, 47, 73, 0.12);
  --fa-shadow-lg: 0 20px 60px rgba(8, 47, 73, 0.18);
  --fa-radius: 16px;
  --fa-radius-sm: 10px;
  --fa-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography */
body {
  font-family: "Inter", "Open Sans", sans-serif;
  color: var(--fa-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Plus Jakarta Sans", "Raleway", sans-serif;
}

a {
  color: var(--fa-accent);
}

a:hover {
  color: #0284c7;
}

/* Top bar */
#topbar {
  background: var(--fa-primary-dark);
  height: 42px;
  font-size: 13px;
}

#topbar .contact-info i {
  color: var(--fa-accent-bright);
}

#topbar .cta a {
  background: var(--fa-gradient-gold);
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 5px 18px;
}

#topbar .cta a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

#topbar.topbar-scrolled {
  top: -42px;
}

/* Header */
#header {
  top: 42px;
  height: 72px;
  background: rgba(8, 47, 73, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#header.header-scrolled {
  background: rgba(8, 47, 73, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--fa-shadow-md);
}

#header .logo {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.35rem;
}

#header .logo img {
  max-height: 40px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.navbar > ul > li > a:before {
  background: var(--fa-gradient-accent);
  height: 3px;
  border-radius: 2px;
  bottom: -2px;
}

.navbar .nav-cta a {
  background: linear-gradient(135deg, #00A676, #059669) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 24px !important;
  font-weight: 600 !important;
  margin-left: 8px;
}

.navbar .nav-cta a:before {
  display: none !important;
}

.navbar .nav-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

/* Hero */
#hero.hero-modern {
  height: auto;
  min-height: 92vh;
  padding: 140px 0 80px;
  background: var(--fa-gradient-hero);
  overflow: hidden;
}

#hero.hero-modern:before {
  background: transparent;
}

#hero .hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

#hero .hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: fa-float 8s ease-in-out infinite;
}

#hero .hero-bg-shapes .shape-1 {
  width: 500px;
  height: 500px;
  background: #22d3ee;
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

#hero .hero-bg-shapes .shape-2 {
  width: 400px;
  height: 400px;
  background: #3b82f6;
  bottom: 10%;
  left: -8%;
  animation-delay: -3s;
}

#hero .hero-bg-shapes .shape-3 {
  width: 250px;
  height: 250px;
  background: #f59e0b;
  top: 40%;
  left: 40%;
  animation-delay: -5s;
  opacity: 0.2;
}

@keyframes fa-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}

#hero .hero-grid {
  position: relative;
  z-index: 2;
}

#hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

#hero .hero-badge i {
  color: var(--fa-gold-light);
}

#hero .hero-title {
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

#hero .hero-title__accent {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

#hero .hero-title .highlight {
  background: linear-gradient(90deg, #fbbf24, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 36px;
}

#hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

#hero .btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00A676, #059669);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  transition: var(--fa-transition);
  box-shadow: 0 8px 24px rgba(0, 166, 118, 0.35);
}

#hero .btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.5);
  color: #fff;
}

#hero .btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  transition: var(--fa-transition);
}

#hero .btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

#hero .btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 14px;
  padding: 14px 24px;
  transition: var(--fa-transition);
}

#hero .btn-hero-outline:hover {
  color: var(--fa-gold-light);
}

#hero .hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

#hero .hero-stat {
  text-align: center;
}

#hero .hero-stat .stat-value {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
}

#hero .hero-stat .stat-label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  white-space: nowrap;
}

#hero .hero-visual {
  position: relative;
}

#hero .hero-card-stack {
  position: relative;
  padding: 20px;
}

#hero .hero-feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--fa-radius);
  padding: 24px;
  color: #fff;
  transition: var(--fa-transition);
}

#hero .hero-feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: var(--fa-shadow-lg);
}

#hero .hero-feature-card i {
  font-size: 28px;
  color: var(--fa-gold-light);
  margin-bottom: 12px;
  display: block;
}

#hero .hero-feature-card h5 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

#hero .hero-feature-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  width: 100%;
}

@media (max-width: 991px) {
  #hero.hero-modern {
    min-height: auto;
    padding: 120px 0 60px;
    text-align: center;
  }

  #hero .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  #hero .hero-actions {
    justify-content: center;
  }

  #hero .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  #hero .hero-visual {
    margin-top: 40px;
  }
}

/* Section titles */
.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--fa-primary);
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--fa-gradient-accent);
  border-radius: 2px;
  margin: 12px auto 0;
}

.section-title p {
  font-style: normal;
  color: var(--fa-text-muted);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 16px auto 0;
}

.section-bg {
  background: var(--fa-surface-alt);
}

/* Feature cards */
.fa-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.fa-feature-card {
  background: #fff;
  border-radius: var(--fa-radius);
  padding: 28px;
  border: 1px solid #e2e8f0;
  transition: var(--fa-transition);
  height: 100%;
}

.fa-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--fa-shadow-md);
  border-color: var(--fa-accent);
}

.fa-feature-card .card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--fa-gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.fa-feature-card .card-icon i {
  font-size: 24px;
  color: #fff;
}

.fa-feature-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--fa-primary);
  margin-bottom: 10px;
}

.fa-feature-card p,
.fa-feature-card li {
  font-size: 14px;
  color: var(--fa-text-muted);
  line-height: 1.6;
}

.fa-feature-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fa-feature-card ul li {
  padding: 6px 0 6px 24px;
  position: relative;
}

.fa-feature-card ul li i {
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--fa-accent);
}

/* Services section */
.services {
  background: var(--fa-surface);
}

.services .btn-demo {
  background: var(--fa-gradient-accent);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  transition: var(--fa-transition);
}

.services .btn-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35);
  color: #fff;
}

/* CTA band */
.cta {
  background: var(--fa-gradient-hero);
  position: relative;
  overflow: hidden;
}

.cta:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta .cta-btn {
  background: var(--fa-gradient-gold);
  border: none;
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 28px;
  transition: var(--fa-transition);
}

.cta .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

/* Why trust icon boxes */
.why-trust .icon-box {
  background: #fff;
  border-radius: var(--fa-radius);
  border: 1px solid #e2e8f0;
  padding: 32px 28px;
  transition: var(--fa-transition);
  height: 100%;
}

.why-trust .icon-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--fa-shadow-md);
  border-color: transparent;
}

.why-trust .icon-box i {
  font-size: 36px;
  background: var(--fa-gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  display: block;
}

.why-trust .icon-box h4 a {
  color: var(--fa-primary);
  font-weight: 700;
}

/* Pricing */
.pricing .box {
  border-radius: var(--fa-radius);
  border: 1px solid #e2e8f0;
  transition: var(--fa-transition);
  overflow: hidden;
}

.pricing .box:hover {
  transform: translateY(-8px);
  box-shadow: var(--fa-shadow-lg);
}

.pricing .box.featured {
  border: 2px solid var(--fa-accent);
  box-shadow: var(--fa-shadow-md);
  position: relative;
}

.pricing .box.featured:before {
  content: "Popular";
  position: absolute;
  top: 16px;
  right: -32px;
  background: var(--fa-gradient-gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 40px;
  transform: rotate(45deg);
  letter-spacing: 0.5px;
}

.pricing .box h3 {
  color: var(--fa-primary);
  font-weight: 700;
}

.pricing .box h4 {
  color: var(--fa-accent);
  font-weight: 800;
}

.pricing .box .buy-btn,
.pricing .box input[type="submit"] {
  background: var(--fa-gradient-accent) !important;
  border: none !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  padding: 10px 28px !important;
  transition: var(--fa-transition) !important;
}

.pricing .box .buy-btn:hover,
.pricing .box input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
}

/* Values / icon boxes */
.icon-boxes .icon-box {
  border-radius: var(--fa-radius);
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: var(--fa-transition);
  padding: 28px 20px;
}

.icon-boxes .icon-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--fa-shadow-md);
}

.icon-boxes .icon-box .title a {
  color: var(--fa-primary);
  font-weight: 700;
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  border-radius: var(--fa-radius);
  padding: 32px;
  border: 1px solid #e2e8f0;
  height: 100%;
  position: relative;
  transition: var(--fa-transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fa-shadow-md);
}

.testimonial-card .quote-icon {
  font-size: 40px;
  color: var(--fa-accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.testimonial-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fa-text-muted);
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-card .author h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--fa-primary);
  margin-bottom: 4px;
}

.testimonial-card .author span {
  font-size: 13px;
  color: var(--fa-accent);
  font-weight: 500;
}

/* FAQ */
.faq .faq-list li {
  border-radius: var(--fa-radius-sm);
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  overflow: hidden;
}

.faq .faq-list a {
  color: var(--fa-primary);
  font-weight: 600;
}

.faq .faq-list .icon-help {
  color: var(--fa-accent);
}

/* Contact */
.contact .info {
  background: #fff;
  border-radius: var(--fa-radius);
  padding: 32px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--fa-shadow-sm);
}

.contact .info i {
  color: var(--fa-accent);
}

.contact .map-embed {
  border-radius: var(--fa-radius);
  overflow: hidden;
  box-shadow: var(--fa-shadow-md);
  border: 1px solid #e2e8f0;
}

.contact .map-embed iframe {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
}

/* Video box */
.why-us .video-box {
  background: url("../images/how-it-works.jpeg") center center / cover no-repeat;
  border-radius: var(--fa-radius);
  overflow: hidden;
  box-shadow: var(--fa-shadow-lg);
  min-height: 400px;
}

/* Footer */
#footer {
  background: var(--fa-primary-dark);
}

#footer .footer-top {
  padding: 60px 0 30px;
}

#footer h3, #footer h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
}

#footer .social-links a {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--fa-transition);
}

#footer .social-links a:hover {
  background: var(--fa-accent);
  transform: translateY(-3px);
}

/* Back to top & preloader */
.back-to-top {
  background: var(--fa-gradient-accent);
}

#preloader:before {
  border-color: var(--fa-accent);
  border-top-color: #e0f2fe;
}

/* WhatsApp float */
.float {
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4) !important;
  transition: var(--fa-transition);
}

.float:hover {
  transform: scale(1.08);
}

/* Accordion list in why-us */
.why-us .accordion-list ul li {
  padding: 12px 16px 12px 36px;
  background: #fff;
  border-radius: var(--fa-radius-sm);
  margin-bottom: 8px;
  border: 1px solid #e2e8f0;
  position: relative;
  font-size: 14px;
  transition: var(--fa-transition);
}

.why-us .accordion-list ul li:before {
  content: "\ea5e";
  font-family: "remixicon";
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--fa-accent);
}

.why-us .accordion-list ul li:hover {
  border-color: var(--fa-accent);
  box-shadow: var(--fa-shadow-sm);
}

/* ============================================================
   Logged-in application layout (layout.html)
   ============================================================ */

.fa-app-body {
  background: var(--fa-surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.fa-app-navbar {
  background: var(--fa-gradient-hero);
  padding: 0.6rem 0;
  box-shadow: var(--fa-shadow-md);
}

.fa-app-nav-container {
  max-width: 1400px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.fa-app-brand img {
  height: 36px;
  width: auto;
}

.fa-app-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.fa-app-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.fa-app-menu .nav-link,
.fa-app-user-menu .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  font-size: 14px;
  padding: 0.5rem 0.9rem !important;
  border-radius: 8px;
  transition: var(--fa-transition);
}

.fa-app-menu .nav-item.active .nav-link,
.fa-app-menu .nav-link:hover,
.fa-app-user-menu .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
}

.fa-app-menu .dropdown-menu,
.fa-app-user-menu .dropdown-menu {
  border: none;
  border-radius: var(--fa-radius-sm);
  box-shadow: var(--fa-shadow-md);
  padding: 0.5rem 0;
}

.fa-app-menu .dropdown-item,
.fa-app-user-menu .dropdown-item {
  font-size: 14px;
  padding: 0.55rem 1.25rem;
  color: var(--fa-text);
}

.fa-app-menu .dropdown-item:hover,
.fa-app-user-menu .dropdown-item:hover {
  background: var(--fa-surface-alt);
  color: var(--fa-primary);
}

.fa-user-toggle {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.fa-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.fa-app-main {
  flex: 1;
  padding: 2rem 0 3rem;
}

.fa-app-container {
  max-width: 1400px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.fa-app-footer {
  background: var(--fa-primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 1.25rem 0;
  font-size: 13px;
  margin-top: auto;
}

.fa-app-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.fa-app-footer a:hover {
  color: var(--fa-accent-bright);
}

/* Flash messages in app */
.fa-app-body div.w2p_flash.alert {
  top: 80px;
  right: 24px;
  border-radius: var(--fa-radius-sm);
  box-shadow: var(--fa-shadow-md);
  border: none;
}

/* Page header */
.fa-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.fa-page-header h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--fa-primary);
  margin-bottom: 0.35rem;
}

.fa-page-header p {
  color: var(--fa-text-muted);
  margin: 0;
  font-size: 15px;
}

/* Dashboard cards */
.fa-dash-card {
  background: #fff;
  border-radius: var(--fa-radius);
  border: 1px solid #e2e8f0;
  box-shadow: var(--fa-shadow-sm);
  overflow: hidden;
  transition: var(--fa-transition);
}

.fa-dash-card:hover {
  box-shadow: var(--fa-shadow-md);
}

.fa-dash-card-highlight {
  border-top: 4px solid var(--fa-accent);
}

.fa-dash-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(to right, #f8fafc, #fff);
}

.fa-dash-card-header i {
  font-size: 22px;
  color: var(--fa-accent);
  flex-shrink: 0;
}

.fa-dash-card-header h4,
.fa-dash-card-header h5 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  color: var(--fa-primary);
  font-size: 1.05rem;
}

.fa-dash-card-header h5 {
  font-size: 0.95rem;
}

.fa-dash-subtitle {
  display: block;
  font-size: 13px;
  color: var(--fa-text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.fa-dash-card-body {
  padding: 1.25rem 1.5rem;
}

.fa-dash-card-compact .fa-dash-card-body {
  padding: 1rem 1.25rem;
}

.fa-dash-card-wide .fa-dash-card-body {
  padding: 0;
}

.fa-dash-card-wide .fa-dash-card-body .web2py_grid,
.fa-dash-card-wide .fa-dash-card-body form {
  margin: 0;
}

.fa-dash-actions {
  margin-top: 1rem;
}

.fa-dash-empty {
  color: var(--fa-text-muted);
  margin-bottom: 1rem;
}

.fa-btn-accent,
.fa-app-body .btn-info {
  background: var(--fa-gradient-accent) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 50px !important;
  padding: 0.5rem 1.25rem !important;
  transition: var(--fa-transition);
}

.fa-btn-accent:hover,
.fa-app-body .btn-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
  color: #fff !important;
}

/* Tables inside dashboard */
.fa-dash-card .table {
  margin-bottom: 0;
  font-size: 14px;
}

.fa-dash-card .table th {
  color: var(--fa-primary);
  font-weight: 600;
  border-top: none;
  white-space: nowrap;
}

.fa-dash-card .table td {
  color: var(--fa-text);
  vertical-align: middle;
}

/* SQLFORM grids */
.fa-app-body .web2py_grid {
  border: none;
  border-radius: 0;
}

.fa-app-body .web2py_grid table {
  margin-bottom: 0;
}

.fa-app-body .web2py_grid thead th {
  background: var(--fa-surface-alt);
  color: var(--fa-primary);
  font-weight: 600;
  font-size: 13px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.fa-app-body .web2py_grid tbody td {
  font-size: 14px;
  vertical-align: middle;
}

.fa-app-body .web2py_grid .odd {
  background: #fff;
}

.fa-app-body .web2py_grid .even {
  background: #f8fafc;
}

.fa-app-body .web2py_paginator,
.fa-app-body .web2py_counter {
  padding: 0.75rem 1.5rem;
  font-size: 13px;
  color: var(--fa-text-muted);
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.fa-app-body .web2py_grid a {
  color: var(--fa-accent);
  font-weight: 500;
}

.fa-app-body .web2py_grid a:hover {
  color: #0284c7;
}

.fa-app-body .btn-primary {
  background: var(--fa-gradient-accent);
  border: none;
  border-radius: 8px;
  font-weight: 600;
}

.fa-app-body .btn-secondary,
.fa-app-body .btn-default {
  border-radius: 8px;
}

.fa-app-body .form-control {
  border-radius: 8px;
  border-color: #e2e8f0;
}

.fa-app-body .form-control:focus {
  border-color: var(--fa-accent);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

@media (max-width: 991px) {
  .fa-app-navbar .navbar-collapse {
    background: rgba(8, 47, 73, 0.98);
    border-radius: var(--fa-radius-sm);
    padding: 1rem;
    margin-top: 0.75rem;
  }

  .fa-page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Web2py grid & form icons (Bootstrap Icons replaces Font Awesome) */
.icon.plus,
.icon.arrowleft,
.icon.download,
.icon.trash,
.icon.pen,
.icon.arrowright,
.icon.magnifier,
.glyphicon {
  display: inline-block;
  font-family: bootstrap-icons !important;
  font-style: normal;
  font-weight: normal !important;
  font-size: 14px;
  line-height: 1;
  vertical-align: -.125em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon.plus:before,
.glyphicon-plus:before { content: "\f4fe"; }

.icon.arrowleft:before,
.glyphicon-arrow-left:before { content: "\f12f"; }

.icon.download:before,
.glyphicon-download:before { content: "\f30a"; }

.icon.trash:before,
.glyphicon-trash:before { content: "\f5de"; }

.icon.pen:before,
.glyphicon-pencil:before { content: "\f4cb"; }

.icon.arrowright:before,
.glyphicon-arrow-right:before { content: "\f138"; }

.icon.magnifier:before,
.glyphicon-zoom-in:before { content: "\f62c"; }

.fa.fa-plus-circle:before {
  font-family: bootstrap-icons !important;
  content: "\f4fa";
}

.fa.fa-minus-circle:before {
  font-family: bootstrap-icons !important;
  content: "\f2e6";
}

.fa-app-body .web2py_grid .row_buttons a,
.fa-app-body .web2py_search_actions a,
.fa-app-body .web2py_console a.button {
  color: var(--fa-primary);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 10px;
  transition: var(--fa-transition);
}

.fa-app-body .web2py_grid .row_buttons a:hover,
.fa-app-body .web2py_search_actions a:hover {
  background: var(--fa-surface-alt);
  border-color: var(--fa-accent);
}

.fa-btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00A676, #059669);
  color: #fff !important;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  transition: var(--fa-transition);
}

.fa-btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 166, 118, 0.35);
  color: #fff !important;
}

.fa-auth-card {
  max-width: 480px;
  margin: 2rem auto;
  background: #fff;
  border-radius: var(--fa-radius);
  border: 1px solid #e2e8f0;
  box-shadow: var(--fa-shadow-md);
  padding: 2rem;
}

.fa-auth-card h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fa-primary);
  margin-bottom: 1.25rem;
}

.fa-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--fa-radius);
  box-shadow: var(--fa-shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.fa-panel h2,
.fa-panel h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--fa-primary);
  font-weight: 700;
}

.fa-company-bar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1.5rem;
  box-shadow: var(--fa-shadow-sm);
}

.fa-company-bar .form-control,
.fa-company-bar select {
  border-radius: 8px;
  border-color: #e2e8f0;
}

.fa-app-errors {
  max-width: 1400px;
  margin: 1rem auto;
  padding: 0 1.5rem;
}

.fa-app-body .main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.fa-app-body .alert {
  border-radius: var(--fa-radius-sm);
  border: none;
}

.fa-app-body .border-success {
  border-color: var(--fa-secondary) !important;
}

.fa-app-body .border-danger {
  border-color: #ef4444 !important;
}

/* Custom action buttons inside SQLFORM grids */
.fa-grid-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--fa-gradient-accent);
  color: #fff !important;
  border: none;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none !important;
  transition: var(--fa-transition);
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.25);
}

.fa-grid-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(6, 182, 212, 0.35);
  color: #fff !important;
}

.fa-grid-action-btn .bi {
  font-size: 14px;
}

.fa-grid-action-btn-icon {
  padding: 8px 10px;
  border-radius: 10px;
}

.fa-grid-action-btn-icon .bi {
  font-size: 16px;
}

.fa-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fa-accent);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.fa-back-link:hover {
  color: #0284c7;
}

.fa-user-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem 1.5rem;
}

.fa-detail-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fa-text-muted);
  margin-bottom: 4px;
}

.fa-detail-value {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--fa-primary);
}

/* Homepage redesign (009) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-aos] { opacity: 1 !important; transform: none !important; }
  #hero .hero-bg-shapes .shape { animation: none !important; }
}

.fa-compliance-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.fa-compliance-badges span {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  color: #fff; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 50px;
}
.fa-hero-laptop {
  position: relative; padding: 12px 12px 28px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 16px 16px 8px 8px; box-shadow: var(--fa-shadow-lg);
}
.fa-hero-laptop::after {
  content: ""; display: block; height: 10px; margin: 12px auto 0; width: 40%;
  background: #334155; border-radius: 0 0 8px 8px;
}
.fa-hero-laptop img { width: 100%; height: auto; border-radius: 6px; display: block; }
.fa-traceability-band { background: var(--fa-primary); color: #fff; padding: 48px 0; text-align: center; }
.fa-traceability-band h2 { color: #fff; font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 800; margin-bottom: 12px; }
.fa-traceability-band p { color: rgba(255,255,255,0.88); max-width: 820px; margin: 0 auto; }
.fa-metrics-band { background: var(--fa-surface); padding: 56px 0; }
.fa-metrics-band .fa-metric { text-align: center; padding: 20px; }
.fa-metrics-band .fa-metric__value {
  display: block; font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; color: var(--fa-primary);
}
.fa-metrics-band .fa-metric__value--phrase {
  font-size: clamp(1rem, 2.4vw, 1.65rem);
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.fa-metrics-band .fa-metric__label { display: block; margin-top: 8px; font-size: 14px; color: var(--fa-text-muted); }
@media (max-width: 399px) {
  .fa-metrics-band .fa-metric__value--phrase {
    font-size: 0.92rem;
  }
}
.fa-workflow-step {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-bottom: 48px;
}
.fa-workflow-step:nth-child(even) { direction: rtl; }
.fa-workflow-step:nth-child(even) > * { direction: ltr; }
.fa-workflow-step img {
  width: 100%; height: auto; border-radius: var(--fa-radius);
  border: 1px solid #e2e8f0; box-shadow: var(--fa-shadow-sm);
}
.fa-audit-hub { background: var(--fa-surface-alt); padding: 64px 0; }
.fa-audit-checklist {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px;
}
.fa-audit-checklist li {
  background: #fff; border: 1px solid #e2e8f0; border-radius: var(--fa-radius-sm);
  padding: 12px 16px 12px 40px; position: relative; font-size: 14px;
}
.fa-audit-checklist li::before {
  content: "\f26e"; font-family: bootstrap-icons; position: absolute;
  left: 14px; top: 12px; color: var(--fa-secondary);
}
.fa-securevault-mock {
  background: #fff; border: 1px solid #e2e8f0; border-radius: var(--fa-radius);
  padding: 20px; box-shadow: var(--fa-shadow-md);
}
.fa-securevault-mock__header {
  display: flex; align-items: center; gap: 8px; font-weight: 700;
  color: var(--fa-primary); margin-bottom: 12px;
}
.fa-btn-demo, .cta .fa-btn-demo {
  background: linear-gradient(135deg, #00A676, #059669) !important; color: #fff !important;
  font-weight: 600; padding: 12px 28px; border-radius: 50px; border: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.fa-btn-demo:hover { transform: translateY(-2px); color: #fff !important; }
.fa-onprem-pointer { font-size: 14px; color: var(--fa-text-muted); margin-top: 24px; }
.fa-values-icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--fa-gradient-accent);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.fa-values-icon i { font-size: 26px; color: #fff; }
.fa-anchor-alias { position: absolute; top: -120px; }
@media (max-width: 991px) {
  .fa-workflow-step, .fa-workflow-step:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
}

