/* Visual system from the NexoraHost mockups. Navbar stays fixed at the top. */

:root {
    --bg-deep: #070B14;
    --bg-card: #12182A;
    --border-color: #222B40;
    --text-primary: #F4F7FB;
    --text-secondary: #A8B3C7;
    --purple-old: #7C3AED;
    --border-purple: rgba(124, 58, 237, 0.45);
    --accent-orange: #A78BFA;
    --accent-orange-dark: #7C3AED;
    --nx-purple: #7C3AED;
    --nx-purple-2: #6D4AFF;
    --nx-line: #222B40;
    --nx-card: #12182A;
    --nx-bg: #070B14;
}

html,
body,
body.page-home,
.hw-main,
.page-main,
.hw-center-main {
    background: var(--nx-bg) !important;
    color: var(--text-primary) !important;
}

#topnav,
#topnav.nav-sticky,
#topnav.defaultscroll.scroll {
    position: fixed !important;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    background: rgba(7, 11, 20, 0.94) !important;
    border-bottom: 1px solid var(--nx-line) !important;
    box-shadow: none !important;
    backdrop-filter: blur(16px);
}

#topnav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7C3AED 35%, #C026D3 65%, transparent);
    pointer-events: none;
}

#topnav .navigation-menu.nav-light > li > a,
#topnav.nav-sticky .navigation-menu.nav-light > li > a,
#topnav .navigation-menu > li > a {
    color: #C5CDDC !important;
    font-weight: 600;
    background: transparent !important;
    white-space: nowrap;
}

#topnav .navigation-menu > li.active > a,
#topnav .navigation-menu > li:hover > a,
#topnav .navigation-menu > li > a:hover,
#topnav.nav-sticky .navigation-menu.nav-light > li.active > a,
#topnav.nav-sticky .navigation-menu.nav-light > li:hover > a {
    color: #ffffff !important;
    box-shadow: none;
}

#topnav .navigation-menu > li.active,
#topnav .navigation-menu > li:hover {
    box-shadow: inset 0 -2px 0 #7C3AED;
}

@media (min-width: 992px) {
    #topnav > .container {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        align-items: center !important;
        column-gap: 14px !important;
    }
    #topnav .logo {
        grid-column: 1;
        grid-row: 1;
        float: none !important;
        position: relative;
        z-index: 4;
        line-height: 1;
        margin: 0 !important;
    }
    #topnav .menu-extras {
        display: none !important;
    }
    #topnav #navigation {
        grid-column: 2;
        grid-row: 1;
        min-width: 0 !important;
        width: auto !important;
        display: block !important;
    }
    #topnav .buy-button {
        grid-column: 3;
        grid-row: 1;
        float: none !important;
        line-height: 1.2;
        padding: 0;
        margin: 0 !important;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    #topnav .navigation-menu {
        display: flex !important;
        justify-content: center;
        flex-wrap: nowrap;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    #topnav .navigation-menu > li {
        margin: 0 !important;
        flex: 0 1 auto;
        min-width: 0;
        float: none !important;
    }
    #topnav .navigation-menu > li > a {
        font-size: 13px;
        letter-spacing: 0;
        padding-left: 6px;
        padding-right: 6px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (min-width: 1400px) {
    #topnav .navigation-menu > li > a {
        font-size: 15px;
        letter-spacing: 0.3px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

#topnav .buy-button .btn-primary,
#topnav .btn-primary {
    background: linear-gradient(135deg, #7C3AED 0%, #6D4AFF 100%) !important;
    background-image: linear-gradient(135deg, #7C3AED 0%, #6D4AFF 100%) !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    box-shadow: none !important;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, #7C3AED 0%, #6D4AFF 100%) !important;
    background-image: linear-gradient(135deg, #7C3AED 0%, #6D4AFF 100%) !important;
    border: 0 !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(109, 74, 255, 0.28) !important;
}

.btn-outline-primary {
    color: #C4B5FD !important;
    border: 1px solid #3A2F66 !important;
    background: transparent !important;
    background-image: none !important;
    border-radius: 12px !important;
}

.btn-success,
.badge.text-bg-success,
.text-bg-success {
    background: #14532D !important;
    background-image: none !important;
    color: #86EFAC !important;
    border: 1px solid #166534 !important;
    border-radius: 999px;
}

.btn-warning {
    background: #92400E !important;
    background-image: none !important;
    color: #FDE68A !important;
    border: 1px solid #B45309 !important;
    border-radius: 12px !important;
}

.btn-danger {
    background: #991B1B !important;
    background-image: none !important;
    color: #FECACA !important;
    border: 1px solid #B91C1C !important;
    border-radius: 12px !important;
}

.btn-outline-danger {
    color: #FECACA !important;
    border: 1px solid #B91C1C !important;
    background: transparent !important;
    border-radius: 12px !important;
}

.card,
.modal-content,
.dropdown-menu,
.list-group-item,
.hw-icon-card {
    background: var(--nx-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--nx-line) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
}

.card-header,
.card .card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--nx-line) !important;
    color: #ffffff !important;
}

.hw-page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hw-page-title h2,
.hw-header-section h2,
h1, h2, h3, h4, h5 {
    color: #ffffff;
}

.hw-subtitle,
.hw-page-title p,
.text-muted {
    color: var(--text-secondary) !important;
}

.hw-header-section {
    background: transparent !important;
    border: 0 !important;
}

.hw-page-header {
    align-items: flex-start;
}

.nx-power {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-left: auto;
    width: auto;
    max-width: 100%;
}

.nx-power .btn,
.nx-power .btn-block {
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0.45rem 0.95rem !important;
    border-radius: 12px !important;
    font-weight: 700;
}

.nx-power .badge,
.product-detail-status {
    border-radius: 999px !important;
    padding: 0.45rem 0.8rem !important;
    font-weight: 700;
}

.hw-product-page-list {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    position: sticky;
    top: 96px;
}

.hw-product-page-list a,
.hw-product-page-list .list-group-item {
    background: transparent !important;
    color: #C5CDDC !important;
    border: 0 !important;
    border-radius: 12px !important;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.hw-product-page-list a.active,
.hw-product-page-list .list-group-item.active {
    background: linear-gradient(135deg, #7C3AED 0%, #6D4AFF 100%) !important;
    color: #ffffff !important;
}

.hw-product-page-list a:hover {
    background: rgba(124, 58, 237, 0.16) !important;
    color: #ffffff !important;
}

.form-control,
.form-select,
.custom-select {
    background: #0C1222 !important;
    color: #F4F7FB !important;
    border: 1px solid var(--nx-line) !important;
    border-radius: 12px !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #7C3AED !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25) !important;
}

label,
.form-group label {
    color: #C5CDDC !important;
}

.bg-footer,
footer.footer {
    background: #070B14 !important;
    border-top: 1px solid var(--nx-line) !important;
}

footer.footer a,
footer.footer .text-foot {
    color: #A8B3C7 !important;
}

footer.footer a:hover {
    color: #ffffff !important;
}

table,
.table {
    color: var(--text-primary);
    --bs-table-bg: transparent;
    --bs-table-color: #F4F7FB;
}

.table thead th,
.card.card-table table thead tr th {
    color: #A8B3C7 !important;
    border-color: var(--nx-line) !important;
}

.progress {
    background: #1B2438 !important;
    border-radius: 999px;
}

.progress-bar {
    background: linear-gradient(90deg, #7C3AED, #C026D3) !important;
    background-image: linear-gradient(90deg, #7C3AED, #C026D3) !important;
}

body.page-account-login .hw-center-main,
body.page-account-register .hw-center-main,
body.page-account-forgot-password .hw-center-main {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body.page-account-login .card-wrapper,
body.page-account-register .card-wrapper,
body.page-account-forgot-password .card-wrapper {
    width: min(440px, calc(100% - 2rem));
    margin: 0 auto;
}

body.page-account-login .card,
body.page-account-register .card,
body.page-account-forgot-password .card {
    background: #12182A !important;
    border: 1px solid #2A3348 !important;
    border-radius: 20px !important;
    box-shadow: 0 0 80px rgba(124, 58, 237, 0.18) !important;
}

.hw-back-btn {
    color: #C5CDDC !important;
    background: #12182A !important;
    border: 1px solid var(--nx-line) !important;
    border-radius: 10px;
}

a {
    color: #C4B5FD;
}

a:hover {
    color: #ffffff;
}

.alert {
    background: #12182A !important;
    color: #F4F7FB !important;
    border: 1px solid var(--nx-line) !important;
    border-radius: 14px !important;
}

.is--account-page .hw-page-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.2rem;
}

.is--account-page .hw-page-header > .hw-page-title {
    flex: 1;
    min-width: 0;
}

.is--account-page .badge {
    border-radius: 999px !important;
    font-weight: 700;
    padding: 0.4rem 0.7rem !important;
}

.is--account-page .card.card-table .table thead th {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
    font-weight: 700;
    background: transparent !important;
}

.is--account-page .table td,
.is--account-page .table th {
    border-color: #222B40 !important;
    vertical-align: middle;
}

.hw-product-card .card-header,
.hw-product-card .card-footer {
    background: transparent !important;
    border-color: #222B40 !important;
}

.card.services,
.card.bg-light {
    background: #12182A !important;
    color: #F4F7FB !important;
}

.nx-product-list > .card.card-table {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.nx-product-list .card.card-table table,
.nx-product-list .card.card-table tbody {
    display: block;
    width: 100%;
}

.nx-product-list .card.card-table thead {
    display: none;
}

.nx-product-list .card.card-table tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1.25rem;
    background: #12182A;
    border: 1px solid #222B40;
    border-radius: 16px;
    padding: 1rem 1.2rem;
    margin: 0 0 0.75rem;
}

.nx-product-list .card.card-table td {
    display: block;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    color: #F4F7FB;
}

.nx-product-list .card.card-table td:nth-child(1) {
    order: 1;
    width: 4.5rem;
    color: #C4B5FD;
    font-weight: 700;
}

.nx-product-list .card.card-table td:nth-child(3) { order: 2; flex: 1 1 220px; min-width: 0; }
.nx-product-list .card.card-table td:nth-child(2) { order: 3; }
.nx-product-list .card.card-table td:nth-child(4) { order: 4; color: #A8B3C7; font-size: 0.92rem; text-align: right; }
.nx-product-list .card.card-table td:nth-child(5) { order: 5; }

.nx-product-list .btn-primary {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #C4B5FD !important;
    padding: 0.2rem 0 !important;
}

.nx-product-list .btn-primary:hover {
    color: #ffffff !important;
}

.module-content > .card:has(.hw-summary-wrapper) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.module-content > .card:has(.hw-summary-wrapper) > .card-body {
    padding: 0;
}

.hw-summary-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.hw-summary-wrapper article {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    grid-template-columns: none !important;
    background: #12182A;
    border: 1px solid #222B40;
    border-radius: 16px;
    padding: 1rem 1.1rem;
    margin: 0;
    min-width: 0;
}

.hw-summary-wrapper article label {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: normal !important;
    word-break: normal !important;
    color: #A8B3C7 !important;
}

.hw-summary-wrapper article strong {
    color: #ffffff;
    font-size: 1.05rem;
}

.hw-summary-wrapper article small {
    display: block;
    color: #A8B3C7;
}

@media (max-width: 900px) {
    .hw-summary-wrapper {
        grid-template-columns: 1fr;
    }

    .nx-product-list .card.card-table tr {
        align-items: flex-start;
    }

    .nx-product-list .card.card-table td:nth-child(3) {
        flex-basis: 100%;
    }
}

@media (min-width: 1200px) {
    body.page-account-product-view-detail .hw-main {
        display: block !important;
        position: relative;
        max-width: 1240px;
        margin: 120px auto 0 !important;
        padding: 1.25rem 1.25rem 2.5rem calc(1.25rem + 250px + 1.75rem);
    }

    body.page-account-product-view-detail .hw-header-section,
    body.page-account-product-view-detail .hw-content-section,
    body.page-account-product-view-detail .hw-header-section > .hw-container,
    body.page-account-product-view-detail .hw-content-section > .hw-container,
    body.page-account-product-view-detail .hw-content-section > .hw-container > .row {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.page-account-product-view-detail .hw-page-header {
        display: flex !important;
        align-items: center;
        width: 100% !important;
        margin: 0 0 1.25rem !important;
    }

    body.page-account-product-view-detail .hw-page-header > .hw-page-title {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0;
    }

    body.page-account-product-view-detail .hw-page-header > div:last-child,
    body.page-account-product-view-detail .nx-power {
        margin-left: auto !important;
        flex: 0 0 auto !important;
        width: auto !important;
        justify-content: flex-end !important;
    }

    body.page-account-product-view-detail .hw-main > .hw-container {
        display: none !important;
    }

    body.page-account-product-view-detail .hw-main:has(.hw-alerting-wrapper .alert) > .hw-container {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 1rem !important;
        padding: 0 !important;
    }

    body.page-account-product-view-detail .col-xl-3 {
        position: absolute !important;
        left: 1.25rem;
        top: 1.25rem;
        width: 250px !important;
        max-width: 250px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.page-account-product-view-detail .col-xl-9 {
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.page-account-product-view-detail .hw-page-title h2 {
        font-size: 1.35rem;
        line-height: 1.3;
    }
}

body.page-account-product-view-detail .col-xl-3 > a.btn {
    display: flex !important;
    width: 100% !important;
    margin: 0.15rem 0 !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #C5CDDC !important;
    border-radius: 12px !important;
    justify-content: flex-start;
    font-weight: 600;
    padding: 0.65rem 0.85rem !important;
}

body.page-account-product-view-detail .col-xl-3 > a.btn:hover {
    background: rgba(124, 58, 237, 0.16) !important;
    color: #ffffff !important;
}

#topnav {
    min-height: 72px;
}

#topnav .logo img,
#topnav a.logo img,
#topnav .navbar-brand img {
    height: 34px;
    width: auto;
}

#topnav a[href*="checkout/cart"] {
    background: #12182A !important;
    background-image: none !important;
    border: 1px solid #2A3348 !important;
    box-shadow: none !important;
    color: #ffffff !important;
    border-radius: 999px !important;
}

.hw-product-page-list a {
    display: flex !important;
    align-items: center;
    gap: 0.55rem;
    min-height: 42px;
    padding: 0.65rem 0.85rem !important;
}

.module-content > .row.mb-4 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0 0 0.85rem !important;
}

.module-content > .row.mb-4 > [class*="col"] {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
}

.hw-stats-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    grid-template-rows: auto 1fr;
    align-items: center;
    gap: 0.35rem 0.75rem;
    min-height: 148px;
    margin: 0 !important;
    padding: 1rem 1.05rem 0.9rem;
    background: #12182A !important;
    border: 1px solid #222B40 !important;
    border-radius: 16px !important;
    position: relative;
}

.hw-stats-card .card-header,
.hw-stats-card .card-body,
.hw-stats-card .hw-stats-info {
    display: contents;
}

.hw-stats-card .card-header h5 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #A8B3C7 !important;
}

.hw-stats-card .card-header h5 i {
    display: none;
}

.hw-stats-card [id$="-info-left"] {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 750;
    line-height: 1.2;
}

.hw-stats-card:not(:has(#stats-disk-progress)) .progress {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    width: 86px;
    height: 86px !important;
    margin: 0;
    border-radius: 50% !important;
    background: conic-gradient(#7C3AED calc(var(--nx-pct, 0) * 1%), #243049 0) !important;
    position: relative;
    overflow: visible;
}

.hw-stats-card:not(:has(#stats-disk-progress)) .progress::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: #12182A;
}

.hw-stats-card:not(:has(#stats-disk-progress)) .progress-bar {
    opacity: 0 !important;
}

.hw-stats-card:not(:has(#stats-disk-progress)) [id$="-info-right"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0);
}

.nx-ring-label {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 750;
}

.hw-stats-card:has(#stats-disk-progress) {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
}

.hw-stats-card:has(#stats-disk-progress) .progress {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    height: 8px !important;
    margin-top: 0.35rem;
    border-radius: 999px !important;
    background: #1B2438 !important;
    overflow: hidden;
}

.hw-stats-card:has(#stats-disk-progress) .progress-bar {
    opacity: 1 !important;
    height: 100% !important;
    border-radius: 999px;
    background: linear-gradient(90deg, #7C3AED, #C026D3) !important;
}

.hw-stats-card:has(#stats-disk-progress) [id$="-info-right"] {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    color: #C4B5FD;
    font-weight: 750;
}

.module-content:has(.hw-stats-card) .hw-summary-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #12182A;
    border: 1px solid #222B40;
    border-radius: 16px;
    overflow: hidden;
}

.module-content:has(.hw-stats-card) .hw-summary-wrapper article {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 1rem;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #222B40;
    border-radius: 0;
    padding: 0.85rem 1.1rem;
}

.module-content:has(.hw-stats-card) .hw-summary-wrapper article label {
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
}

.module-content:has(.hw-stats-card) .hw-summary-wrapper article strong {
    text-align: right;
    font-size: 0.98rem;
}

.module-content:not(:has(.hw-stats-card)) .hw-summary-wrapper article:nth-child(-n+3) {
    min-height: 132px;
    justify-content: space-between;
}

.module-content:not(:has(.hw-stats-card)) .hw-summary-wrapper article:nth-child(-n+3) strong {
    font-size: 1.45rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.module-content:not(:has(.hw-stats-card)) .hw-summary-wrapper article:nth-child(n+4) {
    grid-column: 1 / -1;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 1rem;
}

.module-content:not(:has(.hw-stats-card)) .hw-summary-wrapper article:nth-child(n+4) label {
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
}

.hw-product-card {
    display: flex;
    flex-direction: column;
    height: calc(100% - 1.5rem);
    background: #12182A !important;
    border: 1px solid #222B40 !important;
    border-radius: 18px !important;
    overflow: hidden;
}

.hw-product-card .card-body {
    flex: 1;
    color: #C5CDDC;
}

.hw-product-card .card-footer h5,
.hw-product-card .card-footer h4 {
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 750;
}

.hw-product-card .card-footer .btn {
    width: 100%;
    border-radius: 12px !important;
}

body.page-account-login,
body.page-account-register,
body.page-account-forgot-password {
    background:
        radial-gradient(ellipse at center, rgba(124, 58, 237, 0.28), transparent 58%),
        #070B14 !important;
}

.nx-btn.nx-btn-p,
a.nx-btn-p {
    background: linear-gradient(135deg, #7C3AED 0%, #6D4AFF 100%) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 12px !important;
}

@media (max-width: 991px) {
    .module-content > .row.mb-4,
    .module-content:has(.hw-stats-card) .hw-summary-wrapper {
        grid-template-columns: 1fr;
    }
}
