/* ============================================================================
   RapidHost WHMCS Client Area — v2 Design Overhaul
   ============================================================================
   Goal: match the marketing site's polish, not just its colors.
   - Soft slate page background, white floating cards
   - Generous padding, clear hierarchy
   - Eyebrow pills, Onest display, DM Sans body
   - Icon-in-colored-circle pattern from marketing feature cards
   - Premium button shadows, crisp focus rings
   - No hover movement on cards
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

:root {
	--rh-primary:        #2563EB;
	--rh-primary-hover:  #1D4ED8;
	--rh-primary-active: #1E40AF;
	--rh-primary-soft:   #DBEAFE;
	--rh-primary-softer: #EFF6FF;
	--rh-accent:         #EA580C;
	--rh-accent-softer:  #FFF7ED;
	--rh-save:           #059669;
	--rh-save-softer:    #ECFDF5;
	--rh-danger:         #DC2626;
	--rh-danger-softer:  #FEF2F2;
	--rh-warning:        #D97706;
	--rh-warning-softer: #FFFBEB;

	--rh-bg:          #ffffff;
	--rh-bg-soft:     #F8FAFC;
	--rh-bg-soft-2:   #F1F5F9;

	--rh-text:        #0F172A;
	--rh-text-soft:   #334155;
	--rh-muted:       #64748B;
	--rh-faint:       #94A3B8;

	--rh-line:        #E2E8F0;
	--rh-line-2:      #F1F5F9;

	--rh-radius-sm:   10px;
	--rh-radius:      16px;
	--rh-radius-lg:   24px;
	--rh-radius-full: 100px;

	--rh-shadow-xs:   0 1px 2px rgba(15, 23, 42, 0.04);
	--rh-shadow-sm:   0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.03);
	--rh-shadow-md:   0 10px 24px -8px rgba(15, 23, 42, 0.10);
	--rh-shadow-lg:   0 20px 40px -12px rgba(15, 23, 42, 0.15);
	--rh-shadow-blue: 0 8px 24px -8px rgba(37, 99, 235, 0.35);
	--rh-shadow-green: 0 8px 24px -8px rgba(5, 150, 105, 0.35);

	--rh-ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================================================
   0. FOUNDATION — body, type, links
   ========================================================================== */
body {
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
	color: var(--rh-text-soft);
	background: var(--rh-bg-soft) !important;
	font-size: 15px;
	line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: 'Onest', sans-serif !important;
	font-weight: 700;
	color: var(--rh-text) !important;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

h1, .h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; }
h2, .h2 { font-size: 1.5rem; }
h3, .h3 { font-size: 1.25rem; }

p { line-height: 1.65; }

a {
	color: var(--rh-primary);
	text-decoration: none;
	transition: color 0.15s var(--rh-ease);
}
a:hover, a:focus { color: var(--rh-primary-hover); text-decoration: none; }

*:focus-visible { outline: 3px solid var(--rh-primary-soft); outline-offset: 2px; }

.text-muted, .text-secondary { color: var(--rh-muted) !important; }
.text-primary { color: var(--rh-primary) !important; }
.bg-primary { background: var(--rh-primary) !important; }

/* =============================================================================
   1. HEADER — topbar + navbar + main nav
   ========================================================================== */
.header {
	background: var(--rh-bg);
	border-bottom: 1px solid var(--rh-line);
}

.topbar {
	background: var(--rh-bg-soft);
	border-bottom: 1px solid var(--rh-line-2);
	font-size: 0.8125rem;
	padding: 0.5rem 0;
}

.topbar .btn {
	font-size: 0.8125rem;
	color: var(--rh-muted);
	border: 0;
	padding: 0.25rem 0.5rem;
}

.topbar .btn:hover { color: var(--rh-primary); background: transparent; }
.topbar .btn-active-client { color: var(--rh-text); font-weight: 600; }

.topbar .input-group-text {
	background: transparent;
	border: 0;
	color: var(--rh-muted);
	font-size: 0.8125rem;
	padding: 0.375rem 0.5rem;
}

.header .navbar {
	background: var(--rh-bg);
	padding: 1.25rem 0;
}

/* Brand with accent dot — mirrors marketing site header */
.navbar-brand {
	font-family: 'Onest', sans-serif !important;
	font-weight: 800 !important;
	font-size: 1.375rem !important;
	color: var(--rh-text) !important;
	letter-spacing: -0.02em;
	display: inline-flex !important;
	align-items: center;
	gap: 0.5rem;
}

.navbar-brand::before {
	content: '';
	width: 8px; height: 8px;
	border-radius: 100px;
	background: var(--rh-save);
	flex-shrink: 0;
	margin-bottom: 2px;
}

.navbar-brand .logo-img { max-height: 40px; }
.navbar-brand:hover { color: var(--rh-primary) !important; }

/* Knowledgebase search — like marketing site feel */
.header .search .form-control {
	border-radius: var(--rh-radius-sm);
	border-color: var(--rh-line);
	font-size: 0.875rem;
	padding: 0.5rem 0.875rem;
	background: var(--rh-bg-soft);
}

.header .search .form-control:focus {
	background: var(--rh-bg);
	border-color: var(--rh-primary);
	box-shadow: 0 0 0 3px var(--rh-primary-soft);
}

.header .search .btn {
	background: transparent;
	border: 0;
	color: var(--rh-muted);
	padding: 0.5rem 0.75rem;
}

/* Cart icon / badge */
.cart-btn {
	color: var(--rh-text-soft) !important;
	background: var(--rh-bg-soft);
	border-radius: var(--rh-radius-sm);
	padding: 0.5rem 0.75rem !important;
	position: relative;
}

.cart-btn:hover { color: var(--rh-primary) !important; background: var(--rh-primary-softer); }

.cart-btn .badge,
.cart-btn .badge-info {
	background: var(--rh-primary) !important;
	color: #fff !important;
	font-size: 0.625rem !important;
	font-weight: 700;
	position: absolute;
	top: 0;
	right: 0;
	transform: translate(30%, -30%);
	padding: 0.2rem 0.45rem;
	border-radius: 100px;
	min-width: 18px;
}

/* Main nav bar below */
.main-navbar-wrapper {
	background: var(--rh-bg);
	border-top: 1px solid var(--rh-line-2);
	padding: 0;
}

.main-navbar-wrapper .nav-link {
	font-family: 'DM Sans', sans-serif !important;
	font-weight: 500;
	font-size: 0.9375rem;
	color: var(--rh-text-soft) !important;
	padding: 1rem 1.125rem !important;
	border-radius: 0;
	position: relative;
	transition: color 0.15s var(--rh-ease);
}

.main-navbar-wrapper .nav-link:hover,
.main-navbar-wrapper .nav-link:focus {
	color: var(--rh-primary) !important;
	background: transparent;
}

.main-navbar-wrapper .nav-item.active .nav-link,
.main-navbar-wrapper .nav-link.active {
	color: var(--rh-primary) !important;
	font-weight: 600;
}

.main-navbar-wrapper .nav-item.active .nav-link::after,
.main-navbar-wrapper .nav-link.active::after {
	content: '';
	position: absolute;
	left: 1.125rem;
	right: 1.125rem;
	bottom: 0;
	height: 3px;
	background: var(--rh-primary);
	border-radius: 100px 100px 0 0;
}

.main-navbar-wrapper .dropdown-menu {
	border-radius: var(--rh-radius);
	border: 1px solid var(--rh-line);
	box-shadow: var(--rh-shadow-lg);
	padding: 0.5rem;
	margin-top: 0.25rem;
}

.main-navbar-wrapper .dropdown-item {
	font-size: 0.875rem;
	color: var(--rh-text-soft);
	padding: 0.5rem 0.75rem;
	border-radius: var(--rh-radius-sm);
}

.main-navbar-wrapper .dropdown-item:hover {
	background: var(--rh-primary-softer);
	color: var(--rh-primary);
}

/* =============================================================================
   2. MASTER BREADCRUMB
   ========================================================================== */
.master-breadcrumb {
	background: var(--rh-bg);
	border-bottom: 1px solid var(--rh-line);
	padding: 0.875rem 0;
	font-family: 'DM Sans', sans-serif;
	font-size: 0.8125rem;
}

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

.master-breadcrumb .breadcrumb-item {
	font-weight: 500;
	color: var(--rh-muted);
}

.master-breadcrumb .breadcrumb-item a { color: var(--rh-muted); }
.master-breadcrumb .breadcrumb-item a:hover { color: var(--rh-primary); }
.master-breadcrumb .breadcrumb-item.active { color: var(--rh-text); font-weight: 600; }

.master-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--rh-faint); }

/* =============================================================================
   3. MAIN BODY — generous spacing, soft bg
   ========================================================================== */
#main-body {
	background: var(--rh-bg-soft);
	padding: 2.5rem 0 4rem !important;
	min-height: 60vh;
	position: relative;
}

#main-body::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 300px;
	background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(37, 99, 235, 0.06), transparent 70%);
	pointer-events: none;
}

#main-body > .container { position: relative; z-index: 1; }

/* Page titles — hero style */
.primary-content > h1,
.primary-content > .row > .col-12 > h1,
.primary-content h1:first-child {
	margin-bottom: 1.5rem;
}

/* =============================================================================
   4. SIDEBAR — client area left nav
   ========================================================================== */
.sidebar { padding-right: 0.5rem; }

.sidebar .list-group,
.sidebar .panel,
.sidebar .card {
	border-radius: var(--rh-radius) !important;
	overflow: hidden;
	background: var(--rh-bg);
	border: 1px solid var(--rh-line);
	box-shadow: var(--rh-shadow-sm);
	margin-bottom: 1rem !important;
}

.sidebar .panel-heading,
.sidebar .card-header {
	background: var(--rh-bg) !important;
	border-bottom: 1px solid var(--rh-line-2) !important;
	padding: 0.875rem 1rem !important;
	font-family: 'Onest', sans-serif !important;
	font-weight: 700;
	color: var(--rh-text);
	font-size: 0.875rem;
}

.sidebar .panel-title,
.sidebar .card-header h3 {
	font-family: 'Onest', sans-serif !important;
	font-weight: 700 !important;
	color: var(--rh-text) !important;
	font-size: 0.875rem !important;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.sidebar .panel-title i,
.sidebar .card-header i {
	color: var(--rh-primary);
	font-size: 0.9375rem;
}

.sidebar .list-group-item {
	border: 0 !important;
	border-top: 1px solid var(--rh-line-2) !important;
	font-family: 'DM Sans', sans-serif;
	font-size: 0.9375rem;
	color: var(--rh-text-soft) !important;
	padding: 0.75rem 1rem !important;
	transition: background 0.15s var(--rh-ease), color 0.15s var(--rh-ease);
	display: flex;
	align-items: center;
	gap: 0.625rem;
}

.sidebar .list-group-item:first-child { border-top: 0 !important; }

.sidebar .list-group-item i {
	color: var(--rh-faint);
	width: 18px;
	text-align: center;
	transition: color 0.15s var(--rh-ease);
}

.sidebar .list-group-item:hover {
	background: var(--rh-primary-softer);
	color: var(--rh-primary) !important;
}

.sidebar .list-group-item:hover i { color: var(--rh-primary); }

.sidebar .list-group-item.active {
	background: var(--rh-primary) !important;
	color: #fff !important;
	border-color: var(--rh-primary) !important;
	font-weight: 600;
}

.sidebar .list-group-item.active i { color: #fff; }

/* Highlight bar on active sidebar item — subtle brand touch */
.sidebar .list-group-item.active {
	position: relative;
	padding-left: 1.25rem !important;
}

.sidebar .list-group-item.active::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.5rem;
	bottom: 0.5rem;
	width: 3px;
	background: #fff;
	border-radius: 0 100px 100px 0;
}

/* =============================================================================
   5. DASHBOARD TILES — full redesign
   Twenty-one markup: .tiles > .row > .col-xl-3 > a.tile > i + .stat + .title
   ========================================================================== */
.tiles {
	margin-bottom: 2rem;
}

.tiles .row { margin: 0 -0.5rem !important; }

.tiles .tile {
	display: block;
	position: relative;
	background: var(--rh-bg) !important;
	border: 1px solid var(--rh-line) !important;
	border-radius: var(--rh-radius) !important;
	padding: 1.5rem 1.75rem !important;
	margin: 0.5rem !important;
	box-shadow: var(--rh-shadow-sm);
	text-decoration: none !important;
	color: var(--rh-text) !important;
	transition: border-color 0.2s var(--rh-ease), box-shadow 0.2s var(--rh-ease);
	overflow: hidden;
	min-height: 140px;
}

.tiles .tile:hover {
	background: var(--rh-bg) !important;
	border-color: var(--rh-primary-soft) !important;
	box-shadow: var(--rh-shadow-md);
}

.tiles .tile i {
	position: absolute !important;
	top: 1.25rem !important;
	right: 1.5rem !important;
	font-size: 1.25rem !important;
	color: var(--rh-primary) !important;
	background: var(--rh-primary-softer);
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	line-height: 1;
	transition: background 0.2s var(--rh-ease), color 0.2s var(--rh-ease), transform 0.2s var(--rh-ease);
}

.tiles .tile:hover i {
	background: var(--rh-primary) !important;
	color: #fff !important;
	font-size: 1.25rem !important;
}

.tiles .tile .stat {
	font-family: 'Onest', sans-serif !important;
	font-size: 2.5rem !important;
	font-weight: 800 !important;
	letter-spacing: -0.04em !important;
	color: var(--rh-text) !important;
	margin: 0 !important;
	line-height: 1 !important;
	font-variant-numeric: tabular-nums;
}

.tiles .tile .title {
	font-family: 'DM Sans', sans-serif !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	font-size: 0.6875rem !important;
	letter-spacing: 0.1em !important;
	color: var(--rh-muted) !important;
	margin-top: 0.75rem !important;
}

.tiles .tile .highlight {
	display: none !important;
}

/* =============================================================================
   6. PANELS / CARDS — generic containers
   ========================================================================== */
.panel,
.panel-default,
.card {
	background: var(--rh-bg) !important;
	border: 1px solid var(--rh-line) !important;
	border-radius: var(--rh-radius) !important;
	box-shadow: var(--rh-shadow-sm);
	margin-bottom: 1.5rem;
}

.panel-heading,
.card-header {
	background: var(--rh-bg) !important;
	border-bottom: 1px solid var(--rh-line-2) !important;
	font-family: 'Onest', sans-serif !important;
	font-weight: 700;
	color: var(--rh-text) !important;
	padding: 1rem 1.25rem !important;
	border-top-left-radius: var(--rh-radius) !important;
	border-top-right-radius: var(--rh-radius) !important;
	font-size: 1rem;
}

.panel-heading h3,
.card-header h3,
.panel-title,
.card-title {
	font-family: 'Onest', sans-serif !important;
	font-weight: 700 !important;
	margin: 0 !important;
	font-size: 1rem !important;
	color: var(--rh-text) !important;
}

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

.panel-footer,
.card-footer {
	background: var(--rh-bg-soft) !important;
	border-top: 1px solid var(--rh-line-2) !important;
	border-bottom-left-radius: var(--rh-radius) !important;
	border-bottom-right-radius: var(--rh-radius) !important;
	padding: 0.875rem 1.25rem !important;
}

/* =============================================================================
   7. BUTTONS — premium
   ========================================================================== */
.btn {
	font-family: 'DM Sans', sans-serif !important;
	font-weight: 600 !important;
	border-radius: var(--rh-radius-sm) !important;
	padding: 0.625rem 1.125rem !important;
	font-size: 0.9375rem !important;
	line-height: 1.35 !important;
	transition: background 0.15s var(--rh-ease), color 0.15s var(--rh-ease),
	            border-color 0.15s var(--rh-ease), box-shadow 0.15s var(--rh-ease);
	border-width: 1.5px;
}

.btn-lg { padding: 0.8125rem 1.5rem !important; font-size: 1rem !important; }
.btn-sm { padding: 0.4rem 0.75rem !important; font-size: 0.8125rem !important; }
.btn-xs { padding: 0.25rem 0.5rem !important; font-size: 0.75rem !important; }

.btn-primary {
	background: var(--rh-primary) !important;
	border-color: var(--rh-primary) !important;
	color: #fff !important;
	box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover, .btn-primary:focus {
	background: var(--rh-primary-hover) !important;
	border-color: var(--rh-primary-hover) !important;
	color: #fff !important;
	box-shadow: var(--rh-shadow-blue);
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
	background: var(--rh-primary-active) !important;
	border-color: var(--rh-primary-active) !important;
}

.btn-secondary,
.btn-default {
	background: var(--rh-bg) !important;
	border-color: var(--rh-line) !important;
	color: var(--rh-text-soft) !important;
}

.btn-secondary:hover, .btn-secondary:focus,
.btn-default:hover, .btn-default:focus {
	background: var(--rh-bg-soft) !important;
	border-color: #cbd5e1 !important;
	color: var(--rh-text) !important;
}

.btn-success {
	background: var(--rh-save) !important;
	border-color: var(--rh-save) !important;
	color: #fff !important;
	box-shadow: 0 4px 12px -4px rgba(5, 150, 105, 0.35);
}

.btn-success:hover {
	background: #047857 !important;
	border-color: #047857 !important;
	box-shadow: var(--rh-shadow-green);
}

.btn-danger {
	background: var(--rh-danger) !important;
	border-color: var(--rh-danger) !important;
	color: #fff !important;
}

.btn-danger:hover { background: #B91C1C !important; border-color: #B91C1C !important; }

.btn-warning {
	background: var(--rh-warning) !important;
	border-color: var(--rh-warning) !important;
	color: #fff !important;
}

.btn-info {
	background: var(--rh-primary) !important;
	border-color: var(--rh-primary) !important;
	color: #fff !important;
}

.btn-link { color: var(--rh-primary) !important; text-decoration: none !important; }
.btn-link:hover { color: var(--rh-primary-hover) !important; text-decoration: underline !important; }

/* Outline variants */
.btn-outline-primary {
	background: transparent !important;
	border-color: var(--rh-primary) !important;
	color: var(--rh-primary) !important;
}

.btn-outline-primary:hover {
	background: var(--rh-primary) !important;
	color: #fff !important;
}

/* =============================================================================
   8. FORMS
   ========================================================================== */
.form-control {
	border: 1.5px solid var(--rh-line) !important;
	border-radius: var(--rh-radius-sm) !important;
	color: var(--rh-text) !important;
	font-family: 'DM Sans', sans-serif !important;
	padding: 0.625rem 0.875rem !important;
	font-size: 0.9375rem !important;
	background: var(--rh-bg) !important;
	transition: border-color 0.15s var(--rh-ease), box-shadow 0.15s var(--rh-ease);
}

.form-control:focus {
	border-color: var(--rh-primary) !important;
	box-shadow: 0 0 0 3px var(--rh-primary-soft) !important;
	outline: 0;
}

.form-control::placeholder { color: var(--rh-faint); }

.form-control-lg { padding: 0.8125rem 1rem !important; font-size: 1rem !important; }

label, .control-label {
	font-family: 'DM Sans', sans-serif !important;
	font-weight: 600 !important;
	color: var(--rh-text) !important;
	font-size: 0.875rem !important;
	margin-bottom: 0.375rem;
}

.form-text, .help-block, .form-control-feedback {
	color: var(--rh-muted) !important;
	font-size: 0.8125rem !important;
	margin-top: 0.375rem;
}

.custom-select,
select.form-control {
	border: 1.5px solid var(--rh-line) !important;
	border-radius: var(--rh-radius-sm) !important;
	font-size: 0.9375rem !important;
	padding: 0.625rem 2.25rem 0.625rem 0.875rem !important;
	background-color: var(--rh-bg);
}

.input-group-text {
	background: var(--rh-bg-soft);
	border: 1.5px solid var(--rh-line);
	color: var(--rh-muted);
	font-size: 0.875rem;
	border-radius: var(--rh-radius-sm);
}

/* Checkboxes & radios */
.custom-control-input:checked ~ .custom-control-label::before {
	background-color: var(--rh-primary) !important;
	border-color: var(--rh-primary) !important;
}

.custom-control-label::before {
	border-color: var(--rh-line) !important;
}

/* =============================================================================
   9. ALERTS
   ========================================================================== */
.alert {
	border-radius: var(--rh-radius) !important;
	border: 1.5px solid transparent !important;
	padding: 1rem 1.25rem !important;
	font-size: 0.9375rem;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.alert-success {
	background: var(--rh-save-softer) !important;
	border-color: rgba(5, 150, 105, 0.25) !important;
	color: #065f46 !important;
}

.alert-info {
	background: var(--rh-primary-softer) !important;
	border-color: var(--rh-primary-soft) !important;
	color: #1e40af !important;
}

.alert-warning {
	background: var(--rh-warning-softer) !important;
	border-color: #FDE68A !important;
	color: #92400E !important;
}

.alert-danger {
	background: var(--rh-danger-softer) !important;
	border-color: #FECACA !important;
	color: #991B1B !important;
}

/* =============================================================================
   10. TABLES — restyled as cards where possible
   ========================================================================== */
.table {
	font-family: 'DM Sans', sans-serif !important;
	color: var(--rh-text-soft);
	background: var(--rh-bg);
	border-collapse: separate;
	border-spacing: 0;
	margin-bottom: 0;
}

.table-responsive {
	background: var(--rh-bg);
	border: 1px solid var(--rh-line);
	border-radius: var(--rh-radius);
	box-shadow: var(--rh-shadow-sm);
	overflow: hidden;
	margin-bottom: 1.5rem;
}

.table thead th {
	background: var(--rh-bg-soft) !important;
	border: 0 !important;
	border-bottom: 1px solid var(--rh-line) !important;
	font-family: 'DM Sans', sans-serif;
	font-weight: 600 !important;
	color: var(--rh-muted) !important;
	font-size: 0.75rem !important;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 1rem 1.125rem !important;
}

.table td, .table th {
	border-top: 1px solid var(--rh-line-2) !important;
	padding: 1rem 1.125rem !important;
	vertical-align: middle !important;
}

.table tbody tr {
	transition: background 0.12s var(--rh-ease);
}
.table tbody tr:hover { background: var(--rh-bg-soft); }

.table tbody tr:first-child td { border-top: 0 !important; }

/* =============================================================================
   11. STATUS BADGES — modern pills
   ========================================================================== */
.label,
.badge {
	font-family: 'DM Sans', sans-serif !important;
	font-weight: 600 !important;
	font-size: 0.75rem !important;
	padding: 0.3rem 0.625rem !important;
	border-radius: 100px !important;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	letter-spacing: 0.02em;
}

.label-success, .badge-success {
	background: var(--rh-save-softer) !important;
	color: #047857 !important;
}

.label-info, .badge-info {
	background: var(--rh-primary-softer) !important;
	color: var(--rh-primary-active) !important;
}

.label-warning, .badge-warning {
	background: var(--rh-warning-softer) !important;
	color: #92400E !important;
}

.label-danger, .badge-danger {
	background: var(--rh-danger-softer) !important;
	color: #991B1B !important;
}

.label-default, .badge-default, .badge-secondary {
	background: var(--rh-bg-soft-2) !important;
	color: var(--rh-text-soft) !important;
}

/* =============================================================================
   12. SERVICE / DOMAIN / INVOICE ITEMS — rich cards
   ========================================================================== */
.active-products-services-item {
	display: block;
	background: var(--rh-bg) !important;
	border: 1px solid var(--rh-line) !important;
	border-radius: var(--rh-radius) !important;
	padding: 1.25rem 1.5rem !important;
	margin-bottom: 1rem !important;
	box-shadow: var(--rh-shadow-sm);
	text-decoration: none !important;
	color: var(--rh-text) !important;
	transition: border-color 0.15s var(--rh-ease), box-shadow 0.15s var(--rh-ease);
}

.active-products-services-item:hover {
	border-color: var(--rh-primary-soft) !important;
	box-shadow: var(--rh-shadow-md);
}

.active-products-services-item h3,
.active-products-services-item h4,
.active-products-services-item .h3,
.active-products-services-item .h4 {
	font-family: 'Onest', sans-serif !important;
	font-weight: 700 !important;
	color: var(--rh-text) !important;
	margin: 0 0 0.25rem !important;
	font-size: 1.0625rem !important;
}

/* =============================================================================
   13. MODAL
   ========================================================================== */
.modal-content {
	border-radius: var(--rh-radius-lg) !important;
	border: 0;
	box-shadow: 0 25px 60px -12px rgba(15,23,42,0.25);
	overflow: hidden;
}

.modal-header {
	border-bottom: 1px solid var(--rh-line-2);
	padding: 1.25rem 1.5rem;
}

.modal-title {
	font-family: 'Onest', sans-serif;
	font-weight: 700;
	color: var(--rh-text);
	font-size: 1.125rem;
}

.modal-body { padding: 1.5rem; }

.modal-footer {
	border-top: 1px solid var(--rh-line-2);
	padding: 1rem 1.5rem;
	background: var(--rh-bg-soft);
}

/* =============================================================================
   14. FOOTER — match marketing site feel
   Using #footer for specificity to override twenty-one's default.
   ========================================================================== */
#footer.footer,
.footer {
	background: var(--rh-bg) !important;
	background-color: var(--rh-bg) !important;
	border-top: 1px solid var(--rh-line) !important;
	padding: 2.5rem 0 1.5rem !important;
	color: var(--rh-muted) !important;
	font-size: 0.875rem !important;
	margin-top: 3rem !important;
}

#footer.footer .nav-link,
.footer .nav-link {
	color: var(--rh-text-soft) !important;
	font-size: 0.875rem;
	padding: 0.5rem 0.875rem;
	transition: color 0.15s var(--rh-ease);
}

#footer.footer .nav-link:hover,
.footer .nav-link:hover { color: var(--rh-primary) !important; }

#footer.footer a,
.footer a { color: var(--rh-text-soft); transition: color 0.15s var(--rh-ease); }
#footer.footer a:hover,
.footer a:hover { color: var(--rh-primary); }

#footer.footer .btn,
.footer .btn {
	font-size: 0.8125rem !important;
	color: var(--rh-muted) !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0.375rem 0.625rem !important;
}

#footer.footer .btn:hover,
.footer .btn:hover { color: var(--rh-primary) !important; background: var(--rh-primary-softer) !important; }

#footer.footer .copyright,
.footer .copyright {
	color: var(--rh-muted) !important;
	font-size: 0.8125rem !important;
	padding-top: 1.25rem;
	border-top: 1px solid var(--rh-line-2);
	text-align: center;
}

.footer .iti-flag { margin-right: 0.375rem; }

/* Kill any dark-skinning WHMCS may apply via utility classes */
.footer.bg-dark,
.footer.bg-secondary,
.footer-dark,
body .footer { background: var(--rh-bg) !important; color: var(--rh-muted) !important; }

/* =============================================================================
   15. DASHBOARD INVOICE / TICKET WIDGET TABLES
   ========================================================================== */
.dashboard-widget {
	margin-bottom: 2rem;
}

/* Flash messages / notifications */
.flashmessage { margin-bottom: 1rem; }

/* =============================================================================
   16. LOGIN / REGISTER — centered card
   ========================================================================== */
.login-form,
.register-form,
body.loggedout #main-body .col-md-6 {
	margin: 2rem auto;
}

/* Remember-me / forgot-password row */
.forgot-password { font-size: 0.875rem; color: var(--rh-primary); }

/* =============================================================================
   17. PAGINATION
   ========================================================================== */
.pagination {
	gap: 0.25rem;
}

.pagination .page-item .page-link {
	border: 1px solid var(--rh-line);
	color: var(--rh-text-soft);
	border-radius: var(--rh-radius-sm) !important;
	font-size: 0.875rem;
	padding: 0.5rem 0.75rem;
	margin: 0 0.125rem;
}

.pagination .page-item.active .page-link {
	background: var(--rh-primary);
	border-color: var(--rh-primary);
	color: #fff;
}

.pagination .page-item:not(.active) .page-link:hover {
	background: var(--rh-primary-softer);
	color: var(--rh-primary);
	border-color: var(--rh-primary-soft);
}

/* =============================================================================
   18. UTILITY
   ========================================================================== */
.text-primary { color: var(--rh-primary) !important; }
.bg-primary   { background: var(--rh-primary) !important; }
.border-primary { border-color: var(--rh-primary) !important; }
.bg-color-blue  { background: var(--rh-primary) !important; }
.bg-color-green { background: var(--rh-save) !important; }
.bg-color-orange{ background: var(--rh-accent) !important; }
.bg-color-red   { background: var(--rh-danger) !important; }

hr { border-color: var(--rh-line-2); }

/* =============================================================================
   19. NOTIFICATIONS POPOVER (top-right flag)
   ========================================================================== */
.popover {
	border-radius: var(--rh-radius) !important;
	border: 1px solid var(--rh-line) !important;
	box-shadow: var(--rh-shadow-lg);
}

.popover-body { padding: 1rem !important; }

/* =============================================================================
   20. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
	}
}
