/* *****************************************************

    ** Custom Stylesheet **

    Any custom styling you want to apply should be
    defined here.

***************************************************** */

/* Custom CSS for Nexus Theme
 *
 * This file allows you to customize the theme colors and styles for the entire Nexus template.
 *
 * To customize colors:
 * - Replace the var() references with your own hex colors or other CSS values.
 * - For example, instead of --primary: #4b5563; use --primary: #your-color;
 * - You can also override any CSS properties here.
 */

:root {
    --white: #fff;

    /* Neutral shades */
    --neutral-50: #fbf9fa;
    --neutral-100: #f4f5f7;
    --neutral-200: #e4e4e7;
    --neutral-300: #d0d5dd;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    --neutral-950: #030712;

    /* Neutral shades */
    /* define own pallet with brand colors */
    --primary-50: var(--neutral-50);
    --primary-100: var(--neutral-100);
    --primary-200: var(--neutral-200);
    --primary-300: var(--neutral-300);
    --primary-400: var(--neutral-400);
    --primary-500: var(--neutral-500);
    --primary-600: var(--neutral-600);
    --primary-700: var(--neutral-700);
    --primary-800: var(--neutral-800);
    --primary-900: var(--neutral-900);
    --primary-950: var(--neutral-900);

    /* Primary colors */
    /* Use shades from comments if `primary` colors use other colors, then neutral */
    --primary: var(--neutral-900);          /* var(--primary-600) */
    --primary-lifted: var(--neutral-800);   /* var(--primary-700) */
    --primary-accented: var(--neutral-700); /* var(--primary-800) */

    /* Secondary colors */
    --secondary: var(--neutral-500);
    --secondary-lifted: var(--neutral-600);
    --secondary-accented: var(--neutral-700);

    /* Success colors */
    --success: #00a63e;
    --success-lifted: #008236;
    --success-accented: #016630;

    /* Info colors */
    --info: #155dfc;
    --info-lifted: #1447e6;
    --info-accented: #193cb8;

    /* Notice colors */
    --notice: #7f22fe;
    --notice-lifted: #7008e7;
    --notice-accented: #5d0ec0;

    /* Warning colors */
    --warning: #f54a00;
    --warning-lifted: #ca3500;
    --warning-accented: #9f2d00;

    /* Error colors */
    --error: #e7000b;
    --error-lifted: #c10007;
    --error-accented: #9f0712;

    /* Grayscale colors */
    --grayscale: var(--neutral-900);
    --grayscale-lifted: var(--neutral-800);
    --grayscale-accented: var(--neutral-700);

    /* Neutral colors */
    --neutral: var(--neutral-500);
    --neutral-lifted: var(--neutral-600);
    --neutral-accented: var(--neutral-700);

    /* Text neutral colors */
    --text-inverted: var(--white);
    --text-muted: var(--neutral-400);
    --text-lifted: var(--neutral-500);
    --text-accented: var(--neutral-600);
    --text: var(--neutral-900);

    /* Border neutral colors */
    --border-muted: var(--neutral-200);
    --border: var(--neutral-300);
    --border-lifted: var(--neutral-400);
    --border-accented: var(--neutral-600);

    /* Background neutral colors */
    --bg: var(--white);
    --bg-muted: var(--neutral-50);
    --bg-lifted: var(--neutral-100);
    --bg-accented: var(--neutral-200);
    --bg-inverted: var(--neutral-900);

    /* Additional colors */
    --yellow-200: #fff085;
    --yellow-300: #ffdf20;
    --teal-300: #46edd5;
    --teal-400: #00d5be;
    --emerald-300: #5ee9b5;
    --pink-400: #fb64b6;

    /* Additional custom properties */
    /* Font sizes */
    --text-xs: 0.625rem;
    --text-sm: 0.75rem;
    --text-md: 0.875rem;
    --text-lg: 1rem;

    /* Spacing */
    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;

    /* Rounding */
    --rounding-sm: 0.25rem;
    --rounding-md: 0.5rem;
    --rounding-lg: 0.75rem;

    /* Other */
    --letter-spacing: 0em;
    --disabled-opacity: 25%;
}



/* ===== IVO-V4 START (managed) ===== */
/* ============================================================================
   IVO v4 brand foundation for the WHMCS Nexus theme
   ----------------------------------------------------------------------------
   Variable-level rebrand: overrides ONLY Nexus's own :root design tokens, so it
   restyles every client/store/support page at once with zero layout risk and
   survives WHMCS/Nexus upgrades (tokens are a stable contract). Appended after
   Nexus's stock custom.css :root, so these win. Component-level v4 polish is a
   later pass (with visual review). Accent = v4 coral; flip the --primary ramp to
   blue here if blue is preferred.
   ============================================================================ */

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

:root {
  /* ---- v4 BLUE brand ramp (primary) ---- */
  --primary-50:#eff6ff;  --primary-100:#dbeafe; --primary-200:#bfdbfe; --primary-300:#93c5fd;
  --primary-400:#60a5fa; --primary-500:#3b82f6; --primary-600:#2563eb; --primary-700:#1d4ed8;
  --primary-800:#1e40af; --primary-900:#1e3a8a; --primary-950:#172554;
  --primary:#2563eb; --primary-lifted:#1d4ed8; --primary-accented:#1e40af;

  /* ---- semantic colours mapped to v4 ---- */
  --success:#16a34a; --success-lifted:#15803d; --success-accented:#166534;
  --info:#0ea5e9;    --info-lifted:#0284c7;    --info-accented:#0369a1;
  --warning:#d97706; --warning-lifted:#b45309; --warning-accented:#92400e;
  --notice:#7c3aed;  --notice-lifted:#6d28d9;  --notice-accented:#5b21b6;
  --danger:#dc2626;  --danger-lifted:#b91c1c;  --danger-accented:#991b1b;

  /* ---- Bootstrap-era aliases (theme.css consumes these too) ---- */
  --blue:#2563eb; --primary-rgb:37,99,235;

  /* ---- typography (v4 = Inter) ---- */
  --font-family-sans-serif:'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --bs-font-sans-serif:'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --bs-body-font-family:'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;

  /* ---- rounded corners (v4) ---- */
  --border-radius:10px; --border-radius-sm:8px; --border-radius-lg:16px; --border-radius-xl:18px;
  --bs-border-radius:10px; --bs-border-radius-lg:16px; --bs-border-radius-sm:8px;
}

/* Inter site-wide (safe universal selector; Bootstrap body font references the var
   above, but set it directly too so it applies even if the var name differs). */
body, .btn, .form-control, .form-select, input, select, textarea, button {
  font-family:'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}

/* ---- component overrides: Nexus defaults primary actions to monochrome dark;
        bring them to v4 blue (validated via injection on the live login). ---- */
.btn-primary{background-color:var(--primary);border-color:var(--primary)}
.btn-primary:hover,.btn-primary:focus{background-color:var(--primary-lifted);border-color:var(--primary-lifted)}
.btn-primary:active,.btn-primary.active{background-color:var(--primary-accented);border-color:var(--primary-accented)}
.btn-outline-primary{color:var(--primary);border-color:var(--primary)}
.btn-outline-primary:hover{background-color:var(--primary);border-color:var(--primary)}
a{color:var(--primary)}
a:hover{color:var(--primary-lifted)}
.form-control:focus,.form-select:focus,.form-check-input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(var(--primary-rgb),.15)}
.form-check-input:checked{background-color:var(--primary);border-color:var(--primary)}
.page-link{color:var(--primary)}.page-item.active .page-link{background-color:var(--primary);border-color:var(--primary)}

/* ---- store/cart/order pages: no page-level horizontal scroll. Bootstrap's
        .row uses negative margins that can overflow its container by the
        gutter width on WHMCS's stock order-form markup (confirmed on
        cart/order?pid=*); the row's own horizontal scroll is never wanted,
        only specific widgets (e.g. .table-responsive) should ever scroll. ---- */
html{overflow-x:hidden}

/* ---- store upsell CTAs ("Upgrade to Wildcard" etc, WHMCS's own
        .store-promoted-product widget on order pages): unify with the
        site's primary action color instead of Bootstrap's leftover green
        so the page doesn't mix unrelated button colors, and fix a real
        contrast bug where the button's own price/term text (.span-upsell)
        renders in the page's dark body-text color instead of inheriting
        the button's white text - confirmed on the RapidSSL Wildcard
        upsell, unreadable dark-on-blue otherwise. ---- */
.store-promoted-product .btn-success{background-color:var(--primary);border-color:var(--primary);color:#fff}
.store-promoted-product .btn-success:hover,.store-promoted-product .btn-success:focus{background-color:var(--primary-lifted);border-color:var(--primary-lifted)}
.store-promoted-product .btn-success .span-upsell{color:inherit!important}

/* ---- cart.php?a=confproduct (product configure page): WHMCS9's own
        "Order Summary" sidebar widget (.order-summary > .summary-container)
        injects a full duplicate copy of the page - nav bar, categories
        sidebar, cart-body, all of it, complete with stray <meta>/<title>/
        <script> tags as literal DOM children - instead of a scoped
        summary fragment. Confirmed live: no real order-summary UI is lost
        by hiding it - the actual working Checkout/Update Totals/Continue
        Shopping controls live in .cart-body (the main content column),
        entirely independent of this broken widget. Before this fix the
        duplicate content (confirmed ~10,500px tall on its own) stretched
        the whole page to ~11,400px via the flex row's default
        align-items:stretch. This is WHMCS9's own compiled, hashed-filename
        frontend-client-spa bundle (vendor/whmcs/whmcs/assets/frontend-
        client-spa/) - proprietary, not something IVO can safely hand-edit
        (would be wiped by the next core update anyway) - so this hides the
        broken container rather than fixing its own JS. Worth reporting to
        WHMCS as a genuine core bug.
        IMPORTANT: .summary-container is ALSO the class name of the real,
        working order-summary widget on cart.php?a=view (confirmed live -
        real Subtotal/checkout content, ~300px, no bug there) - a blanket
        `.summary-container{display:none}` would have broken that page.
        Scoped instead by :has(title) - the broken instance uniquely
        contains a literal nested <title> tag (proof it's a dumped full
        HTML document, not a fragment); the legitimate instance never
        does. Verified live: matches 1 element on the broken confproduct
        page, 0 elements on the working cart.php?a=view page. ---- */
.summary-container:has(title){display:none !important}

/* ---- Domain register/transfer search widget (cart.php?a=add&domain=
        register|transfer): WHMCS's stock .domain-checker-container gets a
        hardcoded bright yellow-to-orange gradient background
        (linear-gradient(top,#ffd960,#ffb201)) via inline-computed style -
        confirmed live, completely off-brand next to the rest of the site's
        blue/white palette. Repaint with the site's own accent tokens. ---- */
.domain-checker-container{background-image:linear-gradient(180deg,var(--primary) 0%,var(--primary-lifted) 100%) !important}
/* ===== IVO-V4 END ===== */
