/*
 * Rei Hosting Premium for WHMCS
 * Version 3.1.0 — child theme for Nexus / Twenty-One
 */

@font-face {
    font-family: "RH Open Sans";
    src: url("../../../assets/fonts/open-sans-family/open-sans-family-regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "RH Open Sans";
    src: url("../../../assets/fonts/open-sans-family/open-sans-family-600.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "RH Raleway";
    src: url("../../../assets/fonts/raleway-family/raleway-family-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --white: #ffffff;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    --neutral-950: #071126;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    --primary-950: #172554;
    --primary: #2563eb;
    --primary-lifted: #1d4ed8;
    --primary-accented: #1e40af;
    --secondary: #64748b;
    --secondary-lifted: #475569;
    --secondary-accented: #334155;
    --success: #0e9f6e;
    --success-lifted: #047857;
    --success-accented: #065f46;
    --info: #0284c7;
    --info-lifted: #0369a1;
    --info-accented: #075985;
    --notice: #7c3aed;
    --notice-lifted: #6d28d9;
    --notice-accented: #5b21b6;
    --warning: #d97706;
    --warning-lifted: #b45309;
    --warning-accented: #92400e;
    --error: #dc2626;
    --error-lifted: #b91c1c;
    --error-accented: #991b1b;
    --grayscale: #0f172a;
    --grayscale-lifted: #1e293b;
    --grayscale-accented: #334155;
    --neutral: #64748b;
    --neutral-lifted: #475569;
    --neutral-accented: #334155;
    --text-inverted: #ffffff;
    --text-muted: #94a3b8;
    --text-lifted: #64748b;
    --text-accented: #475569;
    --text: #0f172a;
    --border-muted: #e2e8f0;
    --border: #cbd5e1;
    --border-lifted: #94a3b8;
    --border-accented: #475569;
    --bg: #ffffff;
    --bg-muted: #f8fafc;
    --bg-lifted: #f1f5f9;
    --bg-accented: #e2e8f0;
    --bg-inverted: #071126;
    --yellow-200: #fde68a;
    --yellow-300: #fcd34d;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --emerald-300: #6ee7b7;
    --pink-400: #f472b6;
    --text-xs: 0.6875rem;
    --text-sm: 0.8125rem;
    --text-md: 0.9375rem;
    --text-lg: 1.0625rem;
    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;
    --rounding-sm: 0.375rem;
    --rounding-md: 0.75rem;
    --rounding-lg: 1rem;
    --letter-spacing: 0em;
    --disabled-opacity: 48%;
    --rh-navy-950: #050d1f;
    --rh-navy-900: #07142d;
    --rh-navy-800: #0b2146;
    --rh-blue-700: #1d4ed8;
    --rh-blue-600: #2563eb;
    --rh-blue-500: #3b82f6;
    --rh-cyan-400: #22d3ee;
    --rh-gold-500: #f4b63d;
    --rh-gold-400: #f8ca6a;
    --rh-ink: #111d35;
    --rh-muted: #61708a;
    --rh-border: #dce5f2;
    --rh-surface: #ffffff;
    --rh-canvas: #f4f7fb;
    --rh-radius-sm: 10px;
    --rh-radius: 16px;
    --rh-radius-lg: 24px;
    --rh-shadow-sm: 0 8px 24px rgba(15, 32, 67, 0.07);
    --rh-shadow: 0 18px 50px rgba(15, 32, 67, 0.12);
    --rh-shadow-blue: 0 16px 36px rgba(37, 99, 235, 0.24);
}

html {
    scroll-behavior: smooth;
}

body.rh-premium,
body {
    background: var(--rh-canvas);
    color: var(--rh-ink);
    font-family: "RH Open Sans", "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.navbar-brand {
    color: var(--rh-ink);
    font-family: "RH Raleway", "Segoe UI", sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
}

a {
    color: var(--rh-blue-600);
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

a:hover {
    color: var(--rh-blue-700);
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(34, 211, 238, 0.8) !important;
    outline-offset: 3px;
}

::selection {
    background: var(--rh-blue-600);
    color: #fff;
}

/* Header and primary navigation */

#header.header {
    position: relative;
    z-index: 1030;
    background: var(--rh-navy-900);
    border: 0;
    box-shadow: 0 8px 30px rgba(5, 13, 31, 0.16);
    transition: box-shadow 180ms ease;
}

#header.rh-header-scrolled {
    box-shadow: 0 12px 38px rgba(5, 13, 31, 0.28);
}

#header .topbar {
    background: var(--rh-navy-950);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#header .topbar .btn,
#header .topbar .input-group-text,
#header .topbar a,
#header .topbar span {
    color: #cbd8ef;
}

#header .topbar .input-group-text,
#header .topbar .btn {
    background: transparent;
    border-color: transparent;
}

#header .navbar-light {
    background: linear-gradient(115deg, var(--rh-navy-900), #0c2550 72%, #123366);
}

#header .navbar-brand {
    color: #fff;
    font-size: 1.35rem;
}

#header .navbar-brand:hover {
    color: var(--rh-gold-400);
}

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

#header .navbar-light .toolbar .nav-link,
#header .navbar-light .toolbar .btn {
    color: #eef5ff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

#header .navbar-light .toolbar .nav-link:hover,
#header .navbar-light .toolbar .btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

#header .search .form-control,
#header .search .btn {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.13);
    color: #fff;
}

#header .search .form-control::placeholder {
    color: #b7c5df;
}

#header .search .form-control:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(96, 165, 250, 0.75);
    box-shadow: none;
}

#header .main-navbar-wrapper {
    min-height: 52px;
    background: #fff;
    border: 0;
    box-shadow: inset 0 -1px 0 var(--rh-border);
}

#header .main-navbar-wrapper .nav-link {
    position: relative;
    padding: 0.9rem 0.85rem;
    color: #31415d;
    font-size: 0.88rem;
    font-weight: 600;
}

#header .main-navbar-wrapper .nav-link::after {
    position: absolute;
    right: 0.85rem;
    bottom: 6px;
    left: 0.85rem;
    height: 2px;
    border-radius: 999px;
    background: var(--rh-blue-600);
    content: "";
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity 180ms ease, transform 180ms ease;
}

#header .main-navbar-wrapper .nav-link:hover,
#header .main-navbar-wrapper .active > .nav-link {
    color: var(--rh-blue-700);
}

#header .main-navbar-wrapper .nav-link:hover::after,
#header .main-navbar-wrapper .active > .nav-link::after {
    opacity: 1;
    transform: scaleX(1);
}

#header .dropdown-menu {
    padding: 0.55rem;
    border: 1px solid var(--rh-border);
    border-radius: 12px;
    box-shadow: var(--rh-shadow);
}

#header .dropdown-item {
    border-radius: 8px;
    color: #33415b;
    font-size: 0.88rem;
}

#header .dropdown-item:hover,
#header .dropdown-item:focus,
#header .dropdown-item.active {
    background: #eef5ff;
    color: var(--rh-blue-700);
}

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

.master-breadcrumb .breadcrumb {
    margin: 0;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    background: transparent;
    color: var(--rh-muted);
    font-size: 0.82rem;
}

.master-breadcrumb .breadcrumb-item.active {
    color: #31415d;
}

/* Layout and shared components */

#main-body {
    min-height: 58vh;
    padding: 2.4rem 0 4.5rem;
    background:
        radial-gradient(circle at 90% 4%, rgba(59, 130, 246, 0.09), transparent 24rem),
        var(--rh-canvas);
}

.primary-content > h1:first-child,
.primary-content > .page-header:first-child h1 {
    margin-bottom: 1.35rem;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
}

.card,
.panel,
.well,
.list-group,
.logincontainer,
.domain-pricing .tld-pricing-header,
.domain-pricing .tld-row {
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius);
    background: var(--rh-surface);
    box-shadow: var(--rh-shadow-sm);
}

.card {
    overflow: hidden;
}

.card-header,
.panel-heading {
    padding: 1rem 1.2rem;
    background: linear-gradient(180deg, #fff, #fbfdff);
    border-bottom: 1px solid var(--rh-border);
}

.card-header .card-title,
.panel-heading .panel-title {
    color: var(--rh-ink);
    font-size: 1rem;
}

.card-body,
.panel-body {
    padding: 1.25rem;
}

.card-footer,
.panel-footer {
    padding: 0.85rem 1.2rem;
    background: #fbfdff;
    border-top: 1px solid var(--rh-border);
}

.btn {
    min-height: 40px;
    padding: 0.54rem 1rem;
    border-radius: 9px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.005em;
}

.btn-sm,
.btn-xs {
    min-height: 32px;
    padding: 0.32rem 0.65rem;
}

.btn-lg {
    min-height: 50px;
    padding: 0.78rem 1.35rem;
}

.btn-primary,
.bg-color-blue {
    color: #fff;
    background: linear-gradient(135deg, var(--rh-blue-500), var(--rh-blue-700));
    border-color: var(--rh-blue-600);
    box-shadow: 0 9px 20px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
    color: #fff;
    background: linear-gradient(135deg, var(--rh-blue-600), #153fb5);
    border-color: #1745c0;
    box-shadow: var(--rh-shadow-blue);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--rh-blue-700);
    border-color: #98b7f7;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #fff;
    background: var(--rh-blue-600);
    border-color: var(--rh-blue-600);
}

.btn-default,
.btn-secondary {
    color: #33415b;
    background: #fff;
    border-color: #cdd8e8;
}

.btn-default:hover,
.btn-secondary:hover {
    color: var(--rh-blue-700);
    background: #f3f7ff;
    border-color: #a8bce0;
}

.form-control,
.custom-select,
select.form-control {
    min-height: 44px;
    border: 1px solid #cbd7e7;
    border-radius: 9px;
    background-color: #fff;
    color: var(--rh-ink);
    font-size: 0.9rem;
}

.form-control:focus,
.custom-select:focus,
select.form-control:focus {
    border-color: var(--rh-blue-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.13);
}

label,
.col-form-label {
    color: #34425b;
    font-weight: 600;
}

.input-group-text {
    border-color: #cbd7e7;
    background: #f3f6fa;
    color: #4c5c76;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background: var(--rh-blue-600);
    border-color: var(--rh-blue-600);
}

.alert {
    padding: 1rem 1.1rem;
    border: 0;
    border-left: 4px solid currentColor;
    border-radius: 10px;
    box-shadow: var(--rh-shadow-sm);
}

.alert-info {
    background: #eaf5ff;
    color: #075985;
}

.alert-success {
    background: #e9fbf4;
    color: #047857;
}

.alert-warning {
    background: #fff7e3;
    color: #9a5b09;
}

.alert-danger {
    background: #fff0f1;
    color: #b42332;
}

.table {
    color: #31415c;
}

.table thead th {
    border-top: 0;
    border-bottom: 1px solid #ced9e9;
    background: #f4f7fb;
    color: #485975;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.table td,
.table th {
    padding: 0.9rem 0.85rem;
    border-color: #e7edf6;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: #f3f7ff;
}

.table-list,
.dataTables_wrapper {
    overflow: hidden;
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius);
    background: #fff;
    box-shadow: var(--rh-shadow-sm);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 0.8rem 1rem;
}

.pagination .page-link {
    margin: 0 2px;
    border-color: var(--rh-border);
    border-radius: 8px;
    color: #40506b;
}

.pagination .page-item.active .page-link {
    background: var(--rh-blue-600);
    border-color: var(--rh-blue-600);
}

.badge,
.label,
span.status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.25rem 0.58rem;
    border: 0;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.badge-success,
.label-success,
.status-active,
.status-paid,
.status-answered,
.status-completed {
    background: #dcf8ec !important;
    color: #087653 !important;
}

.badge-warning,
.label-warning,
.status-pending,
.status-unpaid,
.status-customer-reply {
    background: #fff2cf !important;
    color: #9a5b09 !important;
}

.badge-danger,
.label-danger,
.status-suspended,
.status-overdue,
.status-closed,
.status-fraud {
    background: #ffe5e7 !important;
    color: #ad2432 !important;
}

.badge-info,
.label-info,
.status-open,
.status-in-progress {
    background: #e3f2ff !important;
    color: #08669a !important;
}

.nav-tabs {
    border-bottom-color: #cfd9e7;
}

.nav-tabs .nav-link {
    border: 0;
    border-bottom: 3px solid transparent;
    color: #60708a;
    font-weight: 600;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    border-bottom-color: var(--rh-blue-600);
    background: transparent;
    color: var(--rh-blue-700);
}

.modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(4, 14, 34, 0.28);
}

.modal-header,
.modal-footer {
    border-color: var(--rh-border);
}

.popover {
    border-color: var(--rh-border);
    border-radius: 12px;
    box-shadow: var(--rh-shadow);
}

/* Sidebars */

.sidebar .card,
.sidebar .panel {
    margin-bottom: 1rem;
    border-radius: 14px;
}

.sidebar .card-header,
.sidebar .panel-heading {
    background: linear-gradient(135deg, var(--rh-navy-900), #102d5c);
    border: 0;
    color: #fff;
}

.sidebar .card-header .card-title,
.sidebar .panel-heading .panel-title,
.sidebar .card-header h3 {
    color: #fff;
}

.sidebar .list-group {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.sidebar .list-group-item {
    border-color: #edf1f7;
    color: #485873;
    font-size: 0.86rem;
}

.sidebar .list-group-item:hover,
.sidebar .list-group-item.active {
    background: #edf4ff;
    color: var(--rh-blue-700);
}

.sidebar .list-group-item.active::before {
    background: var(--rh-blue-600);
}

/* Public WHMCS homepage */

.rh-public-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    min-height: 540px;
    margin: -2.4rem calc(50% - 50vw) 0;
    padding: clamp(4.5rem, 8vw, 7.5rem) max(4vw, calc((100vw - 1140px) / 2));
    overflow: hidden;
    background:
        radial-gradient(circle at 77% 25%, rgba(37, 99, 235, 0.55), transparent 28rem),
        linear-gradient(125deg, var(--rh-navy-950), var(--rh-navy-900) 48%, #0e2a5a);
    color: #fff;
}

.rh-public-hero::before {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    mask-image: linear-gradient(to right, #000, transparent 88%);
    pointer-events: none;
}

.rh-hero-copy,
.rh-hero-visual {
    position: relative;
    z-index: 1;
}

.rh-eyebrow {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--rh-blue-600);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.rh-public-hero .rh-eyebrow,
.rh-dashboard-hero .rh-eyebrow,
.rh-help-band .rh-eyebrow {
    color: var(--rh-gold-400);
}

.rh-public-hero h1 {
    max-width: 760px;
    margin: 0 0 1.2rem;
    color: #fff;
    font-size: clamp(2.35rem, 5vw, 4.45rem);
    line-height: 1.06;
}

.rh-public-hero .rh-hero-copy > p {
    max-width: 650px;
    color: #c9d7ee;
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.rh-hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 2rem 0 1.7rem;
}

.rh-hero-actions .btn-outline-light,
.rh-dashboard-actions .btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.05);
}

.rh-hero-actions .btn-outline-light:hover,
.rh-dashboard-actions .btn-outline-light:hover {
    background: #fff;
    color: var(--rh-navy-900);
}

.rh-trust-list {
    display: flex;
    gap: 1.15rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    color: #dbe6f7;
    font-size: 0.84rem;
    list-style: none;
}

.rh-trust-list i {
    margin-right: 0.3rem;
    color: #64e6b3;
}

.rh-hero-visual {
    min-height: 390px;
}

.rh-server-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(100%, 350px);
    padding: 1.7rem;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.055));
    box-shadow: 0 28px 70px rgba(1, 9, 27, 0.38);
    backdrop-filter: blur(14px);
    transform: translate(-50%, -50%);
}

.rh-server-card-top {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    margin-bottom: 2.4rem;
    color: #d4e0f3;
    font-size: 0.75rem;
}

.rh-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #62e6ae;
    box-shadow: 0 0 0 5px rgba(98, 230, 174, 0.13);
}

.rh-server-card strong {
    display: block;
    color: #fff;
    font-family: "RH Raleway", sans-serif;
    font-size: 3.5rem;
    line-height: 1;
}

.rh-server-card small {
    color: #b9c8e0;
}

.rh-sparkline {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 58px;
    margin-top: 1.4rem;
}

.rh-sparkline span {
    flex: 1;
    height: 38%;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(to top, var(--rh-blue-600), var(--rh-cyan-400));
}

.rh-sparkline span:nth-child(2) { height: 58%; }
.rh-sparkline span:nth-child(3) { height: 46%; }
.rh-sparkline span:nth-child(4) { height: 73%; }
.rh-sparkline span:nth-child(5) { height: 62%; }
.rh-sparkline span:nth-child(6) { height: 88%; }
.rh-sparkline span:nth-child(7) { height: 96%; }

.rh-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.rh-orbit-one { width: 470px; height: 470px; }
.rh-orbit-two { width: 590px; height: 590px; opacity: 0.55; }

.rh-floating-badge {
    position: absolute;
    display: flex;
    gap: 0.65rem;
    align-items: center;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(7, 20, 45, 0.86);
    box-shadow: 0 14px 34px rgba(3, 10, 26, 0.32);
    color: #e8f0fc;
    font-size: 0.75rem;
    backdrop-filter: blur(10px);
}

.rh-floating-badge i { color: var(--rh-gold-400); }
.rh-badge-shield { top: 17%; right: 0; }
.rh-badge-speed { bottom: 15%; left: -3%; }

.rh-section {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.rh-section-heading {
    max-width: 680px;
    margin: 0 auto 2.4rem;
    text-align: center;
}

.rh-section-heading h2,
.rh-help-band h2 {
    margin-bottom: 0.7rem;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.rh-section-heading p,
.rh-help-band p {
    color: var(--rh-muted);
}

.rh-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.rh-product-card {
    position: relative;
    min-height: 260px;
    padding: 1.65rem;
    overflow: hidden;
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius-lg);
    background: #fff;
    box-shadow: var(--rh-shadow-sm);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.rh-product-card:hover {
    border-color: #aac3f5;
    box-shadow: var(--rh-shadow);
    transform: translateY(-5px);
}

.rh-product-card-featured {
    background: linear-gradient(150deg, #f8fbff, #edf4ff);
    border-color: #b7cdf7;
}

.rh-card-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #fff3d3;
    color: #8e5c0c;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.rh-product-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 1.3rem;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #e6efff, #f4f8ff);
    color: var(--rh-blue-600);
    font-size: 1.25rem;
}

.rh-product-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.22rem;
}

.rh-product-card p {
    min-height: 50px;
    color: var(--rh-muted);
    font-size: 0.9rem;
}

.rh-text-link {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    color: var(--rh-blue-700);
    font-size: 0.86rem;
    font-weight: 700;
}

.rh-text-link i {
    transition: transform 180ms ease;
}

.rh-text-link:hover i {
    transform: translateX(3px);
}

.rh-help-band {
    display: grid;
    grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: var(--rh-radius-lg);
    background: linear-gradient(125deg, var(--rh-navy-950), #0f2b5d);
    color: #fff;
    box-shadow: var(--rh-shadow);
}

.rh-help-band h2 { color: #fff; }
.rh-help-band p { margin: 0; color: #bdcbe2; }

.rh-help-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.rh-help-link {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    min-height: 92px;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.065);
    color: #fff;
}

.rh-help-link:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    transform: translateY(-2px);
}

.rh-help-link > i {
    color: var(--rh-gold-400);
    font-size: 1.1rem;
}

.rh-help-link span,
.rh-help-link strong,
.rh-help-link small {
    display: block;
}

.rh-help-link strong { font-size: 0.78rem; }
.rh-help-link small { margin-top: 0.1rem; color: #b9c8df; font-size: 0.66rem; }

/* Client dashboard */

.rh-dashboard-hero {
    position: relative;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
    padding: clamp(1.6rem, 4vw, 2.6rem);
    overflow: hidden;
    border-radius: var(--rh-radius-lg);
    background:
        radial-gradient(circle at 88% 0%, rgba(59, 130, 246, 0.48), transparent 19rem),
        linear-gradient(125deg, var(--rh-navy-950), #0c2857);
    box-shadow: var(--rh-shadow);
    color: #fff;
}

.rh-dashboard-hero::after {
    position: absolute;
    right: -54px;
    bottom: -88px;
    width: 240px;
    height: 240px;
    border: 40px solid rgba(255, 255, 255, 0.045);
    border-radius: 50%;
    content: "";
}

.rh-dashboard-hero > * {
    position: relative;
    z-index: 1;
}

.rh-dashboard-hero h1 {
    margin: 0 0 0.45rem;
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 2.65rem);
}

.rh-dashboard-hero p {
    margin: 0;
    color: #c2d1e8;
}

.rh-dashboard-actions {
    display: flex;
    gap: 0.65rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.rh-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 2.4rem;
}

.rh-stat-card {
    position: relative;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    min-height: 110px;
    padding: 1.05rem;
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius);
    background: #fff;
    box-shadow: var(--rh-shadow-sm);
    color: var(--rh-ink);
}

.rh-stat-card:hover {
    border-color: #aac4f7;
    box-shadow: var(--rh-shadow);
    color: var(--rh-ink);
    transform: translateY(-3px);
}

.rh-stat-card-alert {
    border-color: #efcc85;
}

.rh-stat-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 13px;
    font-size: 1rem;
}

.rh-icon-blue { background: #e7f0ff; color: #2563eb; }
.rh-icon-green { background: #e4f8ef; color: #07835c; }
.rh-icon-purple { background: #f0eaff; color: #7048d7; }
.rh-icon-gold { background: #fff2d4; color: #a76b0c; }

.rh-stat-content strong,
.rh-stat-content small {
    display: block;
}

.rh-stat-content strong {
    color: var(--rh-ink);
    font-family: "RH Raleway", sans-serif;
    font-size: 1.75rem;
    line-height: 1;
}

.rh-stat-content small {
    margin-top: 0.35rem;
    color: var(--rh-muted);
    font-size: 0.76rem;
}

.rh-stat-arrow {
    margin-left: auto;
    color: #aab5c5;
    font-size: 0.7rem;
}

.rh-quick-section,
.rh-account-panels {
    margin-bottom: 2.3rem;
}

.rh-inline-heading {
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}

.rh-inline-heading .rh-eyebrow {
    margin: 0 0 0.18rem;
}

.rh-inline-heading h2 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.rh-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.rh-quick-card {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    min-height: 92px;
    padding: 1rem;
    border: 1px solid var(--rh-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--rh-shadow-sm);
    color: #293853;
}

.rh-quick-card:hover {
    border-color: #b4c9f1;
    color: var(--rh-blue-700);
    transform: translateY(-2px);
}

.rh-quick-card > i {
    width: 22px;
    color: var(--rh-blue-600);
    font-size: 1rem;
    text-align: center;
}

.rh-quick-card span,
.rh-quick-card strong,
.rh-quick-card small {
    display: block;
}

.rh-quick-card strong { font-size: 0.83rem; }
.rh-quick-card small { margin-top: 0.15rem; color: var(--rh-muted); font-size: 0.7rem; }

.rh-addon-block {
    margin-bottom: 1.2rem;
}

.rh-account-panels .card {
    margin-bottom: 1rem;
}

.rh-account-panels .card-header {
    border-top: 3px solid var(--rh-blue-600);
}

.rh-account-panels .list-group {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.rh-account-panels .list-group-item {
    border-color: #e9eef5;
    color: #475771;
}

.rh-account-panels .list-group-item:hover {
    background: #f4f8ff;
    color: var(--rh-blue-700);
}

/* Forms, authentication, products and support */

.logincontainer {
    max-width: 480px;
    padding: 2rem;
}

.logincontainer .header-lined h1,
.logincontainer h2 {
    font-size: 1.75rem;
}

.providerLinkingFeedback {
    border-radius: 10px;
}

#registration,
#frmCheckout,
#frmConfigureProduct,
#frmDomainTransfer,
#frmDomainRegister {
    padding: clamp(1rem, 3vw, 1.6rem);
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius);
    background: #fff;
    box-shadow: var(--rh-shadow-sm);
}

.sub-heading span,
.section-heading span {
    background: var(--rh-canvas);
    color: var(--rh-ink);
    font-family: "RH Raleway", sans-serif;
}

.product-details,
.service-details,
.domain-details,
.ticket-reply,
.ticket-reply.staff,
.ticket-reply.client {
    border-color: var(--rh-border);
    border-radius: 14px;
    box-shadow: var(--rh-shadow-sm);
}

.ticket-reply .date,
.ticket-reply .user {
    color: #50617b;
}

.ticket-reply.staff .user {
    background: #eaf2ff;
    color: var(--rh-blue-700);
}

.ticket-reply.client .user {
    background: #effaf6;
    color: #087553;
}

.announcement-single,
.kb-article-content,
.knowledgebase-cat-list {
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius);
    background: #fff;
    box-shadow: var(--rh-shadow-sm);
}

.invoice-container {
    border: 0;
    border-radius: var(--rh-radius);
    box-shadow: var(--rh-shadow);
}

.invoice-container .invoice-status {
    border-radius: 999px;
}

.domain-search,
.domain-checker-container {
    background: linear-gradient(125deg, #0b2146, #12366f);
}

.domain-checker-container h1,
.domain-checker-container h2,
.domain-checker-container p {
    color: #fff;
}

.domain-pricing .tld-row:hover {
    border-color: #a9c2f3;
    box-shadow: var(--rh-shadow);
}

.product-status-pending,
.product-status-active,
.product-status-suspended,
.product-status-cancelled,
.product-status-terminated,
.product-status-fraud {
    border-radius: 999px;
}

/* Footer */

#footer.footer {
    padding: 2.2rem 0;
    background: var(--rh-navy-950);
    border: 0;
    color: #aebdd5;
}

#footer .nav-link,
#footer a {
    color: #c6d3e6;
}

#footer .nav-link:hover,
#footer a:hover {
    color: #fff;
}

#footer .copyright {
    color: #8394af;
    font-size: 0.78rem;
}

/* Privacy preferences */

.rh-privacy-settings {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1051;
    display: inline-flex;
    gap: 0.42rem;
    align-items: center;
    min-height: 38px;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: var(--rh-navy-900);
    box-shadow: 0 10px 28px rgba(4, 13, 31, 0.28);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
}

.rh-privacy-settings:hover {
    background: #102d5e;
}

.rh-privacy-settings i {
    color: var(--rh-gold-400);
}

.rh-cookie-banner {
    position: fixed;
    right: 18px;
    bottom: 68px;
    left: 18px;
    z-index: 1052;
    display: flex;
    gap: 1.4rem;
    align-items: center;
    justify-content: space-between;
    max-width: 980px;
    margin: auto;
    padding: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(5, 13, 31, 0.97);
    box-shadow: 0 25px 70px rgba(2, 8, 22, 0.38);
    color: #fff;
    opacity: 0;
    backdrop-filter: blur(16px);
    transform: translateY(18px);
    transition: opacity 200ms ease, transform 200ms ease;
}

.rh-cookie-banner[hidden] {
    display: none;
}

.rh-cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.rh-cookie-copy {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.rh-cookie-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    background: rgba(244, 182, 61, 0.14);
    color: var(--rh-gold-400);
}

.rh-cookie-copy strong {
    display: block;
    margin-bottom: 0.15rem;
    font-family: "RH Raleway", sans-serif;
}

.rh-cookie-copy p {
    max-width: 600px;
    margin: 0;
    color: #bdc9dc;
    font-size: 0.78rem;
    line-height: 1.5;
}

.rh-cookie-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.rh-cookie-actions .btn-link {
    color: #cbd6e8;
}

/* WHMCS 9 Nexus SPA inherits these brand variables. */

#app,
.nexus-app,
[data-whmcs-client-app] {
    --primary: var(--rh-blue-600);
    --primary-lifted: var(--rh-blue-700);
    --primary-accented: var(--primary-800);
    --rounding-md: 0.75rem;
    --rounding-lg: 1rem;
}

@media (max-width: 1199.98px) {
    #header .main-navbar-wrapper .navbar-collapse {
        padding: 0.8rem 0;
    }

    #header .main-navbar-wrapper .nav-link {
        padding: 0.65rem 0.8rem;
    }

    #header .main-navbar-wrapper .nav-link::after {
        display: none;
    }

    .rh-stat-grid,
    .rh-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rh-help-band {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .rh-public-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .rh-hero-copy {
        max-width: 760px;
    }

    .rh-hero-visual {
        display: none;
    }

    .rh-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar {
        margin-bottom: 1.4rem;
    }
}

@media (max-width: 767.98px) {
    #main-body {
        padding-top: 1.35rem;
    }

    .rh-public-hero {
        margin-top: -1.35rem;
        padding-top: 4.25rem;
        padding-bottom: 4.25rem;
    }

    .rh-dashboard-hero {
        display: block;
    }

    .rh-dashboard-actions {
        margin-top: 1.2rem;
    }

    .rh-help-actions {
        grid-template-columns: 1fr;
    }

    .rh-help-link {
        min-height: 76px;
    }

    .rh-cookie-banner {
        display: block;
    }

    .rh-cookie-actions {
        justify-content: flex-end;
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 14px;
    }

    #header .navbar-brand .logo-img {
        max-width: 170px;
    }

    .rh-public-hero h1 {
        font-size: 2.35rem;
    }

    .rh-hero-actions,
    .rh-dashboard-actions {
        display: grid;
    }

    .rh-hero-actions .btn,
    .rh-dashboard-actions .btn {
        width: 100%;
    }

    .rh-trust-list {
        display: grid;
        gap: 0.5rem;
    }

    .rh-product-grid,
    .rh-stat-grid,
    .rh-quick-grid {
        grid-template-columns: 1fr;
    }

    .rh-stat-card {
        min-height: 86px;
    }

    .rh-inline-heading {
        display: block;
    }

    .rh-inline-heading > .rh-text-link {
        margin-top: 0.65rem;
    }

    .rh-cookie-banner {
        right: 10px;
        bottom: 62px;
        left: 10px;
        padding: 1rem;
    }

    .rh-cookie-copy {
        display: block;
    }

    .rh-cookie-icon {
        margin-bottom: 0.65rem;
    }

    .rh-cookie-actions {
        display: grid;
    }

    .rh-privacy-settings span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    #header,
    #footer,
    .master-breadcrumb,
    .sidebar,
    .rh-cookie-banner,
    .rh-privacy-settings,
    .rh-dashboard-actions,
    .rh-quick-section {
        display: none !important;
    }

    body,
    #main-body {
        background: #fff !important;
    }

    .card,
    .panel,
    .table-list,
    .invoice-container {
        box-shadow: none !important;
    }
}
