/**
 * Real Boost Hub — frontend styles.
 *
 * Colour values are overridden at runtime from plugin settings via
 * wp_add_inline_style(), so the defaults here are only a fallback.
 */

.rbh {
	--rbh-primary: #6C5CE7;
	--rbh-secondary: #8B5CF6;
	--rbh-accent: #00C2FF;
	--rbh-dark: #111827;
	--rbh-text: #374151;
	--rbh-background: #F8FAFC;
	--rbh-white: #FFFFFF;
	--rbh-success: #16A34A;
	--rbh-warning: #F59E0B;
	--rbh-danger: #DC2626;

	--rbh-muted: #6B7280;
	--rbh-border: #E5E7EB;
	--rbh-radius: 14px;
	--rbh-radius-sm: 10px;
	--rbh-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .06);
	--rbh-shadow-lift: 0 2px 4px rgba(17, 24, 39, .05), 0 16px 40px rgba(17, 24, 39, .10);
	--rbh-gap: 20px;

	box-sizing: border-box;
	color: var(--rbh-text);
	font-size: 15px;
	line-height: 1.6;
	max-width: 100%;
	overflow-wrap: break-word;
}

.rbh *,
.rbh *::before,
.rbh *::after {
	box-sizing: inherit;
}

.rbh img {
	max-width: 100%;
	height: auto;
}

.rbh-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------------- Typography */

.rbh-page-head {
	margin: 0 0 var(--rbh-gap);
}

.rbh-page-head--row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-start;
	justify-content: space-between;
}

.rbh-page-title {
	margin: 0;
	font-size: 26px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--rbh-dark);
}

.rbh-page-sub {
	margin: 6px 0 0;
	color: var(--rbh-muted);
}

.rbh-h3 {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 700;
	color: var(--rbh-dark);
}

.rbh-lede {
	font-size: 16px;
	color: var(--rbh-muted);
}

.rbh-prose {
	margin: 0;
	white-space: pre-line;
}

.rbh-muted {
	display: block;
	color: var(--rbh-muted);
	font-size: 13px;
}

.rbh-mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .95em;
	letter-spacing: -0.01em;
}

.rbh-break {
	word-break: break-word;
}

.rbh-link {
	color: var(--rbh-primary);
	font-weight: 600;
	text-decoration: none;
}

.rbh-link:hover,
.rbh-link:focus-visible {
	color: var(--rbh-secondary);
	text-decoration: none;
}

.rbh-note {
	margin: 12px 0 0;
	color: var(--rbh-muted);
	font-size: 14px;
}

.rbh-note--sm {
	font-size: 12.5px;
}

.rbh-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 16px;
	color: var(--rbh-muted);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.rbh-back:hover {
	color: var(--rbh-primary);
}

/* ------------------------------------------------------------------- Buttons */

.rbh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: var(--rbh-radius-sm);
	background: var(--rbh-primary);
	color: var(--rbh-white);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, opacity .15s ease;
}

.rbh-btn:hover {
	color: var(--rbh-white);
	box-shadow: 0 8px 20px rgba(108, 92, 231, .28);
	transform: translateY(-1px);
}

.rbh-btn:focus-visible {
	outline: 3px solid rgba(108, 92, 231, .35);
	outline-offset: 2px;
}

.rbh-btn[disabled],
.rbh-btn.is-loading {
	opacity: .65;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.rbh-btn--primary {
	background: linear-gradient(135deg, var(--rbh-primary), var(--rbh-secondary));
}

.rbh-btn--ghost {
	background: var(--rbh-white);
	border-color: var(--rbh-border);
	color: var(--rbh-dark);
}

.rbh-btn--ghost:hover {
	border-color: var(--rbh-primary);
	color: var(--rbh-primary);
	box-shadow: none;
}

.rbh-btn--block {
	width: 100%;
}

.rbh-btn--sm {
	min-height: 36px;
	padding: 8px 14px;
	font-size: 13.5px;
}

.rbh-btn.is-loading::before {
	content: "";
	width: 15px;
	height: 15px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: rbh-spin .7s linear infinite;
}

@keyframes rbh-spin {
	to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------- Cards */

.rbh-card,
.rbh-panel {
	position: relative;
	padding: 22px;
	border: 1px solid var(--rbh-border);
	border-radius: var(--rbh-radius);
	background: var(--rbh-white);
	box-shadow: var(--rbh-shadow);
}

.rbh-panel {
	margin-bottom: var(--rbh-gap);
}

.rbh-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.rbh-panel__head .rbh-h3 {
	margin: 0;
}

.rbh-card--service,
.rbh-card--package {
	display: flex;
	flex-direction: column;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.rbh-card--service:hover,
.rbh-card--package:hover {
	transform: translateY(-3px);
	border-color: rgba(108, 92, 231, .35);
	box-shadow: var(--rbh-shadow-lift);
}

.rbh-card--package.is-featured {
	border-color: var(--rbh-primary);
}

.rbh-card--sticky {
	position: sticky;
	top: 24px;
}

.rbh-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 14px;
	border-radius: 12px;
	background: rgba(108, 92, 231, .10);
	color: var(--rbh-primary);
}

.rbh-card__title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	color: var(--rbh-dark);
}

.rbh-card__text {
	margin: 0 0 14px;
	color: var(--rbh-muted);
	font-size: 14px;
}

.rbh-card--service .rbh-btn,
.rbh-card--package .rbh-btn {
	margin-top: auto;
}

.rbh-ribbon {
	position: absolute;
	top: 14px;
	right: 14px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--rbh-primary);
	color: var(--rbh-white);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------- Grids */

.rbh-grid {
	display: grid;
	gap: var(--rbh-gap);
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.rbh-split {
	display: grid;
	gap: var(--rbh-gap);
	grid-template-columns: minmax(0, 1fr) 320px;
	align-items: start;
}

.rbh-split__main,
.rbh-split__side {
	min-width: 0;
}

/* --------------------------------------------------------------------- Price */

.rbh-price {
	margin: 0 0 12px;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--rbh-dark);
}

.rbh-price--lg {
	font-size: 30px;
}

.rbh-price__unit {
	margin-left: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--rbh-muted);
}

.rbh-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 16px 0;
	padding-top: 16px;
	border-top: 1px solid var(--rbh-border);
	font-size: 15px;
}

.rbh-total strong {
	font-size: 22px;
	color: var(--rbh-dark);
}

/* -------------------------------------------------------------------- Lists  */

.rbh-features,
.rbh-requirements {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.rbh-features li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 7px;
	font-size: 14px;
}

.rbh-features li .rbh-icon {
	flex: 0 0 auto;
	margin-top: 3px;
	color: var(--rbh-success);
}

.rbh-requirements li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px dashed var(--rbh-border);
	font-size: 14px;
}

.rbh-requirements em {
	color: var(--rbh-muted);
	font-size: 12px;
	font-style: normal;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.rbh-delivery {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 14px;
	color: var(--rbh-muted);
	font-size: 13.5px;
}

.rbh-meta {
	display: flex;
	gap: 20px;
	margin: 0 0 16px;
}

.rbh-meta__item dt {
	color: var(--rbh-muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.rbh-meta__item dd {
	margin: 2px 0 0;
	font-weight: 700;
	color: var(--rbh-dark);
}

.rbh-datalist {
	margin: 0;
}

.rbh-datalist > div {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
	padding: 9px 0;
	border-bottom: 1px solid var(--rbh-border);
}

.rbh-datalist > div:last-child {
	border-bottom: 0;
}

.rbh-datalist dt {
	color: var(--rbh-muted);
	font-size: 14px;
}

.rbh-datalist dd {
	margin: 0;
	max-width: 60%;
	text-align: right;
	font-weight: 600;
	color: var(--rbh-dark);
	font-size: 14px;
}

/* -------------------------------------------------------------------- Badges */

.rbh-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rbh-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 11px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}

.rbh-badge--neutral { background: #F3F4F6; color: #4B5563; }
.rbh-badge--info    { background: rgba(0, 194, 255, .12); color: #0369A1; }
.rbh-badge--warning { background: rgba(245, 158, 11, .14); color: #B45309; }
.rbh-badge--success { background: rgba(22, 163, 74, .12); color: #15803D; }
.rbh-badge--danger  { background: rgba(220, 38, 38, .10); color: #B91C1C; }

/* --------------------------------------------------------------------- Forms */

.rbh-form {
	margin: 0;
}

.rbh-field {
	margin-bottom: 16px;
}

.rbh-label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--rbh-dark);
}

.rbh-req {
	margin-left: 3px;
	color: var(--rbh-danger);
}

.rbh-hint {
	margin: 0 0 6px;
	color: var(--rbh-muted);
	font-size: 13px;
}

.rbh-input {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 11px 14px;
	border: 1px solid var(--rbh-border);
	border-radius: var(--rbh-radius-sm);
	background: var(--rbh-white);
	color: var(--rbh-dark);
	font-size: 15px;
	font-family: inherit;
	line-height: 1.5;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.rbh-input:focus {
	outline: none;
	border-color: var(--rbh-primary);
	box-shadow: 0 0 0 3px rgba(108, 92, 231, .16);
}

.rbh-input:disabled {
	background: var(--rbh-background);
	color: var(--rbh-muted);
}

.rbh-input.has-error {
	border-color: var(--rbh-danger);
}

textarea.rbh-input {
	min-height: 96px;
	resize: vertical;
}

.rbh-input-wrap {
	position: relative;
}

.rbh-input-wrap .rbh-input {
	padding-right: 48px;
}

.rbh-eye {
	position: absolute;
	top: 50%;
	right: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	transform: translateY(-50%);
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--rbh-muted);
	cursor: pointer;
}

.rbh-eye:hover {
	color: var(--rbh-primary);
	background: rgba(108, 92, 231, .08);
}

.rbh-row {
	display: flex;
	gap: 14px;
}

.rbh-row--two {
	flex-wrap: wrap;
}

.rbh-row--two > * {
	flex: 1 1 200px;
}

.rbh-row--split {
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.rbh-check,
.rbh-choice {
	display: inline-flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 14px;
	cursor: pointer;
}

.rbh-check input,
.rbh-choice input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--rbh-primary);
	flex: 0 0 auto;
}

.rbh-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
}

.rbh-error {
	margin: 6px 0 0;
	color: var(--rbh-danger);
	font-size: 13px;
	font-weight: 500;
}

.rbh-error--form {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: var(--rbh-radius-sm);
	background: rgba(220, 38, 38, .08);
}

.rbh-alert {
	margin: 0 0 14px;
	padding: 11px 14px;
	border-radius: var(--rbh-radius-sm);
	font-size: 14px;
}

.rbh-alert--danger  { background: rgba(220, 38, 38, .08); color: #991B1B; }
.rbh-alert--warning { background: rgba(245, 158, 11, .12); color: #92400E; }

/* -------------------------------------------------------- Password strength  */

.rbh-strength {
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: var(--rbh-radius-sm);
	background: var(--rbh-background);
}

.rbh-strength__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	color: var(--rbh-muted);
}

.rbh-strength__head strong {
	color: var(--rbh-dark);
}

.rbh-strength__bar {
	height: 6px;
	margin: 8px 0 10px;
	border-radius: 999px;
	background: var(--rbh-border);
	overflow: hidden;
}

.rbh-strength__bar span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: 999px;
	background: var(--rbh-danger);
	transition: width .25s ease, background-color .25s ease;
}

.rbh-strength.is-medium .rbh-strength__bar span { background: var(--rbh-warning); }
.rbh-strength.is-strong .rbh-strength__bar span { background: var(--rbh-success); }

.rbh-strength__rules {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 4px;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.rbh-strength__rules li {
	position: relative;
	padding-left: 20px;
	color: var(--rbh-muted);
	font-size: 12.5px;
}

.rbh-strength__rules li::before {
	content: "○";
	position: absolute;
	left: 0;
}

.rbh-strength__rules li.is-met {
	color: var(--rbh-success);
}

.rbh-strength__rules li.is-met::before {
	content: "✓";
}

/* ------------------------------------------------------------------ Payments */

.rbh-methods {
	display: grid;
	gap: 8px;
}

.rbh-method {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 14px;
	border: 1px solid var(--rbh-border);
	border-radius: var(--rbh-radius-sm);
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

.rbh-method:has(input:checked) {
	border-color: var(--rbh-primary);
	background: rgba(108, 92, 231, .05);
}

.rbh-method input {
	accent-color: var(--rbh-primary);
}

.rbh-method__name {
	font-weight: 600;
	font-size: 14px;
	color: var(--rbh-dark);
}

.rbh-instructions {
	margin: 14px 0;
	padding: 14px;
	border-radius: var(--rbh-radius-sm);
	background: var(--rbh-background);
	font-size: 14px;
}

.rbh-instructions p {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
	margin: 0 0 7px;
}

.rbh-instructions p:last-child {
	margin-bottom: 0;
}

.rbh-instructions span {
	color: var(--rbh-muted);
}

.rbh-qr {
	display: block;
	max-width: 180px;
	margin: 12px auto 0;
	border-radius: var(--rbh-radius-sm);
}

.rbh-file {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.rbh-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 22px 16px;
	border: 1.5px dashed var(--rbh-border);
	border-radius: var(--rbh-radius-sm);
	background: var(--rbh-background);
	color: var(--rbh-muted);
	font-size: 14px;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

.rbh-dropzone:hover,
.rbh-dropzone.is-active {
	border-color: var(--rbh-primary);
	background: rgba(108, 92, 231, .05);
}

.rbh-dropzone span {
	font-weight: 600;
	color: var(--rbh-dark);
	word-break: break-all;
}

.rbh-dropzone em {
	font-size: 12px;
	font-style: normal;
}

/* ------------------------------------------------------------------ Timeline */

.rbh-timeline {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rbh-timeline__step {
	position: relative;
	display: flex;
	gap: 14px;
	padding: 0 0 20px 0;
}

.rbh-timeline__step:last-child {
	padding-bottom: 0;
}

.rbh-timeline__step::before {
	content: "";
	position: absolute;
	top: 22px;
	bottom: 0;
	left: 10px;
	width: 2px;
	background: var(--rbh-border);
}

.rbh-timeline__step:last-child::before {
	display: none;
}

.rbh-timeline__dot {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border: 2px solid var(--rbh-border);
	border-radius: 50%;
	background: var(--rbh-white);
	color: var(--rbh-white);
}

.rbh-timeline__step.is-complete .rbh-timeline__dot {
	border-color: var(--rbh-success);
	background: var(--rbh-success);
}

.rbh-timeline__step.is-complete::before {
	background: var(--rbh-success);
}

.rbh-timeline__step.is-current .rbh-timeline__dot {
	border-color: var(--rbh-primary);
	box-shadow: 0 0 0 4px rgba(108, 92, 231, .18);
}

.rbh-timeline__step.is-stopped .rbh-timeline__dot {
	border-color: var(--rbh-danger);
	background: var(--rbh-danger);
}

.rbh-timeline__body strong {
	display: block;
	font-size: 14.5px;
	color: var(--rbh-dark);
}

.rbh-timeline__step.is-pending .rbh-timeline__body strong {
	color: var(--rbh-muted);
	font-weight: 500;
}

.rbh-timeline__body em {
	font-size: 12.5px;
	font-style: normal;
	color: var(--rbh-muted);
}

/* ----------------------------------------------------------------- Dashboard */

.rbh-dashboard {
	display: grid;
	gap: var(--rbh-gap);
	grid-template-columns: 232px minmax(0, 1fr);
	align-items: start;
}

.rbh-sidebar {
	position: sticky;
	top: 24px;
	padding: 12px;
	border: 1px solid var(--rbh-border);
	border-radius: var(--rbh-radius);
	background: var(--rbh-white);
	box-shadow: var(--rbh-shadow);
}

.rbh-nav {
	display: grid;
	gap: 2px;
}

.rbh-nav__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: var(--rbh-radius-sm);
	color: var(--rbh-text);
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}

.rbh-nav__link:hover {
	background: var(--rbh-background);
	color: var(--rbh-primary);
}

.rbh-nav__link.is-active {
	background: rgba(108, 92, 231, .10);
	color: var(--rbh-primary);
}

.rbh-nav__link--muted {
	margin-top: 6px;
	border-top: 1px solid var(--rbh-border);
	border-radius: 0;
	padding-top: 14px;
	color: var(--rbh-muted);
}

.rbh-nav__badge {
	margin-left: auto;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--rbh-danger);
	color: var(--rbh-white);
	font-size: 11.5px;
	font-style: normal;
	font-weight: 700;
}

.rbh-main {
	min-width: 0;
}

.rbh-stats {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	margin-bottom: var(--rbh-gap);
}

.rbh-stat {
	padding: 16px 18px;
	border: 1px solid var(--rbh-border);
	border-left: 3px solid var(--rbh-primary);
	border-radius: var(--rbh-radius-sm);
	background: var(--rbh-white);
	box-shadow: var(--rbh-shadow);
}

.rbh-stat--warning { border-left-color: var(--rbh-warning); }
.rbh-stat--info    { border-left-color: var(--rbh-accent); }
.rbh-stat--success { border-left-color: var(--rbh-success); }
.rbh-stat--dark    { border-left-color: var(--rbh-dark); }

.rbh-stat__label {
	display: block;
	color: var(--rbh-muted);
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.rbh-stat__value {
	display: block;
	margin-top: 4px;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--rbh-dark);
}

/* -------------------------------------------------------------------- Tables */

.rbh-table-wrap {
	overflow-x: auto;
	border-radius: var(--rbh-radius-sm);
}

.rbh-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.rbh-table th {
	padding: 10px 12px;
	border-bottom: 1px solid var(--rbh-border);
	color: var(--rbh-muted);
	font-size: 12.5px;
	font-weight: 600;
	text-align: left;
	text-transform: uppercase;
	letter-spacing: .04em;
	white-space: nowrap;
}

.rbh-table td {
	padding: 13px 12px;
	border-bottom: 1px solid var(--rbh-border);
	vertical-align: middle;
}

.rbh-table tbody tr:last-child td {
	border-bottom: 0;
}

.rbh-table tbody tr:hover {
	background: var(--rbh-background);
}

/* ------------------------------------------------------- Filters and paging  */

.rbh-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.rbh-chip {
	padding: 6px 14px;
	border: 1px solid var(--rbh-border);
	border-radius: 999px;
	background: var(--rbh-white);
	color: var(--rbh-text);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.rbh-chip:hover {
	border-color: var(--rbh-primary);
	color: var(--rbh-primary);
}

.rbh-chip.is-active {
	border-color: var(--rbh-primary);
	background: var(--rbh-primary);
	color: var(--rbh-white);
}

.rbh-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 18px;
}

.rbh-page {
	min-width: 38px;
	padding: 8px 10px;
	border: 1px solid var(--rbh-border);
	border-radius: var(--rbh-radius-sm);
	background: var(--rbh-white);
	color: var(--rbh-text);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.rbh-page.is-active {
	border-color: var(--rbh-primary);
	background: var(--rbh-primary);
	color: var(--rbh-white);
}

/* ------------------------------------------------------------- Notifications */

.rbh-notice-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.rbh-notice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--rbh-border);
	border-radius: var(--rbh-radius-sm);
	background: var(--rbh-white);
}

.rbh-notice.is-unread {
	border-left: 3px solid var(--rbh-primary);
	background: rgba(108, 92, 231, .04);
}

.rbh-notice__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: rgba(108, 92, 231, .10);
	color: var(--rbh-primary);
}

.rbh-notice__body {
	flex: 1 1 auto;
	min-width: 0;
}

.rbh-notice__body strong {
	display: block;
	font-size: 14.5px;
	color: var(--rbh-dark);
}

.rbh-notice__body p {
	margin: 3px 0;
	font-size: 14px;
	color: var(--rbh-text);
}

.rbh-notice__body em {
	font-size: 12.5px;
	font-style: normal;
	color: var(--rbh-muted);
}

/* --------------------------------------------------------------------- Auth  */

.rbh-auth {
	display: flex;
	justify-content: center;
	padding: 24px 0;
}

.rbh-auth__card {
	width: 100%;
	max-width: 420px;
	padding: 30px;
	border: 1px solid var(--rbh-border);
	border-radius: 18px;
	background: var(--rbh-white);
	box-shadow: var(--rbh-shadow-lift);
	text-align: left;
}

.rbh-auth__card--wide {
	max-width: 520px;
}

.rbh-auth__brand {
	margin-bottom: 20px;
	text-align: center;
}

.rbh-auth__brand img {
	max-height: 46px;
}

.rbh-wordmark {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--rbh-primary);
}

.rbh-auth__title {
	margin: 0 0 6px;
	font-size: 23px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--rbh-dark);
	text-align: center;
}

.rbh-auth__sub {
	margin: 0 0 22px;
	color: var(--rbh-muted);
	font-size: 14.5px;
	text-align: center;
}

.rbh-auth__foot {
	margin: 20px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--rbh-border);
	color: var(--rbh-muted);
	font-size: 14px;
	text-align: center;
}

.rbh-resend {
	margin-top: 12px;
}

.rbh-state-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 50%;
}

.rbh-state-icon--success { background: rgba(22, 163, 74, .12); color: var(--rbh-success); }
.rbh-state-icon--warning { background: rgba(245, 158, 11, .14); color: var(--rbh-warning); }
.rbh-state-icon--danger  { background: rgba(220, 38, 38, .10); color: var(--rbh-danger); }
.rbh-state-icon--primary { background: rgba(108, 92, 231, .10); color: var(--rbh-primary); }

.rbh-success-panel {
	padding: 26px 20px;
	border-radius: var(--rbh-radius);
	background: var(--rbh-background);
	text-align: center;
}

.rbh-success-panel__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: rgba(22, 163, 74, .12);
	color: var(--rbh-success);
}

.rbh-success-panel h3 {
	margin: 0 0 8px;
	font-size: 18px;
	color: var(--rbh-dark);
}

.rbh-success-panel p {
	margin: 0 0 18px;
	color: var(--rbh-muted);
	font-size: 14.5px;
}

/* -------------------------------------------------------------- Empty states */

.rbh-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 40px 20px;
	border: 1px dashed var(--rbh-border);
	border-radius: var(--rbh-radius);
	background: var(--rbh-white);
	color: var(--rbh-muted);
	text-align: center;
}

.rbh-empty p {
	margin: 0;
}

/* -------------------------------------------------------------------- Toasts */

.rbh-toasts {
	position: fixed;
	z-index: 99999;
	right: 18px;
	bottom: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: min(340px, calc(100vw - 36px));
}

.rbh-toast {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 13px 16px;
	border-left: 3px solid var(--rbh-primary);
	border-radius: var(--rbh-radius-sm);
	background: #111827;
	color: #F9FAFB;
	font-size: 14px;
	box-shadow: 0 12px 32px rgba(17, 24, 39, .28);
	animation: rbh-toast-in .22s ease;
}

.rbh-toast--success { border-left-color: var(--rbh-success); }
.rbh-toast--error   { border-left-color: var(--rbh-danger); }

.rbh-toast.is-leaving {
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .2s ease, transform .2s ease;
}

@keyframes rbh-toast-in {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 960px) {
	.rbh-split {
		grid-template-columns: minmax(0, 1fr);
	}

	.rbh-card--sticky,
	.rbh-sidebar {
		position: static;
	}

	.rbh-dashboard {
		grid-template-columns: minmax(0, 1fr);
	}

	.rbh-nav {
		grid-auto-flow: column;
		grid-auto-columns: max-content;
		overflow-x: auto;
		gap: 6px;
		scrollbar-width: none;
	}

	.rbh-nav::-webkit-scrollbar {
		display: none;
	}

	.rbh-nav__link--muted {
		margin-top: 0;
		padding-top: 10px;
		border-top: 0;
		border-radius: var(--rbh-radius-sm);
	}
}

@media (max-width: 720px) {
	.rbh {
		font-size: 14.5px;
	}

	.rbh-page-title {
		font-size: 22px;
	}

	.rbh-card,
	.rbh-panel,
	.rbh-auth__card {
		padding: 18px;
	}

	/* Tables become stacked cards so nothing scrolls sideways. */
	.rbh-table thead {
		display: none;
	}

	.rbh-table,
	.rbh-table tbody,
	.rbh-table tr,
	.rbh-table td {
		display: block;
		width: 100%;
	}

	.rbh-table tr {
		margin-bottom: 12px;
		border: 1px solid var(--rbh-border);
		border-radius: var(--rbh-radius-sm);
		overflow: hidden;
	}

	.rbh-table td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
		padding: 10px 14px;
		text-align: right;
	}

	.rbh-table td::before {
		content: attr(data-label);
		flex: 0 0 auto;
		color: var(--rbh-muted);
		font-size: 12.5px;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: .04em;
		text-align: left;
	}

	.rbh-datalist dd {
		max-width: 100%;
	}

	.rbh-toasts {
		right: 12px;
		left: 12px;
		bottom: 12px;
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rbh *,
	.rbh *::before,
	.rbh *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

/* --------------------------------------------------- Specificity hardening */

/*
 * Some themes and page builders (Elementor's global Kit CSS in particular)
 * style bare h1-h6 and <a> tags with a selector like ".elementor-kit-27 h2"
 * or ".elementor-kit-27 a" — a class plus a tag, which is more specific than
 * any single class here. Every rule above that styles a heading or a link
 * loses that fight whenever this CSS loads first, which is normal since
 * host stylesheets are rarely guaranteed to load after a plugin's own. These
 * re-assert the same values with one extra ancestor class so they always win,
 * regardless of what else is active on the page.
 */

.rbh .rbh-page-title {
	font-family: inherit;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--rbh-dark);
}

.rbh .rbh-h3 {
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--rbh-dark);
}

.rbh .rbh-card__title {
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--rbh-dark);
}

.rbh .rbh-auth__title {
	font-family: inherit;
	font-size: 23px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--rbh-dark);
}

.rbh .rbh-btn,
.rbh .rbh-link,
.rbh .rbh-back {
	font-family: inherit;
	text-decoration: none;
}

.rbh .rbh-btn {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--rbh-white);
}

.rbh .rbh-btn--ghost {
	color: var(--rbh-dark);
}

.rbh .rbh-link {
	font-size: inherit;
	font-weight: 600;
	color: var(--rbh-primary);
}

.rbh .rbh-back {
	font-size: 14px;
	font-weight: 600;
	color: var(--rbh-muted);
}
