/**
 * Zero-Bloat SaaS Header & Footer Stylesheet
 * Adapted for WHMCS CooWHM with native Bootstrap utilities and Font Awesome 5.15.4
 * Project: RealWebCare (rwchost-dev integration)
 */

/* ==========================================================================
   1. Header Top Bar (Dark Mode SaaS Theme)
   ========================================================================== */
.header-transparent {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1035;
  background: transparent;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.xs-top-bar {
  background-color: rgba(8, 12, 20, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
  font-size: 13px;
  line-height: normal;
  transition: all 0.3s ease;
}

.xs-top-bar-info {
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

.xs-top-bar-info li {
  padding-left: 0;
  padding-right: 20px;
  vertical-align: middle;
}

.xs-top-bar-info li:last-child {
  padding-right: 0;
}

.xs-top-bar-info li p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  display: inline-block;
}

.xs-top-bar-info li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.xs-top-bar-info li a:hover {
  color: #38bdf8;
  text-decoration: none;
}

.xs-top-bar-info li i {
  color: #38bdf8;
  margin-right: 6px;
  font-size: 13px;
}

.top-menu {
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

.top-menu li {
  padding-left: 12px;
  padding-right: 12px;
  vertical-align: middle;
}

.top-menu li:last-child {
  padding-right: 0;
}

.top-menu li a {
  color: #cbd5e1;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-menu li a:hover {
  color: #38bdf8;
  text-decoration: none;
}

.top-menu li a i {
  margin-right: 5px;
  font-size: 13px;
}

.top-menu .lemonsqueezy-button {
  color: #f59e0b !important;
  font-weight: 600;
}

.top-menu .lemonsqueezy-button i {
  color: #f59e0b !important;
}

.top-login-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 14px;
  border-radius: 6px;
  color: #ffffff !important;
  font-weight: 500;
  display: inline-block;
  transition: all 0.2s ease;
}

.top-login-btn:hover {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff !important;
  text-decoration: none;
}

/* ==========================================================================
   2. Main Header Navbar & Brand SVG Logo
   ========================================================================== */
.xs-header {
  padding: 16px 0;
  position: relative;
  background: radial-gradient(ellipse at 50% -10%, #172554 0%, #0b0f19 50%, #070a12 100%);
  z-index: 100;
  transition: padding 0.3s ease;
}

.xs-header.border-bottom-0 {
  border-bottom: 0 !important;
}

.xs-logo-wraper {
  display: block;
  margin-left: -15px;
}

.xs-logo {
  display: inline-block;
  text-decoration: none;
}

.xs-logo .rwc-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  vertical-align: middle;
  line-height: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.rwc-brand-logo .brand-emblem {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 0 16px rgba(35, 188, 255, 0.28));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.rwc-brand-logo .emblem-orbit {
  transform-origin: 50% 50%;
  animation: floatOrbit 7s ease-in-out infinite;
}

@keyframes floatOrbit {
  0%, 100% {
    transform: rotate(-7deg) translateY(0);
  }
  50% {
    transform: rotate(5deg) translateY(-2.5px);
  }
}

.rwc-brand-logo .rwc-brand-content {
  display: flex;
  align-items: center;
  min-width: 0;
  line-height: 1;
}

.rwc-brand-logo .rwc-brand-text-svg {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  text-transform: uppercase;
  overflow: visible;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.xs-logo:hover .rwc-brand-logo .brand-emblem {
  filter: drop-shadow(0 0 22px rgba(64, 229, 255, 0.5));
  transform: scale(1.03);
}

.xs-logo:hover .rwc-brand-logo .rwc-brand-text-svg {
  filter: drop-shadow(0 0 10px rgba(64, 229, 255, 0.3));
}

/* ==========================================================================
   3. Desktop Navigation & Mega Menu Structure
   ========================================================================== */
.xs-menus {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Mobile Drawer Components - Globally hidden by default on desktop */
.nav-menus-wrapper-close-button,
.nav-drawer-footer,
.nav-drawer-cta-btn,
.nav-overlay-panel {
  display: none !important;
  visibility: hidden !important;
}

@media (min-width: 992px) {
  .nav-menus-wrapper-close-button,
  .nav-drawer-footer,
  .nav-drawer-cta-btn,
  .nav-overlay-panel {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

.nav-header {
  display: none;
}

.nav-menus-wrapper {
  display: inline-block;
  vertical-align: middle;
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu>li {
  position: relative;
  list-style: none;
}

.nav-menu>li>a {
  color: #f8fafc !important;
  font-size: 0.96rem;
  font-weight: 500;
  padding: 16px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav-menu>li>a:hover {
  color: #38bdf8 !important;
  text-decoration: none;
}

.nav-menu>li>a::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #38bdf8;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-menu>li>a:hover::after,
.nav-menu>li.current-menu-item>a::after {
  transform: scaleX(1);
}

/* Main Navigation Indicator Chevron */
.nav-menu>li.mega-menus>a,
.nav-menu>li.has-megamenu>a,
.nav-menu>li.menu-item-has-children>a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rwc-menu-chevron {
  width: 11px;
  height: 11px;
  margin-left: 5px;
  stroke: rgba(255, 255, 255, 0.65);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease;
  vertical-align: middle;
  display: inline-block;
}

.nav-menu>li:hover .rwc-menu-chevron,
.nav-menu>li.mega-menus:hover .rwc-menu-chevron,
.nav-menu>li.menu-item-has-children:hover .rwc-menu-chevron {
  transform: rotate(180deg);
  stroke: #38bdf8;
}

/* Fallback CSS chevron if SVG is not present */
.nav-menu>li.mega-menus>a:not(:has(.rwc-menu-chevron))::before,
.nav-menu>li.has-megamenu>a:not(:has(.rwc-menu-chevron))::before,
.nav-menu>li.menu-item-has-children>a:not(:has(.rwc-menu-chevron))::before {
  content: "";
  display: inline-block;
  order: 2;
  width: 6px;
  height: 6px;
  border-right: 2px solid rgba(255, 255, 255, 0.65);
  border-bottom: 2px solid rgba(255, 255, 255, 0.65);
  transform: rotate(45deg);
  margin-left: 6px;
  margin-bottom: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.nav-menu>li.mega-menus:hover>a:not(:has(.rwc-menu-chevron))::before,
.nav-menu>li.has-megamenu:hover>a:not(:has(.rwc-menu-chevron))::before,
.nav-menu>li.menu-item-has-children:hover>a:not(:has(.rwc-menu-chevron))::before {
  transform: rotate(-135deg);
  border-color: #38bdf8;
  margin-bottom: -2px;
}

/* Standard Dropdown Items (Dark Mode) */
.nav-dropdown li,
.sub-menu li {
  list-style: none;
  margin: 0 0 2px 0;
}

.nav-dropdown li a,
.sub-menu li a {
  display: block;
  color: #cbd5e1 !important;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-dropdown li a:hover,
.sub-menu li a:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(56, 189, 248, 0.1) 100%);
  padding-left: 18px;
}

/* Submenu & Megamenu Base Panels (Dark Mode Glassmorphism) */
.nav-dropdown,
.sub-menu,
.megamenu-panel {
  position: absolute;
  top: 85%;
  left: 0;
  background: linear-gradient(160deg, #0b1120 0%, #060913 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 35px rgba(37, 99, 235, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 18px;
  min-width: 220px;
  z-index: 1060;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  list-style: none;
  margin: 0;
}

@media (min-width: 992px) {
  /* Prevent nav column wrapper from creating a positioning context */
  .xs-header .col-md-9,
  .xs-header .col-lg-9 {
    position: static;
  }

  .nav-menu>li.mega-menus {
    position: static;
  }
  .megamenu-panel {
    width: 980px;
    max-width: calc(100vw - 32px);
    padding: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
  }
  .nav-menu>li.mega-menus:hover>.megamenu-panel,
  .nav-menu>li:hover>.megamenu-panel {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Megamenu Internal Grid Structure (2 columns down to 992px until mobile menu) */
  .megamenu-panel>.row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-left: -8px;
    margin-right: -8px;
  }

  .megamenu-panel .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .megamenu-panel .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    width: 33.333333%;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  /* Safe invisible hover bridge between nav link and megamenu panel */
  .megamenu-panel::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
  }
  .nav-menu>li:hover>.nav-dropdown,
  .nav-menu>li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* 3-Column Width & Variant Panels */
.megamenu-panel.rwc-mega-3col,
.megamenu-panel.xs-service-menu,
.megamenu-panel.xs-icon-menu {
  width: 980px;
}

/* Megamenu Items & Typography */
.rwc-mega-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  width: 100%;
}

.rwc-mega-item:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transform: translateX(3px);
  text-decoration: none;
}

/* Icon Container with Gradient Glow Effect */
.rwc-mega-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18) 0%, rgba(56, 189, 248, 0.08) 100%);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 1px;
  flex-shrink: 0;
}

.rwc-mega-icon svg {
  width: 20px;
  height: 20px;
  stroke: #38bdf8;
  stroke-width: 2;
  transition: all 0.2s ease;
  display: block;
}

.rwc-mega-item:hover .rwc-mega-icon {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.45);
  transform: scale(1.06);
  color: #ffffff;
}

.rwc-mega-item:hover .rwc-mega-icon svg {
  stroke: #ffffff;
}

/* Text Content Hierarchy (Dark Mode) */
.rwc-mega-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.rwc-mega-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #f8fafc !important;
  margin: 0 !important;
  line-height: 1.35 !important;
  text-align: left;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.rwc-mega-item:hover .rwc-mega-title {
  color: #38bdf8 !important;
}

.rwc-mega-desc {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #94a3b8 !important;
  margin: 0 !important;
  font-weight: 400 !important;
  text-align: left;
}

/* Web Services Single Item Styling (Dark Mode) */
.single-menu-item {
  width: 100%;
}

.single-menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9 !important;
  text-decoration: none;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
}

.single-menu-item a:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #38bdf8 !important;
  transform: translateX(3px);
  text-decoration: none;
}

.single-menu-item a .rwc-menu-svg {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18) 0%, rgba(56, 189, 248, 0.08) 100%);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.single-menu-item a .rwc-menu-svg svg {
  width: 18px;
  height: 18px;
  stroke: #38bdf8;
  stroke-width: 2;
  transition: all 0.2s ease;
  display: block;
}

.single-menu-item a:hover .rwc-menu-svg {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
  transform: scale(1.06);
}

.single-menu-item a:hover .rwc-menu-svg svg {
  stroke: #ffffff;
}

.single-menu-item a span {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  transition: color 0.15s ease;
}

.single-menu-item a:hover span {
  color: #38bdf8;
}

/* ==========================================================================
   4. Menu Tools (Search Trigger)
   ========================================================================== */
.xs-menu-tools {
  margin: 0 0 0 24px;
  padding: 0;
  vertical-align: middle;
}

.xs-menu-tools>li {
  padding-left: 5px;
  padding-right: 5px;
  vertical-align: middle;
}

.xs-menu-tools .navsearch-button {
  color: #f8fafc;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: all 0.2s ease;
  text-decoration: none;
}

.xs-menu-tools .navsearch-button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  text-decoration: none;
}

/* ==========================================================================
   5. Sticky Navigation Behavior
   ========================================================================== */
.header-transparent.nav-sticky.is-sticky,
.header-transparent.nav-sticky.sticky-header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  background: rgba(8, 12, 20, 0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.header-transparent.nav-hidden {
  transform: translateY(-100%) !important;
}

.header-transparent.nav-sticky.is-sticky .xs-top-bar,
.header-transparent.nav-sticky.sticky-header.sticky .xs-top-bar {
  display: none !important;
}

.header-transparent.nav-sticky.is-sticky .xs-header,
.header-transparent.nav-sticky.sticky-header.sticky .xs-header {
  padding: 10px 0;
}

.header-transparent.nav-sticky.is-sticky .xs-logo .rwc-brand-logo .brand-emblem,
.header-transparent.nav-sticky.sticky-header.sticky .xs-logo .rwc-brand-logo .brand-emblem {
  width: 54px;
  height: 54px;
}

.header-transparent.nav-sticky.is-sticky .xs-logo .rwc-brand-logo .rwc-brand-text-svg,
.header-transparent.nav-sticky.sticky-header.sticky .xs-logo .rwc-brand-logo .rwc-brand-text-svg {
  width: 155px;
}

/* ==========================================================================
   6. Modern SaaS Footer (Atmospheric Dark Mode)
   Matching WordPress Theme (rwchost-dev)
   ========================================================================== */
.xs-footer-section,
.footer-v2,
.xs-footer-section.footer-v2 {
  position: relative;
  background-color: #080c14 !important;
  color: #94a3b8;
  padding-top: 75px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-group {
  background-color: transparent !important;
  background-image: none !important;
  padding-bottom: 45px;
}

/* --- Top Widget Zone: .footer-bottom --- */
.footer-bottom {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-top: none;
  padding-bottom: 35px;
  margin-bottom: 45px;
}

/* Footer Top Widget 1: Mission Statement & Legal Links (#custom_html-2) */
.footer-bottom-info p {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.footer-bottom-info p a {
  color: #38bdf8;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.footer-bottom-info p a:hover {
  color: #ffffff;
  text-decoration: underline !important;
}

/* Footer Top Widget 2: Payment Gateways (#custom_html-3) */
#custom_html-3.widget_text,
.xs-footer-section .footer-bottom .xs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom .widget-title,
#custom_html-3 .widget-title {
  color: #ffffff !important;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.xs-footer-section .footer-bottom .textwidget.custom-html-widget {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
}

.xs-footer-section .footer-bottom .textwidget.custom-html-widget li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.xs-footer-section .footer-bottom .textwidget.custom-html-widget li i {
  color: #94a3b8;
  font-size: 1.85rem;
  line-height: 1;
  transition: all 0.25s ease;
  display: inline-block;
  vertical-align: middle;
}

.xs-footer-section .footer-bottom .textwidget.custom-html-widget li:hover i {
  color: #38bdf8;
  transform: translateY(-2px);
}

@media (min-width: 992px) {
  #custom_html-3 {
    text-align: right;
  }
  #custom_html-3 .widget-title {
    text-align: right;
  }
  .xs-footer-section .footer-bottom .textwidget.custom-html-widget {
    justify-content: flex-end;
  }
}

/* --- Main Widget Zone: .footer-main (5 Columns) --- */
.footer-main .widget-title,
.footer-main h3,
.footer-main h4 {
  color: #ffffff !important;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
  position: relative;
}

.footer-main .widget-title::before,
.footer-main .widget-title::after,
.footer-widget .widget-title::before,
.footer-widget .widget-title::after {
  display: none !important;
  content: none !important;
}

.footer-main p {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.65;
}

.footer-main ul,
.footer-widget .xs-list,
.contact-info-widget,
.social-list {
  list-style: none !important;
  padding: 0 !important;
  padding-left: 0 !important;
  margin: 0 !important;
  margin-left: 0 !important;
}

.footer-main ul li,
.footer-widget .xs-list li {
  margin-bottom: 12px;
  list-style: none;
  padding: 0;
}

.footer-main ul li a,
.footer-widget .xs-list li a {
  color: #94a3b8;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-main ul li a:hover,
.footer-widget .xs-list li a:hover {
  color: #38bdf8;
  transform: translateX(3px);
  text-decoration: none !important;
}

/* Widget 1 Detail: SVG Brand Logo, Social Media & Lemonsqueezy (#custom_html-8) */
.xs-footer-section .rwc-brand-logo.main-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  left: -7px;
  margin-bottom: 14px;
}

.xs-footer-section .rwc-brand-logo .brand-emblem {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.xs-footer-section .rwc-brand-logo .rwc-brand-content {
  display: flex;
  align-items: center;
}

.xs-footer-section .rwc-brand-logo .rwc-brand-text-svg {
  width: 170px;
  max-width: 100%;
  height: auto;
  display: block;
}

.footer-main .textwidget.custom-html-widget .social-list,
.footer-main .social-list.version-3 {
  display: flex;
  gap: 10px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 18px 0 14px 0;
}

.footer-main .social-list li {
  display: inline-block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-main .social-list li a,
.footer-main .social-list.version-3 li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  text-decoration: none !important;
}

.footer-main .social-list li a:hover,
.footer-main .social-list.version-3 li a:hover {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.footer-main .lemonsqueezy-button {
  color: #f59e0b !important;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-main .lemonsqueezy-button:hover {
  color: #fbbf24 !important;
  text-decoration: underline !important;
}

.footer-main .fa-mug-hot {
  color: #f59e0b !important;
  margin-right: 5px;
  font-size: 0.95rem;
}

/* Widget 5 Detail: Contact Info Widget (#custom_html-7) */
.contact-info-widget {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info-widget li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.5;
  list-style: none;
  padding: 0;
}

.contact-info-widget li:last-child {
  margin-bottom: 0;
}

.contact-info-widget li img {
  margin-right: 14px;
  margin-top: 3px;
  width: 16px;
  max-width: 20px;
  height: auto;
  flex-shrink: 0;
  display: inline-block;
}

.contact-info-widget li a {
  color: #94a3b8;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.contact-info-widget li a:hover {
  color: #38bdf8;
  text-decoration: none !important;
}

.contact-info-widget li span {
  color: #94a3b8;
}

/* --- Bottom Copyright Zone: .footer-copyright --- */
.footer-copyright {
  background-color: #05080f;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
  color: #64748b;
  font-size: 0.88rem;
  margin-top: 0;
}

.rwc-copyright-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.rwc-copyright-left {
  flex: 1 1 0;
  text-align: left;
}

.rwc-copyright-text {
  margin: 0;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.5;
}

.rwc-copyright-text .text-green {
  color: #38bdf8 !important;
  font-weight: 600;
}

.rwc-copyright-center {
  flex: 0 0 auto;
  text-align: center;
  padding: 0 20px;
}

.rwc-copyright-right {
  flex: 1 1 0;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.scroll-to-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none !important;
}

.scroll-to-top-btn:hover {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
  text-decoration: none !important;
}

.footer_power {
  display: inline-block;
  vertical-align: middle;
}

.footer_power img {
  max-height: 32px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================================================
   7. Dual Search Modal (WHMCS + WordPress)
   ========================================================================== */
.modal-searchPanel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-searchPanel.isActive {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-searchPanel .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.modal-searchPanel .modal-dialog {
  position: relative;
  width: 100%;
  max-width: 680px;
  z-index: 2;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-searchPanel.isActive .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-searchPanel .modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
}

.close-search-modal.rwc-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-search-modal.rwc-modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-searchPanel .xs-search-group {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 12px;
}

.modal-searchPanel .xs-search-group input[type="search"],
.modal-searchPanel .xs-search-group input[type="text"] {
  width: 100%;
  height: 64px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 0 65px 0 28px;
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 500;
  outline: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

.modal-searchPanel .xs-search-group input[type="search"]::placeholder,
.modal-searchPanel .xs-search-group input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.modal-searchPanel .xs-search-group input[type="search"]:focus,
.modal-searchPanel .xs-search-group input[type="text"]:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25);
}

.modal-searchPanel .xs-search-group .search-button {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border: none;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.modal-searchPanel .xs-search-group .search-button:hover {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}

/* ==========================================================================
   8. Responsive Breakpoints & Mobile Navigation Drawer (< 992px)
   ========================================================================== */
@media (max-width: 991px) {
  .xs-top-bar {
    text-align: center;
  }
  .xs-top-bar-info {
    text-align: center;
    margin-bottom: 6px;
  }
  .top-menu {
    text-align: center;
  }

  /* Hamburger Toggle */
  .nav-header {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
  }
  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 101;
  }
  .nav-toggle-bar {
    display: block;
    height: 3px;
    width: 100%;
    background: #f8fafc;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
  }
  .nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: #38bdf8;
  }
  .nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: #38bdf8;
  }

  /* Elevated Header Z-Index when Drawer is Open */
  .header-transparent.menu-drawer-open {
    z-index: 100002 !important;
  }

  /* Backdrop Overlay with Rich High-Contrast Opacity and Glassmorphism */
  .nav-overlay-panel {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(8, 12, 20, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 99998 !important;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s !important;
    pointer-events: none !important;
  }
  .nav-overlay-panel.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  body.no-scroll {
    overflow: hidden !important;
    touch-action: none !important;
  }

  /* Off-Canvas Slide Drawer */
  .nav-menus-wrapper {
    position: fixed !important;
    top: 0 !important;
    right: -340px !important;
    left: auto !important;
    width: 310px !important;
    max-width: 86vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #080c14 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: none !important;
    border-bottom: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    padding: 65px 18px 30px 18px !important;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8) !important;
    z-index: 100005 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    visibility: hidden !important;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s !important;
  }
  .nav-menus-wrapper.open,
  .nav-menus-wrapper.nav-menus-wrapper-open {
    right: 0 !important;
    visibility: visible !important;
  }

  /* Close Drawer Button */
  .nav-menus-wrapper-close-button {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    color: #f8fafc !important;
    font-size: 20px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
    padding: 0 !important;
    visibility: visible !important;
  }
  .nav-menus-wrapper-close-button:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #f87171 !important;
  }

  /* Navigation Menu inside Drawer */
  .nav-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }
  .nav-menu>li {
    width: 100% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: relative !important;
    list-style: none !important;
  }
  .nav-menu>li:last-child {
    border-bottom: none !important;
  }
  .nav-menu>li>a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 14px 4px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #f1f5f9 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: color 0.2s ease !important;
  }
  .nav-menu>li>a:hover,
  .nav-menu>li.menu-open>a {
    color: #38bdf8 !important;
  }
  .nav-menu>li>a::after {
    display: none !important;
  }
  .nav-menu>li>a .rwc-menu-chevron,
  .nav-menu li>a .rwc-menu-chevron {
    margin-left: auto !important;
    width: 13px !important;
    height: 13px !important;
    stroke: rgba(255, 255, 255, 0.6) !important;
    transition: transform 0.25s ease, stroke 0.2s !important;
    pointer-events: none !important;
  }
  .nav-menu>li.menu-open>a .rwc-menu-chevron,
  .nav-menu li.menu-open>a .rwc-menu-chevron {
    transform: rotate(180deg) !important;
    stroke: #38bdf8 !important;
  }

  /* Submenus & Megamenus Accordion (Collapsed by Default) */
  .nav-dropdown,
  .sub-menu,
  .megamenu-panel,
  .megamenu-panel.rwc-mega-3col,
  .megamenu-panel.xs-service-menu,
  .megamenu-panel.xs-icon-menu {
    display: none !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    padding: 10px 8px !important;
    margin: 4px 0 12px 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: none !important;
    box-sizing: border-box !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
  }

  /* Prevent hover from firing on touch devices */
  .nav-menu li:hover>.nav-dropdown,
  .nav-menu li:hover>.sub-menu,
  .nav-menu li:hover>.megamenu-panel {
    display: none !important;
  }

  /* Expanded Accordion State */
  .nav-menu li.menu-open>.nav-dropdown,
  .nav-menu li.menu-open>.sub-menu,
  .nav-menu li.menu-open>.megamenu-panel,
  .nav-menu li.menu-open:hover>.nav-dropdown,
  .nav-menu li.menu-open:hover>.sub-menu,
  .nav-menu li.menu-open:hover>.megamenu-panel {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Megamenu Internal Elements Collapse to Clean 1-Column List in Mobile Drawer */
  .megamenu-panel>.row {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    width: 100% !important;
  }
  .megamenu-panel .col-lg-6,
  .megamenu-panel .col-lg-4,
  .megamenu-panel [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 6px !important;
  }
  .rwc-mega-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 8px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transform: none !important;
    box-shadow: none !important;
  }
  .rwc-mega-item:hover {
    background: rgba(37, 99, 235, 0.18) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    transform: translateX(2px) !important;
  }
  .rwc-mega-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 6px !important;
    margin-top: 0 !important;
  }
  .rwc-mega-icon svg {
    width: 16px !important;
    height: 16px !important;
  }
  .rwc-mega-content {
    gap: 2px !important;
  }
  .rwc-mega-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #f1f5f9 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
  }
  .rwc-mega-desc {
    font-size: 11px !important;
    line-height: 1.3 !important;
    color: #94a3b8 !important;
    margin: 0 !important;
  }

  /* Single Menu Item for Web Services */
  .single-menu-item {
    width: 100% !important;
    margin-bottom: 6px !important;
  }
  .single-menu-item a {
    display: flex !important;
    align-items: center !important;
    padding: 8px 8px !important;
    font-size: 13px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .single-menu-item a:hover {
    background: rgba(37, 99, 235, 0.18) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    transform: translateX(2px) !important;
  }

  /* Hide Get Started CTA in Drawer */
  .nav-drawer-footer,
  .nav-drawer-cta-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none !important;
  }

  .rwc-brand-logo .brand-emblem {
    width: 48px !important;
    height: 48px !important;
  }
  .rwc-brand-logo .rwc-brand-text-svg {
    width: 150px;
  }

  .footer-bottom {
    padding-bottom: 25px;
    margin-bottom: 35px;
  }
  .footer-bottom-info {
    text-align: center;
    margin-bottom: 25px;
  }
  #custom_html-3 .widget-title {
    text-align: center;
  }
  .xs-footer-section .footer-bottom .textwidget.custom-html-widget {
    justify-content: center;
  }
  .footer-widget,
  .widget_text.footer-widget {
    margin-bottom: 35px;
  }
}

@media (max-width: 767px) {
  .xs-top-bar-info li {
    margin-bottom: 4px;
  }
  .rwc-copyright-row {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
  }
  .rwc-copyright-left,
  .rwc-copyright-center,
  .rwc-copyright-right {
    text-align: center !important;
    justify-content: center !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    margin-bottom: 6px;
  }
  .xs-footer-section .rwc-brand-logo.main-logo {
    justify-content: center;
    left: 0;
  }
  .footer-main .textwidget.custom-html-widget .social-list,
  .footer-main .social-list.version-3 {
    justify-content: center;
  }
  #custom_html-8 {
    text-align: center;
  }
  .rwc-brand-logo .brand-emblem {
    width: 40px !important;
    height: 40px !important;
  }
  .rwc-brand-logo .rwc-brand-text-svg {
    width: 135px;
  }
}

@media (max-width: 480px) {
  .modal-searchPanel .xs-search-group input[type="search"],
  .modal-searchPanel .xs-search-group input[type="text"] {
    height: 56px;
    font-size: 0.95rem;
    padding-left: 20px;
  }
  .modal-searchPanel .xs-search-group .search-button {
    width: 42px;
    height: 42px;
  }
}