/* ==========================================================================
   Globonex Executive Theme - Enhanced Features Stylesheet
   Night Mode, Hero Slider, Contextual Quote Modal & Contact Form
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Night Mode (Dark Theme) Styles & Transitions
   -------------------------------------------------------------------------- */
html[data-theme="dark"] {
  --body-bg: #090f17;
  --bg-canvas: #090f17;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --bg-card: #111b27;
  --bg-card-border: rgba(255, 255, 255, 0.12);
  --headings-color: #ffffff;
  --header-bg: #060b11;
  --nav-bg: #0a1320;
  --footer-bg: #060b11;
  --footer-text: #94a3b8;
  --footer-heading: #ffffff;
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] body {
  background-color: var(--body-bg);
  color: var(--text-main);
}

html[data-theme="dark"] .whmcs-header {
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .whmcs-nav-bar {
  background: var(--nav-bg);
}

html[data-theme="dark"] .whmcs-menu ul.sub-menu {
  background: #0d1827;
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .glass-card,
html[data-theme="dark"] .site-card,
html[data-theme="dark"] article.post,
html[data-theme="dark"] article.page,
html[data-theme="dark"] .page-title-banner {
  background: var(--bg-card);
  border-color: var(--bg-card-border);
  color: var(--text-main);
}

html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="url"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background: #0c1521;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus {
  border-color: var(--primary-color);
  background: #0f1c2d;
  box-shadow: 0 0 0 3px rgba(5, 100, 210, 0.25);
}

html[data-theme="dark"] .btn-secondary {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary-color);
  color: #ffffff;
}

/* Night Mode Toggle Button in Header */
.globonex-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.globonex-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.globonex-theme-toggle-icon {
  font-size: 0.95rem;
  line-height: 1;
}

/* Header Quote Button */
.globonex-header-quote-btn {
  background: linear-gradient(135deg, #0564d2 0%, #0284c7 100%);
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.38rem 0.85rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.globonex-header-quote-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(2, 132, 199, 0.45);
}

/* --------------------------------------------------------------------------
   2. Full-Width Responsive Hero Slider
   -------------------------------------------------------------------------- */
.globonex-hero-slider-section {
  width: 100%;
  max-width: 100%;
  position: relative;
  margin-top: 0;
  margin-bottom: 2.5rem;
  overflow: hidden;
  background: #0b1523;
  box-sizing: border-box;
}

.globonex-slider-container {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.globonex-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center center;
  z-index: 1;
}

.globonex-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.globonex-slide-backdrop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(6, 12, 20, 0.94) 0%, rgba(11, 22, 35, 0.88) 50%, rgba(6, 12, 20, 0.7) 100%);
  z-index: 1;
}

.globonex-slide-content-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max-width, 100%);
  margin: 0 auto;
  padding: 4rem clamp(1rem, 2.5vw, 2.5rem);
  box-sizing: border-box;
}

.globonex-slide-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.globonex-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.globonex-slide-title {
  color: #ffffff;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.globonex-slide-title span {
  background: linear-gradient(135deg, #38bdf8 0%, #00d2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.globonex-slide-desc {
  color: #cbd5e1;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 620px;
}

.globonex-slide-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.globonex-slide-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

.globonex-slide-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.globonex-slide-card-preview {
  background: rgba(19, 33, 50, 0.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.globonex-slide-card-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0564d2, #38bdf8, #10b981);
}

.globonex-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.globonex-preview-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.globonex-stat-item {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.globonex-stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #38bdf8;
}

.globonex-stat-lbl {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Slider Controls */
.globonex-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.globonex-slider-arrow:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-50%) scale(1.08);
}

.globonex-slider-prev {
  left: 20px;
}

.globonex-slider-next {
  right: 20px;
}

.globonex-slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.globonex-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.globonex-slider-dot.active {
  width: 32px;
  border-radius: 6px;
  background: var(--primary-color, #0564d2);
}

@media (max-width: 900px) {
  .globonex-slide-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .globonex-slide-card-preview {
    display: none;
  }
  .globonex-slide-content-wrap {
    padding: 3rem 1.25rem 4rem;
  }
}

@media (max-width: 768px) {
  .globonex-hero-slider-section {
    width: 100%;
    max-width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
  }

  .globonex-slider-container {
    min-height: 480px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .globonex-slide-content-wrap {
    padding: 2.25rem 1rem 3.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .globonex-slide-title {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem);
    line-height: 1.2;
    overflow-wrap: break-word;
    word-wrap: break-word;
    margin-bottom: 0.75rem;
  }

  .globonex-slide-desc {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    overflow-wrap: break-word;
  }

  .globonex-slide-features {
    gap: 0.4rem;
    margin-bottom: 1.5rem;
  }

  .globonex-slide-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.55rem;
  }

  .globonex-slide-ctas {
    gap: 0.75rem;
    width: 100%;
  }

  .globonex-slide-ctas .btn {
    padding: 0.7rem 1.15rem !important;
    font-size: 0.88rem !important;
  }

  /* Slider Navigation Arrows on Touch Devices */
  .globonex-slider-arrow {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
    background: rgba(15, 23, 42, 0.75);
  }

  .globonex-slider-prev {
    left: 8px;
  }

  .globonex-slider-next {
    right: 8px;
  }

  .globonex-slider-dots {
    bottom: 14px;
  }
}

/* --------------------------------------------------------------------------
   3. "Get a Quote" Context-Aware Modal Dialog
   -------------------------------------------------------------------------- */
.globonex-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 12, 20, 0.75);
  backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.globonex-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.globonex-modal-dialog {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--bg-card-border, #e2e8f0);
  border-radius: 16px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.globonex-modal-backdrop.open .globonex-modal-dialog {
  transform: translateY(0) scale(1);
}

.globonex-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--bg-card-border, #e2e8f0);
  background: linear-gradient(135deg, rgba(5, 100, 210, 0.08) 0%, transparent 100%);
}

.globonex-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--headings-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.globonex-modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s;
}

.globonex-modal-close:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.globonex-modal-body {
  padding: 1.75rem;
}

/* Service Selection Grid */
.globonex-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.globonex-service-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--bg-card-border, #e2e8f0);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.globonex-service-card:hover {
  border-color: var(--primary-color);
  background: rgba(5, 100, 210, 0.04);
  transform: translateY(-1px);
}

.globonex-service-card.selected {
  border-color: var(--primary-color);
  background: rgba(5, 100, 210, 0.1);
  box-shadow: 0 4px 12px rgba(5, 100, 210, 0.15);
}

.globonex-service-card input[type="radio"],
.globonex-service-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.globonex-service-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.globonex-service-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--headings-color);
  line-height: 1.25;
}

/* Contextual Service Questionnaire Panels */
.globonex-service-questions-panel {
  display: none;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--bg-card-border, #e2e8f0);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.3s ease;
}

html[data-theme="dark"] .globonex-service-questions-panel {
  background: rgba(0, 0, 0, 0.25);
}

.globonex-service-questions-panel.active {
  display: block;
}

.globonex-service-panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Form Controls */
.globonex-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.globonex-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.globonex-form-group.full-width {
  grid-column: 1 / -1;
}

.globonex-form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--headings-color);
}

.globonex-form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--bg-card-border, #cbd5e1);
  background: #ffffff;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s;
}

.globonex-form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(5, 100, 210, 0.2);
}

/* WhatsApp Submit Button */
.globonex-btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 0.85rem 1.75rem;
  font-size: 0.96rem;
  font-weight: 700;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
  width: 100%;
}

.globonex-btn-whatsapp:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* --------------------------------------------------------------------------
   4. Secure Contact Form with Dynamic Captcha
   -------------------------------------------------------------------------- */
.globonex-contact-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--bg-card-border, #e2e8f0);
  border-radius: 12px;
  padding: 2.25rem;
  box-shadow: var(--shadow-card, 0 4px 12px rgba(0, 0, 0, 0.08));
  margin-bottom: 2rem;
}

.globonex-contact-header {
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--bg-card-border, #e2e8f0);
  padding-bottom: 1rem;
}

.globonex-contact-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--headings-color);
}

.globonex-contact-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.globonex-captcha-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.03);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--bg-card-border, #e2e8f0);
}

html[data-theme="dark"] .globonex-captcha-row {
  background: rgba(0, 0, 0, 0.25);
}

.globonex-captcha-badge {
  font-weight: 800;
  font-size: 1.05rem;
  font-family: monospace;
  color: var(--primary-color);
  letter-spacing: 0.1em;
  background: rgba(5, 100, 210, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

.globonex-alert {
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: none;
}

.globonex-alert.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #065f46;
}

html[data-theme="dark"] .globonex-alert.success {
  color: #6ee7b7;
}

.globonex-alert.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #991b1b;
}

html[data-theme="dark"] .globonex-alert.error {
  color: #fca5a5;
}

/* Keyframes */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   5. Domain Search Widget 100% Full-Width Layout
   -------------------------------------------------------------------------- */
.globonex-domain-search-wrapper,
.globonex-domain-widget-embed,
iframe.globonex-domain-widget-embed,
#billing-domain-search,
#billing-domain-search iframe,
iframe[src*="domain-search"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
}

.entry-content iframe[src*="domain-search"],
.entry-content .globonex-domain-widget-embed {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* --------------------------------------------------------------------------
   6. Flashy Price & Features Comparison Table (Glassmorphism & Theme Presets)
   -------------------------------------------------------------------------- */
.globonex-pricing-section {
  padding: 3rem 0;
  width: 100%;
  box-sizing: border-box;
}

.globonex-pricing-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.globonex-pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(5, 100, 210, 0.12);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  box-shadow: 0 4px 14px rgba(5, 100, 210, 0.15);
}

.globonex-pricing-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--headings-color);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.globonex-pricing-title span {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.globonex-pricing-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Interactive Billing Cycle Toggle */
.globonex-billing-switch-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.75rem;
}

.globonex-billing-switch-wrap {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 0.35rem;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.globonex-cycle-btn {
  padding: 0.65rem 1.5rem;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.globonex-cycle-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(5, 100, 210, 0.35);
}

.globonex-discount-pill {
  background: #10b981;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 12px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Flashy Pricing Grid Responsive Wrapper & Grid */
.globonex-pricing-grid-responsive {
  width: 100%;
  max-width: 100%;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  padding-top: 25px !important; /* Dedicated headroom so top badges/ribbons are never cropped */
  margin-top: 1rem;
  box-sizing: border-box;
}

.globonex-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.75rem);
  align-items: stretch;
  padding-top: 15px; /* Ample top clearance for popular ribbons */
  margin-top: 10px;
  margin-bottom: 3rem;
  text-align: left;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible !important;
}

/* Explicit data-columns attribute fallbacks to ensure columns shrink gracefully without scrolling */
.globonex-pricing-grid[data-columns="1"] { grid-template-columns: minmax(0, 1fr); }
.globonex-pricing-grid[data-columns="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.globonex-pricing-grid[data-columns="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.globonex-pricing-grid[data-columns="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.globonex-pricing-grid[data-columns="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.globonex-pricing-grid[data-columns="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.globonex-pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 2.5rem 2.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  margin-top: 10px; /* Room for ribbon at top: -15px */
  overflow: visible !important;
  box-sizing: border-box;
  min-width: 0;
}

.globonex-pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px -10px rgba(5, 100, 210, 0.2);
  border-color: var(--primary-color);
}

/* Most Popular Tier Accent (Standalone Card Mode Only) */
.globonex-pricing-section:not(.globonex-table-system) .globonex-pricing-card.popular,
.globonex-pricing-card.popular {
  border: 2px solid var(--primary-color) !important;
  box-shadow: 0 18px 40px -5px rgba(5, 100, 210, 0.28);
  transform: scale(1.02);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(5, 100, 210, 0.04) 100%);
}

.globonex-pricing-section:not(.globonex-table-system) .globonex-pricing-card.popular:hover,
.globonex-pricing-card.popular:hover {
  transform: translateY(-8px) scale(1.03);
}

.globonex-popular-ribbon,
.globonex-pricing-section:not(.globonex-table-system) .globonex-popular-ribbon {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 1.35rem;
  border-radius: 25px;
  box-shadow: 0 4px 14px rgba(5, 100, 210, 0.45);
  white-space: nowrap;
  z-index: 10;
}

.globonex-card-top {
  margin-bottom: 1.5rem;
}

.globonex-plan-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--headings-color);
  margin-bottom: 0.4rem;
}

.globonex-plan-tagline {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  min-height: 2.8rem;
}

.globonex-plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 1.5rem 0 0.5rem;
}

.globonex-plan-currency {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.globonex-plan-price-amount {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--headings-color);
  letter-spacing: -0.03em;
  transition: all 0.2s ease;
}

.globonex-plan-period {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.globonex-plan-subtext {
  font-size: 0.82rem;
  color: #10b981;
  font-weight: 700;
  min-height: 1.25rem;
}

/* Feature Bullets inside Cards */
.globonex-plan-features {
  list-style: none;
  margin: 1.75rem 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-top: 1px solid var(--bg-card-border);
  padding-top: 1.5rem;
}

.globonex-plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.45;
}

.globonex-plan-feature-item .check {
  color: #10b981;
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1;
}

.globonex-plan-feature-item .highlight {
  font-weight: 700;
  color: var(--headings-color);
}

.globonex-plan-cta-btn {
  width: 100%;
  text-align: center;
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}

.globonex-pricing-card.popular .globonex-plan-cta-btn {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(5, 100, 210, 0.4);
}

.globonex-pricing-card.popular .globonex-plan-cta-btn:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5, 100, 210, 0.5);
}

/* Comparison Matrix Toggle Button */
.globonex-matrix-toggle-wrap {
  text-align: center;
  margin: 1rem 0 2rem;
}

.globonex-matrix-toggle-btn {
  background: var(--bg-card);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 800;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(5, 100, 210, 0.12);
}

.globonex-matrix-toggle-btn:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(5, 100, 210, 0.35);
}

/* Collapsible Detailed Spec Matrix */
.globonex-matrix-collapsible {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0, 1, 0, 1), opacity 0.4s ease;
}

.globonex-matrix-collapsible.expanded {
  max-height: 5000px;
  opacity: 1;
  transition: max-height 0.8s ease-in-out, opacity 0.5s ease;
  margin-top: 1.5rem;
}

.globonex-table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--bg-card-border);
  background: var(--bg-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.globonex-comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.95rem;
}

.globonex-comparison-table th,
.globonex-comparison-table td {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--bg-card-border);
  color: var(--text-main);
  transition: background 0.15s ease;
}

.globonex-comparison-table th:first-child,
.globonex-comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  width: 32%;
}

.globonex-comparison-table thead th {
  background: rgba(5, 100, 210, 0.08);
  color: var(--headings-color);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 1.5rem 1.4rem;
}

.globonex-comparison-table thead th.col-popular {
  background: rgba(5, 100, 210, 0.16);
  color: var(--primary-color);
  border-top: 3px solid var(--primary-color);
}

.globonex-comparison-table tr.category-row th {
  background: rgba(5, 100, 210, 0.12);
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.4rem;
  text-align: left;
}

.globonex-comparison-table tbody tr:hover td {
  background: rgba(5, 100, 210, 0.04);
}

.globonex-comparison-table td.col-popular {
  background: rgba(5, 100, 210, 0.05);
  font-weight: 600;
}

.globonex-comparison-table td.col-hovered {
  background: rgba(5, 100, 210, 0.08) !important;
}

.globonex-icon-check {
  color: #10b981;
  font-size: 1.25rem;
  font-weight: 900;
  display: inline-block;
}

.globonex-icon-cross {
  color: #94a3b8;
  font-size: 1.15rem;
  font-weight: 700;
  display: inline-block;
}

/* Night Mode Overrides */
html[data-theme="dark"] .globonex-pricing-card {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .globonex-pricing-card.popular {
  background: linear-gradient(180deg, #111b27 0%, rgba(5, 100, 210, 0.1) 100%);
  border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .globonex-billing-switch-wrap {
  background: #0d1827;
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .globonex-table-responsive {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .globonex-comparison-table thead th {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .globonex-comparison-table thead th.col-popular {
  background: rgba(5, 100, 210, 0.25);
}

html[data-theme="dark"] .globonex-comparison-table tr.category-row th {
  background: rgba(5, 100, 210, 0.2);
  color: #38bdf8;
}

html[data-theme="dark"] .globonex-comparison-table td.col-popular {
  background: rgba(5, 100, 210, 0.08);
}

/* Responsive Breakpoints & Mobile Optimization */
@media (max-width: 900px) {
  .globonex-pricing-grid-responsive {
    overflow: visible !important;
    overflow-x: visible !important;
  }
  .globonex-pricing-grid {
    grid-template-columns: 1fr !important;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }
  .globonex-pricing-card.popular {
    transform: none;
  }
  .globonex-pricing-card.popular:hover {
    transform: translateY(-6px);
  }
  .globonex-pricing-title {
    font-size: 1.85rem;
  }
  .globonex-pricing-desc {
    font-size: 0.95rem;
  }
  .globonex-form-grid {
    grid-template-columns: 1fr !important;
  }
  .globonex-slide-content-wrap {
    padding: 3rem 1.25rem 3.5rem;
  }
}

@media (max-width: 600px) {
  .globonex-modal-backdrop {
    padding: 0.75rem;
  }
  .globonex-modal-dialog {
    max-height: 94vh;
    border-radius: 12px;
  }
  .globonex-modal-body {
    padding: 1.25rem 1rem;
  }
  .globonex-service-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem;
  }
  .globonex-contact-card {
    padding: 1.5rem 1.15rem;
    border-radius: 10px;
  }
  .globonex-contact-header h2 {
    font-size: 1.35rem;
  }
  .globonex-captcha-row {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .globonex-captcha-row input[name="captcha_answer"] {
    max-width: 100% !important;
    width: 100%;
  }
  .globonex-pricing-card {
    padding: 2rem 1.25rem;
    border-radius: 14px;
  }
  .globonex-billing-switch-wrap {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 20px;
    padding: 0.25rem;
    gap: 0.25rem;
  }
  .globonex-cycle-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 16px;
  }
  .globonex-comparison-table {
    font-size: 0.8rem;
  }
  .globonex-comparison-table th,
  .globonex-comparison-table td {
    padding: 0.6rem 0.65rem;
  }
  .globonex-comparison-table th.spec-name,
  .globonex-comparison-table td.spec-name {
    min-width: 130px;
    font-size: 0.78rem;
  }
}

