/* ==========================================================================
   X3Web — WHMCS System Theme
   White & Blue · Faceted-ribbon identity derived from the X3 logo
   --------------------------------------------------------------------------
   Layers:
     1. Tokens
     2. Base / typography
     3. Layout primitives (container, faceted section cuts)
     4. Buttons, badges, chips
     5. Forms & inputs
     6. Navbar + top bar
     7. Hero + domain search
     8. Cards: features, plans, stats, TLD pricing
     9. Footer
    10. Bootstrap-3 / WHMCS "six" overrides (client area, cart, tables…)
    11. Utilities, responsive, reduced-motion
   ========================================================================== */

/* 1. TOKENS ================================================================ */
:root {
  /* ------------------------------------------------------------------ *
   * Brand tokens matched to x3web.co.za — deep navy + white + ORANGE.   *
   * NOTE: the primary accent token is still named --x3-blue (and the    *
   * highlight --x3-sky) for backwards compatibility with existing       *
   * selectors, but the VALUES are the X3WEB orange (#ff6b00) and amber  *
   * (#f5a623). The values below are the single source of truth.         *
   * ------------------------------------------------------------------ */
  --x3-ink: #0b1220;      /* body text — near-black navy                  */
  --x3-navy: #041d36;     /* deep navy brand surface (hero / footer)      */
  --x3-navy-700: #0a2b4d;
  --x3-navy-600: #123a63;

  --x3-blue: #ff6b00;     /* PRIMARY ACCENT — X3WEB orange (legacy name)  */
  --x3-blue-600: #e85f00;
  --x3-blue-700: #cc5300;
  --x3-azure: #ff7a1a;
  --x3-sky: #f5a623;      /* SECONDARY ACCENT — amber / gold (legacy name)*/

  /* Neutrals */
  --x3-white: #ffffff;
  --x3-cloud: #f6f7f9;    /* alternating light section background          */
  --x3-mist: #fff1e8;     /* soft orange tint — hover / fill              */
  --x3-line: #e4e7ec;     /* hairline borders (neutral)                  */
  --x3-line-strong: #cfd5de;
  --x3-slate: #5b667a;    /* muted body text                              */
  --x3-slate-400: #8a93a3;

  /* Status */
  --x3-success: #12a150;
  --x3-warning: #d98a00;
  --x3-danger: #dc3546;
  --x3-success-bg: #e6f7ee;
  --x3-warning-bg: #fdf3e0;
  --x3-danger-bg: #fdeaec;

  /* Gradients */
  --x3-grad-blue: linear-gradient(135deg, #ff8a2b 0%, #ff6b00 58%, #e85f00 100%);
  --x3-grad-sky: linear-gradient(135deg, #ffd089 0%, #f5a623 46%, #ff7a00 100%);
  --x3-grad-navy: linear-gradient(160deg, #0a2b4d 0%, #041d36 100%);
  --x3-grad-hero: radial-gradient(120% 120% at 82% 8%, #0a3157 0%, #06233f 46%, #041d36 100%);

  /* Type — Montserrat (display, uppercase) + Lato (body). --x3-font-mono
     is repurposed as the Montserrat label face (eyebrows, stat labels). */
  --x3-font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --x3-font-body: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;
  --x3-font-mono: "Montserrat", "Segoe UI", system-ui, sans-serif;

  /* Radii */
  --x3-r-sm: 8px;
  --x3-r: 12px;
  --x3-r-lg: 18px;

  /* Shadows — neutral navy, soft */
  --x3-shadow-sm: 0 2px 8px -2px rgba(4, 29, 54, 0.12);
  --x3-shadow: 0 12px 30px -14px rgba(4, 29, 54, 0.22);
  --x3-shadow-lg: 0 30px 60px -24px rgba(4, 29, 54, 0.30);
  --x3-ring: 0 0 0 4px rgba(255, 107, 0, 0.18);

  /* Layout */
  --x3-container: 1240px;
  --x3-nav-h: 82px;

  --x3-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. BASE / TYPOGRAPHY ===================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

/* The parent (Six) all.min.css sets html{font-size:10px}, which would shrink
   this theme's rem-based scale to 62.5% ("zoomed out"). Force 16px so every rem
   resolves as intended. Inherited Six pages are px-based, so they're unaffected. */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--x3-font-body);
  color: var(--x3-ink);
  background: var(--x3-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  margin: 0;
}

h1, h2, h3, h4, h5, .x3-display {
  font-family: var(--x3-font-display);
  color: var(--x3-ink);
  line-height: 1.14;
  letter-spacing: 0.005em;
  font-weight: 600;
  text-transform: uppercase;   /* X3WEB sets headings in caps */
  margin: 0 0 0.5em;
}

a { color: var(--x3-blue); text-decoration: none; transition: color 0.18s var(--x3-ease); }
a:hover { color: var(--x3-blue-700); }

p { margin: 0 0 1rem; }

.x3-eyebrow {
  font-family: var(--x3-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--x3-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
}
.x3-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--x3-grad-blue);
  display: inline-block;
}

.x3-lead { font-size: 1.15rem; color: var(--x3-slate); max-width: 60ch; }

::selection { background: rgba(46, 125, 255, 0.22); color: var(--x3-ink); }

/* 3. LAYOUT PRIMITIVES ==================================================== */
.x3-container {
  width: 100%;
  max-width: var(--x3-container);
  margin-inline: auto;
  padding-inline: 24px;
}

.x3-section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; position: relative; }
.x3-section--tint { background: var(--x3-cloud); }
.x3-section--navy { background: var(--x3-grad-navy); color: #dbe7fb; }
.x3-section--navy h1,
.x3-section--navy h2,
.x3-section--navy h3 { color: #fff; }

.x3-section-head { max-width: 44rem; margin: 0 auto clamp(2rem, 4vw, 3.25rem); text-align: center; }
.x3-section-head.is-left { margin-inline: 0; text-align: left; }
.x3-section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.x3-section-head p { color: var(--x3-slate); font-size: 1.08rem; margin-top: 0.6rem; }

/* Signature facet cut — an angular ribbon fold echoing the logo */
.x3-facet-top {
  clip-path: polygon(0 3.5vw, 100% 0, 100% 100%, 0 100%);
}
.x3-facet-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5vw), 0 100%);
}

/* Decorative faceted glyph used as a background accent */
.x3-shard-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.x3-shard-bg::before,
.x3-shard-bg::after {
  content: "";
  position: absolute;
  background: var(--x3-grad-sky);
  opacity: 0.12;
  clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
}
.x3-shard-bg::before { width: 320px; height: 320px; top: -80px; right: -60px; }
.x3-shard-bg::after { width: 200px; height: 200px; bottom: -60px; left: -40px; opacity: 0.08; }

/* 4. BUTTONS ============================================================== */
.x3-btn,
.btn {
  font-family: var(--x3-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--x3-r);
  border: 1px solid transparent;
  cursor: pointer;
  text-transform: none;
  transition: transform 0.18s var(--x3-ease), box-shadow 0.18s var(--x3-ease),
    background 0.18s var(--x3-ease), color 0.18s var(--x3-ease), border-color 0.18s var(--x3-ease);
  text-decoration: none;
  white-space: nowrap;
}
.x3-btn:focus-visible,
.btn:focus-visible { outline: none; box-shadow: var(--x3-ring); }

.x3-btn--primary,
.btn-primary {
  background: var(--x3-grad-blue);
  color: #fff !important;
  box-shadow: var(--x3-shadow-sm);
}
.x3-btn--primary:hover,
.btn-primary:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(28, 100, 242, 0.55);
}

.x3-btn--ghost {
  background: transparent;
  color: var(--x3-navy);
  border-color: var(--x3-line-strong);
}
.x3-btn--ghost:hover { border-color: var(--x3-blue); color: var(--x3-blue); background: var(--x3-mist); }

.x3-btn--light { background: #fff; color: var(--x3-navy); box-shadow: var(--x3-shadow-sm); }
.x3-btn--light:hover { color: var(--x3-blue); transform: translateY(-2px); }

.x3-btn--lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; }
.x3-btn--block { display: flex; width: 100%; }
.x3-btn--sm { padding: 0.55rem 1rem; font-size: 0.86rem; }

/* 5. FORMS =============================================================== */
.x3-field { margin-bottom: 1.1rem; }
.x3-label,
label.x3-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--x3-navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.x3-input,
.x3-select,
.form-control {
  width: 100%;
  font-family: var(--x3-font-body);
  font-size: 0.98rem;
  color: var(--x3-ink);
  background: #fff;
  border: 1.5px solid var(--x3-line-strong);
  border-radius: var(--x3-r-sm);
  padding: 0.8rem 1rem;
  transition: border-color 0.16s var(--x3-ease), box-shadow 0.16s var(--x3-ease);
  height: auto;
}
.x3-input::placeholder { color: var(--x3-slate-400); }
.x3-input:focus,
.x3-select:focus,
.form-control:focus {
  outline: none;
  border-color: var(--x3-blue);
  box-shadow: var(--x3-ring);
}
.x3-input-group { position: relative; display: flex; }
.x3-help { font-size: 0.82rem; color: var(--x3-slate); margin-top: 0.35rem; }

.x3-checkline { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: var(--x3-slate); }
.x3-checkline input { margin-top: 0.25rem; accent-color: var(--x3-blue); width: 16px; height: 16px; }

/* 6. TOP BAR + NAVBAR ==================================================== */
.x3-topbar {
  background: var(--x3-ink);
  color: #b9cbe8;
  font-size: 0.86rem;
}
.x3-topbar .x3-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  gap: 1rem;
}
.x3-topbar a { color: #cfe0fa; }
.x3-topbar a:hover { color: #fff; }
.x3-topbar__meta { display: flex; align-items: center; gap: 1.4rem; }
.x3-topbar__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.x3-topbar__status::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ee27a; box-shadow: 0 0 0 4px rgba(46, 226, 122, 0.2);
  display: inline-block;
}

.x3-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--x3-line);
  transition: box-shadow 0.25s var(--x3-ease), background 0.25s var(--x3-ease);
}
.x3-nav.is-stuck { box-shadow: var(--x3-shadow); background: rgba(255, 255, 255, 0.95); }
.x3-nav__inner {
  height: var(--x3-nav-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.x3-brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.x3-brand img { height: 46px; width: auto; display: block; }
.x3-brand__name {
  font-family: var(--x3-font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--x3-ink);
}
.x3-brand__name b { color: var(--x3-blue); }

.x3-nav__menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 auto 0 1rem;
  list-style: none;
  padding: 0;
}
.x3-nav__menu > li { position: relative; }
.x3-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: var(--x3-r-sm);
  font-weight: 600;
  font-size: 1rem;
  color: var(--x3-navy);
}
.x3-nav__link:hover,
.x3-nav__link.is-active { color: var(--x3-blue); background: var(--x3-mist); }
.x3-nav__link .caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: 0.7; }

/* Dropdown */
.x3-drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--x3-line);
  border-radius: var(--x3-r);
  box-shadow: var(--x3-shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s var(--x3-ease);
  z-index: 40;
}
.x3-nav__menu > li:hover > .x3-drop,
.x3-has-drop.is-open > .x3-drop,
.x3-account.is-open > .x3-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.x3-drop a {
  display: flex;
  gap: 0.7rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--x3-r-sm);
  color: var(--x3-navy);
  align-items: flex-start;
}
.x3-drop a:hover { background: var(--x3-mist); }
.x3-drop a strong { display: block; font-size: 0.92rem; font-weight: 600; }
.x3-drop a small { color: var(--x3-slate); font-size: 0.8rem; }
.x3-drop__ico {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px;
  background: var(--x3-mist); color: var(--x3-blue);
  display: grid; place-items: center;
}

.x3-nav__actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }

.x3-account { position: relative; }
.x3-account__toggle {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.45rem 0.7rem 0.45rem 0.45rem;
  border: 1px solid var(--x3-line); border-radius: 999px;
  background: #fff; cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--x3-navy);
}
.x3-account__toggle:hover { border-color: var(--x3-blue); }
.x3-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--x3-grad-blue); color: #fff;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700;
}
.x3-account .x3-drop { left: auto; right: 0; }

.x3-burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--x3-line);
  background: #fff; border-radius: var(--x3-r-sm); cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.x3-burger span, .x3-burger span::before, .x3-burger span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--x3-navy); position: relative; transition: 0.2s var(--x3-ease);
}
.x3-burger span::before { position: absolute; top: -6px; }
.x3-burger span::after { position: absolute; top: 6px; }

/* 7. HERO + DOMAIN SEARCH ================================================ */
.x3-hero {
  position: relative;
  background: var(--x3-grad-navy);
  color: #fff;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 8vw, 7rem);
}
.x3-hero h1 { color: #fff; }
.x3-hero .x3-eyebrow { color: var(--x3-sky); }
.x3-hero .x3-eyebrow::before { background: var(--x3-grad-sky); }
.x3-hero .x3-trust__item { color: rgba(255, 255, 255, 0.78); }
.x3-hero .x3-trust__item i,
.x3-hero .x3-trust__item svg { color: var(--x3-sky); }

/* Compact page hero (Packages / About) */
.x3-hero--page { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.x3-hero__pagecopy { position: relative; z-index: 2; max-width: 46rem; }
.x3-hero--page h1 { font-size: clamp(2rem, 4vw, 3rem); }

/* Group quick-nav on the Packages page */
.x3-group-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; padding: 2rem 0 0; }
.x3-group-nav__link {
  font-weight: 600; font-size: 0.9rem; color: var(--x3-navy);
  padding: 0.5rem 1.1rem; border: 1px solid var(--x3-line); border-radius: 999px;
  background: #fff; transition: color 0.18s var(--x3-ease), border-color 0.18s var(--x3-ease), background 0.18s var(--x3-ease);
}
.x3-group-nav__link:hover { border-color: var(--x3-blue); color: var(--x3-blue); background: var(--x3-mist); }
.x3-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.x3-hero__copy { position: relative; z-index: 2; }
.x3-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
}
.x3-hero h1 .grad {
  background: var(--x3-grad-blue);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.x3-hero__sub { font-size: 1.2rem; color: rgba(255, 255, 255, 0.74); max-width: 40rem; margin: 1.1rem 0 1.8rem; }
.x3-hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 0.5rem; }

.x3-hero__canvas {
  position: relative;
  z-index: 1;
  min-height: 460px;
  height: 100%;
  opacity: 0;
  transition: opacity 0.9s var(--x3-ease);
}
.x3-hero__canvas.is-ready { opacity: 1; }
.x3-hero__canvas canvas { position: absolute; inset: 0; }

/* Domain search — the primary conversion instrument */
.x3-domainsearch {
  background: #fff;
  border: 1px solid var(--x3-line);
  border-radius: var(--x3-r-lg);
  box-shadow: var(--x3-shadow);
  padding: 1.4rem;
  max-width: 40rem;
}
.x3-domainsearch__tabs { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.x3-domainsearch__tab {
  font-size: 0.82rem; font-weight: 600; color: var(--x3-slate);
  padding: 0.4rem 0.85rem; border-radius: 999px; background: var(--x3-cloud); border: 1px solid transparent; cursor: pointer;
}
.x3-domainsearch__tab.is-active { color: var(--x3-blue); background: var(--x3-mist); border-color: rgba(46,125,255,0.25); }
.x3-domainsearch__row { display: flex; gap: 0.6rem; }
.x3-domainsearch__row .x3-input {
  flex: 1; font-size: 1.05rem; padding: 1rem 1.1rem; border-width: 1.5px;
}
.x3-domainsearch__row .x3-btn { flex: 0 0 auto; }
.x3-tldrow {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1rem;
  font-family: var(--x3-font-mono); font-size: 0.82rem; color: var(--x3-slate);
}
.x3-tldrow b { color: var(--x3-navy); }
.x3-tldrow span { display: inline-flex; align-items: baseline; gap: 0.35rem; }

/* Trust strip */
.x3-trust {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 2rem;
}
.x3-trust__item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--x3-slate); }
.x3-trust__item svg { color: var(--x3-blue); flex: 0 0 auto; }

/* 8. CARDS ============================================================== */
.x3-grid { display: grid; gap: 1.5rem; }
.x3-grid--3 { grid-template-columns: repeat(3, 1fr); }
.x3-grid--4 { grid-template-columns: repeat(4, 1fr); }
.x3-grid--2 { grid-template-columns: repeat(2, 1fr); }

.x3-card {
  background: #fff;
  border: 1px solid var(--x3-line);
  border-radius: var(--x3-r-lg);
  padding: 1.75rem;
  position: relative;
  transition: transform 0.25s var(--x3-ease), box-shadow 0.25s var(--x3-ease), border-color 0.25s var(--x3-ease);
  overflow: hidden;
}
.x3-card:hover { transform: translateY(-4px); box-shadow: var(--x3-shadow); border-color: var(--x3-line-strong); }
/* faceted corner glint */
.x3-card::after {
  content: ""; position: absolute; top: 0; right: 0; width: 66px; height: 66px;
  background: var(--x3-grad-sky); opacity: 0.12;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  transition: opacity 0.25s var(--x3-ease);
}
.x3-card:hover::after { opacity: 0.22; }

.x3-feature__ico {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--x3-mist); color: var(--x3-blue);
  clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%);
}
.x3-feature h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.x3-feature p { color: var(--x3-slate); font-size: 0.95rem; margin: 0; }

/* Pricing / hosting plans */
.x3-plan {
  background: #fff;
  border: 1px solid var(--x3-line);
  border-radius: var(--x3-r-lg);
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform 0.25s var(--x3-ease), box-shadow 0.25s var(--x3-ease), border-color 0.25s var(--x3-ease);
}
.x3-plan:hover { transform: translateY(-5px); box-shadow: var(--x3-shadow-lg); }
.x3-plan--featured {
  border-color: transparent;
  box-shadow: var(--x3-shadow-lg);
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--x3-grad-blue) border-box;
  border: 2px solid transparent;
}
.x3-plan__flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--x3-grad-blue); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border-radius: 999px; white-space: nowrap;
  font-family: var(--x3-font-mono);
}
.x3-plan__name { font-family: var(--x3-font-display); font-weight: 600; font-size: 1.3rem; }
.x3-plan__desc { color: var(--x3-slate); font-size: 0.9rem; min-height: 2.4em; margin: 0.35rem 0 1.1rem; }
.x3-plan__price { display: flex; align-items: flex-end; gap: 0.3rem; margin-bottom: 0.2rem; }
.x3-plan__price .amt { font-family: var(--x3-font-display); font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; color: var(--x3-ink); line-height: 1.05; white-space: nowrap; }
.x3-plan__price .cur { font-family: var(--x3-font-mono); font-size: 1rem; color: var(--x3-slate); font-weight: 600; }
.x3-plan__cycle { font-family: var(--x3-font-mono); font-size: 0.8rem; color: var(--x3-slate); margin-bottom: 1.3rem; }
.x3-plan__features { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.65rem; }
.x3-plan__features li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; color: var(--x3-navy); }
.x3-plan__features li svg { color: var(--x3-blue); flex: 0 0 auto; margin-top: 2px; }
.x3-plan__features li.is-off { color: var(--x3-slate-400); }
.x3-plan__features li.is-off svg { color: var(--x3-slate-400); }
.x3-plan .x3-btn { margin-top: auto; }

/* Uniform, fully-clickable auto-pulled package cards (homepage #packages) */
.x3-packages-cards { grid-auto-rows: 1fr; }         /* every card the same height */
.x3-plan--link {
  text-decoration: none; color: inherit; height: 100%; cursor: pointer;
}
.x3-plan--link:hover { color: inherit; }
.x3-plan__cat {
  font-family: var(--x3-font-mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--x3-blue); margin-bottom: 0.5rem;
}
.x3-plan--link .x3-btn { pointer-events: none; }    /* the whole card is the link */

/* Package category tabs (homepage #packages) */
.x3-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
  margin: 0 0 2rem;
}
.x3-tab {
  font-family: var(--x3-font-body);
  font-weight: 600; font-size: 0.92rem; color: var(--x3-navy);
  padding: 0.65rem 1.3rem; border-radius: 999px;
  border: 1px solid var(--x3-line); background: #fff; cursor: pointer;
  transition: color 0.18s var(--x3-ease), border-color 0.18s var(--x3-ease),
              background 0.18s var(--x3-ease), box-shadow 0.18s var(--x3-ease);
  white-space: nowrap;
}
.x3-tab:hover { border-color: var(--x3-blue); color: var(--x3-blue); }
.x3-tab.is-active {
  background: var(--x3-grad-blue); color: #fff; border-color: transparent;
  box-shadow: 0 10px 22px -10px rgba(255, 107, 0, 0.55);
}
.x3-tab:focus-visible { outline: none; box-shadow: var(--x3-ring); }

.x3-tabpanel { display: none; }
.x3-tabpanel.is-active { display: block; animation: x3FadeIn 0.35s var(--x3-ease); }
@keyframes x3FadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .x3-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
             margin-inline: -18px; padding: 0 18px 0.5rem; scrollbar-width: none; }
  .x3-tabs::-webkit-scrollbar { display: none; }
}

/* Stats */
.x3-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.x3-stat { text-align: center; }
.x3-stat__num {
  font-family: var(--x3-font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em; line-height: 1;
  background: var(--x3-grad-sky); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.x3-section--navy .x3-stat__num { background: var(--x3-grad-sky); -webkit-background-clip: text; background-clip: text; color: transparent; }
.x3-stat__label { font-family: var(--x3-font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--x3-slate); margin-top: 0.5rem; }
.x3-section--navy .x3-stat__label { color: #9fb6d8; }

/* TLD price table */
.x3-tldgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
.x3-tldcard {
  border: 1px solid var(--x3-line); border-radius: var(--x3-r); padding: 1rem 1.1rem; background: #fff;
  transition: border-color 0.2s var(--x3-ease), transform 0.2s var(--x3-ease);
}
.x3-tldcard:hover { border-color: var(--x3-blue); transform: translateY(-3px); }
.x3-tldcard .tld { font-family: var(--x3-font-display); font-weight: 600; font-size: 1.25rem; color: var(--x3-navy); }
.x3-tldcard .price { font-family: var(--x3-font-mono); font-size: 0.9rem; color: var(--x3-blue); font-weight: 600; margin-top: 0.2rem; }
.x3-tldcard .price small { color: var(--x3-slate); font-weight: 400; }

/* Auth card */
.x3-authwrap {
  min-height: calc(100vh - var(--x3-nav-h) - 40px);
  display: grid; grid-template-columns: 1fr 1fr;
}
.x3-authwrap__aside {
  background: var(--x3-grad-navy); color: #cfe0fa; position: relative; overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center;
}
.x3-authwrap__aside h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.x3-authwrap__aside .x3-eyebrow { color: var(--x3-sky); }
.x3-authwrap__aside .x3-eyebrow::before { background: var(--x3-grad-sky); }
.x3-auth-checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.85rem; }
.x3-auth-checklist li { display: flex; gap: 0.7rem; align-items: flex-start; }
.x3-auth-checklist svg,
.x3-auth-checklist i { color: var(--x3-sky); flex: 0 0 auto; margin-top: 3px; }
.x3-authwrap__main { display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 5vw, 4rem); }
.x3-authcard { width: 100%; max-width: 26rem; }
.x3-authcard h1 { font-size: 1.9rem; }
.x3-authcard__sub { color: var(--x3-slate); margin-bottom: 1.8rem; }
.x3-auth-alt { text-align: center; margin-top: 1.5rem; font-size: 0.92rem; color: var(--x3-slate); }
.x3-divider { display: flex; align-items: center; gap: 1rem; color: var(--x3-slate-400); font-size: 0.8rem; margin: 1.5rem 0; }
.x3-divider::before, .x3-divider::after { content: ""; flex: 1; height: 1px; background: var(--x3-line); }

/* 9. FOOTER ============================================================= */
.x3-footer {
  background: var(--x3-grad-navy);
  color: #a9c0e2;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  position: relative;
}
.x3-footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
.x3-footer__brand img { height: 40px; filter: brightness(0) invert(1); opacity: 0.95; }
.x3-footer__brand p { margin-top: 1rem; font-size: 0.9rem; max-width: 26ch; color: #90a9cf; }
.x3-footer h4 { color: #fff; font-family: var(--x3-font-display); font-size: 0.95rem; letter-spacing: 0.02em; margin-bottom: 1rem; }
.x3-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.x3-footer a { color: #a9c0e2; font-size: 0.9rem; }
.x3-footer a:hover { color: #fff; }
.x3-footer__social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.x3-footer__social a {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255,255,255,0.06); color: #cfe0fa; border: 1px solid rgba(255,255,255,0.08);
}
.x3-footer__social a:hover { background: var(--x3-blue); color: #fff; border-color: transparent; }
.x3-footer__bar {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: #8aa3c9;
}
.x3-footer__pay { display: flex; gap: 0.5rem; align-items: center; }
.x3-footer__pay span {
  font-family: var(--x3-font-mono); font-size: 0.68rem; letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem; border: 1px solid rgba(255,255,255,0.14); border-radius: 5px; color: #b9cbe8;
}
.x3-footer__legal { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.x3-footer__legal a { color: #8aa3c9; font-size: 0.85rem; }
.x3-footer__legal a:hover { color: #fff; }
.x3-footer ul li a i { width: 16px; opacity: 0.7; margin-right: 0.15rem; }

/* 10. BOOTSTRAP-3 / WHMCS "six" OVERRIDES ================================
   These keep inherited client-area, cart and order templates on-brand. */
#main-body,
.main-content,
body.clientarea,
.clientarea-body { background: var(--x3-cloud); }

.panel {
  border: 1px solid var(--x3-line);
  border-radius: var(--x3-r) !important;
  box-shadow: var(--x3-shadow-sm);
  background: #fff;
}
.panel-heading {
  background: #fff !important;
  border-bottom: 1px solid var(--x3-line);
  border-radius: var(--x3-r) var(--x3-r) 0 0 !important;
  font-family: var(--x3-font-display);
  font-weight: 600;
  color: var(--x3-ink);
  padding: 1rem 1.25rem;
}
.panel-title { font-size: 1.05rem; font-weight: 600; }
.panel-body { padding: 1.25rem; }

.well {
  background: var(--x3-cloud);
  border: 1px solid var(--x3-line);
  border-radius: var(--x3-r);
  box-shadow: none;
}

.btn-default { background: #fff; border-color: var(--x3-line-strong); color: var(--x3-navy); }
.btn-default:hover { border-color: var(--x3-blue); color: var(--x3-blue); background: var(--x3-mist); }
.btn-success { background: var(--x3-success); border-color: var(--x3-success); }
.btn-link { color: var(--x3-blue); }

label { color: var(--x3-navy); font-weight: 600; }

.alert { border-radius: var(--x3-r); border: 1px solid transparent; padding: 1rem 1.25rem; }
.alert-success { background: var(--x3-success-bg); color: #0d6b38; border-color: #b7e6cb; }
.alert-info { background: var(--x3-mist); color: var(--x3-blue-700); border-color: #bcd6ff; }
.alert-warning { background: var(--x3-warning-bg); color: #8a5a00; border-color: #f2d9a8; }
.alert-danger { background: var(--x3-danger-bg); color: #a11826; border-color: #f2bfc5; }

.table { background: #fff; }
.table > thead > tr > th {
  border-bottom: 2px solid var(--x3-line-strong);
  font-family: var(--x3-font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--x3-slate); font-weight: 600;
}
.table > tbody > tr > td { border-top: 1px solid var(--x3-line); vertical-align: middle; }
.table-hover > tbody > tr:hover { background: var(--x3-mist); }

.label-success, .badge-success { background: var(--x3-success); }
.breadcrumb { background: transparent; padding: 0.5rem 0; font-size: 0.86rem; }
.breadcrumb > .active { color: var(--x3-slate); }

.pagination > li > a { color: var(--x3-blue); border-color: var(--x3-line); }
.pagination > .active > a,
.pagination > .active > a:hover { background: var(--x3-blue); border-color: var(--x3-blue); }

.nav-tabs { border-bottom: 1px solid var(--x3-line); }
.nav-tabs > li > a { color: var(--x3-slate); border-radius: var(--x3-r-sm) var(--x3-r-sm) 0 0; }
.nav-tabs > li.active > a {
  color: var(--x3-blue); border-color: var(--x3-line) var(--x3-line) transparent;
  font-weight: 600;
}
.list-group-item { border-color: var(--x3-line); }
.list-group-item.active { background: var(--x3-blue); border-color: var(--x3-blue); }

a.provisioning-item,
.sidebar-menu .list-group-item:hover { background: var(--x3-mist); }

/* WHMCS order-form sidebar / product cards baseline */
.product { border-radius: var(--x3-r-lg); }
#order-standard-cart .product,
.order-summary { border-radius: var(--x3-r-lg); }

/* 11. UTILITIES + RESPONSIVE + MOTION =================================== */
.x3-center { text-align: center; }
.x3-mt-0 { margin-top: 0; }
.x3-mt-1 { margin-top: 0.5rem; }
.x3-mt-2 { margin-top: 1rem; }
.x3-mt-3 { margin-top: 1.5rem; }
.x3-mt-4 { margin-top: 2rem; }
.x3-mb-0 { margin-bottom: 0; }
.x3-flex { display: flex; }
.x3-gap { gap: 1rem; }
.x3-wrap { flex-wrap: wrap; }
.x3-hide-mobile { }
.x3-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--x3-font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.35rem 0.7rem; border-radius: 999px; background: var(--x3-mist); color: var(--x3-blue);
}

/* Reveal-on-scroll — hidden ONLY when JS is confirmed (html.x3-js), so the
   content is fully visible if scripts are disabled or fail to load. */
.x3-reveal { transition: opacity 0.7s var(--x3-ease), transform 0.7s var(--x3-ease); }
html.x3-js .x3-reveal { opacity: 0; transform: translateY(22px); }
html.x3-js .x3-reveal.is-in { opacity: 1; transform: none; }

/* Off-canvas mobile nav.
   The drawer sits inside a fixed, overflow-clipped viewport wrapper so that,
   when parked off-screen at translateX(100%), it never extends the document
   scroll width — and, crucially, we avoid overflow-x on html/body which would
   break the sticky navbar. */
.x3-offcanvas {
  position: fixed; inset: 0; overflow: hidden;
  pointer-events: none; z-index: 1050;
}
.x3-mobile-nav {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 360px);
  background: #fff; box-shadow: var(--x3-shadow-lg);
  transform: translateX(100%); transition: transform 0.3s var(--x3-ease);
  padding: 1.5rem; overflow-y: auto; pointer-events: none;
}
.x3-mobile-nav.is-open { transform: none; pointer-events: auto; }
.x3-mobile-nav a { display: block; padding: 0.8rem 0.5rem; color: var(--x3-navy); font-weight: 600; border-bottom: 1px solid var(--x3-line); }
.x3-scrim {
  position: absolute; inset: 0; background: rgba(10, 26, 51, 0.5);
  opacity: 0; visibility: hidden; transition: 0.3s var(--x3-ease); pointer-events: none;
}
.x3-scrim.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

@media (max-width: 1024px) {
  .x3-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .x3-stats { grid-template-columns: repeat(2, 1fr); }
  .x3-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .x3-nav__menu, .x3-nav__actions .x3-btn--ghost { display: none; }
  .x3-burger { display: inline-flex; }
  .x3-hero__grid { grid-template-columns: 1fr; }
  .x3-hero__canvas { min-height: 320px; order: -1; }
  .x3-authwrap { grid-template-columns: 1fr; }
  .x3-authwrap__aside { display: none; }
  .x3-grid--3 { grid-template-columns: 1fr; }
  .x3-grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .x3-container { padding-inline: 18px; }
  .x3-grid--4 { grid-template-columns: 1fr; }
  .x3-stats { grid-template-columns: 1fr 1fr; }
  .x3-footer__top { grid-template-columns: 1fr; }
  .x3-domainsearch__row { flex-direction: column; }
  .x3-domainsearch__row .x3-btn { width: 100%; }
  .x3-topbar__meta span:not(.x3-topbar__status) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .x3-reveal, html.x3-js .x3-reveal { opacity: 1; transform: none; }
}

/* 12. WHMCS INTEGRATION LAYER ==========================================
   Classes referenced by the .tpl templates (layout branches, admin bar,
   registration form, and the client-area dashboard). */

/* Admin masquerade / preview bar */
.x3-adminbar {
  background: repeating-linear-gradient(45deg, #0a1a33, #0a1a33 12px, #10233f 12px, #10233f 24px);
  color: #fff;
}
.x3-adminbar .x3-container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 44px; padding-block: 6px; font-size: 0.85rem;
}
.x3-adminbar span { display: inline-flex; align-items: center; gap: 0.5rem; }

/* Main content wrappers */
.x3-main { display: block; }
.x3-main--bleed { padding: 0; }
.x3-sidebar-col { margin-bottom: 1.5rem; }
.x3-content-col { min-width: 0; } /* prevents flex/grid overflow of tables */

/* Utility visibility */
.x3-hide-mobile { display: inline-flex; }

/* FontAwesome sizing safety inside our buttons/links */
.x3-btn .fas, .x3-btn .fab, .x3-nav__link .fas, .x3-nav__link .fab { font-size: 0.95em; }
.x3-topbar a .fas { margin-right: 0.35rem; opacity: 0.85; }

/* Registration form headings */
.x3-form-heading {
  font-family: var(--x3-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--x3-navy);
  margin: 1.75rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--x3-line);
  display: flex; align-items: center; gap: 0.5rem;
}
.x3-form-heading:first-of-type { margin-top: 0.25rem; }
.x3-optional { font-weight: 400; font-size: 0.8rem; color: var(--x3-slate-400); }

/* ---- Client-area dashboard ---- */
.x3-dash-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem;
}
.x3-dash-tiles { margin-bottom: 2rem; }
.x3-tile {
  display: flex; flex-direction: column; gap: 0.15rem;
  text-decoration: none; color: var(--x3-ink); padding: 1.4rem 1.5rem;
}
.x3-tile:hover { color: var(--x3-ink); }
.x3-tile__ico {
  width: 46px; height: 46px; border-radius: 11px; margin-bottom: 0.6rem;
  display: grid; place-items: center; background: var(--x3-mist); color: var(--x3-blue);
  font-size: 1.1rem;
  clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%);
}
.x3-tile__num {
  font-family: var(--x3-font-display); font-size: 2.1rem; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.1; color: var(--x3-ink);
}
.x3-tile__label { font-family: var(--x3-font-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--x3-slate); }

.x3-quicklinks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.x3-quicklinks a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.9rem; border: 1px solid var(--x3-line); border-radius: var(--x3-r-sm);
  color: var(--x3-navy); font-weight: 500; font-size: 0.9rem; background: #fff;
  transition: all 0.18s var(--x3-ease);
}
.x3-quicklinks a:hover { border-color: var(--x3-blue); color: var(--x3-blue); background: var(--x3-mist); transform: translateY(-2px); }
.x3-quicklinks a i { color: var(--x3-blue); width: 16px; text-align: center; }

@media (max-width: 640px) {
  .x3-hide-mobile { display: none !important; }
  .x3-quicklinks { grid-template-columns: 1fr; }
}

/* 13. STORE / ORDER-FORM / DOMAIN-RESULTS ==============================
   The stock `standard_cart` order form renders inside our header/footer,
   so these defensive overrides restyle the store, package selection, cart
   and domain-availability pages on-brand. All additive — safe if a class
   is absent on a given WHMCS build. */

/* Product group / package selection cards */
#order-standard-cart .product,
#products .product,
.packages .product,
.product-group .product {
  border: 1px solid var(--x3-line);
  border-radius: var(--x3-r-lg) !important;
  background: #fff;
  box-shadow: var(--x3-shadow-sm);
  transition: transform 0.25s var(--x3-ease), box-shadow 0.25s var(--x3-ease), border-color 0.25s var(--x3-ease);
  overflow: hidden;
}
#order-standard-cart .product:hover,
.packages .product:hover,
.product-group .product:hover {
  transform: translateY(-4px);
  box-shadow: var(--x3-shadow-lg);
  border-color: var(--x3-line-strong);
}
.product .product-name,
.product h3,
.product .title {
  font-family: var(--x3-font-display) !important;
  font-weight: 600;
  color: var(--x3-ink);
}
.product .price,
.package-price,
.cycle .price,
.product-pricing {
  font-family: var(--x3-font-mono);
  color: var(--x3-navy);
}
.product .price .amount,
.product-pricing .amount {
  font-family: var(--x3-font-display);
  color: var(--x3-ink);
}

/* Highlighted / recommended package */
.product.highlight,
.product.featured,
.packages .product.recommended {
  border: 2px solid transparent !important;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--x3-grad-blue) border-box;
  box-shadow: var(--x3-shadow-lg);
}

/* Product group nav tabs (Shared / Reseller / VPS …) */
#order-standard-cart .product-group-nav .nav-pills > li > a,
.group-nav .nav > li > a,
.product-group-menu a {
  border-radius: 999px;
  color: var(--x3-navy);
  font-weight: 500;
}
#order-standard-cart .product-group-nav .nav-pills > li.active > a,
.product-group-menu a.active {
  background: var(--x3-grad-blue) !important;
  color: #fff !important;
}

/* Configure-product & checkout summary panels */
.order-summary,
.summary-container,
#orderSummary,
.cartbox,
.ordersummary {
  border: 1px solid var(--x3-line);
  border-radius: var(--x3-r-lg);
  background: #fff;
  box-shadow: var(--x3-shadow);
}
.order-summary .total,
.ordersummary .total,
#orderSummary .total {
  font-family: var(--x3-font-display);
  color: var(--x3-ink);
}

/* Configurable options / addons rows */
#productConfigurableOptions .form-group,
#configurableProductAddons .card,
.product-addon {
  border-radius: var(--x3-r);
}

/* ---- Domain checker results (cart.php a=checkDomain) ---- */
.domain-checker-results,
.domain-search-results,
#domainSearchResults {
  border-radius: var(--x3-r-lg);
  overflow: hidden;
}
.domain-checker-result,
.domain-result,
.search-result {
  border: 1px solid var(--x3-line);
  border-radius: var(--x3-r);
  background: #fff;
  margin-bottom: 0.6rem;
  transition: border-color 0.2s var(--x3-ease);
}
.domain-checker-result:hover,
.domain-result:hover { border-color: var(--x3-blue); }
.domain-checker-result.available,
.domain-result.available,
.available .domain-name { color: var(--x3-success); }
.domain-checker-result.unavailable,
.domain-result.unavailable,
.unavailable .domain-name { color: var(--x3-slate-400); }
.domain-name,
.domain-checker-domain { font-family: var(--x3-font-mono); font-weight: 600; }

/* Big domain search box on cart.php domain landing */
#inputDomain,
.domain-search-input,
.domaincheckerbox .form-control {
  border-radius: var(--x3-r-sm) !important;
}

/* Cart quantity / view-cart tables inherit .table overrides above.
   Continue / checkout buttons inherit .btn / .btn-primary overrides. */

/* 14. STORE / ORDER-FORM BRAND POLISH =================================
   The order form (cart.php) ships its OWN complete .x3-package-* styling
   (templates/orderforms/standard_cart/custom.css + an inline block) that
   already uses the X3WEB palette (navy #041d36, orange #ff6b00) via CSS
   variables — but it renders the CTA buttons in NAVY, which reads flat next
   to the homepage. These high-specificity overrides (winning over the order
   form's inline !important via the #order-standard_cart id) give the store the
   same vibrant orange CTAs and Montserrat headings as the rest of the site. */

/* Vibrant orange CTA buttons across the whole store flow — packages, domain
   search, cart and checkout (the order form defaults them to navy --x3-brand). */
#order-standard_cart .x3-package-btn,
#order-standard_cart .btn-cta,
#order-standard_cart .domain-check-availability,
#order-standard_cart .btn-primary {
  background: var(--x3-grad-blue) !important;   /* X3WEB orange gradient */
  border: 0 !important;
  border-color: transparent !important;
  color: #fff !important;
  transition: transform 0.18s var(--x3-ease), box-shadow 0.18s var(--x3-ease), filter 0.18s var(--x3-ease) !important;
}
#order-standard_cart .x3-package-btn:hover,
#order-standard_cart .btn-cta:hover,
#order-standard_cart .domain-check-availability:hover,
#order-standard_cart .btn-primary:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(255, 107, 0, 0.55) !important;
  filter: brightness(1.03);
}

/* Montserrat display headings + package names, to match the homepage */
#order-standard_cart .x3-packages-hero h1,
#order-standard_cart .x3-packages-hero-card h1,
#order-standard_cart .x3-package-name,
#order-standard_cart .x3-package-section-title {
  font-family: var(--x3-font-display) !important;
}
#order-standard_cart .x3-packages-label { color: var(--x3-sky) !important; }

/* Orange accents: feature checks, the "more" toggle, and the package label */
#order-standard_cart .x3-package-features li i,
#order-standard_cart .x3-package-more-btn,
#order-standard_cart .x3-package-type { color: var(--x3-blue) !important; }

/* A little more lift on hover */
#order-standard_cart .x3-package-card:hover { transform: translateY(-5px); }

/* Strip the stray <br> spacer block some cards carry */
#order-standard_cart .x3-package-source { display: none !important; }

/* 15. STORE PRODUCT LISTING (stock standard_cart) ======================
   The /store/<group> pages render WHMCS's stock listing: .products with
   Bootstrap .row/.col wrappers, .product cards, and .btn-order-now buttons.
   `display: contents` on the row wrappers lets us flatten them into one real
   grid, so every card is the same width AND height regardless of how long the
   product description is. */

#order-standard_cart .products {
  display: grid;
  /* auto-fill adapts to the CONTAINER (which is narrowed by the store
     sidebar), so cards never get squeezed the way fixed viewport-based
     breakpoints would squeeze them. */
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  grid-auto-rows: 1fr;                 /* every card identical height */
  gap: 1.5rem;
}
#order-standard_cart .products > .row { display: contents; }
/* Bootstrap gives .row clearfix ::before/::after pseudo-elements. With
   `display: contents` those become GRID ITEMS too (2 phantom items per row),
   which scatters the real cards and leaves holes in the grid. Kill them. */
#order-standard_cart .products > .row::before,
#order-standard_cart .products > .row::after {
  content: none !important; display: none !important;
}
#order-standard_cart .products > .row > [class*="col-"] {
  width: auto; max-width: none; flex: none; padding: 0; margin: 0;
}

/* NOTE ON SPECIFICITY: the order form's own stylesheet loads AFTER theme.css
   and styles these cards as a two-column layout
   (`.product-desc{float:left;width:60%}` + `footer{float:right;width:40%}`)
   with `#order-standard_cart .products .product ...` selectors. So every
   override below must match that specificity and use !important, otherwise the
   text is squeezed to 60% and the button floats in a narrow 40% column. */

#order-standard_cart .products .product {
  display: flex; flex-direction: column; height: 100%;
  background: #fff;
  border: 1px solid var(--x3-line) !important;
  border-radius: var(--x3-r-lg) !important;
  padding: 1.6rem !important;
  margin: 0 !important;
  box-shadow: var(--x3-shadow-sm);
  transition: transform 0.25s var(--x3-ease), box-shadow 0.25s var(--x3-ease), border-color 0.25s var(--x3-ease);
}
#order-standard_cart .products .product:hover {
  transform: translateY(-4px);
  box-shadow: var(--x3-shadow-lg);
  border-color: var(--x3-line-strong) !important;
}
/* .product carries .clearfix — its pseudo-elements would become flex items
   and leave dead space at the bottom of every card. */
#order-standard_cart .products .product::before,
#order-standard_cart .products .product::after {
  content: none !important; display: none !important;
}

#order-standard_cart .products .product > header {
  padding: 0 !important; margin: 0 0 0.75rem !important;
  background: transparent !important; border: 0 !important; min-height: 0 !important;
}
#order-standard_cart .products .product > header span {
  font-family: var(--x3-font-display);
  font-weight: 600; font-size: 1.15rem; line-height: 1.25;
  color: var(--x3-ink); display: block;
}

/* Full-width description, clamped with a fade so cards stay uniform —
   the complete description is shown on the product's own page. */
#order-standard_cart .products .product div.product-desc {
  float: none !important; width: auto !important; padding: 0 !important;
  position: relative; max-height: 13rem; overflow: hidden;
  font-size: 0.88rem; color: var(--x3-slate); margin: 0 0 1rem !important;
}
#order-standard_cart .products .product div.product-desc::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.5rem;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  pointer-events: none;
}
#order-standard_cart .products .product div.product-desc p { margin: 0; }

/* Footer holds price + button: pin it to the card bottom, full width, so the
   buttons line up perfectly across every card in a row. */
#order-standard_cart .products .product footer {
  float: none !important; width: auto !important;
  margin: auto 0 0 !important; padding: 1rem 0 0 !important;
  text-align: left !important; border-top: 1px solid var(--x3-line);
  font-size: 1em !important;
}
#order-standard_cart .products .product .product-pricing { margin: 0; padding: 0; border: 0; }
#order-standard_cart .products .product .price {
  font-family: var(--x3-font-display); font-weight: 700; font-size: 1.35rem;
  color: var(--x3-ink); display: block; line-height: 1.15;
}

#order-standard_cart .btn-order-now,
#order-standard_cart .btn-success,
#order-standard_cart .products .product .btn-order-now {
  background: var(--x3-grad-blue) !important;
  border: 0 !important; color: #fff !important;
  border-radius: var(--x3-r); padding: 0.8rem 1.2rem;
  font-weight: 600; font-size: 0.95rem;
  width: 100% !important; margin-top: 1rem !important;
}
#order-standard_cart .btn-order-now:hover,
#order-standard_cart .btn-success:hover {
  color: #fff !important; transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(255, 107, 0, 0.55);
}

/* Store sidebar (Categories / Actions) */
#order-standard_cart .panel-sidebar,
#order-standard_cart .card-sidebar {
  border: 1px solid var(--x3-line); border-radius: var(--x3-r-lg);
  box-shadow: var(--x3-shadow-sm); overflow: hidden; background: #fff;
}
#order-standard_cart .panel-sidebar .panel-heading,
#order-standard_cart .card-sidebar .card-header {
  background: #fff !important; border-bottom: 1px solid var(--x3-line);
  font-family: var(--x3-font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem;
  color: var(--x3-ink); padding: 1rem 1.15rem;
}
#order-standard_cart .list-group-item {
  border-color: var(--x3-line); color: var(--x3-navy);
  font-weight: 500; font-size: 0.92rem;
}
#order-standard_cart .list-group-item-action:hover {
  background: var(--x3-mist); color: var(--x3-blue);
}
#order-standard_cart .list-group-item.active,
#order-standard_cart .list-group-item-action.active {
  background: var(--x3-grad-blue) !important;
  border-color: transparent !important; color: #fff !important;
}

/* Very narrow phones: force a single column so cards never shrink below
   readable width (auto-fill already handles everything above this). */
@media (max-width: 480px) { #order-standard_cart .products { grid-template-columns: 1fr; } }
