/*
 * HostGennie WHMCS Child Theme
 * Parent: twenty-one
 */

/* Brand variables */
:root {
    --hg-navy: #071a3d;
    --hg-blue: #1468e8;
    --hg-blue-dark: #0e52bd;
    --hg-light: #f5f8fc;
    --hg-border: #dce4ef;
    --hg-text: #17233c;
    --hg-muted: #68758b;
    --hg-radius: 10px;
}

/* Global presentation */
body {
    color: var(--hg-text);
    background-color: var(--hg-light);
}

a {
    color: var(--hg-blue);
}

a:hover,
a:focus {
    color: var(--hg-blue-dark);
}

/* Main navigation */
header.header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--hg-border);
}

header.header .navbar a,
header.header .navbar-nav > li > a {
    color: var(--hg-navy);
    font-weight: 600;
}

/* Primary buttons */
.btn-primary,
.btn-success,
button.btn-primary,
input.btn-primary {
    background-color: var(--hg-blue);
    border-color: var(--hg-blue);
    border-radius: 7px;
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-success:hover,
.btn-success:focus {
    background-color: var(--hg-blue-dark);
    border-color: var(--hg-blue-dark);
}

/* Secondary buttons */
.btn-default,
.btn-secondary {
    border-color: var(--hg-border);
    border-radius: 7px;
}

/* Cards and panels */
.card,
.panel,
.tiles .tile,
.list-group {
    border-color: var(--hg-border);
    border-radius: var(--hg-radius);
    box-shadow: 0 4px 16px rgba(7, 26, 61, 0.05);
}

.card-header,
.panel-heading {
    background-color: #ffffff;
    border-bottom-color: var(--hg-border);
    color: var(--hg-navy);
    font-weight: 700;
}

/* Dashboard tiles */
.tiles .tile {
    background-color: #ffffff;
}

.tiles .tile .stat {
    color: var(--hg-blue);
}

/* Forms */
.form-control {
    border-color: #cbd6e4;
    border-radius: 7px;
    min-height: 42px;
}

.form-control:focus {
    border-color: var(--hg-blue);
    box-shadow: 0 0 0 3px rgba(20, 104, 232, 0.12);
}

/* Tables */
.table > thead > tr > th {
    color: var(--hg-navy);
    border-bottom-color: var(--hg-border);
}

.table > tbody > tr > td {
    border-top-color: #edf1f6;
}

/* Page headings */
h1,
h2,
h3,
h4,
h5,
h6,
.main-content h1 {
    color: var(--hg-navy);
}

/* Sidebar */
.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover {
    background-color: var(--hg-blue);
    border-color: var(--hg-blue);
}

/* Alerts */
.alert {
    border-radius: 8px;
}

/* Footer */
footer.footer {
    background-color: var(--hg-navy);
    color: rgba(255, 255, 255, 0.78);
}

footer.footer a {
    color: #ffffff;
}

/* Mobile spacing */
@media (max-width: 767px) {
    .main-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .card,
    .panel {
        border-radius: 8px;
    }
}

/* =========================================================
   HostGennie authentication and registration pages
   ========================================================= */

.hg-auth-page {
    width: 100%;
    max-width: 620px;
    margin: 24px auto 56px;
}

.hg-auth-brand,
.hg-register-intro {
    text-align: center;
    margin: 10px auto 26px;
}

.hg-auth-logo-link {
    display: inline-block;
    margin-bottom: 18px;
}

.hg-auth-logo {
    display: block;
    width: auto;
    max-width: 210px;
    max-height: 68px;
    margin: 0 auto;
}

.hg-auth-brand h1,
.hg-register-intro h1 {
    margin: 0 0 10px;
    color: var(--hg-navy);
    font-size: 30px;
    font-weight: 750;
    line-height: 1.2;
}

.hg-auth-brand p,
.hg-register-intro p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--hg-muted);
    font-size: 15px;
    line-height: 1.65;
}

.hg-auth-page .login-form {
    width: 100%;
}

.hg-auth-page .login-form .card {
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--hg-border);
    box-shadow: 0 14px 40px rgba(7, 26, 61, 0.09);
}

.hg-auth-page .login-form .card-body {
    padding-top: 38px !important;
    padding-bottom: 32px !important;
}

.hg-auth-page .login-form .card-footer {
    background: #f8fafc;
    border-top: 1px solid var(--hg-border);
}

.hg-auth-page .login-form #login {
    min-height: 46px;
    font-size: 15px;
}

.hg-register-intro {
    max-width: 720px;
    margin-top: 14px;
    margin-bottom: 34px;
}

#frmCheckout .card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--hg-border);
    box-shadow: 0 8px 24px rgba(7, 26, 61, 0.055);
}

#frmCheckout .card-title {
    margin-bottom: 24px;
    color: var(--hg-navy);
    font-size: 21px;
    font-weight: 700;
}

#frmCheckout .btn-lg.btn-primary {
    min-width: 210px;
    min-height: 48px;
    padding-left: 28px;
    padding-right: 28px;
}

#frmCheckout .prepend-icon .field,
#frmCheckout input.field,
#frmCheckout select.field {
    border-radius: 7px;
}

@media (max-width: 767px) {
    .hg-auth-page {
        margin-top: 10px;
        margin-bottom: 32px;
    }

    .hg-auth-brand h1,
    .hg-register-intro h1 {
        font-size: 25px;
    }

    .hg-auth-brand p,
    .hg-register-intro p {
        font-size: 14px;
    }

    .hg-auth-logo {
        max-width: 175px;
        max-height: 58px;
    }

    .hg-auth-page .login-form .card-body {
        padding: 28px 22px !important;
    }

    #frmCheckout .card-body {
        padding: 24px 20px !important;
    }
}

/* =========================================================
   HostGennie client dashboard
   ========================================================= */

.hg-dashboard-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 24px;
    padding: 30px 32px;
    border-radius: 14px;
    background:
        radial-gradient(
            circle at top right,
            rgba(76, 151, 255, 0.28),
            transparent 34%
        ),
        linear-gradient(135deg, #071a3d 0%, #123c84 100%);
    color: #ffffff;
    box-shadow: 0 14px 36px rgba(7, 26, 61, 0.16);
}

.hg-dashboard-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.hg-dashboard-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #a8ccff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hg-dashboard-hero h1 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 29px;
    font-weight: 750;
    line-height: 1.2;
}

.hg-dashboard-hero p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.65;
}

.hg-dashboard-hero-actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.hg-dashboard-hero-actions .btn {
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 8px;
    white-space: nowrap;
}

.hg-dashboard-hero-actions .btn-primary {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--hg-blue);
}

.hg-dashboard-hero-actions .btn-primary:hover,
.hg-dashboard-hero-actions .btn-primary:focus {
    background: #eaf2ff;
    border-color: #eaf2ff;
    color: var(--hg-blue-dark);
}

.hg-dashboard-hero-actions .btn-light {
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.hg-dashboard-hero-actions .btn-light:hover,
.hg-dashboard-hero-actions .btn-light:focus {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.hg-dashboard-hero-actions i {
    margin-right: 7px;
}

.hg-dashboard-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}

.hg-dashboard-shortcut {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 92px;
    padding: 17px;
    border: 1px solid var(--hg-border);
    border-radius: 11px;
    background: #ffffff;
    color: var(--hg-text);
    box-shadow: 0 5px 18px rgba(7, 26, 61, 0.045);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.hg-dashboard-shortcut:hover,
.hg-dashboard-shortcut:focus {
    transform: translateY(-2px);
    border-color: rgba(20, 104, 232, 0.45);
    color: var(--hg-text);
    box-shadow: 0 9px 24px rgba(7, 26, 61, 0.09);
    text-decoration: none;
}

.hg-dashboard-shortcut-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(20, 104, 232, 0.1);
    color: var(--hg-blue);
    font-size: 18px;
}

.hg-dashboard-shortcut strong {
    display: block;
    margin-bottom: 4px;
    color: var(--hg-navy);
    font-size: 14px;
    font-weight: 700;
}

.hg-dashboard-shortcut small {
    display: block;
    color: var(--hg-muted);
    font-size: 12px;
    line-height: 1.45;
}

.client-home .tiles,
.tiles.mb-4 {
    gap: 14px;
}

.tiles .tile {
    min-height: 126px;
    border: 1px solid var(--hg-border);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.tiles .tile:hover,
.tiles .tile:focus {
    transform: translateY(-2px);
    border-color: rgba(20, 104, 232, 0.42);
    box-shadow: 0 10px 26px rgba(7, 26, 61, 0.09);
}

.tiles .tile i {
    color: var(--hg-blue);
}

.tiles .tile .stat {
    color: var(--hg-navy);
    font-weight: 750;
}

.tiles .tile .title {
    color: var(--hg-muted);
    font-weight: 600;
}

.client-home-cards .card {
    overflow: hidden;
    margin-bottom: 20px;
}

.client-home-cards .card-header {
    padding-top: 16px;
    padding-bottom: 16px;
}

.client-home-cards .card-title {
    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 1199px) {
    .hg-dashboard-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .hg-dashboard-hero {
        padding: 25px 21px;
    }

    .hg-dashboard-hero-content {
        display: block;
    }

    .hg-dashboard-hero h1 {
        font-size: 24px;
    }

    .hg-dashboard-hero-actions {
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .hg-dashboard-hero-actions .btn {
        flex: 1 1 auto;
    }

    .hg-dashboard-shortcuts {
        grid-template-columns: 1fr;
    }

    .hg-dashboard-shortcut {
        min-height: 82px;
    }
}

/* =========================================================
   HostGennie simplified portal header and authentication pages
   ========================================================= */

/* Hide WHMCS knowledgebase search from the main header */
header.header input[placeholder*="knowledgebase" i],
header.header input[placeholder*="search our knowledgebase" i],
header.header form[action*="knowledgebase"],
header.header .search,
header.header .header-search,
header.header .topbar-search {
    display: none !important;
}

/* Remove empty wrappers left by hidden knowledgebase search */
header.header .navbar .form-inline:empty,
header.header .navbar form:has(input[placeholder*="knowledgebase" i]) {
    display: none !important;
}

/* Keep the header compact */
header.header .navbar {
    min-height: 58px;
}

header.header .navbar-brand .logo-img {
    max-height: 48px;
    width: auto;
}

header.header .main-navbar-wrapper {
    border-top: 1px solid var(--hg-border);
}

/* Authentication pages should use only the header logo */
.hg-auth-brand,
.hg-register-intro {
    margin-top: 18px;
}

.hg-auth-brand .hg-auth-logo-link,
.hg-register-intro .hg-auth-logo-link,
.hg-auth-brand .hg-auth-logo,
.hg-register-intro .hg-auth-logo {
    display: none !important;
}

.hg-auth-brand h1,
.hg-register-intro h1 {
    margin-top: 0;
}

/* Keep login content compact */
.hg-auth-page {
    max-width: 560px;
    margin-top: 32px;
}

.hg-auth-page .login-form .card {
    max-width: 500px;
}

/* Keep registration content readable without excessive empty space */
.hg-register-intro {
    margin-bottom: 24px;
}

#frmCheckout {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

/* Minimal footer */
footer.footer {
    padding-top: 32px;
    padding-bottom: 32px;
}

footer.footer .footer-menu {
    display: none;
}

@media (max-width: 767px) {
    header.header .navbar-brand .logo-img {
        max-height: 40px;
    }

    .hg-auth-page {
        margin-top: 18px;
    }
}

/* =========================================================
   HostGennie incremental website-style header
   Uses the existing WHMCS Twenty-One structure
   ========================================================= */

.hg-site-topbar {
    background: #071a3d;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.hg-site-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    gap: 20px;
}

.hg-site-topbar a {
    color: #ffffff;
    font-weight: 700;
}

.hg-site-topbar a:hover,
.hg-site-topbar a:focus {
    color: #ffffff;
    text-decoration: underline;
}

header.header {
    border-bottom: 1px solid var(--hg-border);
    background: #ffffff;
    box-shadow: 0 3px 18px rgba(7, 26, 61, 0.05);
}

header.header > .navbar.navbar-light {
    padding-top: 14px;
    padding-bottom: 14px;
}

header.header .navbar > .container {
    min-height: 54px;
}

header.header .navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
}

header.header .navbar-brand .logo-img {
    display: block;
    width: auto !important;
    max-width: 185px !important;
    height: auto !important;
    max-height: 50px !important;
    object-fit: contain;
}

header.header .main-navbar-wrapper {
    border-top: 1px solid var(--hg-border);
    background: #ffffff;
}

header.header .main-navbar-wrapper .navbar-nav > li > a,
header.header .main-navbar-wrapper .nav-link {
    padding: 15px 13px;
    color: var(--hg-navy);
    font-size: 14px;
    font-weight: 650;
}

header.header .main-navbar-wrapper .navbar-nav > li > a:hover,
header.header .main-navbar-wrapper .navbar-nav > li > a:focus,
header.header .main-navbar-wrapper .nav-link:hover,
header.header .main-navbar-wrapper .nav-link:focus {
    color: var(--hg-blue);
}

header.header .toolbar .cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    padding: 0;
    border: 1px solid var(--hg-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--hg-navy);
}

header.header .toolbar .cart-btn:hover,
header.header .toolbar .cart-btn:focus {
    border-color: var(--hg-blue);
    color: var(--hg-blue);
}

header.header .toolbar .cart-btn .badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 2px 5px;
    border-radius: 20px;
    background: var(--hg-blue);
    color: #ffffff;
    font-size: 11px;
    line-height: 16px;
}

header.header .navbar form[action*="knowledgebase"],
header.header .main-navbar-wrapper form[action*="knowledgebase"],
header.header .search {
    display: none !important;
}

header.header .topbar {
    border: 0;
    background: #f5f8fc;
    color: var(--hg-text);
}

header.header .topbar .btn {
    color: var(--hg-text);
}

.master-breadcrumb {
    border-bottom: 1px solid var(--hg-border);
    background: #f5f8fc;
}

.master-breadcrumb .breadcrumb {
    margin-bottom: 0;
    padding-top: 12px;
    padding-bottom: 12px;
    background: transparent;
}

@media (max-width: 1199px) {
    header.header .main-navbar-wrapper {
        padding-top: 0;
        padding-bottom: 0;
    }

    header.header .main-navbar-wrapper .navbar-collapse {
        padding: 12px 0 18px;
    }

    header.header .main-navbar-wrapper .navbar-nav > li > a,
    header.header .main-navbar-wrapper .nav-link {
        padding: 11px 4px;
        border-bottom: 1px solid var(--hg-border);
    }
}

@media (max-width: 767px) {
    .hg-site-topbar-inner {
        min-height: 40px;
        font-size: 12px;
    }

    .hg-site-topbar-inner > a {
        display: none;
    }

    header.header > .navbar.navbar-light {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    header.header .navbar-brand .logo-img {
        max-width: 155px !important;
        max-height: 42px !important;
    }
}

/* =========================================================
   HostGennie website-style WHMCS footer
   ========================================================= */

.hg-site-footer {
    margin-top: 0;
    background: #071a3d;
    color: rgba(255, 255, 255, 0.72);
}

.hg-site-footer-cta {
    background: #1468e8;
    color: #ffffff;
}

.hg-site-footer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 148px;
    gap: 30px;
}

.hg-site-footer-cta span {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.hg-site-footer-cta h2 {
    margin: 0;
    color: #ffffff;
    font-size: 29px;
    line-height: 1.25;
}

.hg-site-footer-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 21px;
    border-radius: 8px;
    background: #ffffff;
    color: #1468e8;
    font-weight: 750;
    white-space: nowrap;
}

.hg-site-footer-cta-button:hover,
.hg-site-footer-cta-button:focus {
    background: #eef5ff;
    color: #0e52bd;
    text-decoration: none;
}

.hg-site-footer-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr 1.15fr;
    gap: 46px;
    padding-top: 56px;
    padding-bottom: 38px;
}

.hg-site-footer-logo {
    display: inline-flex;
}

.hg-site-footer-logo img {
    display: block;
    width: auto;
    max-width: 185px;
    height: auto;
    max-height: 54px;
    object-fit: contain;
}

.hg-site-footer-about p {
    max-width: 355px;
    margin: 18px 0 0;
    line-height: 1.75;
}

.hg-site-footer h3 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 750;
}

.hg-site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hg-site-footer li {
    margin: 0 0 10px;
}

.hg-site-footer a {
    color: rgba(255, 255, 255, 0.72);
}

.hg-site-footer a:hover,
.hg-site-footer a:focus {
    color: #ffffff;
    text-decoration: none;
}

.hg-site-footer-address {
    padding-top: 22px;
    padding-bottom: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    line-height: 1.7;
}

.hg-site-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    padding: 22px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
}

.hg-site-footer-copyright {
    position: relative;
    padding: 18px 160px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    text-align: center;
}

.hg-site-footer-language {
    position: absolute;
    top: 11px;
    right: 24px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 12px;
}

@media (max-width: 991px) {
    .hg-site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .hg-site-footer-cta-inner {
        display: block;
        min-height: 0;
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .hg-site-footer-cta h2 {
        font-size: 24px;
    }

    .hg-site-footer-cta-button {
        margin-top: 20px;
    }

    .hg-site-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 42px;
    }

    .hg-site-footer-copyright {
        padding: 18px 20px 62px;
    }

    .hg-site-footer-language {
        top: auto;
        right: 50%;
        bottom: 16px;
        transform: translateX(50%);
    }
}

/* =========================================================
   HostGennie internal WHMCS interface
   Sidebars, tables, statuses, tabs and detail pages
   ========================================================= */

/* Main content and typography */

#main-body {
    padding-top: 34px;
    padding-bottom: 54px;
}

.primary-content > h1,
.primary-content > h2,
.primary-content > .page-header h1,
.primary-content .header-lined h1 {
    color: var(--hg-navy);
    font-weight: 750;
    letter-spacing: -0.02em;
}

.primary-content .header-lined {
    margin-bottom: 24px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--hg-border);
}

.primary-content .header-lined small {
    color: var(--hg-muted);
}

/* Sidebar cards */

.sidebar .card-sidebar {
    overflow: hidden;
    margin-bottom: 18px !important;
    border: 1px solid var(--hg-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 7px 22px rgba(7, 26, 61, 0.065);
}

.sidebar .card-sidebar .card-header {
    padding: 15px 17px;
    border-bottom: 1px solid var(--hg-border);
    background:
        linear-gradient(
            135deg,
            rgba(20, 104, 232, 0.07),
            rgba(20, 104, 232, 0.015)
        );
}

.sidebar .card-sidebar .card-title {
    color: var(--hg-navy);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
}

.sidebar .card-sidebar .card-title > i:first-child {
    color: var(--hg-blue);
}

.sidebar .card-minimise {
    color: #93a1b6;
    font-size: 12px;
}

.sidebar .list-group-item {
    min-height: 47px;
    padding: 12px 16px;
    border-color: #edf1f7;
    background: #ffffff;
    color: var(--hg-text);
    font-size: 13px;
    font-weight: 550;
}

.sidebar .list-group-item:hover,
.sidebar .list-group-item:focus {
    background: #f6f9ff;
    color: var(--hg-blue);
}

.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover,
.sidebar .list-group-item.active:focus {
    border-color: var(--hg-blue);
    background: var(--hg-blue);
    color: #ffffff;
}

.sidebar .list-group-item.active .sidebar-menu-item-icon,
.sidebar .list-group-item.active .badge {
    color: #ffffff;
}

.sidebar-menu-item-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu-item-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    min-height: 28px;
    border-radius: 7px;
    background: rgba(20, 104, 232, 0.09);
}

.sidebar-menu-item-icon {
    color: var(--hg-blue);
    font-size: 13px;
}

.sidebar .list-group-item.active .sidebar-menu-item-icon-wrapper {
    background: rgba(255, 255, 255, 0.17);
}

.sidebar-menu-item-label {
    flex: 1 1 auto;
}

.sidebar-menu-item-badge .badge,
.sidebar .card-title .badge {
    border-radius: 20px;
    background: rgba(20, 104, 232, 0.1);
    color: var(--hg-blue);
    font-size: 11px;
    font-weight: 700;
}

/* General cards */

.primary-content > .card,
.primary-content .tab-content > .tab-pane > .card,
.product-details-tab-container,
.module-client-area > .card {
    border: 1px solid var(--hg-border);
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(7, 26, 61, 0.065);
}

.primary-content .card-header {
    padding: 17px 20px;
    border-bottom: 1px solid var(--hg-border);
    background: #f8faff;
}

.primary-content .card-title {
    color: var(--hg-navy);
    font-weight: 750;
}

.primary-content .card-body {
    padding: 22px;
}

.primary-content .card-footer {
    border-top: 1px solid var(--hg-border);
    background: #f8faff;
}

/* Tables */

.table-container {
    overflow: hidden;
    border: 1px solid var(--hg-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(7, 26, 61, 0.055);
}

.table-container .table {
    margin-bottom: 0;
}

.table-list > thead > tr > th,
.table > thead > tr > th {
    padding: 14px 15px;
    border-top: 0;
    border-bottom: 1px solid var(--hg-border);
    background: #f4f7fc;
    color: var(--hg-navy);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    vertical-align: middle;
}

.table-list > tbody > tr > td,
.table > tbody > tr > td {
    padding: 15px;
    border-color: #edf1f6;
    color: var(--hg-text);
    vertical-align: middle;
}

.table-list > tbody > tr {
    cursor: pointer;
    transition:
        background-color 0.16s ease,
        box-shadow 0.16s ease;
}

.table-list > tbody > tr:hover {
    background: #f7faff;
    box-shadow: inset 4px 0 0 var(--hg-blue);
}

.table-list strong {
    color: var(--hg-navy);
}

.table-list small,
.table-list .text-muted {
    color: var(--hg-muted) !important;
}

.table-list a {
    font-weight: 650;
}

/* DataTables controls */

.dataTables_wrapper {
    color: var(--hg-text);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    min-height: 39px;
    border: 1px solid var(--hg-border);
    border-radius: 7px;
    background: #ffffff;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: var(--hg-blue);
    outline: 3px solid rgba(20, 104, 232, 0.1);
}

.dataTables_wrapper .dataTables_info {
    padding-top: 16px;
    color: var(--hg-muted);
    font-size: 13px;
}

.dataTables_wrapper .pagination {
    margin-top: 14px;
}

.page-item .page-link {
    min-width: 37px;
    min-height: 37px;
    margin-left: 5px;
    border: 1px solid var(--hg-border);
    border-radius: 7px !important;
    color: var(--hg-text);
    text-align: center;
}

.page-item .page-link:hover {
    border-color: rgba(20, 104, 232, 0.45);
    background: #eef5ff;
    color: var(--hg-blue);
}

.page-item.active .page-link {
    border-color: var(--hg-blue);
    background: var(--hg-blue);
    color: #ffffff;
}

/* Status badges */

.label.status,
span.status,
.badge.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 6px 10px;
    border: 0;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
    text-transform: capitalize;
}

.status-active,
.status-paid,
.status-open,
.status-answered,
.status-completed {
    background: #e7f7ee !important;
    color: #167447 !important;
}

.status-unpaid,
.status-pending,
.status-awaitingreply,
.status-customer-reply,
.status-inprogress {
    background: #fff4dc !important;
    color: #956200 !important;
}

.status-suspended,
.status-overdue,
.status-fraud {
    background: #ffe9e7 !important;
    color: #b4332a !important;
}

.status-cancelled,
.status-terminated,
.status-closed,
.status-expired {
    background: #edf0f4 !important;
    color: #586579 !important;
}

/* Buttons and button groups */

.primary-content .btn {
    border-radius: 7px;
    font-weight: 650;
}

.primary-content .btn-default,
.primary-content .btn-secondary {
    border-color: var(--hg-border);
    background: #ffffff;
    color: var(--hg-text);
}

.primary-content .btn-default:hover,
.primary-content .btn-default:focus,
.primary-content .btn-secondary:hover,
.primary-content .btn-secondary:focus {
    border-color: rgba(20, 104, 232, 0.5);
    background: #eef5ff;
    color: var(--hg-blue);
}

.primary-content .btn-group {
    flex-wrap: wrap;
    gap: 6px;
}

.primary-content .btn-group > .btn,
.primary-content .btn-group > .btn-group > .btn {
    margin-left: 0;
    border-radius: 7px !important;
}

/* Tabs */

.nav-tabs {
    gap: 5px;
    border-bottom: 1px solid var(--hg-border);
}

.nav-tabs .nav-link {
    padding: 12px 16px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 7px 7px 0 0;
    color: var(--hg-muted);
    font-weight: 650;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    border-color: transparent;
    background: #f4f7fc;
    color: var(--hg-blue);
}

.nav-tabs .nav-link.active {
    border-color: var(--hg-blue);
    background: #eef5ff;
    color: var(--hg-blue);
}

.responsive-tabs-sm-connector {
    display: none;
}

.product-details-tab-container {
    margin-top: 18px;
    padding: 22px;
}

/* Forms */

.primary-content .form-control,
.primary-content .custom-select,
.primary-content select.form-control {
    min-height: 42px;
    border: 1px solid var(--hg-border);
    border-radius: 7px;
    background-color: #ffffff;
    color: var(--hg-text);
}

.primary-content textarea.form-control {
    min-height: 120px;
}

.primary-content .form-control:focus,
.primary-content .custom-select:focus {
    border-color: var(--hg-blue);
    box-shadow: 0 0 0 3px rgba(20, 104, 232, 0.1);
}

.primary-content .col-form-label,
.primary-content label {
    color: var(--hg-navy);
    font-weight: 650;
}

.primary-content .form-check-input {
    accent-color: var(--hg-blue);
}

/* Alerts */

.alert {
    padding: 15px 17px;
    border-width: 1px;
    border-radius: 9px;
    line-height: 1.55;
}

.alert-info {
    border-color: #bdd8ff;
    background: #eef6ff;
    color: #28588f;
}

.alert-success {
    border-color: #bce6cf;
    background: #edf9f2;
    color: #276647;
}

.alert-warning {
    border-color: #f2d49b;
    background: #fff8e9;
    color: #79591d;
}

.alert-danger {
    border-color: #efc2bd;
    background: #fff0ee;
    color: #913d35;
}

/* Service detail overview */

.product-details .product-status {
    overflow: hidden;
    border: 1px solid var(--hg-border);
    border-radius: 12px;
    background: #f8faff;
}

.product-details .product-icon {
    padding: 28px 20px 20px;
}

.product-details .product-icon .fa-circle {
    color: var(--hg-blue);
}

.product-details .product-icon h3 {
    margin-top: 14px;
    color: var(--hg-navy);
    font-size: 21px;
    font-weight: 750;
}

.product-details .product-icon h4 {
    color: var(--hg-muted);
    font-size: 14px;
    font-weight: 550;
}

.product-details .product-status-text {
    padding: 12px;
    background: var(--hg-blue);
    color: #ffffff;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

.product-details .col-md-6.text-center > h4 {
    margin-top: 16px;
    margin-bottom: 3px;
    color: var(--hg-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Domain detail information */

.primary-content #tabOverview .card-body > .row.mb-3 {
    margin-right: 0;
    margin-left: 0;
    padding: 15px 0;
    border-bottom: 1px solid #edf1f6;
}

.primary-content #tabOverview .card-body > .row.mb-3:last-of-type {
    border-bottom: 0;
}

.primary-content #tabOverview h5 {
    margin-bottom: 6px;
    color: var(--hg-muted);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

/* Ticket subject presentation */

#tableTicketsList .ticket-number {
    display: inline-block;
    margin-right: 7px;
    color: var(--hg-muted);
    font-size: 12px;
    font-weight: 700;
}

#tableTicketsList .ticket-subject {
    color: var(--hg-navy);
    font-weight: 650;
}

#tableTicketsList .ticket-subject.unread {
    color: var(--hg-blue);
    font-weight: 800;
}

/* Loading and empty states */

#tableLoading {
    padding: 35px 20px;
    color: var(--hg-muted);
}

#tableLoading i {
    color: var(--hg-blue);
}

/* Mobile tables */

@media (max-width: 767px) {
    #main-body {
        padding-top: 24px;
        padding-bottom: 40px;
    }

    .primary-content .card-body {
        padding: 18px;
    }

    .table-container {
        overflow-x: auto;
        border-radius: 9px;
    }

    .table-list {
        min-width: 680px;
    }

    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length {
        text-align: left;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        margin-top: 7px;
        margin-left: 0;
    }

    .sidebar .card-sidebar {
        margin-bottom: 14px !important;
    }

    .primary-content .btn-group {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .primary-content .btn-group > .btn,
    .primary-content .btn-group > .btn-group,
    .primary-content .btn-group > .btn-group > .btn {
        width: 100%;
    }

    .nav-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .nav-tabs .nav-link {
        white-space: nowrap;
    }
}

/* Keep footer CTA text visible over its white button */
.hg-site-footer a.hg-site-footer-cta-button,
.hg-site-footer a.hg-site-footer-cta-button:visited {
    color: #1468e8 !important;
}

.hg-site-footer a.hg-site-footer-cta-button:hover,
.hg-site-footer a.hg-site-footer-cta-button:focus {
    color: #0e52bd !important;
}

/* Definitive HostGennie footer CTA button appearance */
body .hg-site-footer .hg-site-footer-cta a.hg-site-footer-cta-button,
body .hg-site-footer .hg-site-footer-cta a.hg-site-footer-cta-button:link,
body .hg-site-footer .hg-site-footer-cta a.hg-site-footer-cta-button:visited {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    min-height: 46px;
    padding: 11px 22px !important;
    border: 2px solid #ffffff !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #1468e8 !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-indent: 0 !important;
    text-decoration: none !important;
    -webkit-text-fill-color: #1468e8 !important;
}

body .hg-site-footer .hg-site-footer-cta a.hg-site-footer-cta-button:hover,
body .hg-site-footer .hg-site-footer-cta a.hg-site-footer-cta-button:focus {
    border-color: #eef5ff !important;
    background: #eef5ff !important;
    color: #0e52bd !important;
    -webkit-text-fill-color: #0e52bd !important;
}

/* ==========================================================
   HostGennie modern authentication v2
   ========================================================== */

.hg-modern-auth,
.hg-modern-register {
    width: 100%;
    max-width: 1180px;
    margin: 34px auto 70px;
    display: grid;
    grid-template-columns: minmax(320px, .88fr) minmax(0, 1.12fr);
    background: #fff;
    border: 1px solid #dfe7f3;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(7, 28, 72, .13);
}

.hg-modern-login {
    max-width: 1080px;
    min-height: 650px;
}

.hg-auth-promo {
    position: relative;
    color: #fff;
    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(42, 134, 255, .30),
            transparent 34%
        ),
        radial-gradient(
            circle at 10% 95%,
            rgba(11, 196, 167, .17),
            transparent 32%
        ),
        linear-gradient(145deg, #061640 0%, #082c73 100%);
    overflow: hidden;
}

.hg-auth-promo::before,
.hg-auth-promo::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 50%;
}

.hg-auth-promo::before {
    width: 320px;
    height: 320px;
    right: -160px;
    top: -110px;
}

.hg-auth-promo::after {
    width: 240px;
    height: 240px;
    left: -130px;
    bottom: -120px;
}

.hg-auth-promo-inner {
    position: relative;
    z-index: 1;
    min-height: 100%;
    padding: 64px 52px;
    display: flex;
    flex-direction: column;
}

.hg-auth-kicker {
    display: inline-block;
    margin-bottom: 18px;
    color: #1684ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.hg-auth-promo .hg-auth-kicker {
    color: #7cc6ff;
}

.hg-auth-promo h1 {
    max-width: 430px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(34px, 3vw, 47px);
    line-height: 1.08;
    letter-spacing: -1.7px;
}

.hg-auth-promo > .hg-auth-promo-inner > p {
    max-width: 430px;
    margin: 0 0 36px;
    color: #cbd9ef;
    font-size: 16px;
    line-height: 1.7;
}

.hg-auth-benefits {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hg-auth-benefits li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.hg-auth-benefits li:last-child {
    border-bottom: 0;
}

.hg-auth-benefit-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 13px;
    background: rgba(255, 255, 255, .08);
    color: #80c8ff;
    font-size: 17px;
}

.hg-auth-benefits strong,
.hg-auth-benefits small,
.hg-auth-security strong,
.hg-auth-security small {
    display: block;
}

.hg-auth-benefits strong {
    margin-bottom: 3px;
    color: #fff;
    font-size: 14px;
}

.hg-auth-benefits small {
    color: #aebfdb;
    font-size: 12px;
    line-height: 1.5;
}

.hg-auth-security {
    margin-top: auto;
    padding: 17px 18px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 14px;
    background: rgba(255, 255, 255, .07);
}

.hg-auth-security > i {
    color: #68d7bd;
    font-size: 22px;
}

.hg-auth-security strong {
    color: #fff;
    font-size: 13px;
}

.hg-auth-security small {
    color: #b9c9e0;
    font-size: 11px;
}

.hg-auth-form-side {
    padding: 62px 68px;
    display: flex;
    align-items: center;
    background: linear-gradient(
        180deg,
        rgba(244, 248, 255, .74),
        #fff 34%
    );
}

.hg-auth-form-card {
    width: 100%;
    max-width: 470px;
    margin: 0 auto;
}

.hg-auth-form-heading {
    margin-bottom: 34px;
}

.hg-auth-form-heading h2,
.hg-register-form-header h2 {
    margin: 0 0 10px;
    color: #091d49;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hg-auth-form-heading p,
.hg-register-form-header p {
    margin: 0;
    color: #6b7890;
    font-size: 14px;
    line-height: 1.65;
}

.hg-auth-field {
    margin-bottom: 21px;
}

.hg-auth-field > label,
.hg-auth-label-row label {
    margin: 0 0 8px;
    color: #1b2b4b;
    font-size: 13px;
    font-weight: 700;
}

.hg-auth-label-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.hg-auth-forgot {
    margin-bottom: 8px;
    color: #086edb;
    font-size: 12px;
    font-weight: 700;
}

.hg-auth-input-wrap {
    position: relative;
}

.hg-auth-input-wrap .form-control {
    width: 100%;
    height: 54px;
    padding: 0 50px;
    border: 1px solid #d5dfed;
    border-radius: 11px;
    background: #fff;
    color: #102345;
    font-size: 14px;
    box-shadow: none;
}

.hg-auth-input-wrap .form-control:focus {
    border-color: #1684ff;
    box-shadow: 0 0 0 4px rgba(22, 132, 255, .11);
}

.hg-auth-input-icon {
    position: absolute;
    z-index: 2;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #8190a8;
    pointer-events: none;
}

.hg-auth-reveal {
    position: absolute;
    z-index: 3;
    right: 7px;
    top: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6e7d95;
}

.hg-auth-reveal:hover,
.hg-auth-reveal:focus {
    background: #eef5ff;
    color: #0872e5;
}

.hg-auth-options {
    margin: 2px 0 22px;
}

.hg-auth-checkbox {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    color: #52617a;
    font-size: 13px;
    cursor: pointer;
}

.hg-auth-checkbox input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #0879ee;
}

.hg-auth-submit {
    width: 100%;
    min-height: 54px;
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #0879ee, #075fc4);
    box-shadow: 0 12px 26px rgba(8, 111, 218, .24);
    font-size: 14px;
    font-weight: 800;
}

.hg-auth-submit:hover,
.hg-auth-submit:focus {
    background: linear-gradient(135deg, #086bd2, #064fa7);
    transform: translateY(-1px);
}

.hg-auth-captcha {
    margin: 0 0 20px;
}

.hg-auth-switch {
    margin-top: 26px;
    padding: 17px 18px;
    text-align: center;
    border: 1px solid #e0e8f3;
    border-radius: 11px;
    background: #f7faff;
    color: #66758d;
    font-size: 13px;
}

.hg-auth-switch a {
    margin-left: 5px;
    color: #0874df;
    font-weight: 800;
}

.hg-auth-help {
    margin-top: 19px;
    text-align: center;
    color: #8390a4;
    font-size: 12px;
}

.hg-auth-help a {
    color: #48617f;
    font-weight: 700;
}

/* Registration */

.hg-register-promo {
    min-height: 100%;
}

.hg-register-form-side {
    min-width: 0;
    padding: 50px 48px 58px;
    background: #f7f9fd;
}

.hg-register-form-header {
    margin: 0 0 30px;
}

.hg-modern-register-form .card {
    margin-bottom: 22px !important;
    border: 1px solid #dce5f1;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(8, 33, 78, .055);
    overflow: hidden;
}

.hg-modern-register-form .card-body {
    padding: 27px !important;
}

.hg-modern-register-form .card-title {
    margin: 0 0 23px;
    color: #10234a;
    font-size: 18px;
    font-weight: 800;
}

.hg-modern-register-form .form-group {
    margin-bottom: 18px;
}

.hg-modern-register-form .prepend-icon {
    position: relative;
}

.hg-modern-register-form .field-icon {
    position: absolute;
    z-index: 3;
    left: 15px;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
    color: #8090a9;
    pointer-events: none;
}

.hg-modern-register-form input.field,
.hg-modern-register-form select.field,
.hg-modern-register-form textarea.field,
.hg-modern-register-form .form-control {
    width: 100%;
    min-height: 50px;
    padding: 10px 14px 10px 44px;
    border: 1px solid #d4deeb;
    border-radius: 9px;
    background: #fff;
    color: #152848;
    box-shadow: none;
}

.hg-modern-register-form select.field {
    padding-right: 35px;
}

.hg-modern-register-form input.field:focus,
.hg-modern-register-form select.field:focus,
.hg-modern-register-form textarea.field:focus,
.hg-modern-register-form .form-control:focus {
    border-color: #1684ff;
    box-shadow: 0 0 0 4px rgba(22, 132, 255, .10);
}

.hg-modern-register-form .generate-password {
    min-height: 44px;
    border: 1px solid #cfdbea;
    border-radius: 8px;
    background: #f6f9fd;
    color: #1b4778;
    font-weight: 700;
}

.hg-modern-register-form .password-strength-meter {
    padding-top: 5px;
}

.hg-modern-register-form .progress {
    height: 7px;
    border-radius: 999px;
    background: #e8eef6;
}

.hg-modern-register-form #passwordStrengthTextLabel {
    margin: 8px 0 0;
}

.hg-modern-register-form .alert {
    border-radius: 10px;
}

.hg-modern-register-form .form-check {
    display: inline-flex;
    gap: 9px;
    align-items: flex-start;
    color: #58677e;
    font-size: 13px;
}

.hg-modern-register-form .form-check-input {
    position: static;
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: #0879ee;
}

.hg-modern-register-form > p.text-center:last-child {
    margin: 26px 0 0;
}

.hg-modern-register-form .btn-lg.btn-primary {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #0879ee, #075fc4);
    box-shadow: 0 12px 26px rgba(8, 111, 218, .24);
    font-size: 14px;
    font-weight: 800;
}

.hg-register-login-link {
    margin-top: 23px;
}

.hg-modern-auth .social-signin-btns,
.hg-modern-register .social-signin-btns {
    margin-top: 20px;
}

.hg-modern-auth .mw-540,
.hg-modern-auth .card {
    max-width: none !important;
}

.hg-modern-auth .login-form {
    max-width: none;
    margin: 0;
}

@media (max-width: 991px) {
    .hg-modern-auth,
    .hg-modern-register {
        grid-template-columns: 1fr;
        margin-top: 25px;
    }

    .hg-auth-promo-inner {
        padding: 44px 38px;
    }

    .hg-auth-security {
        margin-top: 30px;
    }

    .hg-auth-form-side,
    .hg-register-form-side {
        padding: 45px 38px 50px;
    }
}

@media (max-width: 575px) {
    .hg-modern-auth,
    .hg-modern-register {
        width: calc(100% + 4px);
        margin: 14px -2px 45px;
        border-radius: 15px;
    }

    .hg-auth-promo-inner {
        padding: 36px 25px;
    }

    .hg-auth-promo h1 {
        font-size: 34px;
    }

    .hg-auth-benefits li {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .hg-auth-benefit-icon {
        width: 40px;
        height: 40px;
    }

    .hg-auth-form-side,
    .hg-register-form-side {
        padding: 36px 21px 42px;
    }

    .hg-auth-form-heading h2,
    .hg-register-form-header h2 {
        font-size: 28px;
    }

    .hg-modern-register-form .card-body {
        padding: 22px 18px !important;
    }

    .hg-modern-register-form .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Remove redundant WHMCS sidebar on registration page */
body:has(#registration.hg-modern-register) .sidebar,
body:has(#registration.hg-modern-register) .sidebar-secondary,
body:has(#registration.hg-modern-register) .col-lg-4,
body:has(#registration.hg-modern-register) .col-xl-3 {
    display: none !important;
}

body:has(#registration.hg-modern-register) .primary-content {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

body:has(#registration.hg-modern-register) #main-body > .container > .row {
    justify-content: center;
}

body:has(#registration.hg-modern-register) .hg-modern-register {
    max-width: 1120px;
}

/* ==========================================================
   HostGennie domain visible redesign v3
   ========================================================== */

#order-standard_cart.hg-modern-domain-page {
    width: 100% !important;
    max-width: 1120px !important;
    margin: 30px auto 70px !important;
}

#order-standard_cart.hg-modern-domain-page > .row {
    display: block !important;
    margin: 0 !important;
}

#order-standard_cart.hg-modern-domain-page .cart-sidebar,
#order-standard_cart.hg-modern-domain-page .sidebar-collapsed {
    display: none !important;
}

#order-standard_cart.hg-modern-domain-page .hg-domain-main {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
}

#order-standard_cart.hg-modern-domain-page .header-lined {
    margin: 0 0 24px !important;
    padding: 0 !important;
    border: 0 !important;
}

#order-standard_cart.hg-modern-domain-page .header-lined h1 {
    margin: 0 !important;
    padding-bottom: 18px !important;
    border-bottom: 1px solid #dce5f1 !important;
    color: #071c49 !important;
    font-size: 38px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    letter-spacing: -1px !important;
}

#order-standard_cart.hg-modern-domain-page .domain-checker-container,
#order-standard_cart.hg-modern-domain-page .domain-checker-bg {
    position: relative !important;
    margin: 25px 0 30px !important;
    padding: 52px 48px !important;
    border: 1px solid #174489 !important;
    border-radius: 20px !important;
    background:
        radial-gradient(
            circle at 88% 12%,
            rgba(50, 153, 255, .27),
            transparent 31%
        ),
        linear-gradient(
            135deg,
            #061944 0%,
            #0a347d 100%
        ) !important;
    background-image:
        radial-gradient(
            circle at 88% 12%,
            rgba(50, 153, 255, .27),
            transparent 31%
        ),
        linear-gradient(
            135deg,
            #061944 0%,
            #0a347d 100%
        ) !important;
    box-shadow: 0 22px 55px rgba(5, 27, 71, .18) !important;
    overflow: hidden !important;
}

#order-standard_cart.hg-modern-domain-page
.domain-checker-container::before,
#order-standard_cart.hg-modern-domain-page
.domain-checker-bg::before {
    content: "" !important;
    position: absolute !important;
    width: 330px !important;
    height: 330px !important;
    right: -145px !important;
    top: -185px !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    border-radius: 50% !important;
}

#order-standard_cart.hg-modern-domain-page
.domain-checker-container form,
#order-standard_cart.hg-modern-domain-page
.domain-checker-bg form,
#order-standard_cart.hg-modern-domain-page
.domain-search {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 790px !important;
    margin: 0 auto !important;
}

#order-standard_cart.hg-modern-domain-page
.domain-checker-container .form-control,
#order-standard_cart.hg-modern-domain-page
.domain-checker-bg .form-control,
#order-standard_cart.hg-modern-domain-page
.domain-checker-container input,
#order-standard_cart.hg-modern-domain-page
.domain-checker-bg input {
    min-height: 58px !important;
    border: 1px solid #d3deec !important;
    border-radius: 11px 0 0 11px !important;
    background: #fff !important;
    color: #13284a !important;
    font-size: 16px !important;
    box-shadow: 0 10px 26px rgba(0,0,0,.17) !important;
}

#order-standard_cart.hg-modern-domain-page
.domain-checker-container .btn,
#order-standard_cart.hg-modern-domain-page
.domain-checker-bg .btn {
    min-height: 58px !important;
    padding: 0 27px !important;
    border: 0 !important;
    border-radius: 0 11px 11px 0 !important;
    background: linear-gradient(135deg, #168cff, #0870dc) !important;
    color: #fff !important;
    font-weight: 800 !important;
}

#order-standard_cart.hg-modern-domain-page
.domain-checker-container .btn:hover,
#order-standard_cart.hg-modern-domain-page
.domain-checker-bg .btn:hover {
    background: linear-gradient(135deg, #0876e7, #0558b2) !important;
}

#order-standard_cart.hg-modern-domain-page
.domain-lookup-result,
#order-standard_cart.hg-modern-domain-page
.domain-result,
#order-standard_cart.hg-modern-domain-page
#domainSearchResults {
    margin: 27px 0 !important;
    padding: 22px !important;
    border: 1px solid #dbe5f1 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(8,34,77,.07) !important;
}

#order-standard_cart.hg-modern-domain-page .domain-available {
    color: #14825f !important;
    font-weight: 700 !important;
}

#order-standard_cart.hg-modern-domain-page .domain-unavailable {
    color: #bb3147 !important;
    font-weight: 700 !important;
}

#order-standard_cart.hg-modern-domain-page .btn-primary,
#order-standard_cart.hg-modern-domain-page .btn-success,
#order-standard_cart.hg-modern-domain-page .btn-warning,
#order-standard_cart.hg-modern-domain-page .btn-add-to-cart {
    border: 0 !important;
    border-radius: 9px !important;
    background: linear-gradient(135deg, #1688ff, #0870dc) !important;
    color: #fff !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 20px rgba(8,112,220,.20) !important;
}

#order-standard_cart.hg-modern-domain-page .domain-reg-promo,
#order-standard_cart.hg-modern-domain-page .panel,
#order-standard_cart.hg-modern-domain-page .card {
    border: 1px solid #dbe5f1 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 10px 28px rgba(8,34,77,.065) !important;
}

#order-standard_cart.hg-modern-domain-page .text-warning {
    color: #0879e9 !important;
}

@media (max-width: 767px) {
    #order-standard_cart.hg-modern-domain-page {
        margin-top: 18px !important;
    }

    #order-standard_cart.hg-modern-domain-page .header-lined h1 {
        font-size: 31px !important;
    }

    #order-standard_cart.hg-modern-domain-page
    .domain-checker-container,
    #order-standard_cart.hg-modern-domain-page
    .domain-checker-bg {
        padding: 30px 20px !important;
        border-radius: 15px !important;
    }

    #order-standard_cart.hg-modern-domain-page
    .domain-checker-container .input-group,
    #order-standard_cart.hg-modern-domain-page
    .domain-checker-bg .input-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    #order-standard_cart.hg-modern-domain-page
    .domain-checker-container .form-control,
    #order-standard_cart.hg-modern-domain-page
    .domain-checker-container input,
    #order-standard_cart.hg-modern-domain-page
    .domain-checker-container .btn,
    #order-standard_cart.hg-modern-domain-page
    .domain-checker-bg .form-control,
    #order-standard_cart.hg-modern-domain-page
    .domain-checker-bg input,
    #order-standard_cart.hg-modern-domain-page
    .domain-checker-bg .btn,
    #order-standard_cart.hg-modern-domain-page
    .input-group-append,
    #order-standard_cart.hg-modern-domain-page
    .input-group-btn {
        width: 100% !important;
        border-radius: 10px !important;
    }
}

/* ==========================================================
   HostGennie modern product routes v1
   ========================================================== */

#order-standard_cart.hg-modern-product-page {
    width: 100% !important;
    max-width: 1160px !important;
    margin: 30px auto 70px !important;
}

#order-standard_cart.hg-modern-product-page > .row {
    display: block !important;
    margin: 0 !important;
}

#order-standard_cart.hg-modern-product-page .cart-sidebar,
#order-standard_cart.hg-modern-product-page .sidebar-collapsed {
    display: none !important;
}

#order-standard_cart.hg-modern-product-page .hg-product-main {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
}

/* Page heading */

#order-standard_cart.hg-modern-product-page .header-lined {
    margin: 0 0 26px !important;
    padding: 0 !important;
    border: 0 !important;
}

#order-standard_cart.hg-modern-product-page .header-lined h1 {
    margin: 0 !important;
    padding: 0 0 18px !important;
    border-bottom: 1px solid #dce5f1 !important;
    color: #071c49 !important;
    font-size: 38px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    letter-spacing: -1px !important;
}

#order-standard_cart.hg-modern-product-page
.header-lined h1::before {
    content: "HOSTGENNIE HOSTING";
    display: block;
    margin-bottom: 11px;
    color: #0879ee;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 1.7px;
}

/* Product and configuration cards */

#order-standard_cart.hg-modern-product-page .panel,
#order-standard_cart.hg-modern-product-page .card,
#order-standard_cart.hg-modern-product-page .product,
#order-standard_cart.hg-modern-product-page .product-info,
#order-standard_cart.hg-modern-product-page .product-configurable-options {
    border: 1px solid #dbe5f1 !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: 0 10px 32px rgba(8, 34, 77, .065) !important;
    overflow: hidden !important;
}

#order-standard_cart.hg-modern-product-page .panel-heading,
#order-standard_cart.hg-modern-product-page .card-header {
    padding: 18px 22px !important;
    border-bottom: 1px solid #e4ebf4 !important;
    background: #f7faff !important;
    color: #10264d !important;
    font-weight: 800 !important;
}

#order-standard_cart.hg-modern-product-page .panel-body,
#order-standard_cart.hg-modern-product-page .card-body {
    padding: 24px !important;
}

/* Product title and pricing */

#order-standard_cart.hg-modern-product-page .product-title,
#order-standard_cart.hg-modern-product-page .product-name,
#order-standard_cart.hg-modern-product-page h2,
#order-standard_cart.hg-modern-product-page h3 {
    color: #0b214b !important;
    font-weight: 800 !important;
}

#order-standard_cart.hg-modern-product-page .price,
#order-standard_cart.hg-modern-product-page .product-price,
#order-standard_cart.hg-modern-product-page .pricing {
    color: #0875df !important;
    font-weight: 800 !important;
}

/* Feature lists */

#order-standard_cart.hg-modern-product-page
ul:not(.dropdown-menu):not(.nav) {
    padding-left: 0;
    list-style: none;
}

#order-standard_cart.hg-modern-product-page
ul:not(.dropdown-menu):not(.nav) > li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 9px;
    color: #53637a;
    line-height: 1.55;
}

#order-standard_cart.hg-modern-product-page
ul:not(.dropdown-menu):not(.nav) > li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 2px;
    color: #16a080;
    font-family: "Font Awesome 5 Free";
    font-size: 12px;
    font-weight: 900;
}

/* Inputs and selectors */

#order-standard_cart.hg-modern-product-page .form-control,
#order-standard_cart.hg-modern-product-page select,
#order-standard_cart.hg-modern-product-page input[type="text"],
#order-standard_cart.hg-modern-product-page input[type="email"],
#order-standard_cart.hg-modern-product-page input[type="number"] {
    min-height: 50px !important;
    border: 1px solid #d3deeb !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #13284a !important;
    box-shadow: none !important;
}

#order-standard_cart.hg-modern-product-page .form-control:focus,
#order-standard_cart.hg-modern-product-page select:focus,
#order-standard_cart.hg-modern-product-page input:focus {
    border-color: #1684ff !important;
    box-shadow: 0 0 0 4px rgba(22, 132, 255, .10) !important;
}

/* Billing cycle and configurable option areas */

#order-standard_cart.hg-modern-product-page .product-billing-cycle,
#order-standard_cart.hg-modern-product-page .configurable-option,
#order-standard_cart.hg-modern-product-page .addon,
#order-standard_cart.hg-modern-product-page .domain-selection-options {
    margin-bottom: 16px !important;
    padding: 18px !important;
    border: 1px solid #dce5f1 !important;
    border-radius: 11px !important;
    background: #f9fbfe !important;
}

/* Buttons */

#order-standard_cart.hg-modern-product-page .btn-primary,
#order-standard_cart.hg-modern-product-page .btn-success,
#order-standard_cart.hg-modern-product-page .btn-add-to-cart,
#order-standard_cart.hg-modern-product-page
#btnCompleteProductConfig {
    min-height: 48px !important;
    padding: 12px 23px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: linear-gradient(
        135deg,
        #1688ff,
        #0870dc
    ) !important;
    color: #fff !important;
    font-weight: 800 !important;
    box-shadow: 0 9px 22px rgba(8, 112, 220, .22) !important;
}

#order-standard_cart.hg-modern-product-page .btn-primary:hover,
#order-standard_cart.hg-modern-product-page .btn-success:hover,
#order-standard_cart.hg-modern-product-page .btn-add-to-cart:hover,
#order-standard_cart.hg-modern-product-page
#btnCompleteProductConfig:hover {
    background: linear-gradient(
        135deg,
        #0876e7,
        #0558b2
    ) !important;
    transform: translateY(-1px);
}

#order-standard_cart.hg-modern-product-page .btn-default,
#order-standard_cart.hg-modern-product-page .btn-secondary {
    min-height: 46px !important;
    border: 1px solid #cedae9 !important;
    border-radius: 9px !important;
    background: #f6f9fd !important;
    color: #23466f !important;
    font-weight: 700 !important;
}

/* Domain selection stage */

#order-standard_cart.hg-modern-product-domain
.domain-selection-options {
    padding: 23px !important;
    border: 1px solid #dbe5f1 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(8, 34, 77, .065) !important;
}

#order-standard_cart.hg-modern-product-domain
.product-domain {
    border-radius: 9px !important;
}

/* Product recommendations */

#order-standard_cart.hg-modern-product-page
.product-recommendations-container {
    margin-top: 28px !important;
    padding: 22px !important;
    border: 1px solid #dce5f1 !important;
    border-radius: 14px !important;
    background: #f8fbff !important;
}

#order-standard_cart.hg-modern-product-page
.product-recommendation {
    border: 1px solid #dce5f1 !important;
    border-radius: 11px !important;
    background: #fff !important;
}

/* Alerts */

#order-standard_cart.hg-modern-product-page .alert {
    border: 0 !important;
    border-radius: 11px !important;
}

#order-standard_cart.hg-modern-product-page .alert-info {
    background: #edf6ff !important;
    color: #155187 !important;
}

#order-standard_cart.hg-modern-product-page .alert-danger {
    background: #fff0f2 !important;
    color: #a62d42 !important;
}

/* Order summary */

#order-standard_cart.hg-modern-product-page .order-summary,
#order-standard_cart.hg-modern-product-page
#orderSummary {
    border: 1px solid #dbe5f1 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 12px 35px rgba(8, 34, 77, .08) !important;
}

@media (max-width: 767px) {
    #order-standard_cart.hg-modern-product-page {
        margin-top: 17px !important;
    }

    #order-standard_cart.hg-modern-product-page
    .header-lined h1 {
        font-size: 31px !important;
    }

    #order-standard_cart.hg-modern-product-page
    .panel-body,
    #order-standard_cart.hg-modern-product-page
    .card-body {
        padding: 19px !important;
    }

    #order-standard_cart.hg-modern-product-page
    .btn-primary,
    #order-standard_cart.hg-modern-product-page
    .btn-success,
    #order-standard_cart.hg-modern-product-page
    .btn-add-to-cart,
    #order-standard_cart.hg-modern-product-page
    #btnCompleteProductConfig {
        width: 100% !important;
    }
}

/* =========================================================
   HOSTGENNIE DASHBOARD PANEL GRID FIX
   ========================================================= */

.client-home-cards .hg-dashboard-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
}

.client-home-cards .hg-dashboard-panel-grid-item {
    min-width: 0;
}

.client-home-cards .hg-dashboard-panel-grid-item > .card {
    width: 100%;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .client-home-cards .hg-dashboard-panel-grid {
        grid-template-columns: 1fr;
    }
}
