/* Nexus SAS custom overrides */

:root {
    /* Brand accent gradient - sampled from the logo (blue -> teal) */
    --brand-grad-start: #2e3192;
    --brand-grad-end: #1f9e8f;
    --brand-gradient: linear-gradient(135deg, var(--brand-grad-start) 0%, var(--brand-grad-end) 100%);

    /* Light gradient used on both the footer and the scrolled header, kept
       in sync via these two variables so they can never drift apart */
    --surface-grad-start: #131226;
    --surface-grad-end: #211c30;
    --surface-mix-a: #1c3d3a;
    --surface-mix-b: #201e40;
    --surface-gradient: conic-gradient(from 220deg at 30% 25%, var(--surface-grad-start), var(--surface-mix-a) 35%, var(--surface-grad-end) 60%, var(--surface-mix-b) 85%, var(--surface-grad-start));
}

/* Header: light frosted glass with a subtle brand tint, sticky at the top no matter how far scrolled */
#header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background-color: rgba(255, 255, 255, 0.35);
    background-image: linear-gradient(120deg, rgba(46, 49, 146, 0.42) 0%, rgba(31, 158, 143, 0.42) 100%);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

#header #nav li > a,
#header .nav-utils,
#header .nav-utils a,
#header .dropdown-toggle {
    color: #000000 !important;
}

#header .nav-utils {
    white-space: nowrap;
}

/* Nexus SAS - animated starfield + mountain backdrop (from Bredh), bounded to a top hero band on every page */
#site-hero-bg {
    position: absolute;
    top: -110px;
    left: 0;
    right: 0;
    height: calc(max(65vh, 650px) + 110px);
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

body.template-homepage #site-hero-bg {
    height: calc(max(70vh, 700px) + 110px);
}

html {
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    margin: 0;
}

#site-bg-color {
    position: absolute;
    inset: 0;
    z-index: -3;
    background: linear-gradient(180deg, #2c2843 0%, #3a3352 55%, #4e3551 100%);
}

#site-bg-mountains {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    z-index: -2;
    background-image: url("../img/bg-mountains.svg"), var(--brand-gradient);
    background-repeat: no-repeat, no-repeat;
    background-position: bottom center, center;
    background-size: 100% auto, 100% 100%;
    pointer-events: none;
}

#particles-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

#particles-bg canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Keep content panels/cards above the hero band, and readable once past it */
#main-body,
.panel,
.card,
.sidebar,
.footer {
    position: relative;
    z-index: 1;
}

/* #main-body wraps every page's actual content site-wide (cart, checkout,
   tickets, knowledgebase, etc). Give it a solid opaque background so headings,
   table labels, and other unwrapped text never sit directly on the dark hero
   band — this single rule fixes readability across every subpage at once. */
#main-body {
    background: transparent;
    padding-top: 2rem;
    padding-bottom: 1rem;
    color: #2c2843;
}

#main-body h1,
#main-body h2,
#main-body h3,
#main-body h4,
#main-body p,
#main-body label,
#main-body td,
#main-body th {
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
}

/* Exception: on the homepage, let the product-box row overlap the hero/wave
   transition as designed (the cards themselves are still opaque via .card above) */
body.template-homepage #main-body {
    background: linear-gradient(180deg, transparent 0px, transparent 780px, #221f3a 780px, #1e1b34 100%);
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
}

body.template-homepage #main-body::before {
    content: '';
    position: absolute;
    top: 780px;
    left: 0;
    right: 0;
    height: 1400px;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1.5px 1.5px at 10% 20%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 30% 65%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 50% 15%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 65% 45%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1.5px 1.5px at 80% 75%, rgba(255,255,255,0.85), transparent),
        radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,0.7), transparent);
    background-repeat: repeat;
    background-size: 220px 160px;
}

/* ========================================================================
   Nexus SAS v2.3 - Bredh-style wave/fade transition, product boxes,
   domain search box, nav spacing fix, and revised responsive breakpoints
   ======================================================================== */

/* --- Wave + fade transition at the bottom edge of the hero band --- */
#site-hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 60%;
    background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,0) 100%);
    opacity: 0.25;
    z-index: 1;
    pointer-events: none;
}

#site-hero-wave {
    position: absolute;
    left: -10px;
    right: -10px;
    bottom: -8px;
    height: 70px;
    background: url("../img/wave-divider.svg") no-repeat right bottom;
    background-size: 100%;
    z-index: 2;
    pointer-events: none;
}

/* --- Homepage product boxes (Space Age Hosting / Migration / Transfer / etc) --- */
body.template-homepage .card-columns.home {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-count: unset;
    gap: 1.5rem;
    margin-top: -60px;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 2;
}

body.template-homepage .card-columns.home .card {
    box-shadow: 0 18px 50px rgba(20, 20, 50, 0.32);
    border: 1px solid #eaeef1;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

body.template-homepage .card-columns.home .card:hover {
    box-shadow: 0 14px 70px 0 rgba(77, 77, 119, 0.22);
    transform: translateY(-3px);
}

body.template-homepage .card-columns.home .card-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2c2843;
    text-shadow: 0 2px 4px rgba(46, 49, 146, 0.2);
}

body.template-homepage .card-columns.home .btn-outline-primary {
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* --- Domain search box (home-domain-search), Bredh pill style --- */
#frmDomainHomepage .home-domain-search {
    background: transparent;
    position: relative;
    z-index: 3;
}

#frmDomainHomepage .p-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 4rem !important;
}

@media (max-width: 767.98px) {
    #frmDomainHomepage .p-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

#frmDomainHomepage .input-group-wrapper .input-group {
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 12px 30px 0 rgba(77, 77, 119, 0.15);
    padding: 6px 6px 6px 50px;
    align-items: center;
    overflow: hidden;
    position: relative;
}

#frmDomainHomepage .domain-search-globe-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: #c8d0d6;
    pointer-events: none;
    z-index: 2;
}

#frmDomainHomepage .input-group .form-control {
    border: 0;
    box-shadow: none;
    background: transparent;
    font-weight: 500;
}

#frmDomainHomepage .input-group .form-control:focus {
    box-shadow: none;
}

#frmDomainHomepage #btnDomainSearch,
#frmDomainHomepage #btnTransfer {
    border: 0 !important;
    border-radius: 50% !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

#frmDomainHomepage #btnDomainSearch2,
#frmDomainHomepage #btnTransfer2 {
    border: 0 !important;
    border-radius: 25px !important;
    padding: 0.65rem 1.75rem !important;
    font-weight: 600;
    white-space: nowrap;
}

#frmDomainHomepage #btnTransfer {
    margin-right: 8px;
}

#frmDomainHomepage #btnDomainSearch,
#frmDomainHomepage #btnDomainSearch2 {
    background-image: var(--brand-gradient) !important;
    box-shadow: 0 4px 20px 2px rgba(46, 49, 146, 0.6), 0 0 22px rgba(46, 49, 146, 0.4);
}

#frmDomainHomepage #btnTransfer,
#frmDomainHomepage #btnTransfer2 {
    background-image: linear-gradient(to right, #fdb05c, #fd8d5f) !important;
    box-shadow: 0 4px 20px 2px rgba(253, 165, 93, 0.65), 0 0 22px rgba(253, 165, 93, 0.45);
}

/* --- Nav spacing fix: keep "More" and "Account" from colliding --- */
#header #nav {
    margin-right: 1.25rem;
}

#header .navbar-nav .nav-item {
    margin-right: 0.6rem;
}

#header .dropdown-toggle {
    padding-right: 1.1rem;
}

/* ========================================================================
   Nexus SAS v2.8 - logo lockup (icon+text), normal on white header,
   inverts to solid white once the header goes transparent (scrolled)
   ======================================================================== */

/* Logo: simply bigger than Nexus's default, sitting normally in the brand
   row (no absolute positioning/overhang — that caused overlap bugs) */
.navbar-brand .logo-img {
    max-height: 80px;
    width: auto;
}

@media (max-width: 1199.98px) {
    .navbar > .container {
        flex-direction: column;
        align-items: center;
    }
    .navbar-nav.toolbar {
        margin-top: 0.75rem;
        justify-content: center;
    }
}

/* Nav menu: black text by default, white + glow on hover, dots only -
   no underline in any form. IMPORTANT: navbar.tpl (inherited unmodified
   from the parent Nexus theme - confirmed by reading it directly) gives
   plain menu-item anchors class="" (empty) and dropdown anchors
   class="dropdown-toggle" - it never outputs "nav-link" on the actual
   <a> tag. Only the cart button hardcodes "nav-link" itself, in
   header.tpl. So every rule here targets the real structure
   (#nav li > a) instead of assuming a class that was never actually
   there for the real menu items. */
#header #nav li > a,
#header #nav li > a:hover,
#header #nav li > a:focus,
#header #nav li > a:active {
    position: relative;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background: none !important;
}

#footer .quiq-links-footer-ul a,
#footer .quiq-links-footer-ul a:hover,
#footer .quiq-links-footer-ul a:focus {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

#header #nav li > a:hover,
#header #nav li.active > a {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 18px rgba(255, 255, 255, 0.6);
}

/* Bredh-style fan-out dots either side of a nav link on hover/active,
   replacing an underline. Two small dots slide outward and fade in. */
#header #nav li > a:before,
#header #nav li > a:after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 100%;
    background: currentColor;
    bottom: -12px;
    left: 0;
    right: 0;
    margin: auto;
    opacity: 0;
    transition: left 0.6s ease, right 0.6s ease, opacity 0.6s ease;
}

#header #nav li > a:hover:before,
#header #nav li.active > a:before {
    left: -3px;
    right: auto;
    opacity: 1;
}

#header #nav li > a:hover:after,
#header #nav li.active > a:after {
    right: -3px;
    left: auto;
    opacity: 1;
}

/* Same fan-out dots effect on the footer's Quick Links menu items,
   scoped precisely to that list only */
#footer .quiq-links-footer-ul a {
    position: relative;
}

#footer .quiq-links-footer-ul a:before,
#footer .quiq-links-footer-ul a:after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 100%;
    background: currentColor;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: left 0.6s ease, right 0.6s ease, opacity 0.6s ease;
}

#footer .quiq-links-footer-ul a:before {
    left: -8px;
}

#footer .quiq-links-footer-ul a:after {
    right: -8px;
}

#footer .quiq-links-footer-ul a:hover:before {
    left: -14px;
    opacity: 1;
}

#footer .quiq-links-footer-ul a:hover:after {
    right: -14px;
    opacity: 1;
}

/* --- Footer rebuild (Bredh-style: quick links + secure badges + brand row) --- */
#footer {
    position: relative;
    background: linear-gradient(180deg, #221f3a 0%, #1e1b34 100%);
    color: #d8dcf5;
    padding: 3rem 0 1.5rem;
    margin-top: -1px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

#footer::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(10, 10, 20, 0.45) 100%);
}

#footer::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(1.5px 1.5px at 8% 25%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 25% 70%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 42% 10%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 58% 55%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1.5px 1.5px at 75% 80%, rgba(255,255,255,0.85), transparent),
        radial-gradient(1px 1px at 88% 35%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1.5px 1.5px at 15% 90%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 95% 60%, rgba(255,255,255,0.75), transparent);
    background-repeat: repeat;
    background-size: 220px 160px;
}

/* Footer top row: 4-column grid with named areas so headings/content align cleanly */
#footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-areas:
        "qlheading scheading ."
        "qlcontent sccontent sccontact";
    column-gap: 2.5rem;
    row-gap: 1rem;
    align-items: start;
}

#footer .footer-grid-title {
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: #ffffff;
}

#footer .ql-heading { grid-area: qlheading; }
#footer .sc-heading { grid-area: scheading; }
#footer .ql-content { grid-area: qlcontent; }
#footer .sc-content { grid-area: sccontent; }
#footer .sc-contact { grid-area: sccontact; }

#footer .footer-contact-method {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

#footer .footer-contact-method a {
    background: #fff;
    padding: 8px 20px 12px;
    display: block;
    border-radius: 5px;
    position: relative;
    text-decoration: none !important;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(46, 49, 146, 0.08);
}

#footer .footer-contact-method a span {
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 13px;
    color: #607d8b;
    text-transform: uppercase;
    display: block;
}

#footer .footer-contact-method a b {
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 14px;
    color: var(--brand-grad-start);
    display: block;
}

#footer .footer-contact-method a i {
    position: absolute;
    font-size: 50px;
    bottom: -5px;
    right: -5px;
    color: var(--brand-grad-end);
    opacity: 0.18;
}

@media (max-width: 767.98px) {
    #footer .footer-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "qlheading"
            "qlcontent"
            "scheading"
            "sccontent"
            "sccontact";
        row-gap: 1.5rem;
    }
}

#footer .quiq-links-footer-ul {
    list-style: none;
    padding-left: 1.6rem;
    margin-bottom: 1.5rem;
}

#footer .quiq-links-footer-ul li {
    position: relative;
    padding: 4px 0;
}

#footer .quiq-links-footer-ul li:before,
#footer .quiq-links-footer-ul li:after {
    content: none !important;
}

#footer .quiq-links-footer-ul a {
    display: inline-block;
    padding: 0 6px;
}

#footer .quiq-links-footer-ul a {
    color: #c5cae8;
    text-decoration: none;
    font-weight: 500;
}

#footer .quiq-links-footer-ul a:hover {
    color: #ffffff;
    text-decoration: none;
}


/* Each security badge now sits in its own white card, matching the
   subpage card theme, floating over the dark footer/feature background */
#footer .footer-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 1.6rem 1.5rem;
}

#footer .badge-card-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

#footer .badge-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.25rem;
}

#footer .badge-card img {
    max-height: 32px;
    width: auto;
}

#footer .footer-card .footer-grid-title {
    color: #2c2843;
}

#footer .footer-card .quiq-links-footer-ul a {
    color: #333c56;
}

#footer .footer-card .quiq-links-footer-ul a:hover {
    color: #2e3192;
}

#footer .footer-area-under {
    border-top: 1px solid #e2e5e9;
    padding-top: 1.5rem;
    margin-top: 1rem;
    align-items: center;
}

#footer .footer-brand-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#footer .footer-logo {
    max-height: 52px;
}

#footer .footer-social-icons a {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

#footer .footer-social-icons a:hover {
    color: #ffffff;
    background-image: var(--brand-gradient);
    border-color: transparent;
}

#footer .footer-social-icons {
    display: inline-flex;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

#footer .final-footer-area {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: #a9aed6;
}

#footer .final-footer-area a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
}

/* Language/currency button uses Bootstrap's btn-outline-light (meant for dark backgrounds) -
   override for visibility against the light footer gradient */
#footer .footer-lang-row .btn-outline-light {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
    background-color: rgba(255, 255, 255, 0.08);
}

#footer .footer-lang-row .btn-outline-light:hover,
#footer .footer-lang-row .btn-outline-light:focus {
    color: #ffffff;
    background-image: var(--brand-gradient);
    border-color: transparent;
}

/* ========================================================================
   Site-wide: every accent/primary button uses the brand logo gradient,
   not flat colors. This also fixes buttons that were rendering with an
   invisible/near-invisible outline style (e.g. homepage "Browse Products",
   cart Checkout button).
   ======================================================================== */
.btn-primary,
.btn-success,
body.template-homepage .card-columns.home .btn-outline-primary {
    box-shadow: 0 4px 16px rgba(46, 49, 146, 0.3);
}

.btn-primary:hover,
.btn-success:hover,
body.template-homepage .card-columns.home .btn-outline-primary:hover {
    filter: brightness(1.2);
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 16px rgba(255, 255, 255, 0.5);
}

#footer .container {
    position: relative;
    z-index: 1;
}

/* ========================================================================
   Homepage-only decorative hero shapes (Bredh-style floating triangles +
   squiggle line, scattered around the starfield/mountain scene)
   ======================================================================== */
.hero-shape {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.9;
}

.hero-shape-1 {
    width: 70px;
    top: 12%;
    left: 8%;
}

.hero-shape-2 {
    width: 34px;
    top: 55%;
    right: 10%;
}

.hero-squiggle {
    position: absolute;
    width: 140px;
    height: 70px;
    top: 62%;
    left: 46%;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .hero-shape,
    .hero-squiggle {
        display: none;
    }
}

/* ========================================================================
   Broader readability safety net: force solid, high-contrast headings
   everywhere except the homepage hero, regardless of whether the page uses
   #main-body or an order-form-specific wrapper (e.g. store/category pages)
   ======================================================================== */
body:not(.template-homepage) h1,
body:not(.template-homepage) h2,
body:not(.template-homepage) h3,
body:not(.template-homepage) .h1,
body:not(.template-homepage) .h2 {
    color: #2c2843 !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95), 0 0 1px rgba(255, 255, 255, 0.9);
}

/* ========================================================================
   Domain search hero copy — Bredh-style eyebrow + bold title
   ======================================================================== */
#frmDomainHomepage .domain-search-eyebrow {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

#frmDomainHomepage .domain-search-title {
    font-weight: 800;
    font-size: 2.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
    margin-bottom: 1.5rem;
}

/* Make sure the default TLD logos + pricing row is never accidentally
   hidden/clipped by our pill-shaped search box styling above it */
#frmDomainHomepage .tld-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1.5rem;
    opacity: 1;
    overflow: visible;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.35), 0 1px 3px rgba(0, 0, 0, 0.4);
}

#frmDomainHomepage .tld-logos li {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.35), 0 1px 3px rgba(0, 0, 0, 0.4);
}

#frmDomainHomepage a.btn-link {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.35), 0 1px 3px rgba(0, 0, 0, 0.4);
}

#frmDomainHomepage .tld-logos img {
    height: 30px;
    width: auto;
    margin-right: 0.4rem;
    vertical-align: middle;
}

/* ========================================================================
   Subpages (cart, checkout, order forms, product listings): apply the same
   Bredh-inspired visual language used elsewhere — brand-gradient card
   headers, consistent shadow/accent treatment, gradient checkout CTA.
   ======================================================================== */
#main-body .card,
#main-body .panel,
.sidebar .card,
.sidebar .panel {
    border: 1px solid #e5e7ee;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(30, 30, 60, 0.06);
}

#main-body .card-header,
#main-body .panel-heading {
    background: #f7f8fb;
    color: #2c2843;
    border-radius: 8px 8px 0 0 !important;
    font-weight: 700;
    border-bottom: 1px solid #e5e7ee;
}

#main-body .table thead th {
    background: #f7f8fb;
    color: #2c2843;
    font-weight: 700;
    border-bottom: 1px solid #e5e7ee;
}

#main-body .table td,
#main-body .table th {
    vertical-align: middle;
}

/* ========================================================================
   Homepage "How can we help" / "Your Account" icon boxes — restyled to
   match the product-card aesthetic (white card, colored icon badge, bold
   title), instead of plain bare icon+label links
   ======================================================================== */
.action-icon-card {
    display: block;
    text-decoration: none !important;
    color: #2c2843;
    height: 100%;
    box-shadow: 0 16px 40px rgba(20, 20, 50, 0.28);
    border-radius: 8px;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.action-icon-card:hover {
    box-shadow: 0 14px 40px rgba(46, 49, 146, 0.2);
    transform: translateY(-3px);
    color: #2c2843;
}

.action-icon-card .card-body {
    padding: 1.75rem 1rem;
}

.action-icon-card .ico-container {
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background-image: var(--brand-gradient);
    color: #ffffff;
    font-size: 1.4rem;
}

.card-title {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.action-icon-card .card-title {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0;
    color: #000000;
    -webkit-text-stroke: 0.4px #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* ========================================================================
   Buttons: clean solid black, with solid white text. (Tried a gradient-text
   background-clip technique here previously — it rendered completely
   invisible in production, so reverted to something simple and reliable.)
   ======================================================================== */
.btn-primary,
.btn-success,
body.template-homepage .card-columns.home .btn-outline-primary {
    background-image: none !important;
    background-color: #0d0c1a !important;
    border: 1.5px solid #266790 !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    text-shadow: none;
    transition: filter 0.2s ease, text-shadow 0.2s ease;
}

/* Small trailing arrow icon on button labels, matching the icon+label
   button style from the unDraw reference illustrations */
.btn-primary:hover,
.btn-success:hover,
body.template-homepage .card-columns.home .btn-outline-primary:hover {
    filter: brightness(1.08);
}

/* Domain search's own round Search/Transfer buttons are exempt from any
   general button icon treatment, now or in the future - they keep their
   own native icon + the Bredh-style round shape/color/glow permanently */
#frmDomainHomepage #btnDomainSearch::after,
#frmDomainHomepage #btnTransfer::after,
#frmDomainHomepage #btnDomainSearch2::after,
#frmDomainHomepage #btnTransfer2::after {
    content: none !important;
}

.btn-primary,
.btn-success,
body.template-homepage .card-columns.home .btn-outline-primary {
    border-radius: 6px;
}

/* ========================================================================
   Preloader (Bredh's bouncing-dots animation, recolored with our brand
   gradient instead of Bredh's purple)
   ======================================================================== */
#site-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#site-preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Black variant, shown when navigating out to spaceageservices.com */
#site-preloader.preloader-black {
    background: #000000;
}

.site-preloader-inner svg {
    width: 90px;
    height: 90px;
}

.preloader-dot-1 { fill: var(--brand-grad-start); }
.preloader-dot-2 { fill: #26857f; }
.preloader-dot-3 { fill: var(--brand-grad-end); }

/* ========================================================================
   Reusable wave section divider — matches the reference: subtle white to
   light blue-gray undulating transition. Placed above the footer site-wide
   (homepage + every subpage) and between homepage sections.
   ======================================================================== */
.section-wave-divider {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    margin: 0;
}

.section-wave-fullbleed {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
}

.section-wave-divider.section-wave-fullbleed {
    height: 70px;
    background: url("../img/section-wave.svg") no-repeat bottom center;
    background-size: 100% 100%;
}

/* ========================================================================
   "Simple & Powerful Tools" feature icon grid (copied placeholder layout
   for now, per Cody's request — content/icons to be customized later)
   ======================================================================== */
.feature-tools-fullbleed {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
}

.feature-tools-dark-wrap {
    position: relative;
    background: #221f3a;
    margin-top: -270px;
    padding-top: 270px;
    z-index: 2;
    clip-path: polygon(
        0% 100%, 0.0% 10.12%, 2.08% 9.48%, 4.17% 9.18%, 6.25% 9.22%,
        8.33% 9.58%, 10.42% 10.21%, 12.5% 11.04%, 14.58% 12.0%, 16.67% 12.98%,
        18.75% 13.9%, 20.83% 14.68%, 22.92% 15.25%, 25.0% 15.57%, 27.08% 15.61%,
        29.17% 15.39%, 31.25% 14.95%, 33.33% 14.32%, 35.42% 13.59%, 37.5% 12.82%,
        39.58% 12.1%, 41.67% 11.5%, 43.75% 11.06%, 45.83% 10.83%, 47.92% 10.83%,
        50.0% 11.05%, 52.08% 11.46%, 54.17% 12.02%, 56.25% 12.69%, 58.33% 13.41%,
        60.42% 14.13%, 62.5% 14.8%, 64.58% 15.4%, 66.67% 15.92%, 68.75% 16.35%,
        70.83% 16.73%, 72.92% 17.08%, 75.0% 17.44%, 77.08% 17.87%, 79.17% 18.4%,
        81.25% 19.05%, 83.33% 19.85%, 85.42% 20.79%, 87.5% 21.83%, 89.58% 22.94%,
        91.67% 24.06%, 93.75% 25.11%, 95.83% 26.01%, 97.92% 26.71%, 100.0% 27%,
        100% 100%
    );
    filter: drop-shadow(0 -10px 16px rgba(0, 0, 0, 0.35));
}

.feature-tools-section {
    position: relative;
    z-index: 1;
    padding: 3rem 1.5rem 4rem;
    max-width: 1140px;
    margin: 0 auto;
}

.feature-tools-dark-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1.5px 1.5px at 10% 20%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 30% 65%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 50% 15%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 65% 45%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1.5px 1.5px at 80% 75%, rgba(255,255,255,0.85), transparent),
        radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,0.7), transparent);
    background-repeat: repeat;
    background-size: 220px 160px;
}

.tech-stack-row {
    margin-top: 2.5rem;
}

.tech-stack-card {
    display: block;
    background: #ffffff;
    border-radius: 8px;
    border-top: 4px solid transparent;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 2rem 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    text-decoration: none !important;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.tech-stack-card:hover {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    transform: translateY(-3px);
}

.tech-stack-card-cpanel { border-top-color: #ff6c2c; }
.tech-stack-card-gce { border-top-color: #4285f4; }
.tech-stack-card-aws { border-top-color: #ff9900; }

.tech-stack-card i {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.tech-stack-card .fa-cpanel {
    color: #ff6c2c;
}

.tech-stack-card .fa-google {
    color: #4285f4;
}

.tech-stack-card .fa-aws {
    color: #ff9900;
}

.tech-stack-card h4 {
    font-weight: 700;
    color: #2c2843;
    margin-bottom: 0.5rem;
    -webkit-text-stroke: 0.3px var(--brand-grad-start);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.tech-stack-card p {
    color: #6a70b5;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.feature-tools-title {
    font-weight: 800;
    font-size: 2.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    -webkit-text-stroke: 0.5px #000000;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
    margin-bottom: 2.5rem;
}

.feature-tools-grid {
    text-align: center;
}

.feature-tool-item {
    margin-bottom: 2.5rem;
}

.feature-tool-item i {
    font-size: 2rem;
    color: #7ee0d4;
    margin-bottom: 0.75rem;
    display: block;
}

.feature-tool-item p {
    color: #d8dcf5;
    font-weight: 500;
    margin-bottom: 0;
}

/* ========================================================================
   Login page - faithful port of Bredh's own login layout (structure,
   spacing, positioning match Bredh exactly; colors/art are ours: brand
   gradient + our mountain art instead of Bredh's own assets)
   ======================================================================== */
.login-page-bg {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
    background-image:
        linear-gradient(to right, transparent 50%, #ffffff 50%),
        url("../img/bg-mountains.svg"),
        var(--brand-gradient);
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: center, bottom left, center;
    background-size: 100% 100%, 50% auto, 100% 100%;
}

.login-page-particles-right {
    position: absolute;
    top: 0;
    left: 50%;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.login-page-particles-right canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.login-page-logo {
    position: absolute;
    top: 2rem;
    left: 2.5rem;
    z-index: 2;
}

.login-page-logo img {
    width: 140px;
    filter: brightness(0) invert(1);
}

.login-page-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.login-page-particles canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.login-page-card-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-page-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(10, 10, 30, 0.45), 0 0 90px rgba(46, 49, 146, 0.35), 0 0 40px rgba(31, 158, 143, 0.25);
    width: 100%;
    max-width: 820px;
    padding: 2.5rem 3.5rem;
}

.login-page-card-topbar {
    text-align: right;
    font-size: 0.9rem;
    color: #6c6f80;
    margin-bottom: 1.5rem;
}

.login-page-card-topbar a {
    color: var(--brand-grad-start);
    font-weight: 700;
    margin-left: 0.35rem;
}

.login-page-title {
    display: block;
    text-align: center;
    font-weight: bold;
    font-size: 22px;
    text-transform: uppercase;
    color: #474763;
    margin-bottom: 2rem;
}

.login-page-card .login-form input.form-control {
    border: none;
    height: 50px;
    margin-top: 1.25rem;
    background-color: rgba(247, 247, 249, .7);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    transition: background-color .3s ease;
    outline: none !important;
    box-shadow: none !important;
}

.login-page-card .login-form input.form-control:hover,
.login-page-card .login-form input.form-control:focus {
    background-color: rgba(247, 247, 249, .9);
    outline: none !important;
    box-shadow: none !important;
}

.login-page-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.login-page-actions .btn {
    padding: 10px 30px;
    font-size: 13px;
    font-weight: 600;
}

.login-page-footer {
    position: absolute;
    left: 0;
    right: 50%;
    bottom: 25px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0 40px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
}

.login-page-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.login-page-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.login-page-footer-links a {
    margin-left: 2rem;
}

body.template-login #main-body {
    max-width: 100% !important;
    padding: 0;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .login-page-card {
        max-width: 90%;
        padding: 2rem 2.5rem;
    }
    .login-page-logo img {
        width: 110px;
    }
}

@media (max-width: 767.98px) {
    .login-page-card {
        padding: 2.5rem 1.75rem;
    }
    body.template-homepage .card-columns.home {
        grid-template-columns: 1fr;
    }
    .login-page-bg {
        position: static;
        height: auto;
        min-height: 100vh;
        overflow-y: visible;
        background-image: url("../img/bg-mountains.svg"), var(--brand-gradient);
        background-position: bottom center, center;
        background-size: cover, 100% 100%;
        padding-top: 5rem;
        padding-bottom: 6rem;
    }
    .login-page-particles-right {
        display: none;
    }
    .login-page-logo {
        left: 1.25rem;
        top: 1.25rem;
    }
    .login-page-logo img {
        width: 90px;
    }
    .login-page-footer {
        position: static;
        left: auto;
        right: auto;
        margin-top: 2rem;
        justify-content: center;
        text-align: center;
        padding: 0 1.5rem;
    }
}

/* ========================================================================
   Subpage hero title + breadcrumb + unified content card, matching the
   reference: bold white uppercase title and breadcrumb link sitting over
   the mountain scene, then all page content in one clean white card below
   with a clear gap revealing the mountains above it.
   ======================================================================== */
.subpage-hero-title-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 3.5rem 15px 0;
    position: relative;
    z-index: 2;
}

.subpage-hero-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 2.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-text-stroke: 0.5px #000000;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
    margin-bottom: 0;
}

.master-breadcrumb {
    position: relative;
    z-index: 2;
    background: transparent;
}

.master-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0.25rem 15px 2rem;
    margin-bottom: 0;
}

.master-breadcrumb .breadcrumb-item,
.master-breadcrumb .breadcrumb-item a {
    color: #9db4ff;
    font-size: 0.9rem;
}

.master-breadcrumb .breadcrumb-item.active {
    color: #ffffff !important;
}

.master-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.subpage-content-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(30, 28, 58, 0.18);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding: 2.5rem 2rem;
}

@media (max-width: 767.98px) {
    .subpage-content-card {
        padding: 1.5rem 1rem;
        border-radius: 10px;
    }
    .subpage-hero-title {
        font-size: 1.4rem;
    }
}

/* ========================================================================
   Broaden brand color coverage to remaining default-colored buttons within
   page content (e.g. "Validate Code", "Pay Now", info/secondary actions)
   so every actionable button on subpages matches the site's color scheme
   ======================================================================== */
#main-body .btn-info,
#main-body .btn-secondary,
#main-body .btn-default {
    background-image: none;
    background-color: #1f9e8f;
    border-color: transparent;
    border-radius: 8px;
    color: #ffffff;
    margin: 2px 3px;
}

#main-body .btn-info:hover,
#main-body .btn-secondary:hover,
#main-body .btn-default:hover {
    filter: brightness(1.08);
    color: #ffffff;
}

#main-body .btn-outline-secondary,
#main-body .btn-outline-info {
    color: var(--brand-grad-start);
    border-color: var(--brand-grad-start);
    border-radius: 8px;
    background-color: transparent;
    margin: 2px 3px;
}

#main-body .btn-outline-secondary:hover,
#main-body .btn-outline-info:hover {
    background-image: none;
    background-color: #1f9e8f;
    border-color: transparent;
    color: #ffffff;
}

/* ========================================================================
   Client area dashboard stat tiles (Services/Domains/Tickets/Invoices) —
   Bredh-style bold clickable tiles with brand-colored accents
   ======================================================================== */
#main-body .tiles .tile {
    display: block;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
    text-decoration: none !important;
}

#main-body .tiles .tile:hover {
    box-shadow: 0 10px 30px rgba(46, 49, 146, 0.15);
    transform: translateY(-2px);
}

#main-body .tiles .tile > i {
    font-size: 1.8rem;
    color: var(--brand-grad-start);
    margin-bottom: 0.5rem;
    display: block;
}

#main-body .tiles .tile .stat {
    font-size: 2.1rem;
    font-weight: 800;
    color: #2c2843;
    line-height: 1.1;
}

#main-body .tiles .tile .title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6a70b5;
    font-weight: 600;
    margin-top: 0.25rem;
}

#main-body .tiles .tile .highlight {
    background-image: var(--brand-gradient) !important;
    height: 3px;
    border-radius: 2px;
    margin-top: 0.75rem;
}

/* ========================================================================
   Fix: Google's reCAPTCHA badge was rendering behind the footer. Force it
   above everything, and add a "back to top" button that appears once the
   user has scrolled about halfway down the page, sitting just above it.
   ======================================================================== */
.grecaptcha-badge {
    z-index: 1060 !important;
}

.back-to-top-btn {
    position: fixed;
    right: 14px;
    bottom: 90px;
    z-index: 1055;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-image: var(--brand-gradient);
    color: #ffffff;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(46, 49, 146, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    cursor: pointer;
}

.back-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    filter: brightness(1.1);
}

/* ========================================================================
   Hide the site header/nav/hero entirely on login and create-account pages
   — those have their own self-contained split-screen layout
   ======================================================================== */
body.template-login #header,
body.template-login .master-breadcrumb,
body.template-login #site-hero-bg,
body.template-login #footer,
body.template-login .section-wave-divider,
body.template-clientregister #header,
body.template-clientregister .section-wave-divider {
    display: none !important;
}

/* Force the native page title white on the register page (was rendering
   in a default dark color rather than picking up .subpage-hero-title) */
body.template-clientregister .subpage-hero-title-wrap h1,
body.template-clientregister .subpage-hero-title {
    color: #ffffff !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-text-stroke: 0.5px #000000;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

body.template-login #main-body,
body.template-clientregister #main-body {
    padding-top: 0;
}

/* ========================================================================
   Left-side "swap brand" ribbon — sits mostly off-screen, slides out on
   hover to reveal the full label, links to spaceageservices.com
   ======================================================================== */
.brand-swap-ribbon {
    position: fixed;
    top: 0;
    left: 2rem;
    transform: translateY(calc(-100% + 20px));
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background-image: var(--brand-gradient);
    color: #ffffff !important;
    padding: 0.75rem 1.1rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 20px rgba(46, 49, 146, 0.35);
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: ribbonGlow 2.6s ease-in-out infinite, ribbonPeek 6s ease-in-out infinite;
}

@keyframes ribbonGlow {
    0%, 100% { box-shadow: 0 6px 20px rgba(46, 49, 146, 0.35); }
    50% { box-shadow: 0 6px 26px rgba(46, 49, 146, 0.65), 0 0 0 6px rgba(46, 49, 146, 0.12); }
}

@keyframes ribbonPeek {
    0%, 82%, 100% { transform: translateY(calc(-100% + 20px)); }
    88%, 94% { transform: translateY(calc(-100% + 40px)); }
}

.brand-swap-ribbon:hover,
.brand-swap-ribbon:focus {
    animation: ribbonGlow 2.6s ease-in-out infinite;
}

.brand-swap-ribbon:hover,
.brand-swap-ribbon:focus {
    transform: translateY(0);
    color: #ffffff !important;
}

.brand-swap-ribbon i {
    font-size: 1.1rem;
}

@media (max-width: 991.98px) {
    .brand-swap-ribbon {
        left: auto;
        right: 1rem;
        transform: translateY(calc(-100% + 20px));
    }
    .brand-swap-ribbon:hover,
    .brand-swap-ribbon:focus {
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    .brand-swap-ribbon {
        left: auto;
        right: 1rem;
        top: 0;
        bottom: auto;
        transform: translateY(calc(-100% + 20px));
    }
    .brand-swap-ribbon:hover,
    .brand-swap-ribbon:focus {
        transform: translateY(0);
    }
}

/* Live SiteLock verification shield, sitting plainly above the Email Us card
   -- no white card box around it, just the shield image itself */
#footer .sitelock-shield-inline {
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
}

#footer .sitelock-shield-inline img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* "How can we help" / "Your Account" section titles — matching bold weight
   + soft glow treatment used on "Simple & Powerful Tools", adapted with a
   colored glow instead of white (these sit on a light background) */
.homepage-section-title {
    font-weight: 800;
    font-size: 2.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    -webkit-text-stroke: 0.5px #000000;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

/* Moving particles container, scoped to just the Simple & Powerful Tools
   dark strip (separate instance from the homepage hero's starfield) */
.feature-tools-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.feature-tools-particles canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Gray zone wraps the ENTIRE "How can we help"/"Your Account" icon-card
   area (full-bleed), populating gray behind the WHMCS cards as requested. */
.white-to-gray-mask {
    position: relative;
    height: 320px;
    margin-top: -140px;
    margin-bottom: 40px;
    background-color: #1e1b34;
    background-image:
        radial-gradient(1.5px 1.5px at 10% 20%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 30% 65%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 50% 15%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 65% 45%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1.5px 1.5px at 80% 75%, rgba(255,255,255,0.85), transparent),
        radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,0.7), transparent),
        linear-gradient(180deg, #221f3a 0%, #1e1b34 100%);
    background-repeat: repeat, repeat, repeat, repeat, repeat, repeat, no-repeat;
    background-size: 220px 160px, 220px 160px, 220px 160px, 220px 160px, 220px 160px, 220px 160px, 100% 100%;
    transform: scaleY(-1);
    clip-path: polygon(
        0% 100%, 0.0% 10.12%, 2.08% 9.48%, 4.17% 9.18%, 6.25% 9.22%,
        8.33% 9.58%, 10.42% 10.21%, 12.5% 11.04%, 14.58% 12.0%, 16.67% 12.98%,
        18.75% 13.9%, 20.83% 14.68%, 22.92% 15.25%, 25.0% 15.57%, 27.08% 15.61%,
        29.17% 15.39%, 31.25% 14.95%, 33.33% 14.32%, 35.42% 13.59%, 37.5% 12.82%,
        39.58% 12.1%, 41.67% 11.5%, 43.75% 11.06%, 45.83% 10.83%, 47.92% 10.83%,
        50.0% 11.05%, 52.08% 11.46%, 54.17% 12.02%, 56.25% 12.69%, 58.33% 13.41%,
        60.42% 14.13%, 62.5% 14.8%, 64.58% 15.4%, 66.67% 15.92%, 68.75% 16.35%,
        70.83% 16.73%, 72.92% 17.08%, 75.0% 17.44%, 77.08% 17.87%, 79.17% 18.4%,
        81.25% 19.05%, 83.33% 19.85%, 85.42% 20.79%, 87.5% 21.83%, 89.58% 22.94%,
        91.67% 24.06%, 93.75% 25.11%, 95.83% 26.01%, 97.92% 26.71%, 100.0% 27%,
        100% 100%
    );
    z-index: 1;
}

.hub-gray-zone {
    position: relative;
    background-color: #eef1f8;
    padding-top: 8.5rem;
    padding-bottom: 17rem;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    overflow: visible;
}

.hub-gray-zone-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hub-gray-zone-particles canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.hub-gray-zone-shape {
    position: absolute;
    z-index: 0;
    opacity: 0.35;
    pointer-events: none;
}

.hub-gray-zone-shape.hero-shape-1 {
    width: 0;
    height: 0;
    top: 10%;
    left: 6%;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-bottom: 38px solid var(--brand-grad-end);
    transform: rotate(12deg);
}

.hub-gray-zone-shape.hero-shape-2 {
    width: 0;
    height: 0;
    top: 70%;
    right: 8%;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 24px solid var(--brand-grad-start);
    transform: rotate(-18deg);
}

.hub-gray-zone-squiggle {
    position: absolute;
    top: 42%;
    left: 45%;
    width: 140px;
    height: 60px;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 60'%3E%3Cpath d='M2 40 C 30 5, 50 55, 78 20 S 130 5, 138 30' stroke='%232e3192' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

@media (max-width: 767.98px) {
    .hub-gray-zone-shape,
    .hub-gray-zone-squiggle {
        display: none;
    }
}

.hub-gray-zone .homepage-section-title,
.hub-gray-zone .action-icon-cards {
    max-width: 1140px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px;
    padding-right: 15px;
}


/* ========================================================================
   Mobile fixes: icon-grid cards (How can we help / Your Account) were
   showing huge uneven gaps due to Bootstrap's offset-column math at narrow
   widths -- force a clean, even 2-column grid instead. Also center-justify
   the footer content on mobile as requested.
   ======================================================================== */
@media (max-width: 767.98px) {
    .action-icon-cards {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .action-icon-cards > div {
        width: auto !important;
        max-width: 100% !important;
        flex: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .action-icon-card {
        margin-bottom: 0;
    }

    #footer .footer-grid {
        text-align: center;
    }
    #footer .ql-heading,
    #footer .sc-heading {
        text-align: center;
    }
    #footer .quiq-links-footer-ul {
        display: inline-block;
        text-align: left;
        padding-left: 1.1rem;
    }
    #footer .row {
        justify-content: center;
    }
    #footer .badge-card-row {
        align-items: center;
    }
    #footer .sitelock-shield-inline,
    #footer .footer-contact-method {
        margin-left: auto;
        margin-right: auto;
    }
    #footer .footer-brand-row {
        justify-content: center;
        text-align: center;
    }
    #footer .final-footer-area {
        text-align: center;
    }
}

/* Mobile collapsed nav had huge vertical gaps between items — tighten up */
@media (max-width: 767.98px) {
    #header .navbar-nav .nav-item {
        margin-right: 0;
        margin-bottom: 0;
    }
    #header #nav li > a {
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
        line-height: 1.3;
    }
    #header .navbar-collapse {
        margin-top: 0;
    }
}


/* Register page reuses the login-split system above, just wider since the
   registration form has far more fields than login */
.login-split-form-inner-wide {
    max-width: 860px;
}

.register-form-wide .login-split-title {
    text-align: left;
}

.register-split-wrap {
    align-items: flex-start;
}

/* ========================================================================
   Register page: kept the native title/breadcrumb/sidebar this time,
   just recolored the title (above) and moved our own hero banner from a
   side panel down to the bottom of the card, as a horizontal strip
   ======================================================================== */
.register-card-wrap {
    width: 100%;
}

.register-form-inner {
    width: 100%;
}

.login-split-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: transparent;
    background-image: url("../img/bg-mountains.svg"), var(--brand-gradient);
    background-repeat: no-repeat, no-repeat;
    background-position: bottom center, center;
    background-size: cover, 100% 100%;
}

.login-split-hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.login-split-hero-particles canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Plain heading (no mountain) at the very top of the register card */
.register-plain-heading {
    margin-bottom: 2.5rem;
}

.register-plain-heading-topbar {
    text-align: right;
    font-size: 0.85rem;
    color: #6c6f80;
    margin-bottom: 1rem;
}

.register-plain-heading-topbar a {
    color: var(--brand-grad-start);
    font-weight: 700;
    margin-left: 0.35rem;
}

.register-plain-heading h2 {
    color: #2c2843;
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 0;
}

.register-plain-heading p {
    font-size: 13px;
    font-weight: 400;
    margin-top: 10px;
    color: #6c6f80;
}

/* Mountain sits BEHIND the form cards, from the Sign Up/social-login row
   down through and including the Register button - the individual white
   cards float on top of it */
.register-mountain-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 1rem 0 0;
    padding: 3.5rem 2rem 2.5rem;
}

.register-mountain-content {
    position: relative;
    z-index: 1;
}

.register-mountain-wrap .divider > span:first-child,
.register-mountain-wrap .divider > span:last-child {
    background: rgba(255, 255, 255, 0.3);
}

.register-mountain-wrap #containerNewUserSignup .card,
.register-mountain-wrap #containerNewUserSecurity .card {
    box-shadow: 0 20px 45px rgba(10, 10, 30, 0.35);
}

.register-plain-footer {
    margin-top: 2.5rem;
    font-size: 0.85rem;
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    color: #6c6f80;
}

.register-plain-footer a {
    color: var(--brand-grad-start);
    font-weight: 600;
    text-decoration: none;
}

.register-plain-footer a:hover {
    text-decoration: underline;
}

body.template-login .back-to-top-btn {
    display: none !important;
}

.mainbody-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1400px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.mainbody-particles canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

body.template-login .brand-swap-ribbon,
body.template-clientregister .brand-swap-ribbon,
body.template-register .brand-swap-ribbon {
    display: none !important;
}

/* Register page: the outer card (sidebar + main content, two columns)
   was constrained by the default container width - widen it */
body.template-clientregister .container {
    max-width: 1320px;
}

body.template-clientregister .subpage-content-card {
    padding: 2.5rem;
}

/* White logo on the register page, fixed to the same top-left spot as
   the login page's logo */
.register-page-logo {
    position: fixed;
    top: 2rem;
    left: 2.5rem;
    z-index: 1050;
}

.register-page-logo img {
    width: 140px;
    filter: brightness(0) invert(1);
}

@media (max-width: 767.98px) {
    .register-page-logo {
        top: 1.25rem;
        left: 1.25rem;
    }
    .register-page-logo img {
        width: 70px;
    }
}

/* "View all pricing" is a float-right link in the native domain search
   template - floats don't reliably clear space below them at narrower
   widths, causing it to overlap the first product card. Convert it to a
   normal right-aligned block with breathing room on tablet/mobile */
@media (max-width: 991.98px) {
    #frmDomainHomepage .btn-link.float-right {
        float: none;
        display: block;
        text-align: right;
        margin-bottom: 2rem;
    }
    body.template-homepage .card-columns.home {
        margin-top: 1rem;
    }
}
