/* ==========================================================================
   GLOBAL CSS — FVS OnDemand Pvt. Ltd.
   Preserves exact Champagne & Metallic Shiny Gold 3D SaaS Design & Colors
   ========================================================================== */
:root {
  /* Soft Champagne & Alabaster Gold Palette - High Readability, Low Eye Strain */
  --bg-primary: #FCFBF7;
  --bg-secondary: #F5EFE0;
  --bg-card: rgba(255, 253, 247, 0.9);
  --bg-glass: rgba(255, 252, 242, 0.82);
  --text-dark: #191610;
  --text-body: #423B2C;
  --text-muted: #6E634D;

  /* Shiny Metallic Gold Accents */
  --gold-primary: #C59B27;
  --gold-bright: #E5C158;
  --gold-deep: #8C6910;
  --gold-soft: #F9F1D8;
  --gold-border: rgba(197, 155, 39, 0.32);
  --gold-gradient: linear-gradient(135deg, #B38728 0%, #E6C665 35%, #D4AF37 65%, #9A7215 100%);
  --gold-shine-bg: linear-gradient(135deg, #FFFDF7 0%, #F7EED2 50%, #EFE0B4 100%);
  --gold-pill-bg: linear-gradient(135deg, rgba(212, 175, 55, 0.16) 0%, rgba(243, 229, 171, 0.38) 100%);

  /* 3D Depth Shadows */
  --shadow-3d-sm: 0 8px 20px -4px rgba(140, 105, 16, 0.12), 0 2px 6px -1px rgba(25, 22, 16, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --shadow-3d-md: 0 18px 38px -8px rgba(140, 105, 16, 0.18), 0 6px 14px -3px rgba(25, 22, 16, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  --shadow-3d-lg: 0 28px 60px -12px rgba(140, 105, 16, 0.25), 0 12px 24px -6px rgba(25, 22, 16, 0.08), inset 0 2px 2px rgba(255, 255, 255, 0.95);
  --radius-lg: 20px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(circle at 12% 10%, rgba(229, 193, 88, 0.18) 0%, transparent 38%),
    radial-gradient(circle at 88% 22%, rgba(197, 155, 39, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 50% 85%, rgba(229, 193, 88, 0.12) 0%, transparent 45%);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

p {
  color: var(--text-body);
}

/* Shiny Gold Text Highlight */
.gold-gradient-text {
  background: linear-gradient(135deg, #8A640F 0%, #C59B27 45%, #9B7213 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Top Utility Bar */
.top-utility-bar {
  background: linear-gradient(90deg, #1E1910 0%, #2C2416 50%, #1E1910 100%);
  color: #F6E9C4;
  font-size: 0.84rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.top-utility-bar a {
  color: #F6E9C4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-utility-bar a:hover {
  color: #FFD966;
}

/* Glassmorphic 3D Sticky Header */
.fvs-navbar {
  background: rgba(252, 251, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-border);
  box-shadow: 0 8px 28px rgba(140, 105, 16, 0.09);
  padding: 0.65rem 0;
  transition: all 0.3s ease;
  z-index: 1030;
}

/* Brand Logo Container */
.fvs-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.fvs-logo-img {
  width: 58px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 1.5px solid #D4AF37;
  box-shadow: 0 4px 12px rgba(140, 105, 16, 0.28);
  background-color: #0b0906;
  transition: transform 0.3s ease;
}

.fvs-logo-wrap:hover .fvs-logo-img {
  transform: scale(1.05) rotate(-1deg);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-dark);
  margin: 0;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  display: block;
}

/* Navbar Links */
.fvs-nav-link {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-dark) !important;
  padding: 0.5rem 0.95rem !important;
  border-radius: 10px;
  transition: all 0.22s ease;
  position: relative;
}

.fvs-nav-link:hover, .fvs-nav-link.active {
  color: var(--gold-deep) !important;
  background: rgba(212, 175, 55, 0.15);
}

/* Shiny 3D Gold Buttons */
.btn-gold-3d {
  background: var(--gold-gradient);
  color: #161209 !important;
  font-weight: 700;
  border: 1px solid rgba(255, 245, 200, 0.7);
  border-radius: 14px;
  padding: 0.7rem 1.45rem;
  box-shadow: 0 6px 0 #7A590B, 0 12px 24px rgba(140, 105, 16, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.75);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.btn-gold-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #7A590B, 0 16px 30px rgba(140, 105, 16, 0.36), inset 0 1px 2px rgba(255, 255, 255, 0.9);
  color: #0e0b05 !important;
}

.btn-gold-3d:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #7A590B, 0 6px 12px rgba(140, 105, 16, 0.25);
}

.btn-outline-gold-3d {
  background: rgba(255, 253, 247, 0.92);
  color: var(--text-dark) !important;
  font-weight: 700;
  border: 1.5px solid #C59B27;
  border-radius: 14px;
  padding: 0.7rem 1.35rem;
  box-shadow: 0 4px 0 rgba(197, 155, 39, 0.35), 0 8px 18px rgba(140, 105, 16, 0.1);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-outline-gold-3d:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(197, 155, 39, 0.45), 0 12px 22px rgba(140, 105, 16, 0.16);
}

/* Header Switcher Button (Cross-Service Switcher) */
.btn-service-switcher {
  background: linear-gradient(135deg, #211B11 0%, #382E1C 100%);
  color: #F7E5AE !important;
  font-weight: 700;
  font-size: 0.86rem;
  border: 1.5px solid #D4AF37;
  border-radius: 50px;
  padding: 0.52rem 1.15rem;
  box-shadow: 0 4px 14px rgba(140, 105, 16, 0.24), inset 0 1px 0 rgba(255, 232, 163, 0.3);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-service-switcher:hover {
  background: var(--gold-gradient);
  color: #18140B !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(140, 105, 16, 0.35);
}

.switcher-icon-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* 3D SaaS Cards */
.card-3d-gold {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3d-sm);
  transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.card-3d-gold::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
  opacity: 0.85;
}

.card-3d-gold:hover {
  transform: translateY(-8px) rotateX(1.5deg);
  box-shadow: var(--shadow-3d-lg);
  border-color: rgba(197, 155, 39, 0.65);
}

/* 3D Icon Cube */
.icon-cube-3d {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--gold-shine-bg);
  border: 1.5px solid rgba(197, 155, 39, 0.45);
  box-shadow: 0 6px 0 rgba(180, 138, 30, 0.28), 0 10px 20px rgba(140, 105, 16, 0.14), inset 0 2px 2px #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold-deep);
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

.card-3d-gold:hover .icon-cube-3d {
  transform: scale(1.08) translateY(-3px);
  background: var(--gold-gradient);
  color: #19150B;
}

/* Section Pill Tag */
.gold-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-pill-bg);
  border: 1px solid rgba(197, 155, 39, 0.42);
  color: #6E5008;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.42rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

/* First-Time Visitor Gateway Overlay Modal */
.gateway-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 1;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.gateway-backdrop.hidden-gateway {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gateway-dialog {
  max-width: 960px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(155deg, #FFFDF8 0%, #F7F0DC 100%);
  border: 2px solid #D4AF37;
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), inset 0 2px 3px #FFFFFF;
  padding: 2.25rem;
  position: relative;
}

.gateway-choice-card {
  background: #FFFFFF;
  border: 2px solid rgba(197, 155, 39, 0.35);
  border-radius: 22px;
  padding: 1.75rem;
  height: 100%;
  box-shadow: var(--shadow-3d-md);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.gateway-choice-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: #C59B27;
  box-shadow: 0 24px 48px rgba(140, 105, 16, 0.28);
}

.gateway-choice-thumb {
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(197, 155, 39, 0.3);
  margin-bottom: 1.1rem;
}

/* Custom Accordion */
.fvs-accordion .accordion-item {
  background: #FFFFFF;
  border: 1px solid var(--gold-border);
  border-radius: 16px !important;
  margin-bottom: 0.9rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(140, 105, 16, 0.07);
}

.fvs-accordion .accordion-button {
  font-weight: 700;
  color: var(--text-dark);
  background: #FFFFFF;
  padding: 1.15rem 1.35rem;
}

.fvs-accordion .accordion-button:not(.collapsed) {
  background: var(--gold-soft);
  color: #6B4E09;
  box-shadow: none;
}

/* Footer */
.fvs-footer {
  background: linear-gradient(180deg, #1B160E 0%, #120F09 100%);
  color: #E6DEC8;
  border-top: 3px solid #D4AF37;
}

.fvs-footer h5, .fvs-footer h6 {
  color: #F7E3A6;
}

.fvs-footer p, .fvs-footer a {
  color: #D2C7AC;
  text-decoration: none;
}

.fvs-footer a:hover {
  color: #FFD966;
}

/* Toast Notification */
.fvs-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2100;
}

@media (max-width: 991.98px) {
  .gateway-dialog {
    padding: 1.35rem;
  }
}
