/* ==========================================================================
   Nodeteria WHMCS Child Theme — custom.css
   Scoped ONLY to the marketing nav and footer.
   Nexus/Bootstrap content area is left completely untouched.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Nexus parent variables (re-declared here because WHMCS child themes
      replace the parent custom.css rather than stacking on top of it) ─────── */
:root {
    --white: #fff;
    --neutral-50: #fbf9fa;
    --neutral-100: #f4f5f7;
    --neutral-200: #e4e4e7;
    --neutral-300: #d0d5dd;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    --neutral-950: #030712;
    --primary-50: var(--neutral-50);
    --primary-100: var(--neutral-100);
    --primary-200: var(--neutral-200);
    --primary-300: var(--neutral-300);
    --primary-400: var(--neutral-400);
    --primary-500: var(--neutral-500);
    --primary-600: var(--neutral-600);
    --primary-700: var(--neutral-700);
    --primary-800: var(--neutral-800);
    --primary-900: var(--neutral-900);
    --primary-950: var(--neutral-900);
    --primary: var(--neutral-900);
    --primary-lifted: var(--neutral-800);
    --primary-accented: var(--neutral-700);
    --secondary: var(--neutral-500);
    --secondary-lifted: var(--neutral-600);
    --secondary-accented: var(--neutral-700);
    --success: #00a63e;
    --success-lifted: #008236;
    --success-accented: #016630;
    --info: #155dfc;
    --info-lifted: #1447e6;
    --info-accented: #193cb8;
    --notice: #7f22fe;
    --notice-lifted: #7008e7;
    --notice-accented: #5d0ec0;
    --warning: #f54a00;
    --warning-lifted: #ca3500;
    --warning-accented: #9f2d00;
    --error: #e7000b;
    --error-lifted: #c10007;
    --error-accented: #9f0712;
    --grayscale: var(--neutral-900);
    --grayscale-lifted: var(--neutral-800);
    --grayscale-accented: var(--neutral-700);
    --neutral: var(--neutral-500);
    --neutral-lifted: var(--neutral-600);
    --neutral-accented: var(--neutral-700);
    --text-inverted: var(--white);
    --text-muted: var(--neutral-400);
    --text-lifted: var(--neutral-500);
    --text-accented: var(--neutral-600);
    --text: var(--neutral-900);
    --border-muted: var(--neutral-200);
    --border: var(--neutral-300);
    --border-lifted: var(--neutral-400);
    --border-accented: var(--neutral-600);
    --bg: var(--white);
    --bg-muted: var(--neutral-50);
    --bg-lifted: var(--neutral-100);
    --bg-accented: var(--neutral-200);
    --bg-inverted: var(--neutral-900);
    --yellow-200: #fff085;
    --yellow-300: #ffdf20;
    --teal-300: #46edd5;
    --teal-400: #00d5be;
    --emerald-300: #5ee9b5;
    --pink-400: #fb64b6;
    --text-xs: 0.625rem;
    --text-sm: 0.75rem;
    --text-md: 0.875rem;
    --text-lg: 1rem;
    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;
    --rounding-sm: 0.25rem;
    --rounding-md: 0.5rem;
    --rounding-lg: 0.75rem;
    --letter-spacing: 0em;
    --disabled-opacity: 25%;
}

/* ── Nodeteria brand tokens ───────────────────────────────────────────────── */
:root {
  --nd-primary:       #2563eb;
  --nd-primary-hover: #1d4ed8;
  --nd-purple:        #7c3aed;
  --nd-text:          #0f172a;
  --nd-muted:         #64748b;
  --nd-border:        #e2e8f0;
  --nd-radius:        10px;
  --nd-radius-sm:     6px;
}

/* ── Shared logo (used in both nav and footer) ────────────────────────────── */
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--nd-primary), var(--nd-purple));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 19px; letter-spacing: -1px;
  flex-shrink: 0;
}
.logo-text {
  font-weight: 800; font-size: 17px; color: var(--nd-text);
  letter-spacing: -.3px; display: block; line-height: 1.2;
}
.logo-sub {
  font-size: 9px; font-weight: 700; color: var(--nd-muted);
  letter-spacing: 1.5px; text-transform: uppercase; display: block; margin-top: -2px;
}

/* ══════════════════════════════════════════════════════════════════════════
   WHMCS CLIENT AREA NAVBAR
   ══════════════════════════════════════════════════════════════════════════ */

.nd-whmcs-bar {
  background: #0f172a;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
}

/* Nav links */
.nd-whmcs-bar .nav-link,
.nd-whmcs-bar #nav > li > a,
.nd-whmcs-bar .navbar-nav > li > a {
  color: rgba(255,255,255,.7) !important;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px !important;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.nd-whmcs-bar .nav-link:hover,
.nd-whmcs-bar #nav > li > a:hover,
.nd-whmcs-bar .navbar-nav > li > a:hover {
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
}
.nd-whmcs-bar .navbar-nav > li.active > a {
  color: #fff !important;
  background: rgba(255,255,255,.12) !important;
}

/* Dropdowns */
.nd-whmcs-bar .dropdown-menu {
  background: #1e293b;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 6px;
}
.nd-whmcs-bar .dropdown-menu a,
.nd-whmcs-bar .dropdown-item {
  color: rgba(255,255,255,.8) !important;
  border-radius: 6px;
  font-size: 13px;
}
.nd-whmcs-bar .dropdown-menu a:hover,
.nd-whmcs-bar .dropdown-item:hover {
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
}

/* Search inputs */
.nd-whmcs-bar .form-control,
.nd-whmcs-bar .input-group-text {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  color: #fff !important;
  border-radius: 6px;
}
.nd-whmcs-bar .form-control::placeholder { color: rgba(255,255,255,.4) !important; }
.nd-whmcs-bar .form-control:focus {
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.3) !important;
  box-shadow: none !important;
  color: #fff !important;
}

/* Search button */
.nd-whmcs-bar .btn-default,
.nd-whmcs-bar .input-group-prepend .btn {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  color: rgba(255,255,255,.6) !important;
}
.nd-whmcs-bar .btn-default:hover,
.nd-whmcs-bar .input-group-prepend .btn:hover {
  background: rgba(255,255,255,.15) !important;
  color: #fff !important;
}

/* Mobile toggler */
.nd-whmcs-bar .navbar-toggler {
  color: rgba(255,255,255,.7) !important;
  border-color: rgba(255,255,255,.2) !important;
  font-size: 12px;
  font-weight: 600;
}

/* Cart */
.nd-whmcs-bar .cart-btn { color: rgba(255,255,255,.7) !important; }
.nd-whmcs-bar .cart-btn:hover { color: #fff !important; background: rgba(255,255,255,.08) !important; }

/* Account switcher */
.nd-whmcs-bar .active-client .input-group-text {
  background: transparent !important;
  border-color: rgba(255,255,255,.15) !important;
  color: rgba(255,255,255,.5) !important;
  font-size: 12px;
}
.nd-whmcs-bar .btn-active-client {
  color: rgba(255,255,255,.85) !important;
  border-color: rgba(255,255,255,.15) !important;
  background: transparent !important;
  font-size: 13px; font-weight: 600;
}
.nd-whmcs-bar .btn-active-client:hover {
  color: #fff !important;
  border-color: rgba(255,255,255,.3) !important;
}

/* Notification bell */
.nd-notif-btn {
  color: rgba(255,255,255,.6);
  padding: 4px 8px;
  position: relative;
  background: transparent !important;
  border: none !important;
}
.nd-notif-btn:hover { color: #fff !important; }
.nd-notif-count {
  position: absolute; top: 0; right: 0;
  background: #2563eb; color: #fff;
  font-size: 10px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ══════════════════════════════════════════════════════════════════════════
   MARKETING NAV
   ══════════════════════════════════════════════════════════════════════════ */

.nd-header {
  position: sticky; top: 0; z-index: 1031;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nd-border);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.nd-nav {
  display: flex; align-items: center; height: 68px; gap: 8px;
}

/* Logo */
.nd-nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0; margin-right: 8px;
}
.nd-nav-logo:hover { text-decoration: none; }

/* Nav links list */
.nd-nav-menu {
  display: flex; align-items: center; gap: 2px; flex: 1;
  list-style: none; margin: 0; padding: 0;
}

.nd-nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 13px; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: #334155;
  transition: all .2s; text-decoration: none;
}
.nd-nav-link:hover { color: var(--nd-primary); background: #eff6ff; text-decoration: none; }

/* VPS dropdown */
.nd-nav-dropdown { position: relative; }

.nd-nav-dropdown-toggle {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 13px; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: #334155;
  background: none; border: none; cursor: pointer;
  font-family: inherit; transition: all .2s; text-decoration: none;
}
.nd-nav-dropdown-toggle:hover,
.nd-nav-dropdown.show .nd-nav-dropdown-toggle { color: var(--nd-primary); background: #eff6ff; }

.nd-nav-dropdown-arrow { font-size: 10px; transition: transform .2s; }
.nd-nav-dropdown.show .nd-nav-dropdown-arrow { transform: rotate(180deg); }

.nd-nav-dropdown-menu {
  border: 1px solid var(--nd-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04) !important;
  padding: 8px !important;
  min-width: 270px !important;
  margin-top: 0 !important;
}
/* Invisible bridge above the dropdown so the hover state isn't lost crossing the gap */
.nd-nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nd-nav-dropdown-link {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  text-decoration: none; transition: all .2s; color: inherit;
}
.nd-nav-dropdown-link:hover { background: #eff6ff; text-decoration: none; }

.nd-nav-dropdown-link i {
  width: 32px; height: 32px; border-radius: 6px;
  background: #eff6ff; color: var(--nd-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.nd-nav-dropdown-link:hover i { background: var(--nd-primary); color: #fff; }

.nd-nav-dropdown-link-title { display: block; font-size: 14px; font-weight: 700; color: #0f172a; }
.nd-nav-dropdown-link-desc  { display: block; font-size: 12px; color: #64748b; margin-top: 2px; }

/* Status pill */
.nd-nav-status { list-style: none; margin-left: 10px; }
.nd-status-pill {
  display: flex; align-items: center; gap: 6px;
  background: #dcfce7; color: #16a34a;
  font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 9999px; white-space: nowrap;
}
.nd-status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #16a34a; flex-shrink: 0;
  animation: nd-pulse 2s ease-in-out infinite;
}
@keyframes nd-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(22,163,74,.4); }
  50%      { box-shadow: 0 0 0 5px rgba(22,163,74,0); }
}

/* Actions (right side of nav) */
.nd-nav-actions {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
}
.nd-nav-greeting {
  font-size: 13px; font-weight: 600; color: #64748b; margin-right: 4px;
}

/* Buttons inside the marketing header only */
.nd-header a.btn-secondary,
.nd-header a.btn-primary {
  display: inline-flex; align-items: center;
  padding: 8px 16px; font-size: 14px; font-weight: 600;
  border-radius: 6px; border-width: 2px; border-style: solid;
  text-decoration: none; transition: all .2s; cursor: pointer;
}
.nd-header a.btn-secondary {
  background: #fff; color: var(--nd-primary); border-color: var(--nd-primary);
}
.nd-header a.btn-secondary:hover { background: #eff6ff; transform: translateY(-1px); text-decoration: none; }
.nd-header a.btn-primary {
  background: var(--nd-primary); color: #fff; border-color: var(--nd-primary);
  box-shadow: 0 8px 25px rgba(37,99,235,.25);
}
.nd-header a.btn-primary:hover {
  background: var(--nd-primary-hover); border-color: var(--nd-primary-hover);
  transform: translateY(-1px); box-shadow: 0 12px 30px rgba(37,99,235,.35);
  text-decoration: none; color: #fff;
}

/* Mobile hamburger */
.nd-nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; border-radius: 6px;
}
.nd-nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--nd-text); border-radius: 2px; transition: all .2s;
}
.nd-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nd-nav-toggle.open span:nth-child(2) { opacity: 0; }
.nd-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop hover-open for VPS dropdown */
@media (hover: hover) and (pointer: fine) {
  .nd-nav-dropdown:hover .nd-nav-dropdown-menu { display: block; }
  .nd-nav-dropdown:hover .nd-nav-dropdown-arrow { transform: rotate(180deg); }
}

/* Mobile collapse */
@media (max-width: 1199px) {
  .nd-nav-menu {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nd-border);
    padding: 12px 16px; gap: 4px;
  }
  .nd-nav-menu.open { display: flex; }
  .nd-nav-toggle { display: flex; }
  .nd-nav-actions { display: none; }
  .nd-nav-actions.open { display: flex; }
  .nd-header { position: relative; }
}

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════ */

.nd-footer {
  background: #0f172a;
  padding: 64px 0 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.nd-footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}

.nd-footer-tagline {
  font-size: 14px; color: rgba(255,255,255,.45);
  line-height: 1.65; margin-top: 14px; max-width: 270px;
}

.nd-footer-heading {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: #fff; margin-bottom: 18px;
}

.nd-footer-links { display: flex; flex-direction: column; gap: 11px; }

.nd-footer-link {
  font-size: 14px; color: rgba(255,255,255,.5) !important;
  transition: color .2s; text-decoration: none !important;
}
.nd-footer-link:hover { color: #fff !important; text-decoration: none !important; }

/* Payment row */
.nd-footer-payments {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.nd-footer-pay-label {
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: 1px;
}
.nd-payment-icons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nd-payment-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6); font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 9999px;
}

/* Footer bottom bar */
.nd-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,.35);
  flex-wrap: wrap; gap: 12px;
}
.nd-footer-bottom-links { display: flex; gap: 20px; }

/* Footer logo overrides (white on dark bg) */
.nd-footer .nd-nav-logo:hover { text-decoration: none; }

/* ── Responsive footer ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nd-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nd-footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .nd-footer-grid { grid-template-columns: 1fr; }
}
