/**
 * Hoxta — pagini WHMCS / Nexus fără markup custom în .tpl
 * Acoperă client area, store, cont, tickete, SSL, upgrade, guest cu header Nexus.
 */

/* ----- Carduri, tabele, formulare (client area + guest) ----- */
body.hxo-themed .primary-content .card,
body.hxo-themed #main-body .card,
body.hxo-themed .store-template-content .card {
    background: rgba(11, 19, 36, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    color: var(--hx-text) !important;
}

body.hxo-themed .primary-content .card-header,
body.hxo-themed .primary-content .card-footer,
body.hxo-themed #main-body .card-header,
body.hxo-themed #main-body .card-footer {
    background: rgba(12, 24, 44, 0.55) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--hx-text) !important;
}

body.hxo-themed .primary-content .card-body,
body.hxo-themed #main-body .card-body {
    color: var(--hx-text) !important;
}

body.hxo-themed .primary-content .card-title,
body.hxo-themed .primary-content h1,
body.hxo-themed .primary-content h2,
body.hxo-themed .primary-content h3,
body.hxo-themed .primary-content h4,
body.hxo-themed .primary-content h5,
body.hxo-themed #main-body .header-lined h1,
body.hxo-themed #main-body h1,
body.hxo-themed #main-body h2,
body.hxo-themed #main-body h3 {
    color: var(--hx-text) !important;
}

body.hxo-themed .text-muted,
body.hxo-themed .text-light-muted {
    color: var(--hx-text-muted) !important;
}

body.hxo-themed .primary-content .table,
body.hxo-themed #main-body .table {
    color: var(--hx-text) !important;
}

body.hxo-themed .primary-content .table thead th,
body.hxo-themed #main-body .table thead th {
    background: rgba(12, 24, 44, 0.65) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--hx-text-muted) !important;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.hxo-themed .primary-content .table td,
body.hxo-themed .primary-content .table th,
body.hxo-themed #main-body .table td,
body.hxo-themed #main-body .table th {
    border-color: rgba(255, 255, 255, 0.07) !important;
    vertical-align: middle;
}

body.hxo-themed .primary-content .table-striped tbody tr:nth-of-type(odd),
body.hxo-themed #main-body .table-striped tbody tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.02) !important;
}

body.hxo-themed .primary-content .table-hover tbody tr:hover,
body.hxo-themed #main-body .table-hover tbody tr:hover {
    background: rgba(25, 195, 255, 0.06) !important;
}

body.hxo-themed .primary-content .form-control,
body.hxo-themed .primary-content .custom-select,
body.hxo-themed #main-body .form-control,
body.hxo-themed #main-body .custom-select,
body.hxo-themed .store-template-content .form-control {
    background: rgba(16, 26, 46, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    color: var(--hx-text) !important;
}

body.hxo-themed .primary-content .form-control:focus,
body.hxo-themed #main-body .form-control:focus {
    border-color: rgba(25, 195, 255, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(25, 195, 255, 0.12) !important;
}

body.hxo-themed .primary-content label,
body.hxo-themed #main-body label {
    color: var(--hx-text-muted) !important;
}

body.hxo-themed .primary-content .alert,
body.hxo-themed #main-body .alert {
    border-radius: 10px !important;
    border-width: 1px !important;
}

body.hxo-themed .primary-content .alert-info,
body.hxo-themed #main-body .alert-info {
    background: rgba(25, 195, 255, 0.1) !important;
    border-color: rgba(25, 195, 255, 0.25) !important;
    color: #b9efff !important;
}

body.hxo-themed .primary-content .alert-warning,
body.hxo-themed #main-body .alert-warning {
    background: rgba(234, 179, 8, 0.1) !important;
    border-color: rgba(234, 179, 8, 0.28) !important;
    color: #fde68a !important;
}

body.hxo-themed .primary-content .alert-danger,
body.hxo-themed #main-body .alert-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.28) !important;
    color: #fca5a5 !important;
}

body.hxo-themed .primary-content .alert-success,
body.hxo-themed #main-body .alert-success {
    background: rgba(34, 197, 94, 0.1) !important;
    border-color: rgba(34, 197, 94, 0.28) !important;
    color: #86efac !important;
}

body.hxo-themed .primary-content .list-group-item,
body.hxo-themed #main-body .list-group-item {
    background: rgba(11, 22, 41, 0.72) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--hx-text) !important;
}

body.hxo-themed .primary-content .list-group-item.active,
body.hxo-themed #main-body .list-group-item.active {
    background: rgba(25, 195, 255, 0.14) !important;
    border-color: rgba(25, 195, 255, 0.35) !important;
    color: var(--hx-primary) !important;
}

body.hxo-themed .primary-content .nav-tabs,
body.hxo-themed #main-body .nav-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.hxo-themed .primary-content .nav-tabs .nav-link,
body.hxo-themed #main-body .nav-tabs .nav-link {
    color: var(--hx-text-muted) !important;
    border-color: transparent !important;
}

body.hxo-themed .primary-content .nav-tabs .nav-link.active,
body.hxo-themed #main-body .nav-tabs .nav-link.active {
    background: rgba(25, 195, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.1) rgba(255, 255, 255, 0.1) transparent !important;
    color: var(--hx-primary) !important;
}

body.hxo-themed .primary-content .breadcrumb,
body.hxo-themed .master-breadcrumb {
    background: transparent !important;
}

body.hxo-themed .primary-content .breadcrumb-item,
body.hxo-themed .primary-content .breadcrumb-item a {
    color: var(--hx-text-muted) !important;
}

body.hxo-themed .primary-content .breadcrumb-item.active {
    color: var(--hx-text) !important;
}

body.hxo-themed .primary-content .panel,
body.hxo-themed #main-body .panel {
    background: rgba(11, 19, 36, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
}

body.hxo-themed .primary-content .panel-heading,
body.hxo-themed #main-body .panel-heading {
    background: rgba(12, 24, 44, 0.55) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--hx-text) !important;
}

body.hxo-themed .primary-content .panel-body,
body.hxo-themed #main-body .panel-body {
    color: var(--hx-text) !important;
}

body.hxo-themed .primary-content .sub-heading span,
body.hxo-themed #main-body .sub-heading span,
body.hxo-themed #order-standard_cart .sub-heading span {
    background: rgba(25, 195, 255, 0.12) !important;
    color: var(--hx-text) !important;
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
}

/* Ticket — alege departament */
body.hxo-themed.page-supportticketsubmit .card a.h5,
body.hxo-themed.page-supportticketsubmit .card a {
    color: var(--hx-primary) !important;
    font-weight: 600;
}

body.hxo-themed.page-supportticketsubmit .card a:hover {
    color: var(--hx-primary-hover) !important;
}

/* Store MarketConnect */
body.hxo-themed .store-template-content,
body.hxo-themed #main-body .store-landing-page,
body.hxo-themed .mc-promo-login,
body.hxo-themed .mc-promo-manage {
    color: var(--hx-text) !important;
}

body.hxo-themed .store-template-content .btn,
body.hxo-themed .mc-promo-login .btn {
    border-radius: 10px !important;
}

/* OAuth / payment — formulare simple */
body.hxo-themed.oauth-page .card,
body.hxo-themed .payment-form-container .card {
    background: rgba(11, 19, 36, 0.78) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* DataTables / pagination Nexus */
body.hxo-themed .dataTables_wrapper .dataTables_info,
body.hxo-themed .dataTables_wrapper .dataTables_length label,
body.hxo-themed .dataTables_wrapper .dataTables_filter label {
    color: var(--hx-text-muted) !important;
}

body.hxo-themed .pagination .page-link {
    background: rgba(16, 26, 46, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--hx-text-muted) !important;
}

body.hxo-themed .pagination .page-item.active .page-link {
    background: rgba(25, 195, 255, 0.2) !important;
    border-color: rgba(25, 195, 255, 0.4) !important;
    color: var(--hx-primary) !important;
}

/* Modals WHMCS */
body.hxo-themed .modal-content {
    background: rgba(8, 14, 26, 0.98) !important;
    border: 1px solid rgba(30, 45, 71, 0.9) !important;
    color: var(--hx-text) !important;
}

body.hxo-themed .modal-header,
body.hxo-themed .modal-footer {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.hxo-themed .close,
body.hxo-themed .modal-header .close {
    color: var(--hx-text-muted) !important;
    text-shadow: none;
    opacity: 0.85;
}

/* ----- Order cart — pagini legacy (addons, confdomains, renewals…) ----- */
#order-standard_cart.hxo-legacy-order {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

#order-standard_cart.hxo-legacy-order .cart-sidebar,
#order-standard_cart.hxo-legacy-order .sidebar-collapsed {
    display: none !important;
}

#order-standard_cart.hxo-legacy-order > .row,
#order-standard_cart.hxo-legacy-order .row:first-child {
    display: block !important;
    margin: 0 !important;
}

#order-standard_cart.hxo-legacy-order .cart-body {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
}

#order-standard_cart.hxo-legacy-order .hxo-order-wrap.hxo-step-legacy {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 0 1.25rem;
}

#order-standard_cart.hxo-legacy-order .header-lined,
#order-standard_cart.hxo-legacy-order .header-lined h1 {
    margin-bottom: 1.25rem;
    color: var(--hx-text, #ecf9ff) !important;
    font-weight: 800;
}

#order-standard_cart.hxo-legacy-order .font-size-36 {
    font-size: 1.75rem !important;
}

#order-standard_cart.hxo-legacy-order .products .product {
    background: rgba(11, 22, 41, 0.82) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: var(--hx-text, #e8eef5) !important;
}

#order-standard_cart.hxo-legacy-order .products .product header {
    background: rgba(25, 195, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--hx-text) !important;
}

#order-standard_cart.hxo-legacy-order .domain-renewal,
#order-standard_cart.hxo-legacy-order .service-renewal {
    background: rgba(11, 22, 41, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    margin-bottom: 0.75rem;
}

#order-standard_cart.hxo-legacy-order .form-control,
#order-standard_cart.hxo-legacy-order select.form-control {
    background: rgba(16, 26, 46, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--hx-text) !important;
    border-radius: 10px !important;
}

#order-standard_cart.hxo-legacy-order .alert {
    border-radius: 10px !important;
}

body.hxo-shell #order-standard_cart.hxo-legacy-order .hxo-order-wrap,
body.hxo-guest-order #order-standard_cart.hxo-legacy-order .hxo-order-wrap {
    padding-bottom: 1rem !important;
}
