/* *****************************************************

    ** Custom Stylesheet **

    Any custom styling you want to apply should be
    defined here.

***************************************************** */

/* Custom CSS for Nexus Cart
 *
 * This block allows you to customize theme colors and styles for the entire Nexus Cart template.
 *
 * To customize colors:
 * - Replace the var() references with your own hex colors or other CSS values.
 * - For example, instead of --primary: #4b5563; use --primary: #your-color;
 * - You can also override any CSS properties here.
 */

html {
    font-size: 14px;
}

:root {
    --white: #fff;

    /* Neutral shades */
    --neutral-50: #fbf9fa;
    --neutral-100: #f4f5f7;
    --neutral-200: #e4e4e7;
    --neutral-300: #d0d5dd;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    --neutral-950: #030712;

    /* Neutral shades */
    /* define own pallet with brand colors */
    --primary-50: var(--neutral-50);
    --primary-100: var(--neutral-100);
    --primary-200: var(--neutral-200);
    --primary-300: var(--neutral-300);
    --primary-400: var(--neutral-400);
    --primary-500: var(--neutral-500);
    --primary-600: var(--neutral-600);
    --primary-700: var(--neutral-700);
    --primary-800: var(--neutral-800);
    --primary-900: var(--neutral-900);
    --primary-950: var(--neutral-900);

    /* Primary colors */
    /* Use shades from comments if `primary` colors use other colors, then neutral */
    --primary: var(--neutral-900);          /* var(--primary-600) */
    --primary-lifted: var(--neutral-800);   /* var(--primary-700) */
    --primary-accented: var(--neutral-700); /* var(--primary-800) */

    /* Secondary colors */
    --secondary: var(--neutral-500);
    --secondary-lifted: var(--neutral-600);
    --secondary-accented: var(--neutral-700);

    /* Success colors */
    --success: #00a63e;
    --success-lifted: #008236;
    --success-accented: #016630;

    /* Info colors */
    --info: #155dfc;
    --info-lifted: #1447e6;
    --info-accented: #193cb8;

    /* Notice colors */
    --notice: #7f22fe;
    --notice-lifted: #7008e7;
    --notice-accented: #5d0ec0;

    /* Warning colors */
    --warning: #f54a00;
    --warning-lifted: #ca3500;
    --warning-accented: #9f2d00;

    /* Error colors */
    --error: #e7000b;
    --error-lifted: #c10007;
    --error-accented: #9f0712;

    /* Grayscale colors */
    --grayscale: var(--neutral-900);
    --grayscale-lifted: var(--neutral-800);
    --grayscale-accented: var(--neutral-700);

    /* Neutral colors */
    --neutral: var(--neutral-500);
    --neutral-lifted: var(--neutral-600);
    --neutral-accented: var(--neutral-700);

    /* Text neutral colors */
    --text-inverted: var(--white);
    --text-muted: var(--neutral-400);
    --text-lifted: var(--neutral-500);
    --text-accented: var(--neutral-600);
    --text: var(--neutral-900);

    /* Border neutral colors */
    --border-muted: var(--neutral-200);
    --border: var(--neutral-300);
    --border-lifted: var(--neutral-400);
    --border-accented: var(--neutral-600);

    /* Background neutral colors */
    --bg: var(--white);
    --bg-muted: var(--neutral-50);
    --bg-lifted: var(--neutral-100);
    --bg-accented: var(--neutral-200);
    --bg-inverted: var(--neutral-900);

    /* Additional colors */
    --yellow-200: #fff085;
    --yellow-300: #ffdf20;
    --teal-300: #46edd5;
    --teal-400: #00d5be;
    --emerald-300: #5ee9b5;
    --pink-400: #fb64b6;

    /* Additional custom properties */
    /* Font sizes */
    --text-xs: 0.625rem;
    --text-sm: 0.75rem;
    --text-md: 0.875rem;
    --text-lg: 1rem;

    /* Spacing */
    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;

    /* Rounding */
    --rounding-sm: 0.25rem;
    --rounding-md: 0.5rem;
    --rounding-lg: 0.75rem;

    /* Other */
    --letter-spacing: 0em;
    --disabled-opacity: 25%;
}

/* =====================================================
   Modern Glassmorphism Refresh (WHMCS Twenty-One)
   - Applies across client dashboard and public pages
   - Prioritizes readable text contrast and form clarity
===================================================== */

:root {
    --gm-ink-950: #0b1220;
    --gm-ink-900: #0f172a;
    --gm-ink-800: #1e293b;
    --gm-ink-700: #334155;
    --gm-ink-600: #475569;
    --gm-ink-500: #64748b;
    --gm-surface: rgba(255, 255, 255, 0.74);
    --gm-surface-strong: rgba(255, 255, 255, 0.88);
    --gm-surface-soft: rgba(248, 250, 252, 0.66);
    --gm-border: rgba(255, 255, 255, 0.58);
    --gm-border-strong: rgba(148, 163, 184, 0.28);
    --gm-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --gm-shadow-hover: 0 22px 55px rgba(15, 23, 42, 0.14);
    --gm-radius: 18px;
    --gm-radius-sm: 12px;
    --gm-focus: rgba(59, 130, 246, 0.24);
    --gm-primary: #2563eb;
    --gm-primary-2: #0ea5e9;
}

body.primary-bg-color {
    position: relative;
    min-height: 100vh;
    color: var(--gm-ink-800);
    background:
        radial-gradient(circle at 8% 10%, rgba(14, 165, 233, 0.16) 0, rgba(14, 165, 233, 0) 38%),
        radial-gradient(circle at 92% 14%, rgba(37, 99, 235, 0.16) 0, rgba(37, 99, 235, 0) 42%),
        radial-gradient(circle at 22% 85%, rgba(16, 185, 129, 0.10) 0, rgba(16, 185, 129, 0) 36%),
        linear-gradient(180deg, #f8fbff 0%, #f4f7fc 48%, #edf2fa 100%);
}

body.primary-bg-color::before,
body.primary-bg-color::after {
    content: "";
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(12px);
    opacity: 0.75;
}

body.primary-bg-color::before {
    top: -8rem;
    right: -6rem;
    width: 22rem;
    height: 22rem;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0) 70%);
}

body.primary-bg-color::after {
    bottom: -8rem;
    left: -7rem;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.14) 0%, rgba(45, 212, 191, 0) 70%);
}

#header,
#main-body,
#footer,
.home-domain-search {
    position: relative;
    z-index: 1;
}

body.primary-bg-color h1,
body.primary-bg-color h2,
body.primary-bg-color h3,
body.primary-bg-color h4,
body.primary-bg-color h5,
body.primary-bg-color h6,
body.primary-bg-color .h1,
body.primary-bg-color .h2,
body.primary-bg-color .h3,
body.primary-bg-color .h4,
body.primary-bg-color .h5,
body.primary-bg-color .h6,
body.primary-bg-color .page-title {
    color: var(--gm-ink-950);
}

body.primary-bg-color a {
    color: #1d4ed8;
}

body.primary-bg-color a:hover {
    color: #1e40af;
    text-decoration: none;
}

body.primary-bg-color .text-muted,
body.primary-bg-color small,
body.primary-bg-color .small,
body.primary-bg-color .help-block {
    color: var(--gm-ink-500) !important;
}

#main-body {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}

/* Glass surfaces */
#header .topbar .container,
#header .navbar .container,
#header .main-navbar-wrapper .container,
.master-breadcrumb .container,
#footer .container,
.home-domain-search > .container > .p-5,
.card,
.panel,
.modal-content,
.popover,
.dropdown-menu {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.68) 100%);
    border: 1px solid var(--gm-border);
    box-shadow: var(--gm-shadow);
    border-radius: var(--gm-radius);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
}

.panel,
.modal-content,
.popover,
.dropdown-menu {
    border-color: var(--gm-border-strong);
}

#header .topbar,
#header .navbar,
.master-breadcrumb,
#footer {
    background: transparent;
}

#header {
    padding-top: 0.75rem;
}

#header .topbar .container,
#header .navbar .container,
#header .main-navbar-wrapper .container {
    margin-bottom: 0.75rem;
}

#header .topbar .container {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

#header .navbar .container,
#header .main-navbar-wrapper .container {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

#header .navbar-brand {
    color: var(--gm-ink-900);
    font-weight: 700;
}

#header .navbar-brand .logo-img {
    filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.10));
}

#header .navbar .nav-link,
#header .topbar .btn,
#header .btn-active-client {
    color: var(--gm-ink-800);
    border-radius: 12px;
}

#header .navbar .nav-link:hover,
#header .topbar .btn:hover,
#header .btn-active-client:hover {
    background: rgba(255, 255, 255, 0.42);
}

#header .navbar-nav .dropdown-menu {
    margin-top: 0.6rem;
}

#header .active-client .input-group-text {
    background: rgba(255, 255, 255, 0.58);
}

#header .search .input-group-prepend .btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#header .search .input-group-append .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#mainNavbar .navbar-nav .nav-link {
    margin: 0.12rem 0.15rem;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
}

#mainNavbar .navbar-nav .nav-item.show > .nav-link,
#mainNavbar .navbar-nav .nav-link:hover,
#mainNavbar .navbar-nav .nav-link:focus {
    background: rgba(255, 255, 255, 0.44);
}

.master-breadcrumb {
    margin-top: 0.1rem;
    margin-bottom: 0.85rem;
}

.master-breadcrumb .container {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.master-breadcrumb .breadcrumb {
    margin: 0;
    background: transparent;
}

.master-breadcrumb .breadcrumb-item,
.master-breadcrumb .breadcrumb-item a {
    color: var(--gm-ink-600);
}

.master-breadcrumb .breadcrumb-item.active {
    color: var(--gm-ink-900);
    font-weight: 600;
}

/* Dashboard tiles */
.tiles .tile {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--gm-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.64) 100%);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    -webkit-backdrop-filter: blur(14px) saturate(145%);
    backdrop-filter: blur(14px) saturate(145%);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.tiles .tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.tiles .tile i {
    color: var(--gm-primary);
    background: rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 12px;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tiles .tile .stat {
    color: var(--gm-ink-950);
    font-weight: 700;
}

.tiles .tile .title {
    color: var(--gm-ink-600);
}

.tiles .tile .highlight {
    opacity: 0.85;
    filter: saturate(115%);
}

/* Card system */
.card,
.panel {
    margin-bottom: 1rem;
}

.card-header,
.card-footer,
.panel-heading,
.panel-footer {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.20);
}

.card-title,
.panel-title {
    color: var(--gm-ink-950);
}

.card .badge:not([class*="badge-"]),
.list-group-item .badge:not([class*="badge-"]) {
    background: rgba(37, 99, 235, 0.10);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.14);
    font-weight: 600;
}

.card .list-group-item,
.panel .list-group-item,
.list-group-item {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.16);
    color: var(--gm-ink-700);
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    background: rgba(255, 255, 255, 0.48);
    color: var(--gm-ink-900);
}

.list-group-item.active,
.sidebar .list-group-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(14, 165, 233, 0.10));
    border-color: rgba(59, 130, 246, 0.24);
    color: var(--gm-ink-950);
}

.sidebar .card,
.sidebar .card-sidebar {
    border-radius: 16px;
}

.sidebar .card-header {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.sidebar .list-group {
    padding: 0.35rem;
}

.sidebar .list-group-item {
    margin-bottom: 0.35rem;
    border-radius: 12px;
    border: 1px solid transparent;
}

.sidebar .list-group-item:last-child {
    margin-bottom: 0;
}

/* Home/public cards */
.card-columns.home .card,
.action-icon-btns > [class*="col-"] > a {
    border-radius: 18px;
    border: 1px solid var(--gm-border);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    -webkit-backdrop-filter: blur(14px) saturate(145%);
    backdrop-filter: blur(14px) saturate(145%);
}

.card-columns.home .card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.66) 100%);
}

.card-columns.home .card .card-title,
.card-columns.home .card p {
    color: var(--gm-ink-800);
}

.action-icon-btns > [class*="col-"] > a {
    position: relative;
    overflow: hidden;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.62) 100%);
    color: var(--gm-ink-900) !important;
    text-align: center;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.action-icon-btns > [class*="col-"] > a:hover {
    transform: translateY(-2px);
    box-shadow: var(--gm-shadow-hover);
}

.action-icon-btns > [class*="col-"] > a::before {
    content: "";
    position: absolute;
    inset: -35% auto auto -20%;
    width: 70%;
    height: 70%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.13) 0%, rgba(59, 130, 246, 0) 70%);
    pointer-events: none;
}

.action-icon-btns a .ico-container {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(148, 163, 184, 0.20);
    color: var(--gm-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.60);
}

.action-icon-btns a .ico-container i {
    color: inherit;
}

/* Domain search hero */
.home-domain-search {
    background: transparent !important;
}

.home-domain-search > .container > .p-5 {
    padding-top: 2.1rem !important;
    padding-bottom: 2.1rem !important;
}

.home-domain-search h2 {
    color: var(--gm-ink-950);
    margin-bottom: 1rem;
}

.home-domain-search .input-group-wrapper .input-group {
    border-radius: 16px;
}

.home-domain-search .tld-logos li {
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.home-domain-search .tld-logos li img {
    filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.10));
}

/* Forms and inputs */
.form-control,
.custom-select,
textarea.form-control,
select.form-control,
.input-group-text,
.selectize-input,
.selectize-control.single .selectize-input.input-active,
.bootstrap-select .dropdown-toggle,
.multiselect-native-select .btn {
    background: rgba(255, 255, 255, 0.78) !important;
    color: var(--gm-ink-900) !important;
    border: 1px solid rgba(148, 163, 184, 0.26) !important;
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.form-control::placeholder,
textarea::placeholder {
    color: var(--gm-ink-500);
    opacity: 1;
}

.form-control:focus,
.custom-select:focus,
textarea.form-control:focus,
select.form-control:focus,
.selectize-input.focus,
.bootstrap-select .dropdown-toggle:focus,
.multiselect-native-select .btn:focus,
.btn:focus,
.btn.focus {
    border-color: rgba(59, 130, 246, 0.36) !important;
    box-shadow:
        0 0 0 0.2rem var(--gm-focus),
        inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
    outline: 0;
}

.form-check-label,
.checkbox-inline,
.radio-inline {
    color: var(--gm-ink-700);
}

/* Buttons */
.btn {
    border-radius: 12px;
    font-weight: 600;
    box-shadow: none;
}

.btn-primary {
    color: #fff !important;
    border: 1px solid rgba(37, 99, 235, 0.18) !important;
    background: linear-gradient(135deg, var(--gm-primary) 0%, var(--gm-primary-2) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.20),
        0 10px 18px rgba(37, 99, 235, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    filter: saturate(1.05) brightness(0.98);
}

.btn-success {
    box-shadow: 0 10px 18px rgba(5, 150, 105, 0.16);
}

.btn-default,
.btn-outline-primary,
.btn-light {
    color: var(--gm-ink-800) !important;
    background: rgba(255, 255, 255, 0.70) !important;
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
}

.btn-default:hover,
.btn-outline-primary:hover,
.btn-light:hover {
    background: rgba(255, 255, 255, 0.84) !important;
    color: var(--gm-ink-950) !important;
}

/* Tables and data lists */
.table,
table.dataTable,
.dataTables_wrapper .listtable {
    color: var(--gm-ink-800);
}

.table,
table.dataTable,
.dataTables_wrapper .listtable table {
    background: transparent;
}

.table th,
.table td,
table.dataTable thead th,
table.dataTable tbody td {
    border-color: rgba(148, 163, 184, 0.16) !important;
}

.table thead th,
table.dataTable thead th {
    color: var(--gm-ink-700);
    background: rgba(248, 250, 252, 0.50);
    font-weight: 600;
}

.table tbody tr:hover,
table.dataTable tbody tr:hover {
    background: rgba(255, 255, 255, 0.42);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: rgba(255, 255, 255, 0.76) !important;
    color: var(--gm-ink-900) !important;
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
    border-radius: 10px;
}

.pagination > li > a,
.pagination > li > span,
.page-item .page-link {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(148, 163, 184, 0.20);
    color: var(--gm-ink-700);
    border-radius: 10px;
    margin: 0 0.15rem;
}

.page-item.active .page-link,
.pagination > .active > a,
.pagination > .active > span {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(14, 165, 233, 0.92));
    border-color: rgba(37, 99, 235, 0.28);
    color: #fff;
}

/* Alerts and notices */
.alert {
    border-radius: 14px;
    border-width: 1px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.alert-success {
    background: rgba(236, 253, 245, 0.82);
    color: #065f46;
    border-color: rgba(5, 150, 105, 0.16);
}

.alert-info {
    background: rgba(239, 246, 255, 0.82);
    color: #1e3a8a;
    border-color: rgba(59, 130, 246, 0.16);
}

.alert-warning {
    background: rgba(255, 251, 235, 0.82);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.16);
}

.alert-danger {
    background: rgba(254, 242, 242, 0.84);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.18);
}

/* Modals / dropdowns / popovers */
.modal-content .modal-header,
.modal-content .modal-footer {
    border-color: rgba(148, 163, 184, 0.18);
}

.modal-content .close,
.modal-localisation .close.text-light {
    color: var(--gm-ink-700);
    opacity: 0.85;
    text-shadow: none;
}

.dropdown-item {
    color: var(--gm-ink-700);
    border-radius: 10px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(255, 255, 255, 0.48);
    color: var(--gm-ink-900);
}

.popover {
    max-width: 360px;
}

.popover .popover-header {
    background: rgba(255, 255, 255, 0.55);
    color: var(--gm-ink-900);
    border-bottom-color: rgba(148, 163, 184, 0.18);
}

.popover .popover-body {
    color: var(--gm-ink-700);
}

/* Footer */
#footer {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}

#footer .container {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#footer .nav-link,
#footer .btn,
#footer .copyright {
    color: var(--gm-ink-700);
}

#footer .nav-link:hover,
#footer .btn:hover {
    color: var(--gm-ink-900);
    background: rgba(255, 255, 255, 0.40);
    border-radius: 10px;
}

/* Accessibility and motion */
@media (prefers-reduced-motion: reduce) {
    .tiles .tile,
    .action-icon-btns > [class*="col-"] > a {
        transition: none;
    }
}

@media (max-width: 1199.98px) {
    #mainNavbar {
        margin-top: 0.35rem;
        padding: 0.5rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.62);
        border: 1px solid rgba(148, 163, 184, 0.18);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    .action-icon-btns > [class*="col-"] > a {
        min-height: 120px;
    }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    #header .topbar .container,
    #header .navbar .container,
    #header .main-navbar-wrapper .container,
    .master-breadcrumb .container,
    #footer .container,
    .home-domain-search > .container > .p-5,
    .card,
    .panel,
    .modal-content,
    .popover,
    .dropdown-menu,
    .tiles .tile,
    .action-icon-btns > [class*="col-"] > a {
        background: rgba(255, 255, 255, 0.94);
    }
}
