/* ==========================================================================
   SERENE LIFEWORLD & SKINOPTIX WELLNESS - PREMIUM DARK EXECUTIVE FOOTER
   Matches exact reference design:
   - High-impact Serif Headline ("Better formulations. Better possibilities.")
   - Translucent glassmorphic "Start a conversation" CTA card
   - 4-column structured navigation & brand bio with white typography
   - Cyan icon accents & circular social buttons
   - Corporate newsletter subscription box & quick contact direct actions
   - Minimalist copyright & legal navigation bottom bar
   ========================================================================== */

/* Google Fonts for Serif Headline */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&display=swap');

:root {
  --ft-bg-base: #F8FAFE;
  --ft-bg: #F8FAFE;
  --ft-bg-gradient: 
    radial-gradient(circle at 8% 15%, rgba(108, 47, 168, 0.08) 0%, transparent 48%),
    radial-gradient(circle at 92% 80%, rgba(91, 66, 190, 0.07) 0%, transparent 52%),
    radial-gradient(circle at 50% 100%, rgba(220, 225, 248, 0.6) 0%, transparent 60%),
    linear-gradient(180deg, #F9FAFE 0%, #F5F7FD 45%, #EFF2FB 100%);
  --ft-card-bg: 
    linear-gradient(155deg, rgba(236, 237, 252, 0.95) 0%, rgba(244, 245, 254, 0.90) 100%);
  --ft-border: rgba(108, 47, 168, 0.14);
  --ft-border-input: rgba(108, 47, 168, 0.22);
  --ft-text-main: #163074;
  --ft-text-bright: #163074;
  --ft-text-body: #4A588B;
  --ft-text-muted: #4A588B;
  --ft-text-dim: rgba(74, 88, 139, 0.70);
  --ft-crimson: #5B42BE;
  --ft-pastel-blue: #5B42BE;
  --ft-cyan: #5B42BE;
  --ft-cyan-light: #F8FAFE;
}

/* Base Footer Shell */
.site-footer {
  background-color: #F8FAFE !important;
  background: 
    radial-gradient(circle at 8% 15%, rgba(108, 47, 168, 0.08) 0%, transparent 48%),
    radial-gradient(circle at 92% 80%, rgba(91, 66, 190, 0.07) 0%, transparent 52%),
    radial-gradient(circle at 50% 100%, rgba(220, 225, 248, 0.6) 0%, transparent 60%),
    linear-gradient(180deg, #F9FAFE 0%, #F5F7FD 45%, #EFF2FB 100%) !important;
  color: var(--ft-text-muted) !important;
  position: relative !important;
  z-index: 50 !important;
  overflow: hidden !important;
  padding: 80px 0 36px !important;
  margin-top: 0 !important;
  border-top: 1px solid rgba(108, 47, 168, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 -8px 24px rgba(108, 47, 168, 0.02) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  box-sizing: border-box;
}

.site-footer * {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Atmospheric Ambient Radial Glows */
.site-footer::before {
  content: "" !important;
  position: absolute !important;
  top: -80px !important;
  left: -40px !important;
  width: 550px !important;
  height: 500px !important;
  background: radial-gradient(circle, rgba(108, 47, 168, 0.07) 0%, rgba(220, 225, 248, 0.4) 40%, transparent 70%) !important;
  pointer-events: none !important;
  z-index: 1 !important;
  filter: blur(40px) !important;
}

.site-footer::after {
  content: "" !important;
  position: absolute !important;
  top: 140px !important;
  right: -50px !important;
  width: 650px !important;
  height: 550px !important;
  background: radial-gradient(circle, rgba(91, 66, 190, 0.06) 0%, rgba(220, 225, 248, 0.35) 45%, transparent 70%) !important;
  pointer-events: none !important;
  z-index: 1 !important;
  filter: blur(50px) !important;
}

.footer-inner-shell {
  position: relative;
  z-index: 2;
  width: min(100% - 64px, 1260px);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   TOP HERO SECTION
   -------------------------------------------------------------------------- */
.footer-top-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 64px;
}

.footer-hero-left {
  max-width: 680px;
}

.footer-kicker {
  font-size: 11.5px !important;
  font-weight: 750 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: #5B42BE !important;
  -webkit-text-fill-color: #5B42BE !important;
  margin: 0 0 16px 0 !important;
}

.footer-headline {
  font-family: "Playfair Display", "Merriweather", Georgia, "Times New Roman", serif !important;
  font-size: clamp(38px, 4.4vw, 58px) !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.015em !important;
  margin: 0 0 20px 0 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.footer-headline .headline-white {
  display: block !important;
  color: #163074 !important;
  -webkit-text-fill-color: #163074 !important;
  text-shadow: none !important;
  font-weight: 700 !important;
}

.footer-headline .headline-red {
  display: block !important;
  color: #5B42BE !important;
  -webkit-text-fill-color: #5B42BE !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  filter: none !important;
  text-shadow: none !important;
  font-style: italic !important;
  font-weight: 600 !important;
}

.footer-subtext {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #4A588B !important;
  -webkit-text-fill-color: #4A588B !important;
  margin: 0 !important;
  max-width: 560px !important;
}

@media (max-width: 768px) {
  .footer-subtext {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
  }
}

/* Floating Conversation Card */
.footer-hero-right {
  flex-shrink: 0;
  width: 380px;
  max-width: 100%;
}

.footer-cta-card {
  background: linear-gradient(155deg, rgba(236, 237, 252, 0.95) 0%, rgba(244, 245, 254, 0.90) 100%) !important;
  border: 1.5px solid rgba(108, 47, 168, 0.16) !important;
  border-radius: 20px !important;
  padding: 30px 32px !important;
  box-shadow: 
    0 18px 45px -8px rgba(108, 47, 168, 0.10),
    0 4px 16px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.footer-cta-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.38) !important;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.38) !important;
}

.cta-kicker {
  font-size: 12px !important;
  font-weight: 750 !important;
  letter-spacing: 1.8px !important;
  text-transform: uppercase !important;
  color: #5B42BE !important;
  -webkit-text-fill-color: #5B42BE !important;
  margin-bottom: 12px !important;
}

.cta-heading {
  font-size: 21px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
  color: #163074 !important;
  -webkit-text-fill-color: #163074 !important;
  margin: 0 0 22px 0 !important;
}

.cta-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #6C2FA8 0%, #5B42BE 50%, #2D3490 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  padding: 11px 24px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(91, 66, 190, 0.32) !important;
  border: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease !important;
}

.cta-btn:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 12px 30px rgba(91, 66, 190, 0.45) !important;
  filter: brightness(1.08) !important;
}

.cta-btn .arrow-icon {
  transition: transform 0.2s ease;
}

.cta-btn:hover .arrow-icon {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   4-COLUMN MAIN GRID
   -------------------------------------------------------------------------- */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr 1.05fr 1.35fr;
  gap: 48px;
  padding-bottom: 48px;
  align-items: start;
}

/* Column 1: Brand Plate & Contacts */
.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-brand-plate {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-brand-plate .logo-serene {
  height: 32px;
  max-height: 32px;
  width: auto;
  object-fit: contain;
}

.footer-brand-plate .brand-divider {
  width: 1px;
  height: 24px;
  background: rgba(108, 47, 168, 0.22);
  flex-shrink: 0;
}

.footer-brand-plate .logo-skinoptix {
  height: 30px;
  max-height: 30px;
  width: auto;
  object-fit: contain;
}

.footer-corp-bio {
  font-size: 14px !important;
  line-height: 1.68 !important;
  color: #4A588B !important;
  -webkit-text-fill-color: #4A588B !important;
  margin: 0 !important;
  max-width: 360px !important;
}

.footer-contact-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 13px !important;
}

.footer-contact-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: #4A588B !important;
  -webkit-text-fill-color: #4A588B !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: color 0.2s ease, -webkit-text-fill-color 0.2s ease !important;
}

.footer-contact-item:hover {
  color: #5B42BE !important;
  -webkit-text-fill-color: #5B42BE !important;
}

.contact-icon {
  width: 16px !important;
  height: 16px !important;
  color: #5B42BE !important;
  stroke: #5B42BE !important;
  flex-shrink: 0 !important;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.footer-social-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(108, 47, 168, 0.18);
  background: #E5E4FC;
  color: #5B42BE !important;
  -webkit-text-fill-color: #5B42BE !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.footer-social-circle:hover {
  background: #5B42BE !important;
  border-color: #5B42BE !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(91, 66, 190, 0.35) !important;
  transform: translateY(-2px);
}

/* Titles */
.footer-col-title {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: #5B42BE !important;
  -webkit-text-fill-color: #5B42BE !important;
  margin: 0 0 18px 0 !important;
}

/* Nav Lists (Columns 2 & 3) */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-nav-list a {
  color: #4A588B !important;
  -webkit-text-fill-color: #4A588B !important;
  text-decoration: none !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  transition: color 0.2s ease, -webkit-text-fill-color 0.2s ease, transform 0.2s ease !important;
  display: inline-block !important;
}

.footer-nav-list a:hover {
  color: #5B42BE !important;
  -webkit-text-fill-color: #5B42BE !important;
  transform: translateX(4px) !important;
}

/* Portfolio Badge */
.footer-portfolio-badge {
  display: inline-block !important;
  padding: 4px 11px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(108, 47, 168, 0.20) !important;
  background: #E5E4FC !important;
  color: #5B42BE !important;
  -webkit-text-fill-color: #5B42BE !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  margin-bottom: 16px !important;
}

/* Column 4: Stay Connected & Quick Contact */
.footer-newsletter-card {
  background: #EEEFFE !important;
  border: 1px solid rgba(108, 47, 168, 0.16) !important;
  border-radius: 16px !important;
  padding: 18px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 4px 16px rgba(108, 47, 168, 0.05) !important;
}

.newsletter-desc {
  font-size: 13px !important;
  line-height: 1.58 !important;
  color: #4A588B !important;
  -webkit-text-fill-color: #4A588B !important;
  margin: 0 0 14px 0 !important;
}

.newsletter-input-wrap {
  background: #ffffff !important;
  border: 1px solid rgba(108, 47, 168, 0.22) !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  padding: 4px 4px 4px 15px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.newsletter-input-wrap:focus-within {
  border-color: #ffffff !important;
}

.newsletter-input-wrap input {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #163074 !important;
  -webkit-text-fill-color: #163074 !important;
  font-size: 13px !important;
  width: 100% !important;
}

.newsletter-input-wrap input::placeholder {
  color: rgba(74, 88, 139, 0.55) !important;
  -webkit-text-fill-color: rgba(74, 88, 139, 0.55) !important;
}

.newsletter-join-btn {
  background: linear-gradient(135deg, #6C2FA8 0%, #5B42BE 50%, #2D3490 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 7px 18px !important;
  font-size: 11.5px !important;
  font-weight: 750 !important;
  letter-spacing: 0.8px !important;
  cursor: pointer !important;
  box-shadow: 0 3px 12px rgba(91, 66, 190, 0.30) !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.newsletter-join-btn:hover {
  opacity: 0.94 !important;
  transform: scale(1.03) !important;
}

.quick-contact-title {
  margin-top: 14px !important;
}

.footer-quick-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-quick-list a {
  color: #4A588B !important;
  -webkit-text-fill-color: #4A588B !important;
  text-decoration: none !important;
  font-size: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: color 0.2s ease, -webkit-text-fill-color 0.2s ease, transform 0.2s ease !important;
}

.footer-quick-list a:hover {
  color: #5B42BE !important;
  -webkit-text-fill-color: #5B42BE !important;
  transform: translateX(4px) !important;
}

/* --------------------------------------------------------------------------
   SUB-FOOTER BOTTOM BAR
   -------------------------------------------------------------------------- */
.footer-bottom-bar {
  border-top: 1px solid rgba(108, 47, 168, 0.14) !important;
  padding-top: 28px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}

.footer-copyright-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  max-width: 620px !important;
}

.footer-copyright {
  font-size: 12px !important;
  letter-spacing: 1.5px !important;
  color: #163074 !important;
  -webkit-text-fill-color: #163074 !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}

.footer-legal-disclaimer {
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
  color: rgba(74, 88, 139, 0.70) !important;
  -webkit-text-fill-color: rgba(74, 88, 139, 0.70) !important;
  letter-spacing: 0.2px !important;
}

.footer-bottom-links {
  display: flex !important;
  align-items: center !important;
  gap: 22px !important;
  flex-wrap: wrap !important;
}

.footer-bottom-links a,
.footer-bottom-links button {
  background: transparent !important;
  border: none !important;
  color: #4A588B !important;
  -webkit-text-fill-color: #4A588B !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 550 !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: color 0.2s ease, -webkit-text-fill-color 0.2s ease, opacity 0.2s ease !important;
}

.footer-bottom-links a:hover,
.footer-bottom-links button:hover {
  color: #5B42BE !important;
  -webkit-text-fill-color: #5B42BE !important;
}

.footer-bottom-links .footer-legal-btn {
  color: #4A588B !important;
  -webkit-text-fill-color: #4A588B !important;
  font-weight: 600 !important;
}

.footer-bottom-links .footer-legal-btn:hover {
  color: #E8EDF8 !important;
  -webkit-text-fill-color: #E8EDF8 !important;
  text-decoration: underline !important;
}

/* Legal & IP Disclaimer Modal */
.legal-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(9, 13, 31, 0.82) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.28s ease, visibility 0.28s ease !important;
}

.legal-modal-backdrop.is-open {
  opacity: 1 !important;
  visibility: visible !important;
}

.legal-modal-card {
  background: #ffffff !important;
  border: 1px solid rgba(108, 47, 168, 0.16) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15), 0 0 30px rgba(91, 66, 190, 0.08) !important;
  border-radius: 20px !important;
  width: 100% !important;
  max-width: 680px !important;
  max-height: 85vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  transform: translateY(20px) scale(0.98) !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.legal-modal-backdrop.is-open .legal-modal-card {
  background: #ffffff !important;
  border: 1px solid rgba(108, 47, 168, 0.16) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15), 0 0 30px rgba(91, 66, 190, 0.08) !important;
  border-radius: 20px !important;
  width: 100% !important;
  max-width: 680px !important;
  max-height: 85vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  transform: translateY(20px) scale(0.98) !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.legal-modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 22px 28px 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.legal-badge {
  display: inline-block !important;
  font-size: 11.5px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #5B42BE !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
}

.legal-modal-title-wrap h3 {
  margin: 0 !important;
  font-size: 19px !important;
  font-weight: 750 !important;
  color: #163074 !important;
  -webkit-text-fill-color: #163074 !important;
}

.legal-modal-close {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 24px !important;
  line-height: 1 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

.legal-modal-close:hover {
  background: rgba(108, 47, 168, 0.8) !important;
  transform: scale(1.05) !important;
}

.legal-modal-body {
  padding: 24px 28px !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  font-size: 13.5px !important;
  line-height: 1.65 !important;
  color: #4A588B !important;
}

.legal-section h4 {
  margin: 0 0 6px 0 !important;
  font-size: 14.5px !important;
  font-weight: 750 !important;
  color: #163074 !important;
  -webkit-text-fill-color: #163074 !important;
}

.legal-section p {
  margin: 0 !important;
}

.legal-section a {
  color: #E8EDF8 !important;
  text-decoration: underline !important;
}

.legal-modal-footer {
  padding: 16px 28px !important;
  border-top: 1px solid rgba(108, 47, 168, 0.12) !important;
  display: flex !important;
  justify-content: flex-end !important;
  background: #F8FAFE !important;
}

.legal-modal-done-btn {
  background: linear-gradient(135deg, #6C2FA8 0%, #462D94 50%, #2D3490 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 9px 20px !important;
  font-size: 13.5px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(108, 47, 168, 0.40) !important;
  transition: transform 0.2s ease, filter 0.2s ease !important;
}

.legal-modal-done-btn:hover {
  background: #E8EDF8 !important;
  transform: translateY(-1px) !important;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (Tablets & Mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-top-hero {
    flex-direction: column;
    gap: 36px;
  }

  .footer-hero-right {
    width: 100%;
  }

  .footer-cta-card {
  background: linear-gradient(155deg, rgba(236, 237, 252, 0.95) 0%, rgba(244, 245, 254, 0.90) 100%) !important;
  border: 1.5px solid rgba(108, 47, 168, 0.16) !important;
  border-radius: 20px !important;
  padding: 30px 32px !important;
  box-shadow: 
    0 18px 45px -8px rgba(108, 47, 168, 0.10),
    0 4px 16px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

  .footer-main-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .site-footer {
  background-color: #F8FAFE !important;
  background: 
    radial-gradient(circle at 8% 15%, rgba(108, 47, 168, 0.08) 0%, transparent 48%),
    radial-gradient(circle at 92% 80%, rgba(91, 66, 190, 0.07) 0%, transparent 52%),
    radial-gradient(circle at 50% 100%, rgba(220, 225, 248, 0.6) 0%, transparent 60%),
    linear-gradient(180deg, #F9FAFE 0%, #F5F7FD 45%, #EFF2FB 100%) !important;
  color: var(--ft-text-muted) !important;
  position: relative !important;
  z-index: 50 !important;
  overflow: hidden !important;
  padding: 80px 0 36px !important;
  margin-top: 0 !important;
  border-top: 1px solid rgba(108, 47, 168, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 -8px 24px rgba(108, 47, 168, 0.02) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  box-sizing: border-box;
}

  .footer-inner-shell {
    width: min(100% - 32px, 1260px);
  }

  .footer-top-hero {
    padding-bottom: 44px;
  }

  .footer-headline {
    font-size: 32px !important;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom-bar {
  border-top: 1px solid rgba(108, 47, 168, 0.14) !important;
  padding-top: 28px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

/* --------------------------------------------------------------------------
   FLOATING BACK TO TOP BUTTON (Fixed positioning, zero document flow gap)
   -------------------------------------------------------------------------- */
.floating-top-btn {
  position: fixed !important;
  bottom: 80px !important;
  right: 22px !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(15, 21, 48, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(12px) !important;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.25s ease, 
              border-color 0.25s ease !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
  padding: 0 !important;
  margin: 0 !important;
}

.floating-top-btn svg {
  width: 20px !important;
  height: 20px !important;
  fill: currentColor !important;
  transition: transform 0.2s ease !important;
}

.floating-top-btn:hover {
  background: linear-gradient(135deg, #6C2FA8, #6C2FA8) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(108, 47, 168, 0.45) !important;
}

.floating-top-btn:hover svg {
  transform: translateY(-2px) !important;
}

.floating-top-btn.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

@media (max-width: 640px) {
  .floating-top-btn {
    bottom: 74px !important;
    right: 16px !important;
    width: 38px !important;
    height: 38px !important;
  }

  .floating-top-btn svg {
    width: 16px !important;
    height: 16px !important;
  }
}

/* Ensure footer and main have strictly zero bottom margin or overflow gap */
main {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.site-footer {
  background-color: #F8FAFE !important;
  background: 
    radial-gradient(circle at 8% 15%, rgba(108, 47, 168, 0.08) 0%, transparent 48%),
    radial-gradient(circle at 92% 80%, rgba(91, 66, 190, 0.07) 0%, transparent 52%),
    radial-gradient(circle at 50% 100%, rgba(220, 225, 248, 0.6) 0%, transparent 60%),
    linear-gradient(180deg, #F9FAFE 0%, #F5F7FD 45%, #EFF2FB 100%) !important;
  color: var(--ft-text-muted) !important;
  position: relative !important;
  z-index: 50 !important;
  overflow: hidden !important;
  padding: 80px 0 36px !important;
  margin-top: 0 !important;
  border-top: 1px solid rgba(108, 47, 168, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 -8px 24px rgba(108, 47, 168, 0.02) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  box-sizing: border-box;
}

/* Hide floating elements when product category modal is active */
body.has-modal-open .floating-top-btn,
body:has(.product-modal-backdrop) .floating-top-btn,
body.has-modal-open .floating-contact,
body:has(.product-modal-backdrop) .floating-contact {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* Automatic Brand Logo Adaptive Switch on Light Footer */
.site-footer .logo-serene {
  content: url('../brand/serene-logo-transparent.png') !important;
}
.site-footer .logo-skinoptix {
  content: url('../brand/skinoptix-logo-transparent.png') !important;
}
