/* ==========================================================================
   Kroma Lab — WHMCS custom theme
   ========================================================================== */

* { box-sizing: border-box; }

/* overflow-x lives on <html>, not <body>: setting it here would force the
   browser to compute body's overflow-y as `auto` too (CSS overflow
   interdependency), turning <body> into its own scroll container and
   breaking position:sticky for descendants (e.g. the order summary card)
   whose "nearest scrolling ancestor" is supposed to be the real viewport. */
/* Matches the footer (always dark, on every page) so iOS Safari's elastic
   overscroll bounce past the bottom of the page shows this instead of the
   browser's default white — body's own background still covers all the
   real content above it. */
html { overflow-x: hidden; background: var(--kl-ink); }

body.kl-body {
  font-family: var(--kl-font-body);
  color: var(--kl-ink);
  background: var(--kl-white);
  -webkit-font-smoothing: antialiased;
}

body.kl-noscroll { overflow: hidden; }
body.kl-body { transition: opacity 0.2s ease; }
body.kl-page-fade-out { opacity: 0.4; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--kl-font-display);
  color: var(--kl-ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a,
a:link,
a:visited,
a:hover,
a:focus,
a:active { text-decoration: none; }
a { color: var(--kl-blue-600); }
a:hover { color: var(--kl-cyan-500); }

/* Clean focus style: no default browser outline/underline, but keyboard
   navigation still gets a visible (non-underline) ring for accessibility. */
a, a:focus, a:active, a:hover,
button, button:focus, button:active,
.kl-btn, .kl-btn:focus, .kl-btn:active,
input, input:focus,
textarea, textarea:focus,
select, select:focus { outline: none; }
a:focus-visible,
button:focus-visible,
.kl-btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--kl-cyan-400);
  outline-offset: 2px;
}

.kl-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.kl-container-fluid { width: 100%; padding: 0 24px; }
.kl-row { display: flex; flex-wrap: wrap; gap: 32px; }
.kl-col-full { flex: 1 1 100%; min-width: 0; }
.kl-col-main { flex: 1 1 0; min-width: 0; }
.kl-col-main--with-sidebar { order: 2; }
.kl-col-sidebar { flex: 0 0 280px; order: 1; }

section#main-body { padding-top: 0; padding-bottom: 0; }
.kl-page-section, section#main-body.kl-page-section { padding: 100px 0 16px; }
body.kl-body--hero .kl-page-section, body.kl-body--hero section#main-body.kl-page-section { padding-top: 48px; }
/* .kl-section (used for the KB categories block) carries its own 96px top
   padding on top of that 48px — right after the KB hero that's redundant.
   Scoped to .kl-body--kb specifically (not all of .kl-body--hero) so the
   homepage/service pages' own first section is untouched. */
body.kl-body--kb .main-content > .kl-section:first-child { padding-top: 24px; }
.main-content { margin-bottom: 0; min-height: 200px; }

.kl-text-gradient {
  background: var(--kl-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Buttons (Material/Flutter-style: pill shape, soft tinted elevation) ---- */
.kl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.93rem;
  font-family: var(--kl-font-display);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--kl-ease), box-shadow 0.25s var(--kl-ease), background 0.25s var(--kl-ease), color 0.25s var(--kl-ease), border-color 0.25s var(--kl-ease);
  white-space: nowrap;
}
.kl-btn:active { transform: scale(0.96); }
.kl-btn--lg { padding: 16px 32px; font-size: 1rem; }
.kl-btn--primary {
  background: var(--kl-gradient-brand);
  background-size: 160% 160%;
  color: var(--kl-white);
  box-shadow: 0 10px 24px rgba(0, 101, 139, 0.28);
}
.kl-btn--primary:hover { transform: translateY(-2px); background-position: 100% 0; color: var(--kl-white); box-shadow: 0 16px 34px rgba(0, 101, 139, 0.34); }
.kl-btn--primary:active { transform: scale(0.96); }
.kl-btn--ghost { background: transparent; color: var(--kl-ink); border-color: var(--kl-gray-300); }
.kl-btn--ghost:hover { border-color: var(--kl-cyan-500); color: var(--kl-blue-600); transform: translateY(-2px); background: var(--kl-gray-100); }
.kl-btn--outline { background: rgba(255,255,255,0.06); color: var(--kl-white); border-color: rgba(255,255,255,0.3); backdrop-filter: blur(6px); }
.kl-btn--outline:hover { background: rgba(255,255,255,0.14); border-color: #fff; color: #fff; transform: translateY(-2px); }

/* ---- Header / Nav --------------------------------------------------------- */
.kl-header { position: relative; z-index: 100; }
.kl-header__bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: transparent;
  transition: background 0.35s var(--kl-ease), box-shadow 0.35s var(--kl-ease), backdrop-filter 0.35s var(--kl-ease);
}
.kl-header--solid .kl-header__bar,
.kl-header__bar.kl-header--solid,
.kl-header--solid.kl-header .kl-header__bar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: var(--kl-shadow-sm);
}
.kl-header:not(.kl-header--solid) .kl-header__bar { padding-top: 6px; }
.kl-header__row { display: flex; align-items: center; gap: 24px; height: 76px; }

.kl-brand { display: inline-flex; align-items: center; }
.kl-brand__mark { height: 34px; width: auto; display: block; transition: opacity 0.2s; }
.kl-brand__mark--light { display: none; }
.kl-header:not(.kl-header--solid) .kl-brand__mark--dark { display: none; }
.kl-header:not(.kl-header--solid) .kl-brand__mark--light { display: block; }

.kl-nav { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.kl-nav__list { display: flex; align-items: center; gap: 1px; list-style: none; margin: 0; padding: 0; }
.kl-nav__list--secondary { display: none; }
.kl-nav__list > li { position: relative; }
.kl-nav__list > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 11px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.89rem;
  white-space: nowrap;
  color: var(--kl-ink);
  transition: background 0.2s, color 0.2s;
}
.kl-header:not(.kl-header--solid) .kl-nav__list > li > a { color: #fff; }
.kl-nav__list > li > a:hover { background: var(--kl-gray-100); color: var(--kl-blue-600); }
.kl-header:not(.kl-header--solid) .kl-nav__list > li > a:hover { background: rgba(255,255,255,0.14); color: #fff; }
.kl-nav__list .caret { display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 2px; }
.kl-nav__list .dropdown-menu {
  display: block !important;
  position: absolute; top: 100%; left: 0;
  min-width: 260px; background: #fff; border-radius: var(--kl-radius-md);
  box-shadow: var(--kl-shadow-lg); padding: 10px; list-style: none;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.15s linear, visibility 0.15s linear;
}
/* There's a couple px of dead space between the trigger <li> and this
   menu's top:100% edge, where neither element is :hover'd — the cursor
   crosses it while moving down and the menu fades out before you reach
   it. Invisible bridge that overlaps the gap so hover never drops. */
.kl-nav__list .dropdown-menu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
}
.kl-nav__list li.dropdown:hover .dropdown-menu,
.kl-nav__list li.dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.kl-nav__list .dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; color: var(--kl-ink);
  font-weight: 500; font-size: 0.9rem; white-space: nowrap;
}
.kl-nav__list .dropdown-menu a:hover { background: var(--kl-gray-100); color: var(--kl-blue-600); }
.kl-nav__list .badge { background: var(--kl-cyan-400); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 0.7rem; }

/* Generic product-type icon before each Store link, plus a colored dot fallback */
#Primary_Navbar-Store .dropdown-menu a::before {
  flex-shrink: 0; width: 16px; text-align: center;
  font-family: "Font Awesome 6 Pro"; font-weight: 900; font-size: 0.82rem;
  color: var(--kl-cyan-500); content: "\f111"; font-size: 6px;
}
#Primary_Navbar-Store .dropdown-menu li[id*="Hosting"] a::before,
#Primary_Navbar-Store .dropdown-menu li[id*="hosting"] a::before { content: "\f233"; font-size: 0.82rem; }
#Primary_Navbar-Store .dropdown-menu li[id*="itelock"] a::before,
#Primary_Navbar-Store .dropdown-menu li[id*="ecurity"] a::before { content: "\f3ed"; font-size: 0.82rem; }
#Primary_Navbar-Store .dropdown-menu li[id*="odeguard"] a::before,
#Primary_Navbar-Store .dropdown-menu li[id*="ackup"] a::before { content: "\f0c2"; font-size: 0.82rem; }
#Primary_Navbar-Store .dropdown-menu a[href*="domain=register"]::before { content: "\f0ac"; font-size: 0.82rem; }
#Primary_Navbar-Store .dropdown-menu a[href*="domain=transfer"]::before { content: "\f362"; font-size: 0.82rem; }

/* "Ver todo" — always the first item — styled as a prominent shortcut */
#Primary_Navbar-Store .dropdown-menu > li:first-child a {
  font-weight: 700; color: var(--kl-blue-600); background: var(--kl-gray-100);
  margin-bottom: 6px;
}
#Primary_Navbar-Store .dropdown-menu > li:first-child a::before { content: "\f00a"; font-size: 0.78rem; }
#Primary_Navbar-Store .dropdown-menu > li:first-child a:hover { background: var(--kl-gray-100); }

/* Divider items ("-----") become a real horizontal rule, text hidden */
.kl-nav__list .dropdown-menu li.nav-divider { margin: 6px 4px 8px; border-top: 1px solid var(--kl-gray-300); }
.kl-nav__list .dropdown-menu li.nav-divider a { display: none; }

/* "Servicios" dropdown — hand-authored, uses real <i> icons */
.kl-nav__list .dropdown-menu a i { width: 16px; text-align: center; color: var(--kl-cyan-500); font-size: 0.85rem; }

.kl-nav__actions { display: flex; align-items: center; gap: 8px; margin-left: 4px; }
.kl-nav__actions .kl-btn { padding: 9px 18px; font-size: 0.87rem; white-space: nowrap; }
.kl-header:not(.kl-header--solid) .kl-nav__actions .kl-btn--ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.kl-header:not(.kl-header--solid) .kl-nav__actions .kl-btn--ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.1); }

/* Language switcher: a compact ES/EN pill toggle with a sliding thumb that
   indicates the active language and animates on change (see kl-main.js for
   the click-delay that lets the slide play before the page navigates). */
.kl-lang { display: inline-flex; align-items: center; gap: 8px; }
.kl-lang__icon { font-size: 0.75rem; color: var(--kl-gray-500); transition: color 0.2s; }
.kl-header:not(.kl-header--solid) .kl-lang__icon { color: rgba(255,255,255,0.65); }
.kl-lang__toggle {
  position: relative; display: inline-flex; padding: 3px; gap: 2px;
  background: var(--kl-gray-100); border-radius: 999px; transition: background 0.2s;
}
.kl-header:not(.kl-header--solid) .kl-lang__toggle { background: rgba(255,255,255,0.14); }
.kl-lang__thumb {
  position: absolute; top: 3px; left: 3px; width: calc(50% - 3px); height: calc(100% - 6px);
  background: #fff; border-radius: 999px; box-shadow: var(--kl-shadow-sm);
  transition: transform 0.35s cubic-bezier(.65,0,.35,1); z-index: 0;
}
.kl-lang__toggle[data-active="en"] .kl-lang__thumb { transform: translateX(100%); }
.kl-lang__opt {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; padding: 5px 9px; border-radius: 999px; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.03em; color: var(--kl-gray-500); transition: color 0.25s;
}
.kl-lang__opt:hover { color: var(--kl-blue-600); }
.kl-lang__opt--active { color: var(--kl-blue-600); }
.kl-header:not(.kl-header--solid) .kl-lang__opt { color: rgba(255,255,255,0.7); }
.kl-header:not(.kl-header--solid) .kl-lang__opt:hover { color: #fff; }
.kl-header:not(.kl-header--solid) .kl-lang__opt--active { color: var(--kl-ink); }
/* The active option sits on the white thumb, so hovering it must not fall
   back to the transparent-header's white hover color (invisible on white). */
.kl-header:not(.kl-header--solid) .kl-lang__opt--active:hover { color: var(--kl-ink); }
@media (max-width: 991px) {
  .kl-nav__actions .kl-btn--ghost,
  .kl-header:not(.kl-header--solid) .kl-nav__actions .kl-btn--ghost { color: var(--kl-ink); border-color: var(--kl-gray-300); }
  .kl-nav__actions .kl-btn--ghost:hover,
  .kl-header:not(.kl-header--solid) .kl-nav__actions .kl-btn--ghost:hover { background: var(--kl-gray-100); border-color: var(--kl-cyan-500); color: var(--kl-blue-600); }
}
.kl-icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--kl-ink); background: var(--kl-gray-100);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.kl-header:not(.kl-header--solid) .kl-icon-btn { background: rgba(255,255,255,0.12); color: #fff; }
.kl-icon-btn:hover { transform: translateY(-2px); color: var(--kl-blue-600); }
.kl-dot { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--kl-green-500); color: #fff; font-size: 0.62rem; line-height: 16px; text-align: center; }

/* Its own circular background (like .kl-icon-btn) rather than bare bars —
   that way the toggle always has contrast against whatever's behind the
   header (dark hero, light page…) instead of needing the bars themselves
   to guess a color, which is what made it disappear on dark heroes. */
.kl-nav-toggle {
  display: none; position: relative; flex-shrink: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--kl-gray-100); border: none; cursor: pointer;
  transition: background 0.2s; touch-action: manipulation;
}
.kl-header:not(.kl-header--solid) .kl-nav-toggle { background: rgba(255,255,255,0.14); }
.kl-nav-toggle span {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--kl-ink);
  transition: transform 0.3s var(--kl-ease), opacity 0.2s var(--kl-ease);
}
.kl-header:not(.kl-header--solid) .kl-nav-toggle span { background: #fff; }
/* Hamburger -> X once the drawer is open. */
.kl-nav-toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.kl-nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.kl-nav-toggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Cart icon duplicated into the always-visible header bar on mobile (the
   real one lives inside .kl-nav__actions, which is hidden away in the
   off-canvas drawer there) — hidden on desktop where the original already
   shows normally at the end of the nav row. */
.kl-header__mobile-actions { display: none; }

/* Explicit close button inside the drawer itself, in addition to the
   hamburger animating into an X — a second, unambiguous way out. */
.kl-nav-close {
  display: none; position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: var(--kl-gray-100); color: var(--kl-ink); border: none; cursor: pointer;
  font-size: 0.95rem; touch-action: manipulation;
}
.kl-nav-close:hover { background: var(--kl-gray-300); }

.kl-nav__auth { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }

.kl-nav-backdrop {
  position: fixed; inset: 0; z-index: 190; background: rgba(7, 23, 38, 0.55); touch-action: manipulation;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--kl-ease), visibility 0.3s;
}
.kl-nav-backdrop.is-active { opacity: 1; visibility: visible; }

@media (max-width: 991px) {
  .kl-header__mobile-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .kl-nav-toggle { display: flex; }
  .kl-nav-close { display: flex; }
  .kl-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); height: 100vh;
    background: #fff; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 90px 24px 24px; transform: translateX(100%); transition: transform 0.35s var(--kl-ease);
    box-shadow: var(--kl-shadow-lg); overflow-y: auto; -webkit-overflow-scrolling: touch;
    z-index: 195;
  }
  .kl-nav--open { transform: translateX(0); }
  .kl-nav__list { flex-direction: column; align-items: flex-start; width: 100%; }
  .kl-nav__list > li { width: 100%; }
  .kl-nav__list > li > a,
  .kl-header:not(.kl-header--solid) .kl-nav__list > li > a { color: var(--kl-ink); width: 100%; }
  /* The hero variant turns nav-link text white on :hover for the solid dark
     header — iOS fires :hover on tap, so inside the (always-white) drawer
     that meant the tapped label briefly went white-on-white. */
  .kl-nav__list > li > a:hover, .kl-nav__list > li > a:active,
  .kl-header:not(.kl-header--solid) .kl-nav__list > li > a:hover,
  .kl-header:not(.kl-header--solid) .kl-nav__list > li > a:active {
    color: var(--kl-blue-600); background: var(--kl-gray-100);
  }
  /* The drawer is always white regardless of header state, so the language
     toggle must always use its light-background colors here too. */
  .kl-lang { margin: 10px 0 6px; }
  .kl-lang__icon, .kl-header:not(.kl-header--solid) .kl-lang__icon { color: var(--kl-gray-500); }
  .kl-lang__toggle, .kl-header:not(.kl-header--solid) .kl-lang__toggle { background: var(--kl-gray-100); }
  .kl-lang__opt, .kl-header:not(.kl-header--solid) .kl-lang__opt { color: var(--kl-gray-500); }
  .kl-lang__opt--active, .kl-header:not(.kl-header--solid) .kl-lang__opt--active { color: var(--kl-blue-600); }
  /* Submenus start collapsed; JS toggles .is-open and sets max-height to the
     real content height (can't transition to `auto` directly) when a
     .dropdown-toggle is tapped. */
  .kl-nav__list li.dropdown > a.dropdown-toggle { justify-content: space-between; touch-action: manipulation; }
  .kl-nav__list li.dropdown > a .caret { transition: transform 0.25s var(--kl-ease); }
  .kl-nav__list li.dropdown.is-open > a .caret { transform: rotate(-135deg); }
  .kl-nav__list .dropdown-menu {
    position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none; box-shadow: none;
    /* padding is NOT transitioned (only max-height is) — JS reads
       scrollHeight synchronously right after adding .is-open, and an
       animated padding wouldn't have advanced yet at that exact instant,
       so max-height would get set too short and clip the bottom padding
       off, leaving the last item flush against the rounded edge. */
    max-height: 0; overflow: hidden; padding: 0 10px; margin: 0; list-style: none;
    background: var(--kl-gray-100); border-radius: var(--kl-radius-sm);
    transition: max-height 0.3s var(--kl-ease);
  }
  /* Extra bottom breathing room so the last item isn't flush against the
     panel's rounded edge. */
  .kl-nav__list li.dropdown.is-open > .dropdown-menu { padding: 10px 10px 16px; margin: 2px 0 6px; }
  .kl-nav__actions { flex-wrap: wrap; margin-left: 0; margin-top: 16px; }
  .kl-nav__actions .kl-nav__cart { display: none; }
  /* Only the drawer's OWN icon-btns need forcing dark (the drawer itself
     always has a white background) — the always-visible header cart icon
     sits right next to the toggle and should track the header's solid/
     transparent state exactly the same way the toggle already does. */
  .kl-nav .kl-icon-btn { color: var(--kl-ink); background: var(--kl-gray-100); }
  .kl-header:not(.kl-header--solid) .kl-nav .kl-icon-btn { color: var(--kl-ink); background: var(--kl-gray-100); }
}

/* ---- Hero ----------------------------------------------------------------- */
.kl-hero {
  position: relative;
  padding: 96px 0 80px;
  min-height: min(100vh, 1000px);
  min-height: min(100svh, 1000px);
  box-sizing: border-box;
  background: var(--kl-gradient-dark);
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
}
.kl-hero__fx { position: absolute; inset: 0; z-index: 0; }
.kl-blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55;
  animation: kl-float 14s ease-in-out infinite;
}
.kl-blob--a { width: 480px; height: 480px; left: -120px; top: -80px; background: var(--kl-blue-600); }
.kl-blob--b { width: 380px; height: 380px; right: -60px; top: 40px; background: var(--kl-cyan-400); animation-delay: -4s; }
.kl-blob--c { width: 420px; height: 420px; left: 30%; bottom: -220px; background: var(--kl-green-500); opacity: 0.35; animation-delay: -8s; }
.kl-blob--d { width: 300px; height: 300px; right: 10%; bottom: -160px; background: var(--kl-cyan-300); opacity: 0.3; animation-delay: -11s; animation-duration: 18s; }
.kl-grid { display: none; }
@keyframes kl-grid-drift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 84px 84px, 84px 84px; }
}
@keyframes kl-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.08); }
  66% { transform: translate(-20px, 18px) scale(0.96); }
}

.kl-particles { position: absolute; inset: 0; overflow: hidden; }
.kl-particle {
  position: absolute; bottom: -20px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--kl-cyan-300) 60%, transparent 70%);
  opacity: 0; animation: kl-rise linear infinite;
}
@keyframes kl-rise {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-620px) scale(1); opacity: 0; }
}
.kl-particle:nth-child(1) { left: 6%; width: 6px; height: 6px; animation-duration: 12s; animation-delay: 0s; }
.kl-particle:nth-child(2) { left: 16%; width: 4px; height: 4px; animation-duration: 15s; animation-delay: 2s; }
.kl-particle:nth-child(3) { left: 28%; width: 8px; height: 8px; animation-duration: 10s; animation-delay: 4s; }
.kl-particle:nth-child(4) { left: 42%; width: 5px; height: 5px; animation-duration: 17s; animation-delay: 1s; }
.kl-particle:nth-child(5) { left: 58%; width: 7px; height: 7px; animation-duration: 13s; animation-delay: 6s; }
.kl-particle:nth-child(6) { left: 70%; width: 4px; height: 4px; animation-duration: 16s; animation-delay: 3s; }
.kl-particle:nth-child(7) { left: 82%; width: 6px; height: 6px; animation-duration: 11s; animation-delay: 5s; }
.kl-particle:nth-child(8) { left: 92%; width: 5px; height: 5px; animation-duration: 14s; animation-delay: 7s; }
@media (max-width: 640px) {
  .kl-particle:nth-child(6), .kl-particle:nth-child(7), .kl-particle:nth-child(8) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .kl-blob, .kl-grid, .kl-particle, [data-kl-reveal] { animation: none !important; transition: none !important; }
  [data-kl-reveal] { opacity: 1; transform: none; }
}

.kl-hero__inner { position: relative; z-index: 1; width: 100%; }
.kl-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.kl-eyebrow {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: #dff5f8;
  backdrop-filter: blur(6px);
}
.kl-eyebrow--dark { background: rgba(0,101,139,0.08); border-color: rgba(0,101,139,0.18); color: var(--kl-blue-600); }

.kl-hero__title { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.14; color: #fff; margin: 14px 0 12px; }
.kl-hero__subtitle { font-size: 1.04rem; line-height: 1.55; color: rgba(255,255,255,0.78); max-width: 480px; margin: 0 0 22px; }
.kl-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Hero slider (Revolution-style rotating showcase) ----------------------- */
.kl-slider { position: relative; margin-bottom: 22px; }
.kl-slider__viewport { position: relative; min-height: 370px; }
.kl-slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 380px; align-items: center; gap: 32px;
  opacity: 0; pointer-events: none; transition: opacity 0.5s var(--kl-ease);
}
.kl-slide--active { opacity: 1; pointer-events: auto; }
.kl-slide--leaving { transition-duration: 0.4s; }

.kl-slide__text > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--kl-ease), transform 0.6s var(--kl-ease);
}
.kl-slide--active .kl-slide__text > * { opacity: 1; transform: translateY(0); }
.kl-slide--active .kl-slide__text > *:nth-child(1) { transition-delay: 0.05s; }
.kl-slide--active .kl-slide__text > *:nth-child(2) { transition-delay: 0.14s; }
.kl-slide--active .kl-slide__text > *:nth-child(3) { transition-delay: 0.23s; }
.kl-slide--active .kl-slide__text > *:nth-child(4) { transition-delay: 0.32s; }
.kl-slide--leaving .kl-slide__text > * { opacity: 0; transform: translateY(-16px); transition-duration: 0.35s; transition-delay: 0s !important; }

.kl-slide__art { position: relative; }
.kl-slide__art img {
  width: 100%; height: auto; display: block;
  opacity: 0; transform: scale(0.9) translateY(10px);
  transition: opacity 0.7s var(--kl-ease) 0.1s, transform 0.7s var(--kl-ease) 0.1s;
}
.kl-slide--active .kl-slide__art img { opacity: 1; transform: scale(1) translateY(0); }
.kl-slide--leaving .kl-slide__art img { opacity: 0; transform: scale(0.94); transition-duration: 0.35s; transition-delay: 0s; }

.kl-slider__nav { display: flex; justify-content: center; gap: 10px; margin-top: 8px; position: relative; z-index: 1; }
.kl-slider__dot {
  width: 46px; height: 4px; padding: 0; border: none; border-radius: 999px;
  background: rgba(255,255,255,0.22); cursor: pointer; overflow: hidden; position: relative;
}
.kl-slider__dot-bar { position: absolute; inset: 0; width: 0; background: var(--kl-gradient-brand); border-radius: inherit; }
.kl-slider__dot.is-active .kl-slider__dot-bar { width: 100%; }
.kl-slider__dot.is-filling .kl-slider__dot-bar { width: 0; animation: kl-dot-fill var(--kl-fill-duration, 6s) linear forwards; }
@keyframes kl-dot-fill { from { width: 0; } to { width: 100%; } }

@media (max-width: 991px) {
  .kl-hero { padding-top: 92px; }
  .kl-slider__viewport { min-height: 540px; }
  .kl-slide { grid-template-columns: 1fr; text-align: center; }
  .kl-slide__text { order: 1; }
  .kl-slide__art { order: 2; max-width: 220px; margin: 0 auto; }
  .kl-hero__subtitle { margin-left: auto; margin-right: auto; }
  .kl-hero__actions { justify-content: center; }
}
@media (max-width: 560px) {
  .kl-slider__viewport { min-height: 580px; }
}
@media (prefers-reduced-motion: reduce) {
  .kl-slide { transition: opacity 0.2s linear; }
  .kl-slide__text > *, .kl-slide__art img { transition: opacity 0.2s linear !important; transform: none !important; }
  .kl-slider__dot.is-filling .kl-slider__dot-bar { animation: none; }
  .kl-slider__dot.is-active .kl-slider__dot-bar { width: 100%; }
}

.kl-domain-search { max-width: 640px; margin: 0 auto 26px; }
.kl-domain-search__row {
  display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2); border-radius: var(--kl-radius-md);
  padding: 8px 8px 8px 18px; backdrop-filter: blur(8px); flex-wrap: wrap;
}
.kl-domain-search__icon { color: rgba(255,255,255,0.55); }
.kl-domain-search__input {
  flex: 1 1 200px; background: none; border: none; outline: none; color: #fff;
  font-size: 1rem; padding: 10px 4px; min-width: 0;
}
.kl-domain-search__input::placeholder { color: rgba(255,255,255,0.5); }

.kl-hero .kl-btn--ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.kl-hero .kl-btn--ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.12); }

.kl-hero__stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.kl-stat { text-align: center; }
.kl-stat__value { display: block; font-family: var(--kl-font-display); font-size: 2rem; font-weight: 700; color: #fff; }
.kl-stat__label { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* ---- Service page hero (Hosting / VPS / Dominios / Apps) --------------------- */
.kl-hero--service { min-height: min(100vh, 940px); min-height: min(100svh, 940px); display: flex; align-items: center; }
.kl-hero--service .kl-hero__inner { width: 100%; }
.kl-service-hero__grid { display: grid; grid-template-columns: 1fr 420px; align-items: center; gap: 40px; }
.kl-service-hero__text .kl-hero__subtitle { max-width: 520px; }
.kl-service-hero__art img { width: 100%; height: auto; display: block; }
@media (max-width: 991px) {
  .kl-hero--service { min-height: auto; padding-top: 40px; }
  .kl-service-hero__grid { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .kl-service-hero__text .kl-hero__subtitle { margin-left: auto; margin-right: auto; }
  .kl-service-hero__text .kl-hero__actions { justify-content: center; }
  .kl-service-hero__art { max-width: 300px; margin: 0 auto; order: -1; }
}

/* ---- Reusable content sections for service pages ------------------------------ */
.kl-lead { font-size: 1.12rem; line-height: 1.7; color: var(--kl-gray-700); max-width: 720px; margin: 0 auto; text-align: center; }

.kl-usecases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.kl-usecase {
  padding: 26px 22px; border-radius: var(--kl-radius-md); background: #fff;
  border: 1px solid var(--kl-gray-300); text-align: left;
  transition: transform 0.25s var(--kl-ease), box-shadow 0.25s var(--kl-ease);
}
.kl-usecase:hover { transform: translateY(-4px); box-shadow: var(--kl-shadow-md); }
.kl-usecase i { font-size: 1.3rem; color: var(--kl-blue-600); margin-bottom: 12px; display: block; }
.kl-usecase h4 { font-size: 1rem; margin-bottom: 6px; }
.kl-usecase p { font-size: 0.88rem; color: var(--kl-gray-700); line-height: 1.5; }

.kl-compare { overflow-x: auto; border-radius: var(--kl-radius-lg); border: 1px solid var(--kl-gray-300); background: #fff; }
.kl-compare table { width: 100%; border-collapse: collapse; min-width: 560px; }
.kl-compare th, .kl-compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--kl-gray-300); font-size: 0.92rem; }
.kl-compare thead th { font-family: var(--kl-font-display); color: var(--kl-ink); background: var(--kl-gray-100); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
.kl-compare tbody tr:last-child td { border-bottom: none; }
.kl-compare tbody tr:hover { background: var(--kl-gray-100); }
.kl-compare td:first-child, .kl-compare th:first-child { font-weight: 600; color: var(--kl-ink); }
.kl-compare .kl-yes { color: var(--kl-green-600); font-size: 1.05rem; }
.kl-compare .kl-no { color: var(--kl-gray-500); font-size: 1.05rem; }
.kl-compare td:not(:first-child), .kl-compare th:not(:first-child) { text-align: center; }

/* ---- Legal document (Terms & Policies) ---------------------------------------- */
/* ---- Auth pages (login) — minimalist, full-bleed, no card frame --------------- */
.kl-auth-solo {
  width: 100vw; position: relative; left: 50%; margin-left: -50vw;
  margin-top: -100px; padding-top: 148px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 74vh; padding-left: 20px; padding-right: 20px; padding-bottom: 56px;
}
.kl-auth-solo__fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.kl-auth-solo__fx .kl-blob { opacity: 0.16; }
.kl-auth-solo__fx .kl-blob--a { background: var(--kl-blue-600); }
.kl-auth-solo__fx .kl-blob--b { background: var(--kl-cyan-400); }
.kl-auth-solo__fx .kl-blob--d { background: var(--kl-green-500); opacity: 0.12; }

.kl-auth-solo__wrap {
  position: relative; z-index: 1; width: 100%; max-width: 400px;
  opacity: 0; animation: kl-fade-in 0.6s var(--kl-ease) 0.05s both;
}
@keyframes kl-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.kl-auth__title { font-size: 1.6rem; text-align: center; margin-bottom: 6px; }
.kl-auth__subtitle { color: var(--kl-gray-700); text-align: center; margin-bottom: 28px; font-size: 0.94rem; }

.kl-field { margin-bottom: 18px; }
.kl-field label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 7px; color: var(--kl-ink); }

.kl-input-group { position: relative; display: flex; align-items: center; }
.kl-input-group > i:first-child {
  position: absolute; left: 15px; color: var(--kl-gray-500); font-size: 0.88rem;
  transition: color 0.2s; pointer-events: none;
}
.kl-input-group .form-control { width: 100%; padding: 11px 14px 11px 42px; }
.kl-input-group:focus-within > i:first-child { color: var(--kl-blue-600); }
.kl-input-toggle {
  position: absolute; right: 6px; width: 32px; height: 32px; border: none; background: none;
  color: var(--kl-gray-500); cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.kl-input-toggle:hover { background: var(--kl-gray-100); color: var(--kl-blue-600); }

.kl-auth__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 8px; }
.kl-checkbox { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--kl-gray-700); cursor: pointer; }
.kl-checkbox input { width: 16px; height: 16px; accent-color: var(--kl-blue-600); }
.kl-auth__forgot { font-size: 0.85rem; font-weight: 600; }

.kl-auth__captcha { margin-bottom: 18px; }
.kl-auth__submit { width: 100%; }
.kl-auth__submit i { transition: transform 0.2s; margin-left: 2px; }
.kl-auth__submit:hover i { transform: translateX(3px); }

.kl-auth__divider { display: flex; align-items: center; gap: 14px; margin: 26px 0; color: var(--kl-gray-500); font-size: 0.83rem; }
.kl-auth__divider::before, .kl-auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--kl-gray-300); }

.kl-social-row { display: flex; justify-content: center; }
.social-signin-btns { display: flex; flex-direction: row; gap: 20px; justify-content: center; align-items: center; }

/* Facebook — a real button we fully control: circle, icon only, text hidden. */
.btn-social.btn-facebook {
  display: flex !important; align-items: center; justify-content: center;
  width: 40px !important; height: 40px; margin: 0 !important; padding: 0; border-radius: 50%;
  border: 1px solid var(--kl-gray-300); background: #fff !important;
  font-size: 0; line-height: 0;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-social.btn-facebook i { font-size: 1.15rem; line-height: 1; color: #1877f2; transition: transform 0.3s var(--kl-ease); }
.btn-social.btn-facebook:hover { border-color: #1877f2; box-shadow: 0 8px 20px rgba(24,119,242,0.18); transform: translateY(-2px); }
.btn-social.btn-facebook:hover i { transform: scale(1.15) rotate(-8deg); }

/* Google — a plain button we fully control, styled identically to Facebook's.
   kl-main.js hides Google's real (unpositionable, JS-controlled) button and
   wires this one to call google.accounts.id.prompt() instead — Google's own
   supported way to trigger their real sign-in flow from a custom button. */
.kl-google-btn {
  display: flex !important; align-items: center; justify-content: center;
  width: 40px !important; height: 40px; margin: 0 !important; padding: 0; border-radius: 50%;
  border: 1px solid var(--kl-gray-300); background: #fff !important;
  font-size: 0; line-height: 0; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.kl-google-btn i { font-size: 1.15rem; line-height: 1; color: #4285f4; transition: transform 0.3s var(--kl-ease); }
.kl-google-btn:hover { border-color: #4285f4; box-shadow: 0 8px 20px rgba(66,133,244,0.18); transform: translateY(-2px); }
.kl-google-btn:hover i { transform: scale(1.15) rotate(-8deg); }

.kl-auth__footer-link { text-align: center; margin-top: 24px; font-size: 0.88rem; color: var(--kl-gray-700); }
.kl-auth__footer-link a { font-weight: 600; }

@media (max-width: 560px) {
  .kl-auth-solo { padding-left: 16px; padding-right: 16px; padding-bottom: 40px; min-height: auto; }
}

/* ---- Auth pages (register) — wider variant, compact multi-column form --------- */
.kl-auth-solo--wide { align-items: flex-start; padding-top: 128px; }
.kl-auth-solo--wide .kl-auth-solo__wrap { max-width: 760px; }

.kl-auth-grid { display: flex; flex-wrap: wrap; gap: 0 16px; }
.kl-auth-grid > .kl-field { flex: 1 1 calc(50% - 8px); min-width: 0; }
.kl-auth-grid--3 > .kl-field { flex: 1 1 calc(33.333% - 11px); }
.kl-field--full { flex-basis: 100%; }
.kl-field--nogap { margin-bottom: 0; }
.kl-field__optional { font-weight: 400; color: var(--kl-gray-500); }
.kl-plain-field .form-control,
.kl-plain-field input, .kl-plain-field select, .kl-plain-field textarea { width: 100%; }
.kl-auth-solo--wide .form-control { width: 100%; padding: 11px 14px; }
.kl-auth-solo--wide .form-control:focus { border-color: var(--kl-cyan-500); box-shadow: 0 0 0 3px rgba(0, 198, 213, 0.15); }

.kl-auth-section-title {
  font-family: var(--kl-font-body); font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--kl-gray-500);
  margin: 30px 0 14px; padding-top: 22px; border-top: 1px solid var(--kl-gray-200);
}
.kl-auth-section-title--first,
.kl-auth-section-title:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.kl-auth-section-hint { margin: -8px 0 14px; font-size: 0.82rem; color: var(--kl-gray-500); }

.kl-pw-meta { margin-top: 4px; }
.kl-pw-meta .generate-password {
  background: none; border: none; padding: 0; margin-bottom: 10px;
  color: var(--kl-blue-600); font-weight: 600; font-size: 0.83rem; box-shadow: none;
}
.kl-pw-meta .generate-password:hover { text-decoration: underline; }
.password-strength-meter .progress { height: 6px; border-radius: 999px; overflow: hidden; background: var(--kl-gray-200); box-shadow: none; }
.password-strength-meter #passwordStrengthTextLabel { margin: 6px 0 0; text-align: left; }

.kl-marketing-optin {
  background: var(--kl-gray-100); border-radius: var(--kl-radius-md); padding: 16px 18px; margin: 22px 0;
}
.kl-marketing-optin h4 { font-size: 0.92rem; margin-bottom: 4px; }
.kl-marketing-optin p { font-size: 0.85rem; color: var(--kl-gray-700); margin-bottom: 10px; }

.kl-tos-box {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--kl-gray-100); border-radius: var(--kl-radius-md); padding: 16px 18px; margin: 8px 0 22px;
}
.kl-tos-box i { color: var(--kl-blue-600); font-size: 1rem; margin-top: 3px; }
.kl-tos-box .kl-checkbox { align-items: flex-start; }
.kl-tos-box .kl-checkbox input { margin-top: 3px; flex-shrink: 0; }

/* WHMCS's own linkedaccounts.tpl injects a Bootstrap sub-heading before the
   social buttons on the registration context — restyle it to match our divider
   language instead of overriding the markup (shared core include). */
.kl-auth-solo .sub-heading, .kl-auth-solo .sub-heading-borderless {
  text-align: center; margin: 4px 0 16px; border: none; background: none;
}
.kl-auth-solo .sub-heading span, .kl-auth-solo .sub-heading-borderless span {
  font-size: 0.83rem; color: var(--kl-gray-500); font-weight: 500; text-transform: none;
}

@media (max-width: 720px) {
  .kl-auth-grid > .kl-field, .kl-auth-grid--3 > .kl-field { flex-basis: 100%; }
  .kl-auth-solo--wide { padding-top: 108px; }
}

.kl-legal { max-width: 820px; margin: 0 auto; }
.kl-legal__updated {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--kl-gray-500); background: var(--kl-gray-100);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 24px;
}
.kl-legal__toc { background: var(--kl-gray-100); border-radius: var(--kl-radius-md); padding: 26px 30px; margin: 32px 0 44px; }
.kl-legal__toc h4 { font-size: 0.95rem; margin-bottom: 14px; }
.kl-legal__toc ol { columns: 2; column-gap: 32px; padding-left: 20px; margin: 0; }
.kl-legal__toc li { margin-bottom: 9px; break-inside: avoid; font-size: 0.9rem; }
.kl-legal__toc a { color: var(--kl-gray-700); font-weight: 500; }
.kl-legal__toc a:hover { color: var(--kl-blue-600); }
.kl-legal__body h2 {
  font-size: 1.28rem; margin: 46px 0 16px; padding-top: 26px; border-top: 1px solid var(--kl-gray-300);
  scroll-margin-top: 110px;
}
.kl-legal__body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.kl-legal__body p { color: var(--kl-gray-700); line-height: 1.75; margin-bottom: 16px; }
.kl-legal__body ul { padding-left: 22px; margin-bottom: 20px; }
.kl-legal__body li { color: var(--kl-gray-700); line-height: 1.7; margin-bottom: 10px; }
.kl-legal__body strong { color: var(--kl-ink); }
@media (max-width: 640px) {
  .kl-legal__toc ol { columns: 1; }
}

.kl-faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.kl-faq-item { border: 1px solid var(--kl-gray-300); border-radius: var(--kl-radius-md); background: #fff; overflow: hidden; }
.kl-faq-item__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 18px 22px; background: none; border: none; cursor: pointer;
  text-align: left; font-family: var(--kl-font-display); font-weight: 600; font-size: 0.98rem; color: var(--kl-ink);
}
.kl-faq-item__q i { flex-shrink: 0; color: var(--kl-blue-600); transition: transform 0.25s var(--kl-ease); }
.kl-faq-item.is-open .kl-faq-item__q i { transform: rotate(45deg); }
.kl-faq-item__a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--kl-ease); }
.kl-faq-item__a p { padding: 0 22px 20px; margin: 0; color: var(--kl-gray-700); font-size: 0.92rem; line-height: 1.6; }

@media (max-width: 900px) {
  .kl-usecases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .kl-usecases-grid { grid-template-columns: 1fr; }
  .kl-compare th, .kl-compare td { padding: 12px 14px; font-size: 0.85rem; }
}

/* ---- Sections --------------------------------------------------------------- */
.kl-section { padding: 96px 0; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.kl-section--tight { padding-top: 56px; padding-bottom: 64px; }
.kl-section--muted {
  background: var(--kl-gray-100); max-width: none; padding-left: 0; padding-right: 0;
  width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
}
.kl-section--muted > * { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.kl-section__head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.kl-h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 14px 0 10px; }
.kl-section__lead { color: var(--kl-gray-700); font-size: 1.05rem; line-height: 1.6; }

.kl-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.kl-service-card {
  display: block; padding: 32px 26px; border-radius: var(--kl-radius-lg);
  background: #fff; border: 1px solid var(--kl-gray-300);
  transition: transform 0.3s var(--kl-ease), box-shadow 0.3s var(--kl-ease), border-color 0.3s var(--kl-ease);
}
.kl-service-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0, 101, 139, 0.14); border-color: transparent; }
.kl-service-card__icon {
  width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; color: #fff; margin-bottom: 20px;
}
.kl-icon--blue { background: linear-gradient(135deg, var(--kl-blue-700), var(--kl-blue-600)); }
.kl-icon--cyan { background: linear-gradient(135deg, var(--kl-blue-600), var(--kl-cyan-400)); }
.kl-icon--green { background: linear-gradient(135deg, var(--kl-cyan-400), var(--kl-green-500)); }
.kl-icon--dark { background: linear-gradient(135deg, var(--kl-ink), var(--kl-blue-700)); }
.kl-service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.kl-service-card p { color: var(--kl-gray-700); font-size: 0.95rem; line-height: 1.55; margin-bottom: 16px; }
.kl-service-card__link { font-weight: 600; font-size: 0.9rem; color: var(--kl-blue-600); display: inline-flex; align-items: center; gap: 6px; }
.kl-service-card:hover .kl-service-card__link { color: var(--kl-cyan-500); }
.kl-service-card__link i { transition: transform 0.25s; }
.kl-service-card:hover .kl-service-card__link i { transform: translateX(4px); }

.kl-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.kl-feature { text-align: left; }
.kl-feature i { font-size: 1.5rem; color: var(--kl-blue-600); margin-bottom: 14px; display: block; }
.kl-feature h4 { font-size: 1.05rem; margin-bottom: 8px; }
.kl-feature p { color: var(--kl-gray-700); font-size: 0.93rem; line-height: 1.55; }

/* ---- CTA band ---------------------------------------------------------------- */
.kl-cta {
  position: relative; background: var(--kl-gradient-cta); overflow: hidden; padding: 90px 0; color: #fff;
  width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
}
.kl-cta__fx { position: absolute; inset: 0; }
.kl-cta .kl-blob { opacity: 0.4; }
.kl-cta__inner { position: relative; z-index: 1; text-align: center; max-width: 640px; margin: 0 auto; }
.kl-cta__logo { height: 30px; margin-bottom: 24px; opacity: 0.9; }
.kl-cta__inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 12px; }
.kl-cta__inner p { color: rgba(255,255,255,0.78); margin-bottom: 30px; font-size: 1.05rem; }
.kl-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Tech stack logo marquee (separates page content from footer) ------------ */
.kl-logos {
  width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
  background: #fff; padding: 34px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.kl-logos__track { display: flex; align-items: center; width: max-content; animation: kl-marquee 36s linear infinite; }
.kl-logos:hover .kl-logos__track { animation-play-state: paused; }
.kl-logos__group { display: flex; align-items: center; gap: 56px; padding-right: 56px; flex-shrink: 0; }
.kl-logos__item {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  opacity: 0.8; transition: opacity 0.2s, transform 0.2s;
}
.kl-logos__item:hover { opacity: 1; transform: translateY(-2px); }
.kl-logos__item img { height: 34px; width: auto; display: block; }
.kl-logos__item span { font-family: var(--kl-font-display); font-weight: 600; font-size: 0.95rem; color: var(--kl-gray-700); white-space: nowrap; }
@keyframes kl-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .kl-logos__track { animation: none; } }
@media (max-width: 640px) {
  .kl-logos { padding: 26px 0; }
  .kl-logos__group { gap: 36px; padding-right: 36px; }
  .kl-logos__item img { height: 28px; }
  .kl-logos__item span { font-size: 0.85rem; }
}

/* ---- Footer -------------------------------------------------------------------- */
.kl-footer { position: relative; background: var(--kl-ink); color: rgba(255,255,255,0.7); padding: 72px 0 28px; overflow: hidden; }
.kl-footer__glow { position: absolute; top: -140px; left: 50%; transform: translateX(-50%); width: 700px; height: 280px; background: var(--kl-gradient-brand); filter: blur(120px); opacity: 0.25; }
.kl-footer__top { position: relative; z-index: 1; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.kl-footer__logo { height: 26px; margin-bottom: 16px; }
.kl-footer__brand p { font-size: 0.92rem; line-height: 1.6; max-width: 320px; }
.kl-footer__social { display: flex; gap: 10px; margin-top: 20px; }
.kl-footer__social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: #fff; transition: background 0.2s, transform 0.2s; }
.kl-footer__social a:hover { background: var(--kl-cyan-400); transform: translateY(-3px); }
.kl-footer__col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 18px; }
.kl-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.kl-footer__col a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.kl-footer__col a:hover { color: var(--kl-cyan-400); }
.kl-footer__bottom { position: relative; z-index: 1; padding-top: 26px; font-size: 0.82rem; text-align: center; color: rgba(255,255,255,0.45); }
.kl-back-to-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--kl-gradient-brand); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--kl-shadow-glow); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all 0.3s var(--kl-ease); z-index: 300;
}
.kl-back-to-top.kl-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---- Reveal on scroll ------------------------------------------------------------ */
[data-kl-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--kl-ease), transform 0.7s var(--kl-ease); transition-delay: var(--kl-delay, 0ms); }
[data-kl-reveal].kl-revealed { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Bootstrap 3 component reskin (affects cart, invoices, tickets, account pages)
   ========================================================================== */
.btn { border-radius: 999px; font-weight: 600; font-family: var(--kl-font-display); box-shadow: none; transition: transform 0.2s var(--kl-ease), box-shadow 0.2s var(--kl-ease); }
.btn:active { transform: scale(0.97); }
.btn-primary, .btn-success, .btn.search, .btn.transfer {
  background: var(--kl-gradient-brand); background-color: var(--kl-blue-600); border-color: transparent; color: #fff;
  box-shadow: 0 8px 18px rgba(0, 101, 139, 0.24);
}
.btn-primary:hover, .btn-primary:focus,
.btn-success:hover, .btn-success:focus { background: var(--kl-blue-500); border-color: transparent; box-shadow: 0 10px 22px rgba(0, 101, 139, 0.3); }
a.btn-default, .btn-default { border-color: var(--kl-gray-300); color: var(--kl-ink); background: #fff; }

.panel, .panel-sidebar { border-radius: var(--kl-radius-md); border: 1px solid var(--kl-gray-300); box-shadow: 0 6px 20px rgba(7, 23, 38, 0.05); overflow: hidden; }
.panel-heading, .panel-sidebar .panel-heading { background: var(--kl-gray-100); border-bottom: 1px solid var(--kl-gray-300); }
.panel-primary > .panel-heading { background: var(--kl-blue-600); color: #fff; }
.list-group-item.active, .list-group-item.active:hover, .list-group-item.active:focus {
  background: var(--kl-blue-600); border-color: var(--kl-blue-600);
}
.list-group-item:hover { background: var(--kl-gray-100); }

.header-lined h1 { font-family: var(--kl-font-display); font-weight: 700; }
.breadcrumb { background: none; padding-left: 0; }
.breadcrumb a { color: var(--kl-blue-600); }

.dropdown-menu { border-radius: var(--kl-radius-sm); box-shadow: var(--kl-shadow-md); border: 1px solid var(--kl-gray-300); }
.label-info, .badge { background-color: var(--kl-cyan-500); }
.label-success { background-color: var(--kl-green-600); }

.table > thead > tr > th { border-bottom: 2px solid var(--kl-gray-300); font-family: var(--kl-font-display); }
.table-hover > tbody > tr:hover { background: var(--kl-gray-100); }

.form-control { border-radius: var(--kl-radius-sm); border: 1px solid var(--kl-gray-300); }
.form-control:focus { border-color: var(--kl-cyan-500); box-shadow: 0 0 0 3px rgba(0, 198, 213, 0.15); }

.alert { border-radius: var(--kl-radius-sm); border: none; }
.alert-info { background: #e6f6f9; color: var(--kl-blue-700); }
.alert-success { background: #e9f9e6; color: var(--kl-green-600); }

/* ---- Announcements grid ------------------------------------------------------------- */
.kl-announcements-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px; margin-bottom: 24px;
}
.kl-announcement-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--kl-gray-300); border-radius: var(--kl-radius-md);
  padding: 24px; box-shadow: var(--kl-shadow-sm);
  transition: transform 0.2s var(--kl-ease), box-shadow 0.2s var(--kl-ease);
}
.kl-announcement-card:hover { transform: translateY(-3px); box-shadow: var(--kl-shadow-md); }
.kl-announcement-card .title {
  display: block; font-family: var(--kl-font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--kl-ink); margin-bottom: 10px; line-height: 1.3;
}
.kl-announcement-card .title:hover { color: var(--kl-blue-600); }
.kl-announcement-card p { color: var(--kl-gray-700); font-size: 0.9rem; line-height: 1.55; flex: 1 1 auto; margin-bottom: 14px; }
.kl-announcement-card .label-warning {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; background: var(--kl-gray-100); color: var(--kl-blue-600);
  font-weight: 600; font-size: 0.82rem; margin-bottom: 14px; transition: background 0.2s, color 0.2s;
}
.kl-announcement-card .label-warning:hover { background: var(--kl-blue-600); color: #fff; }
.kl-announcement-card .article-items {
  display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--kl-gray-500);
  padding-top: 14px; margin-top: auto; border-top: 1px solid var(--kl-gray-300);
}
.kl-announcement-card .admin-inline-edit { margin-left: auto; color: var(--kl-blue-600); }
@media (max-width: 640px) {
  .kl-announcements-grid { grid-template-columns: 1fr; }
}

/* ---- Responsive --------------------------------------------------------------------- */
@media (max-width: 991px) {
  .kl-services-grid { grid-template-columns: repeat(2, 1fr); }
  .kl-features-grid { grid-template-columns: repeat(2, 1fr); }
  .kl-footer__top { grid-template-columns: 1fr 1fr; }
  .kl-row { flex-direction: column; }
  .kl-col-sidebar { flex-basis: auto; }
}
@media (max-width: 640px) {
  .kl-hero { padding: 84px 0 48px; }
  .kl-services-grid { grid-template-columns: 1fr; }
  .kl-features-grid { grid-template-columns: 1fr; }
  .kl-footer__top { grid-template-columns: 1fr; }
  .kl-hero__stats { gap: 20px 28px; }
  .kl-cta__actions { flex-direction: column; align-items: stretch; }
  .kl-cta__actions .kl-btn { width: 100%; }
  .kl-hero__actions { flex-direction: column; align-items: stretch; }
  .kl-hero__actions .kl-btn { width: 100%; }
  .kl-domain-search__row { padding: 8px; }
  .kl-domain-search__row .kl-btn { flex: 1 1 auto; }
}

/* ---- Knowledgebase ------------------------------------------------------------ */
.kl-hero--kb { min-height: auto; padding: 176px 0 72px; display: flex; align-items: center; }
.kl-kb-hero { max-width: 640px; margin: 0 auto; text-align: center; }
.kl-kb-hero .kl-eyebrow { margin-left: auto; margin-right: auto; }
.kl-kb-hero .kl-hero__subtitle { max-width: 520px; margin-left: auto; margin-right: auto; }

.kl-kb-search {
  display: flex; align-items: center; gap: 4px; margin-top: 28px;
  background: #fff; border-radius: 999px; padding: 6px 6px 6px 22px;
  box-shadow: 0 20px 48px rgba(0, 30, 60, 0.14);
}
.kl-kb-search i { color: var(--kl-gray-500); font-size: 0.95rem; }
.kl-kb-search input {
  flex: 1; border: none; outline: none; padding: 12px 10px; font-size: 0.95rem;
  font-family: var(--kl-font-body); color: var(--kl-ink); background: transparent;
}
.kl-kb-search input::placeholder { color: var(--kl-gray-500); }
.kl-kb-search .kl-btn { flex-shrink: 0; }

@media (max-width: 560px) {
  .kl-hero--kb { padding: 148px 0 56px; }
  .kl-kb-search { border-radius: var(--kl-radius-lg); padding: 10px; flex-wrap: wrap; }
  .kl-kb-search input { flex-basis: 100%; padding: 8px 10px; }
  .kl-kb-search .kl-btn { flex: 1; }
}

.kl-breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--kl-gray-500); margin-bottom: 32px;
}
.kl-breadcrumb a { color: var(--kl-gray-700); font-weight: 500; }
.kl-breadcrumb a:hover { color: var(--kl-blue-600); }
.kl-breadcrumb i { font-size: 0.65rem; color: var(--kl-gray-400); }
.kl-breadcrumb span { color: var(--kl-ink); font-weight: 600; }
.kl-kb-page-title { margin: 0 0 40px; }

.kl-kb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 8px; }
.kl-kb-card {
  display: flex; flex-direction: column; padding: 30px 26px; border-radius: var(--kl-radius-lg);
  background: #fff; border: 1px solid var(--kl-gray-300); position: relative;
  transition: transform 0.3s var(--kl-ease), box-shadow 0.3s var(--kl-ease), border-color 0.3s var(--kl-ease);
}
.kl-kb-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0, 101, 139, 0.14); border-color: transparent; }
.kl-kb-card__icon {
  width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--kl-blue-700), var(--kl-cyan-400));
}
.kl-kb-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.kl-kb-card p { color: var(--kl-gray-700); font-size: 0.9rem; line-height: 1.55; margin-bottom: 20px; flex-grow: 1; }
.kl-kb-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--kl-gray-200); }
.kl-kb-count { font-size: 0.8rem; color: var(--kl-gray-500); font-weight: 600; }
.kl-kb-card .kl-service-card__link { font-size: 0.85rem; }

.kl-kb-article-list { display: flex; flex-direction: column; gap: 12px; }
.kl-kb-article {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--kl-radius-md);
  background: #fff; border: 1px solid var(--kl-gray-300);
  transition: transform 0.25s var(--kl-ease), box-shadow 0.25s var(--kl-ease), border-color 0.25s var(--kl-ease);
}
.kl-kb-article:hover { transform: translateX(4px); box-shadow: 0 12px 28px rgba(0, 101, 139, 0.1); border-color: transparent; }
.kl-kb-article > i:first-child { font-size: 1.05rem; color: var(--kl-blue-600); flex-shrink: 0; }
.kl-kb-article__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.kl-kb-article__title { font-weight: 600; color: var(--kl-ink); font-size: 0.98rem; }
.kl-kb-article__excerpt { color: var(--kl-gray-500); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kl-kb-article__chevron { color: var(--kl-gray-400); font-size: 0.8rem; flex-shrink: 0; transition: transform 0.25s var(--kl-ease); }
.kl-kb-article:hover .kl-kb-article__chevron { transform: translateX(3px); color: var(--kl-blue-600); }

@media (max-width: 900px) { .kl-kb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .kl-kb-grid { grid-template-columns: 1fr; }
  .kl-kb-article__excerpt { display: none; }
}

.kl-kb-article-page__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px;
}
.kl-kb-article-page__head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }

.kl-kb-meta { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; padding: 0; margin: 0 0 32px; }
.kl-kb-meta li { display: flex; align-items: center; gap: 7px; font-size: 0.85rem; color: var(--kl-gray-600); }
.kl-kb-meta i { color: var(--kl-blue-600); }

.kb-article-content { color: var(--kl-gray-700); line-height: 1.75; font-size: 1rem; }
.kb-article-content h1, .kb-article-content h2, .kb-article-content h3, .kb-article-content h4 {
  color: var(--kl-ink); margin: 34px 0 14px; line-height: 1.3;
}
.kb-article-content h1:first-child, .kb-article-content h2:first-child, .kb-article-content h3:first-child { margin-top: 0; }
.kb-article-content h2 { font-size: 1.35rem; }
.kb-article-content h3 { font-size: 1.15rem; }
.kb-article-content p { margin-bottom: 18px; }
.kb-article-content ul, .kb-article-content ol { padding-left: 22px; margin-bottom: 18px; }
.kb-article-content li { margin-bottom: 8px; }
.kb-article-content a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.kb-article-content strong { color: var(--kl-ink); }
.kb-article-content img { max-width: 100%; height: auto; border-radius: var(--kl-radius-md); margin: 20px 0; }
.kb-article-content blockquote {
  margin: 20px 0; padding: 14px 20px; border-left: 3px solid var(--kl-blue-600);
  background: var(--kl-gray-100); border-radius: 0 var(--kl-radius-sm) var(--kl-radius-sm) 0; color: var(--kl-gray-700);
}
.kb-article-content pre, .kb-article-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--kl-gray-100); border-radius: var(--kl-radius-sm);
}
.kb-article-content code { padding: 2px 6px; font-size: 0.88em; }
.kb-article-content pre { padding: 16px 18px; overflow-x: auto; margin: 20px 0; }
.kb-article-content pre code { padding: 0; background: none; }
.kb-article-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.92rem; }
.kb-article-content th, .kb-article-content td { padding: 10px 14px; border-bottom: 1px solid var(--kl-gray-300); text-align: left; }
.kb-article-content th { color: var(--kl-ink); font-weight: 700; }

.kl-kb-vote {
  margin-top: 40px; padding: 22px 26px; background: var(--kl-gray-100); border-radius: var(--kl-radius-md);
  text-align: center;
}
.kl-kb-vote p { margin: 0 0 14px; font-weight: 600; color: var(--kl-ink); }
.kl-kb-vote__actions { display: flex; gap: 12px; justify-content: center; }

@media (max-width: 560px) {
  .kl-kb-article-page__head { flex-direction: column-reverse; }
}

/* ==========================================================================
   Client area dashboard (clientareahome) — stat tiles, KB search, dynamic
   panels + sidebar cards. Loads after all.min.css so plain class selectors
   here already win the cascade without needing extra specificity.
   ========================================================================== */

/* ---- Stat tiles: one framed strip, 4 compact columns, no per-tile card --- */
.tiles {
  margin: 0 0 28px; background: #fff; border: 1px solid var(--kl-gray-300);
  border-radius: var(--kl-radius-md); box-shadow: var(--kl-shadow-sm); overflow: hidden;
}
.tiles .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; }
/* Bootstrap's .row ships a :before/:after clearfix (content:" ";display:table).
   Once .row becomes a grid container those generated-content pseudo-elements
   count as real grid items too, silently eating 2 cells and shifting every
   tile over — this is what was pushing the 4th tile onto its own row. Grid
   doesn't need float-clearing anyway, so just drop them. */
.tiles .row::before, .tiles .row::after { display: none; content: none; }
.tile { float: none; width: auto; padding: 0; border: 0; background: none; position: relative; }
.tile:not(:last-child)::after {
  content: ""; position: absolute; top: 18%; bottom: 18%; right: 0; width: 1px; background: var(--kl-gray-300);
}
.tile a {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; text-decoration: none; transition: background 0.2s;
}
.tile:hover a { background: var(--kl-gray-100); cursor: pointer; }
.tile .icon {
  position: static; flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; font-size: 0.95rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--kl-gradient-brand); color: #fff;
}
.tile .stat { margin-top: 0; font-family: var(--kl-font-display); font-size: 1.5rem; font-weight: 700; color: var(--kl-ink); line-height: 1; }
.tile .title { font-size: 0.72rem; font-weight: 600; color: var(--kl-gray-500); text-transform: uppercase; letter-spacing: 0.03em; margin-top: 2px; }
.tile .highlight { display: none; }
@media (max-width: 767px) {
  .tiles .row { grid-template-columns: repeat(2, 1fr); }
  .tile:nth-child(2)::after { display: none; }
}
@media (max-width: 480px) {
  .tiles .row { grid-template-columns: 1fr; }
  .tile::after { display: none; }
}

/* ---- KB search ------------------------------------------------------------- */
.home-kb-search { position: relative; margin-bottom: 32px; }
.home-kb-search .form-control {
  height: auto; padding: 16px 24px 16px 52px; font-size: 0.98rem; font-weight: 500;
  background: var(--kl-gray-100); border: 1px solid var(--kl-gray-300); border-radius: var(--kl-radius-md);
  color: var(--kl-ink); transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.home-kb-search .form-control::placeholder { color: var(--kl-gray-500); }
.home-kb-search .form-control:focus {
  background: #fff; border-color: var(--kl-cyan-500); box-shadow: 0 0 0 3px rgba(0, 198, 213, 0.15);
}
.home-kb-search i { float: none; position: absolute; left: 20px; top: 50%; margin: 0; transform: translateY(-50%); color: var(--kl-gray-500); font-size: 0.95rem; }

/* ---- Dynamic dashboard panels ---------------------------------------------- */
/* WHMCS renders these in a 12-col "full width" row plus two 6-col halves.
   Collapsing the col-sm-* wrappers with display:contents lets every panel
   become a direct grid item instead, so specific panels (the colspan one,
   and "Noticias" — flagged at runtime, see the script below) can span both
   columns while the rest auto-place two-up. `dense` backfills the gap left
   behind so nothing leaves an empty cell. */
.client-home-panels .row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0; grid-auto-flow: row dense;
}
/* Same Bootstrap .row clearfix pseudo-element issue as the tiles grid above. */
.client-home-panels .row::before, .client-home-panels .row::after { display: none; content: none; }
.client-home-panels .row > [class*="col-"] { display: contents; }
.client-home-panels .row > .col-sm-12 > [menuItemName],
.client-home-panels .kl-panel-full { grid-column: 1 / -1; }

.client-home-panels .panel, .client-home-panels .panel-sidebar {
  border-radius: var(--kl-radius-md); border: 1px solid var(--kl-gray-300);
  box-shadow: var(--kl-shadow-sm); transition: box-shadow 0.25s var(--kl-ease), border-color 0.25s var(--kl-ease);
  margin: 0;
}
.client-home-panels .panel:hover { box-shadow: var(--kl-shadow-md); }
.client-home-panels .panel > .panel-heading {
  background: #fff; border-bottom: 1px solid var(--kl-gray-100); padding: 16px 20px;
}
.client-home-panels .panel > .panel-heading .panel-title {
  font-family: var(--kl-font-display); font-size: 0.98rem; font-weight: 700; color: var(--kl-ink);
  display: flex; align-items: center; gap: 8px;
}
.client-home-panels .panel > .panel-heading .panel-title i { color: var(--kl-blue-600); font-size: 0.92em; }
.client-home-panels .panel > .panel-heading .panel-title .btn {
  border-radius: 999px; background: var(--kl-gradient-brand); font-weight: 600; font-size: 0.76rem;
  padding: 6px 14px;
  /* Was rendering before the icon/label since flex ignores the old
     Bootstrap float:right — reorder it to the end and push it flush right. */
  order: 1; margin-left: auto;
}
.client-home-panels .panel > .panel-heading .panel-title .btn:hover { color: #fff; opacity: 0.9; }
.client-home-panels .panel > .list-group { border-top: 1px solid var(--kl-gray-100); border-bottom: 1px solid var(--kl-gray-100); }
.client-home-panels .panel > .list-group .list-group-item { padding: 10px 20px; border-color: var(--kl-gray-100); font-size: 0.9rem; }
.client-home-panels .panel > .panel-footer { background: #fff; border-top: 1px solid var(--kl-gray-100); padding: 12px 20px; }
.client-home-panels .panel > .panel-body p { padding: 14px 20px; color: var(--kl-gray-700); }
/* Neutralise the old rainbow of accent colors — one consistent brand look. */
.client-home-panels .panel[class*="panel-accent-"] { border-top: 1px solid var(--kl-gray-300); }

/* ---- News panel: infinite horizontal carousel of the latest 3 items ------
   Mirrors the footer tech-logo marquee (two back-to-back groups of the
   same items for a seamless loop), but driven by JS transform + rAF
   instead of a CSS animation so it can be click-and-dragged to browse
   manually — a plain (non-drag) click still opens the article normally. */
.kl-news-list { border: none !important; max-height: none !important; overflow: hidden !important; padding: 4px 0; }
.kl-news-track { display: flex; width: max-content; will-change: transform; cursor: grab; touch-action: pan-y; }
.kl-news-track.kl-news-track--dragging { cursor: grabbing; }
.kl-news-group { display: flex; gap: 16px; padding: 4px 16px 4px 0; flex-shrink: 0; }
.kl-news-group .list-group-item {
  width: 260px; flex-shrink: 0; display: block; white-space: normal; user-select: none;
  border: 1px solid var(--kl-gray-100) !important; border-radius: var(--kl-radius-sm);
  padding: 14px 16px !important; font-size: 0.85rem; line-height: 1.45; color: var(--kl-ink);
  max-height: 92px; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.kl-news-group .list-group-item:hover { border-color: var(--kl-cyan-400) !important; transform: translateY(-2px); }

/* ---- Sidebar (now a single consolidated column) ---------------------------- */
.kl-col-sidebar .panel-sidebar { margin-bottom: 16px; }
.kl-col-sidebar .panel-sidebar .panel-heading { padding: 14px 18px; }
.kl-col-sidebar .panel-sidebar .panel-title {
  font-family: var(--kl-font-display); font-size: 0.88rem; font-weight: 700; color: var(--kl-ink);
  display: flex; align-items: center; gap: 8px;
}
.kl-col-sidebar .panel-sidebar .panel-title i:not(.panel-minimise) { color: var(--kl-blue-600); }
.kl-col-sidebar .panel-sidebar .panel-body { padding: 16px 18px; }
.kl-col-sidebar .panel-sidebar .panel-body .btn { width: 100%; justify-content: center; display: inline-flex; align-items: center; gap: 8px; }
.kl-col-sidebar .panel-sidebar .list-group-item {
  padding: 10px 18px; font-size: 0.88rem; display: flex; align-items: center; gap: 10px;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}
.kl-col-sidebar .panel-sidebar .list-group-item:hover { padding-left: 22px; color: var(--kl-blue-600); }
.kl-col-sidebar .panel-sidebar .sidebar-menu-item-icon { width: 16px; text-align: center; color: var(--kl-gray-500); }
.kl-col-sidebar .panel-sidebar .list-group-item:hover .sidebar-menu-item-icon,
.kl-col-sidebar .panel-sidebar .list-group-item.active .sidebar-menu-item-icon { color: inherit; }

/* ---- Staggered scroll-reveal for the dashboard grid ------------------------- */
.tiles .tile:nth-child(1) { --kl-delay: 0ms; }
.tiles .tile:nth-child(2) { --kl-delay: 60ms; }
.tiles .tile:nth-child(3) { --kl-delay: 120ms; }
.tiles .tile:nth-child(4) { --kl-delay: 180ms; }
.client-home-panels [menuItemName]:nth-child(1) { --kl-delay: 0ms; }
.client-home-panels [menuItemName]:nth-child(2) { --kl-delay: 80ms; }
.client-home-panels [menuItemName]:nth-child(3) { --kl-delay: 160ms; }

/* ---- Open ticket: department picker (supportticketsubmit-stepone) --------- */
/* .kl-lead is normally a centered hero paragraph; here it's just the page's
   intro line under a left-aligned title, so keep it left-aligned instead. */
.main-content > p.kl-lead { text-align: left; margin: 0; max-width: 640px; }
p.kl-lead + .kl-dept-grid { margin-top: 28px; }
.kl-dept-grid { grid-template-columns: repeat(2, 1fr); }
.kl-dept-grid.kl-services-grid .kl-service-card {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
}
.kl-dept-grid .kl-service-card__link { margin-top: auto; padding-top: 4px; }
.kl-dept-grid .kl-service-card:nth-child(1) { --kl-delay: 0ms; }
.kl-dept-grid .kl-service-card:nth-child(2) { --kl-delay: 70ms; }
.kl-dept-grid .kl-service-card:nth-child(3) { --kl-delay: 140ms; }
.kl-dept-grid .kl-service-card:nth-child(4) { --kl-delay: 210ms; }
.kl-dept-grid .kl-service-card:nth-child(n+5) { --kl-delay: 280ms; }
@media (max-width: 640px) {
  .kl-dept-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   DataTables list pages (tickets, invoices, domains, products…) — the
   legacy dark info/filter bar and green-underlined header get reskinned
   here generically, so every list page sharing includes/tablelist.tpl
   picks it up consistently.
   ========================================================================== */
/* DataTables' own dom option ('<"listtable"fit>pl') puts length + pagination
   as siblings AFTER the card, not inside it — flex the wrapper so they sit
   on one tidy row underneath instead of stacking awkwardly. */
.dataTables_wrapper { display: flex; flex-wrap: wrap; align-items: center; }
.dataTables_wrapper > .listtable { order: 1; width: 100%; }
.dataTables_wrapper > .dataTables_length { order: 2; margin-right: auto; }
.dataTables_wrapper > .dataTables_paginate { order: 3; }
.listtable {
  display: flex; flex-wrap: wrap;
  border: 1px solid var(--kl-gray-300); border-radius: var(--kl-radius-md);
  overflow: hidden; background: #fff; box-shadow: var(--kl-shadow-sm);
}
.listtable > .dataTables_info { order: 1; flex: 1 1 auto; }
.listtable > .dataTables_filter { order: 2; flex: 0 0 auto; }
.listtable > table { order: 3; flex: 1 1 100%; width: 100% !important; }
.dataTables_filter {
  /* dataTables.bootstrap.css ships `.dataTables_filter{float:right}` at
     higher specificity than a plain class selector can beat — without
     !important it silently won regardless of load order, leaving this
     taller than .dataTables_info and pushing the table down into a big
     empty gap. */
  float: none !important; margin: 0; padding: 6px 20px; text-align: right; width: auto; display: flex; align-items: center; justify-content: flex-end;
}
.dataTables_filter label { display: block; margin: 0; }
.dataTables_filter input {
  border-radius: 999px !important; border: 1px solid var(--kl-gray-300) !important; box-shadow: none !important;
  padding: 3px 14px !important; height: 30px !important; line-height: 1 !important; font-size: 0.82rem; margin-left: 8px; transition: border-color 0.2s, box-shadow 0.2s;
}
.dataTables_filter input:focus { border-color: var(--kl-cyan-500) !important; box-shadow: 0 0 0 3px rgba(0, 198, 213, 0.15) !important; outline: none; }
.dataTables_info {
  background: #fff !important; color: var(--kl-gray-500) !important; border: none !important; border-radius: 0 !important;
  padding: 6px 20px !important; font-size: 0.8rem !important; font-weight: 500 !important; text-align: left !important;
  display: flex; align-items: center; min-height: 30px;
}
.listtable > .dataTables_info, .listtable > .dataTables_filter { border-bottom: 1px solid var(--kl-gray-100); }
table.table-list thead th {
  background: var(--kl-gray-100) !important; color: var(--kl-ink) !important;
  border-bottom: 1px solid var(--kl-gray-300) !important;
  font-family: var(--kl-font-display); font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.03em; text-align: left; padding: 14px 20px;
}
table.table-list thead th.sorting_asc, table.table-list thead th.sorting_desc { background: var(--kl-gray-100) !important; color: var(--kl-blue-600) !important; }
table.table-list tbody td { padding: 15px 20px; border-top: 1px solid var(--kl-gray-100); background: #fff !important; font-size: 0.9rem; color: var(--kl-ink); }
table.table-list tbody tr:hover td { background: var(--kl-gray-100) !important; }
.table-list tbody tr > td a.border-left { border-left: none; padding-left: 0; }
.ticket-number { font-weight: 700; color: var(--kl-blue-600); margin-right: 8px; }
.ticket-subject { color: var(--kl-ink); font-weight: 500; }
.ticket-subject.unread { font-weight: 700; }
.label.status {
  display: inline-block; border-radius: 999px; padding: 5px 14px; font-size: 0.76rem; font-weight: 700;
  border: 1px solid currentColor; background: none; text-transform: uppercase; letter-spacing: 0.02em;
}
table.dataTable td.dataTables_empty { padding: 48px 20px !important; color: var(--kl-gray-500); font-size: 0.95rem; }
.dataTables_length { background: none !important; padding: 14px 20px !important; font-size: 0.85rem !important; color: var(--kl-gray-700) !important; }
.dataTables_length select {
  border-radius: var(--kl-radius-sm); border: 1px solid var(--kl-gray-300); padding: 4px 10px; margin: 0 6px;
}
.dataTables_paginate { padding: 14px 20px !important; text-align: right !important; float: none !important; }
.dataTables_paginate ul.pagination { margin: 0; }
/* The real clickable, text-bearing element is the <a> — the .paginate_button
   class actually sits on its parent <li>, which is otherwise empty. Styling
   the <li> instead (as border/padding/radius) leaves a second, blank pill
   floating next to the real button. Style the <a> and hide the <li>'s own
   box entirely. */
.dataTables_paginate li.paginate_button {
  border: none !important; background: none !important; padding: 0 !important; margin: 0 !important;
  display: inline-block;
}
.dataTables_paginate li.paginate_button > a {
  border-radius: 999px !important; border: 1px solid var(--kl-gray-300) !important; margin: 0 3px !important;
  padding: 6px 14px !important; color: var(--kl-ink) !important; background: #fff !important; box-shadow: none !important;
  display: inline-block;
}
.dataTables_paginate li.paginate_button.active > a, .dataTables_paginate li.paginate_button.active > a:hover {
  background: var(--kl-gradient-brand) !important; border-color: transparent !important; color: #fff !important;
}
.dataTables_paginate li.paginate_button:not(.active):not(.disabled) > a:hover {
  border-color: var(--kl-cyan-500) !important; color: var(--kl-blue-600) !important; background: #fff !important;
}
.dataTables_paginate li.paginate_button.disabled > a { opacity: 0.4; cursor: default; }
@media (max-width: 640px) {
  .dataTables_filter, .dataTables_info, .dataTables_length, .dataTables_paginate { text-align: left !important; }
}

/* ==========================================================================
   Server status / network issues (serverstatus.php)
   ========================================================================== */
.alert { padding: 16px 22px; font-size: 0.92rem; border-left: 4px solid transparent; }
.alert-success { border-left-color: var(--kl-green-600); }
.alert-info { border-left-color: var(--kl-blue-600); }
.alert-warning { background: #fff6e0; color: #a6740b; border-left-color: #dba537; }
.alert-danger { background: #fde9ea; color: #b3232f; border-left-color: #e2596b; }

/* Bootstrap's .btn-group merges buttons into one segmented block (square
   corners, negative margins) — pull them apart into separate rounded pills
   matching the rest of the site instead. */
.btn-group { display: inline-flex; gap: 10px; }
.btn-group > .btn { border-radius: 999px !important; margin-left: 0 !important; }
.btn-group > .btn.disabled { opacity: 0.4; }

.panel-warning { border-top: 3px solid #dba537; }
.panel-warning > .panel-heading { color: #a6740b; font-weight: 700; }
.panel-info { border-top: 3px solid var(--kl-blue-600); }
.panel-info > .panel-heading { color: var(--kl-blue-700); font-weight: 700; }
.list-group-item-danger { background: #fde9ea !important; color: #b3232f !important; }
.list-group-item-warning { background: #fff6e0 !important; color: #a6740b !important; }
.list-group-item-success { background: #e9f9e6 !important; color: var(--kl-green-600) !important; }
.list-group-item-info { background: #e6f6f9 !important; color: var(--kl-blue-700) !important; }

.table-responsive {
  border: 1px solid var(--kl-gray-300); border-radius: var(--kl-radius-md);
  overflow: hidden; background: #fff; box-shadow: var(--kl-shadow-sm);
}
table.table-striped { margin-bottom: 0; width: 100%; }
table.table-striped thead th {
  background: var(--kl-gray-100); color: var(--kl-ink); font-family: var(--kl-font-display);
  font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 14px 18px; border-bottom: 1px solid var(--kl-gray-300);
}
table.table-striped tbody td { padding: 14px 18px; border-top: 1px solid var(--kl-gray-100); font-size: 0.9rem; vertical-align: middle; color: var(--kl-ink); }
table.table-striped tbody tr:nth-child(even) td { background: var(--kl-gray-100); }
table.table-striped tbody tr:hover td { background: #eef8fa; }
table.table-striped .fa-check-circle { color: var(--kl-green-600); font-size: 1.05rem; }
table.table-striped .fa-times-circle { color: #e2596b; font-size: 1.05rem; }
table.table-striped .fa-spinner { color: var(--kl-blue-600); }
