:root {
    --hb-slate: #666666;
    --hb-dark: #2D3748;
    --hb-cyan: #00BCD4;
    --hb-cyan-hover: #00ACC1;
    --hb-cyan-deep: #00838F;
    --hb-bg: #FFFFFF;
    --hb-white: #FFFFFF;
    --hb-border: #E2E8F0;
    --hb-divider: #EDF2F7;
    --hb-radius: 8px;
}

/* =========================================================
   100% FULL-WIDTH WHITE BACKGROUND & BREADCRUMB OVERRIDES
   ========================================================= */

/* Main Body & All Section Wrappers -> Pure White */
body,
body.primary-bg-color,
#main-body,
section#main-body,
.app-main,
.main-content,
.bg-light,
.bg-color-white,
.bg-color-grey,
.bg-grey {
    background-color: var(--hb-white) !important;
    background: var(--hb-white) !important;
}

/* Outer Full-Width Portal Home / Breadcrumb Bar -> Pure White */
header,
#header,
.header-lined,
.app-main-header,
section.app-main-header,
div.app-main-header,
.breadcrumb-wrapper,
.breadcrumb-container,
.sub-header,
.navigation,
div[class*="header-lined"],
section[class*="header-lined"] {
    background: var(--hb-white) !important;
    background-color: var(--hb-white) !important;
    border-bottom: 1px solid var(--hb-border) !important;
    box-shadow: none !important;
}

/* twenty-one theme: grey "Portal Home" bar override */
.master-breadcrumb,
nav.master-breadcrumb,
.master-breadcrumb .container,
.master-breadcrumb nav,
.master-breadcrumb .breadcrumb {
    background: var(--hb-white) !important;
    background-color: var(--hb-white) !important;
    box-shadow: none !important;
}

.master-breadcrumb {
    border-bottom: 1px solid var(--hb-border) !important;
}

/* Breadcrumb Inner Links */
.breadcrumb-wrapper .container,
.breadcrumb-wrapper .container-fluid,
.breadcrumb,
.breadcrumb-item {
    background: var(--hb-white) !important;
    background-color: var(--hb-white) !important;
}

.breadcrumb-item, 
.breadcrumb-item a, 
.breadcrumb-item.active {
    color: var(--hb-slate) !important;
}


/* =========================================================
   HOMEPAGE: TIGHTEN THE GAP UNDER THE DOMAIN SEARCH
   (empty spotlight-TLD area + heading margins)
   ========================================================= */

/* Spotlight TLD strip: remove its spacing, and hide it entirely when empty */
.spotlight-tlds,
.spotlight-tlds-container,
.home-domain-search .spotlight-tlds {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
}

.spotlight-tlds:empty,
.spotlight-tlds-container:empty {
    display: none !important;
}

/* Domain search section: no extra space below it */
.home-domain-search,
.home-domain-bg,
section#home-banner {
    margin-bottom: 0 !important;
    padding-bottom: 8px !important;
}

/* "Browse our Products/Services" heading: smaller margins */
h2:has(+ .card-columns.home) {
    margin-top: 8px !important;
    margin-bottom: 16px !important;
}


/* =========================================================
   HOMEPAGE CARDS: BULLETPROOF 2x2 EQUAL-SIZE GRID
   ========================================================= */

/* 1. Force 2-column CSS Grid & Strip Bootstrap Columns */
.card-columns.home {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
    margin: 0 !important;
    -webkit-column-count: 1 !important;
    column-count: 1 !important;
}

/* 2. Prevent Bootstrap pseudo-elements from breaking the grid */
.card-columns.home::before,
.card-columns.home::after {
    display: none !important;
}

/* 3. Stretch Cards to identical heights */
.card-columns.home .card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    margin: 0 !important; 
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid var(--hb-border) !important;
    border-radius: var(--hb-radius) !important;
}

/* 4. Align text inside the card and push button down */
.card-columns.home .card-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: center !important;
    padding: 32px 24px !important;
}

/* 5. Anchor the action buttons cleanly at the bottom edge */
.card-columns.home .card-body .btn {
    margin-top: auto !important;
    width: 100% !important;
}

/* Mobile Stacking for small screens */
@media (max-width: 767px) {
    .card-columns.home {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================================
   HOMEPAGE ACTION CARDS & BUTTONS (LOGO CYAN)
   ========================================================= */

/* Product & Action Card Buttons - Anchored at Card Bottom */
.card .btn-outline-primary,
.card .btn-primary,
.card .btn-action,
.card-footer .btn,
.home-shortcuts .btn,
.card a.btn,
.card-body .btn {
    background-color: var(--hb-cyan) !important;
    background-image: none !important;
    border: 2px solid var(--hb-cyan) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(0,188,212,0.2) !important;
    transition: all 0.2s ease-in-out !important;
    text-align: center !important;
    text-decoration: none !important;
}

.card .btn-outline-primary:hover,
.card .btn-primary:hover,
.card .btn-action:hover,
.card-footer .btn:hover,
.home-shortcuts .btn:hover,
.card a.btn:hover,
.card-body .btn:hover {
    background-color: var(--hb-cyan-hover) !important;
    border-color: var(--hb-cyan-hover) !important;
    color: #ffffff !important;
}

/* Domain Search "Search" Button -> Logo Cyan */
#btnDomainSearch,
.home-domain-search .btn-primary,
.domain-checker-container .btn-primary,
.domain-search-form .btn-primary,
input[type="submit"]#btnDomainSearch,
form .btn-primary {
    background-color: var(--hb-cyan) !important;
    background-image: none !important;
    border-color: var(--hb-cyan) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

#btnDomainSearch:hover,
.home-domain-search .btn-primary:hover,
.domain-checker-container .btn-primary:hover,
.domain-search-form .btn-primary:hover,
form .btn-primary:hover {
    background-color: var(--hb-cyan-hover) !important;
    border-color: var(--hb-cyan-hover) !important;
    color: #ffffff !important;
}


/* =========================================================
   GENERAL NAVIGATION & SIDEBAR MENU COLORS
   ========================================================= */

/* Sidebars & "Show Menu" Button */
.btn-show-sidebar,
.store-btn-sidebar-toggle,
#btnShowSidebar {
    background-color: var(--hb-cyan) !important;
    border-color: var(--hb-cyan) !important;
    color: #ffffff !important;
}

.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
    background-color: var(--hb-cyan) !important;
    border-color: var(--hb-cyan) !important;
    color: #ffffff !important;
}

.nav-tabs .nav-link.active {
    border-bottom-color: var(--hb-cyan) !important;
    color: var(--hb-cyan) !important;
}


/* =========================================================
   STOREFRONT (PREMIUM COMPARISON): CARD SHELL
   ========================================================= */

/* Widen the narrow WHMCS grid container */
body #order-premium_comparison .container {
    max-width: 1300px !important;
    width: 100% !important;
}

/* Card: clean white, hairline border, soft shadow */
body #order-premium_comparison .price-table {
    background: #ffffff !important;
    border: 1px solid var(--hb-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(45,55,72,0.04) !important;
    overflow: hidden !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    margin-bottom: 30px !important;
    display: flex !important;
    flex-direction: column !important;
}

body #order-premium_comparison .price-table:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(0,188,212,0.10) !important;
    border-color: var(--hb-cyan) !important;
}

/* Remove the grey "shadow ellipse" decoration under each card */
body #order-premium_comparison .price-table::before,
body #order-premium_comparison .price-table::after {
    display: none !important;
    content: none !important;
}


/* =========================================================
   STOREFRONT: HEADER (NAME + PRICE) & ORDER BUTTON
   ========================================================= */

body #order-premium_comparison .price-table .top-head {
    background: #ffffff !important;
    background-image: none !important;
    color: var(--hb-dark) !important;
    border: none !important;
    padding: 30px 20px 10px !important;
    box-shadow: none !important;
    text-align: center !important;
}

body #order-premium_comparison .price-table .top-head .top-area {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

body #order-premium_comparison .price-table .top-head .top-area h4 {
    color: var(--hb-dark) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    margin: 0 !important;
    border: none !important;
}

body #order-premium_comparison .price-table .price-area {
    background: #ffffff !important;
    background-image: none !important;
    border: none !important;
    padding: 10px 20px 20px !important;
    text-align: center !important;
    color: var(--hb-dark) !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

body #order-premium_comparison .price-table .price-area .price {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: var(--hb-dark) !important;
    text-shadow: none !important;
}

body #order-premium_comparison .price-table .price-area .price * {
    font-size: inherit !important;
    color: var(--hb-dark) !important;
}

body #order-premium_comparison .price-table .price-area .price span,
body #order-premium_comparison .price-table .price-area .price small {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--hb-cyan) !important;
}

body #order-premium_comparison .price-table div.order-button {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 25px 25px !important;
}

body #order-premium_comparison .price-table a.order-button,
body #order-premium_comparison .price-table .order-button a,
body #order-premium_comparison .price-table .order-button button,
body #order-premium_comparison .price-table .order-button .btn {
    display: block !important;
    box-sizing: border-box !important;
    background: #00BCD4 !important;
    background-image: none !important;
    border: 2px solid #00BCD4 !important;
    border-radius: 8px !important;
    padding: 14px 20px !important;
    margin: 0 25px 25px !important;
    width: auto !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: 0 4px 12px rgba(0,188,212,0.3) !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
}

body #order-premium_comparison .price-table .order-button a,
body #order-premium_comparison .price-table .order-button button,
body #order-premium_comparison .price-table .order-button .btn {
    margin: 0 !important;
}

body #order-premium_comparison .price-table .order-button *,
body #order-premium_comparison .price-table a.order-button * {
    color: #ffffff !important;
    text-shadow: none !important;
}

body #order-premium_comparison .price-table a.order-button:hover,
body #order-premium_comparison .price-table .order-button a:hover,
body #order-premium_comparison .price-table .order-button button:hover,
body #order-premium_comparison .price-table .order-button .btn:hover {
    background: #00ACC1 !important;
    border-color: #00ACC1 !important;
    color: #ffffff !important;
}


/* =========================================================
   STOREFRONT: FEATURE LIST (WHITE, MINIMAL, CYAN CHECKS)
   Checkmarks are drawn with inline SVG, so they do not depend
   on the Font Awesome font loading (the cause of the little
   empty squares).
   ========================================================= */

/* Feature list container: plain white, one hairline above it */
body #order-premium_comparison .price-table ul {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    border-top: 1px solid var(--hb-divider) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 12px 28px 8px !important;
    list-style: none !important;
    text-align: left !important;
    flex-grow: 1 !important;
}

/* A list nested inside another list: strip it so nothing doubles up */
body #order-premium_comparison .price-table ul ul {
    border-top: none !important;
    padding: 0 !important;
    flex-grow: 0 !important;
}

/* A list item that only wraps another list: make it invisible */
body #order-premium_comparison .price-table ul li:has(> ul) {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body #order-premium_comparison .price-table ul li:has(> ul)::before {
    display: none !important;
    content: none !important;
}

/* Individual feature rows */
body #order-premium_comparison .price-table ul li {
    position: relative !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 11px 0 11px 30px !important;
    text-align: left !important;
    border: none !important;
    border-bottom: 1px solid var(--hb-divider) !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: var(--hb-dark) !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Prevent double icons from the original template */
body #order-premium_comparison .price-table ul li i,
body #order-premium_comparison .price-table ul li span.fa {
    display: none !important;
}

/* Cyan checkmark (SVG) */
body #order-premium_comparison .price-table ul li::before {
    content: "" !important;
    position: absolute !important;
    left: 2px !important;
    top: 13px !important;
    width: 16px !important;
    height: 16px !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300BCD4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat !important;
    font-family: inherit !important;
}

/* Last real item (the "Free .co.za domain" bonus line): same white
   background, set apart with a cyan star and teal text */
body #order-premium_comparison .price-table ul li:last-child:not(:has(ul)) {
    border-bottom: none !important;
    margin-top: 6px !important;
    padding: 12px 0 8px 30px !important;
    background: transparent !important;
    color: var(--hb-cyan-deep) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

body #order-premium_comparison .price-table ul li:last-child:not(:has(ul))::before {
    top: 14px !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300BCD4'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E") center / contain no-repeat !important;
}



/* Hide the breadcrumb bar exclusively on the homepage */
body.home section.master-breadcrumb,
body#index section.master-breadcrumb,
body.landing-page section.master-breadcrumb {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}