/**
 * Globonex Executive Brand Theme - 4 Header Area Styling Options
 *
 * Provides 4 distinct header layouts, menu presentations, and top bar button styles:
 * 1. Executive Dual-Bar (Classic Corporate)
 * 2. Modern Inline Glass (SaaS Streamlined)
 * 3. Centered Brand & Split Top Bar (Luxury Portal)
 * 4. Floating Island Glass Bar (Cyber Executive)
 *
 * @package Globonex_Billing_Theme
 * @version 1.4.0
 */

/* ==========================================================================
   COMMON HEADER FOUNDATION & SHARED TOKENS
   ========================================================================== */

.globonex-header-master {
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   OPTION 1: EXECUTIVE DUAL-BAR (CLASSIC CORPORATE)
   ========================================================================== */

.header-layout-style-1 .whmcs-header {
  background: var(--header-bg, #1e3e62);
  color: var(--header-text, #ffffff);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.header-layout-style-1 .whmcs-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.header-layout-style-1 .whmcs-nav-bar {
  background: var(--nav-bg, #1e3e62);
  border-bottom: 3px solid var(--nav-border-bottom, #0564d2);
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  width: 100%;
}

.header-layout-style-1 .whmcs-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
}

.header-layout-style-1 .whmcs-menu > li > a {
  border-radius: 6px;
  padding: 0.85rem 1.15rem;
  color: var(--nav-text, #e2e8f0);
}

.header-layout-style-1 .whmcs-menu > li > a:hover,
.header-layout-style-1 .whmcs-menu > li.current-menu-item > a {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}


/* ==========================================================================
   OPTION 2: MODERN INLINE GLASS (SAAS STREAMLINED)
   ========================================================================== */

.header-layout-style-2 .whmcs-header-inline-glass {
  background: var(--header-bg, #1e3e62);
  color: var(--header-text, #ffffff);
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  padding: 0.65rem 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: 100%;
}

.header-layout-style-2 .whmcs-header-inline-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Inline Centered Pill Navigation */
.header-layout-style-2 .whmcs-inline-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.header-layout-style-2 .whmcs-menu-pills {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0.25rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.2rem;
}

.header-layout-style-2 .whmcs-menu-pills > li > a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  color: var(--nav-text, #e2e8f0);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.22s ease;
}

.header-layout-style-2 .whmcs-menu-pills > li > a:hover,
.header-layout-style-2 .whmcs-menu-pills > li.current-menu-item > a {
  background: var(--primary-color, #0564d2);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(5, 100, 210, 0.35);
}

/* Action Buttons for Option 2 */
.header-layout-style-2 .whmcs-inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.header-layout-style-2 .whmcs-icon-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-layout-style-2 .whmcs-icon-circle-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.header-layout-style-2 .whmcs-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 1.15rem;
  border-radius: 30px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.header-layout-style-2 .whmcs-pill-quote {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  cursor: pointer;
}

.header-layout-style-2 .whmcs-pill-quote:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.header-layout-style-2 .whmcs-pill-portal {
  background: var(--btn-primary-bg, #0564d2);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(5, 100, 210, 0.35);
}

.header-layout-style-2 .whmcs-pill-portal:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(5, 100, 210, 0.45);
}


/* ==========================================================================
   OPTION 3: CENTERED BRAND & SPLIT TOP BAR (LUXURY PORTAL)
   ========================================================================== */

/* Slim Top Utility / Announcement Bar */
.header-layout-style-3 .whmcs-topbar-utility {
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.header-layout-style-3 .whmcs-topbar-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-layout-style-3 .whmcs-topbar-left {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-layout-style-3 .whmcs-announcement-text {
  font-weight: 500;
  color: #e2e8f0;
}

.header-layout-style-3 .whmcs-topbar-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #10b981;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

.header-layout-style-3 .whmcs-topbar-whatsapp-link:hover {
  opacity: 0.85;
}

.header-layout-style-3 .whmcs-topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.header-layout-style-3 .whmcs-topbar-link {
  color: #cbd5e1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.2s;
}

.header-layout-style-3 .whmcs-topbar-link:hover {
  color: #ffffff;
}

.header-layout-style-3 .whmcs-topbar-dark-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.header-layout-style-3 .whmcs-topbar-dark-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Centered Navigation Header */
.header-layout-style-3 .whmcs-header-centered {
  background: var(--header-bg, #1e3e62);
  color: var(--header-text, #ffffff);
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 2px solid var(--primary-color, #0564d2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  width: 100%;
}

.header-layout-style-3 .whmcs-header-centered-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Minimalist Animated Underline Menu */
.header-layout-style-3 .whmcs-centered-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.header-layout-style-3 .whmcs-menu-underline {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.25rem;
}

.header-layout-style-3 .whmcs-menu-underline > li > a {
  display: inline-block;
  padding: 0.6rem 0.2rem;
  color: var(--nav-text, #e2e8f0);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
}

.header-layout-style-3 .whmcs-menu-underline > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color, #0564d2);
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-layout-style-3 .whmcs-menu-underline > li > a:hover,
.header-layout-style-3 .whmcs-menu-underline > li.current-menu-item > a {
  color: #ffffff;
}

.header-layout-style-3 .whmcs-menu-underline > li > a:hover::after,
.header-layout-style-3 .whmcs-menu-underline > li.current-menu-item > a::after {
  width: 100%;
}

/* Buttons for Option 3 */
.header-layout-style-3 .whmcs-centered-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.header-layout-style-3 .whmcs-outline-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.15rem;
  border-radius: 8px;
  background: transparent;
  border: 1.5px solid var(--primary-color, #0564d2);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-layout-style-3 .whmcs-outline-btn:hover {
  background: var(--primary-color, #0564d2);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(5, 100, 210, 0.35);
}

.header-layout-style-3 .whmcs-vip-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  background: var(--primary-color, #0564d2);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(5, 100, 210, 0.3);
  transition: all 0.2s ease;
}

.header-layout-style-3 .whmcs-vip-login-btn:hover {
  background: var(--primary-hover, #034ca3);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(5, 100, 210, 0.45);
}


/* ==========================================================================
   OPTION 4: FLOATING ISLAND GLASS BAR (CYBER EXECUTIVE)
   ========================================================================== */

.header-layout-style-4 .whmcs-floating-island-wrapper {
  width: 100%;
  max-width: 1380px;
  margin: 1.25rem auto 0;
  padding: 0 1.25rem;
  box-sizing: border-box;
  position: sticky;
  top: 1rem;
  z-index: 9999;
}

.header-layout-style-4 .whmcs-floating-island-bar {
  background: var(--header-bg, #1e3e62);
  color: var(--header-text, #ffffff);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Status Beacon Dot */
.header-layout-style-4 .whmcs-island-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-layout-style-4 .whmcs-status-beacon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.header-layout-style-4 .beacon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
  animation: globonexBeaconPulse 2s infinite ease-in-out;
}

@keyframes globonexBeaconPulse {
  0% { transform: scale(0.95); opacity: 0.75; }
  50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 12px #10b981; }
  100% { transform: scale(0.95); opacity: 0.75; }
}

/* 3D Glass Tiles Menu */
.header-layout-style-4 .whmcs-island-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.header-layout-style-4 .whmcs-menu-tiles {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.45rem;
}

.header-layout-style-4 .whmcs-menu-tiles > li > a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.05rem;
  border-radius: 12px;
  color: var(--nav-text, #e2e8f0);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-layout-style-4 .whmcs-menu-tiles > li > a:hover,
.header-layout-style-4 .whmcs-menu-tiles > li.current-menu-item > a {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Action Buttons for Option 4 */
.header-layout-style-4 .whmcs-island-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.header-layout-style-4 .whmcs-cyber-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.header-layout-style-4 .whmcs-cyber-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.header-layout-style-4 .whmcs-cyber-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.85rem;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.header-layout-style-4 .whmcs-cyber-cart-btn:hover {
  background: rgba(56, 189, 248, 0.28);
  transform: translateY(-1px);
}

.header-layout-style-4 .whmcs-cyber-quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 1.15rem;
  border-radius: 12px;
  background: var(--primary-gradient, linear-gradient(135deg, #0564d2 0%, #00b4d8 100%));
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 100, 210, 0.35);
  transition: all 0.2s ease;
}

.header-layout-style-4 .whmcs-cyber-quote-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 100, 210, 0.5);
  filter: brightness(1.1);
}

.header-layout-style-4 .whmcs-cyber-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.header-layout-style-4 .whmcs-cyber-login-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.4);
}


/* ==========================================================================
   RESPONSIVE MOBILE STYLES FOR ALL 4 HEADER OPTIONS
   ========================================================================== */

@media (max-width: 960px) {
  .header-layout-style-2 .whmcs-inline-nav,
  .header-layout-style-3 .whmcs-centered-nav,
  .header-layout-style-4 .whmcs-island-nav {
    display: none; /* Fallback to mobile drawer if needed */
  }

  .header-layout-style-4 .whmcs-floating-island-wrapper {
    margin: 0.5rem auto 0;
    padding: 0 0.5rem;
    top: 0.5rem;
  }

  .header-layout-style-4 .whmcs-floating-island-bar {
    border-radius: 14px;
    padding: 0.65rem 1rem;
  }

  .header-layout-style-3 .whmcs-topbar-left {
    display: none;
  }

  .header-layout-style-3 .whmcs-topbar-utility-inner {
    justify-content: flex-end;
  }
}
