/**
 * MOFH WP Client — Frontend Portal Styles
 *
 * Responsive, modern CSS for the client-facing hosting portal.
 * Uses CSS custom properties for easy theming and dark-mode
 * compatibility. Mobile-first with progressive enhancement.
 *
 * @package MofhWP
 */

/* ===========================
   CSS Variables & Design Tokens
   =========================== */
:root {
	--mofhwp-p-primary: #6b910f;
	--mofhwp-p-primary-dark: #516c0f;
	--mofhwp-p-primary-light: #f3fcdf;
	--mofhwp-p-primary-glow: rgba(107, 145, 15, 0.15);
	--mofhwp-p-success: #10b981;
	--mofhwp-p-success-light: #d1fae5;
	--mofhwp-p-warning: #f59e0b;
	--mofhwp-p-warning-light: #fef3c7;
	--mofhwp-p-danger: #ef4444;
	--mofhwp-p-danger-light: #fee2e2;
	--mofhwp-p-muted: #64748b;
	--mofhwp-p-muted-light: #f1f5f9;
	--mofhwp-p-bg: #f8fafc;
	--mofhwp-p-surface: #ffffff;
	--mofhwp-p-text: #1e293b;
	--mofhwp-p-text-secondary: #64748b;
	--mofhwp-p-border: #e2e8f0;
	--mofhwp-p-radius: 12px;
	--mofhwp-p-radius-sm: 8px;
	--mofhwp-p-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
	--mofhwp-p-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
	--mofhwp-p-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
	--mofhwp-p-transition: all 0.2s ease-in-out;
	--mofhwp-p-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===========================
   Portal Container
   =========================== */
.mofhwp-portal-wrap {
	font-family: var(--mofhwp-p-font);
	color: var(--mofhwp-p-text);
	max-width: 960px;
	margin: 0 auto;
	padding: 24px 0;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.mofhwp-portal-wrap *,
.mofhwp-portal-wrap *::before,
.mofhwp-portal-wrap *::after {
	box-sizing: border-box;
}

/* ===========================
   Portal Header
   =========================== */
.mofhwp-portal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 8px;
	margin-top: 20px;
	flex-wrap: wrap;
	gap: 12px;
}

.mofhwp-portal-title {
	font-size: 24px;
	font-weight: 800;
	color: var(--mofhwp-p-text);
	margin: 0 0 2px;
	letter-spacing: -0.025em;
}

.mofhwp-portal-subtitle {
	font-size: 14px;
	color: var(--mofhwp-p-text-secondary);
	margin: 0;
}

.mofhwp-portal-subtitle strong {
	color: var(--mofhwp-p-primary-dark);
}

/* ===========================
   Quota Progress Bar
   =========================== */
.mofhwp-quota-bar-wrap {
	margin-bottom: 28px;
}

.mofhwp-quota-bar {
	height: 6px;
	background: var(--mofhwp-p-border);
	border-radius: 6px;
	overflow: hidden;
}

.mofhwp-quota-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--mofhwp-p-primary), var(--mofhwp-p-success));
	border-radius: 6px;
	transition: width 0.5s ease;
	min-width: 4px;
}

.mofhwp-quota-badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
}

.mofhwp-quota-reached {
	background: var(--mofhwp-p-warning-light);
	color: #92400e;
}

/* ===========================
   Buttons
   =========================== */
.mofhwp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 20px;
	border-radius: var(--mofhwp-p-radius-sm);
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	border: none;
	transition: var(--mofhwp-p-transition);
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
}

.mofhwp-btn .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 18px;
}

.mofhwp-btn-primary {
	background: var(--mofhwp-p-primary);
	color: #ffffff;
	box-shadow: 0 1px 3px rgba(107, 145, 15, 0.3);
}

.mofhwp-btn-primary:hover {
	background: var(--mofhwp-p-primary-dark);
	color: #ffffff;
	box-shadow: 0 3px 8px rgba(81, 108, 15, 0.35);
	transform: translateY(-1px);
}

.mofhwp-btn-primary:active {
	transform: translateY(0);
}

.mofhwp-btn-outline {
	background: transparent;
	color: var(--mofhwp-p-primary);
	border: 1.5px solid var(--mofhwp-p-primary);
}

.mofhwp-btn-outline:hover {
	background: var(--mofhwp-p-primary-light);
	color: var(--mofhwp-p-primary-dark);
}

.mofhwp-btn-ghost {
	background: transparent;
	color: var(--mofhwp-p-text-secondary);
	border: 1px solid var(--mofhwp-p-border);
}

.mofhwp-btn-ghost:hover {
	background: var(--mofhwp-p-muted-light);
	color: var(--mofhwp-p-text);
}

.mofhwp-btn-link {
	background: none;
	border: none;
	color: var(--mofhwp-p-primary);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.15s;
}

.mofhwp-btn-link:hover {
	color: var(--mofhwp-p-primary-dark);
}

.mofhwp-btn:disabled,
.mofhwp-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.mofhwp-btn .mofhwp-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: mofhwp-spin 0.6s linear infinite;
}

/* ===========================
   Account Cards Grid
   =========================== */
.mofhwp-account-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
	gap: 20px;
	margin-bottom: 24px;
}

.mofhwp-account-card {
	background: var(--mofhwp-p-surface);
	border: 1px solid var(--mofhwp-p-border);
	border-radius: var(--mofhwp-p-radius);
	padding: 24px;
	box-shadow: var(--mofhwp-p-shadow);
	transition: var(--mofhwp-p-transition);
	position: relative;
}

.mofhwp-account-card:hover {
	box-shadow: var(--mofhwp-p-shadow-md);
}

.mofhwp-acc-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	gap: 12px;
}

.mofhwp-acc-domain-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.mofhwp-globe-icon {
	color: var(--mofhwp-p-primary);
	font-size: 20px;
	flex-shrink: 0;
}

.mofhwp-acc-domain-link {
	font-size: 16px;
	font-weight: 700;
	color: var(--mofhwp-p-text);
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color 0.15s;
}

.mofhwp-acc-domain-link:hover {
	color: var(--mofhwp-p-primary);
}

/* ===========================
   Status Badges
   =========================== */
.mofhwp-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	flex-shrink: 0;
}

.mofhwp-status-active {
	background: var(--mofhwp-p-success-light);
	color: #065f46;
}

.mofhwp-status-pending {
	background: var(--mofhwp-p-warning-light);
	color: #92400e;
}

.mofhwp-status-suspended {
	background: var(--mofhwp-p-danger-light);
	color: #991b1b;
}

/* ===========================
   Alerts
   =========================== */
.mofhwp-alert {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: var(--mofhwp-p-radius-sm);
	font-size: 13px;
	margin-bottom: 12px;
}

.mofhwp-alert .dashicons {
	flex-shrink: 0;
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.mofhwp-alert-amber {
	background: var(--mofhwp-p-warning-light);
	color: #92400e;
}

.mofhwp-alert-danger {
	background: var(--mofhwp-p-danger-light);
	color: #991b1b;
}

.mofhwp-alert-info {
	background: var(--mofhwp-p-primary-light);
	color: #415412;
}

.mofhwp-alert-success {
	background: var(--mofhwp-p-success-light);
	color: #065f46;
}

/* ===========================
   Specs Grid (Account Card)
   =========================== */
.mofhwp-acc-specs-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 16px;
}

.mofhwp-spec-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mofhwp-spec-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--mofhwp-p-text-secondary);
	font-weight: 600;
}

.mofhwp-spec-value {
	font-size: 13px;
	color: var(--mofhwp-p-text);
	display: flex;
	align-items: center;
	gap: 4px;
}

.mofhwp-spec-value code {
	background: var(--mofhwp-p-muted-light);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 12px;
	font-family: "SF Mono", "Fira Code", Consolas, monospace;
	color: var(--mofhwp-p-text);
}

/* ===========================
   Copy Button (inline icon)
   =========================== */
.mofhwp-copy-icon-btn {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 14px;
	color: var(--mofhwp-p-muted);
	padding: 2px;
	line-height: 1;
	transition: color 0.15s;
}

.mofhwp-copy-icon-btn:hover {
	color: var(--mofhwp-p-primary);
}

.mofhwp-copy-icon-btn.is-copied {
	color: var(--mofhwp-p-success);
}

/* ===========================
   Card Actions
   =========================== */
.mofhwp-acc-card-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding-top: 14px;
	border-top: 1px solid var(--mofhwp-p-border);
}

.mofhwp-btn-sso {
	flex: 1;
	min-width: 0;
}

/* ===========================
   Dropdown Menu
   =========================== */
.mofhwp-dropdown-wrap {
	position: relative;
}

.mofhwp-dropdown-toggle {
	padding: 8px 12px;
}

.mofhwp-dropdown-menu {
	display: none;
	position: absolute;
	right: 0;
	bottom: 100%;
	margin-bottom: 4px;
	background: var(--mofhwp-p-surface);
	border: 1px solid var(--mofhwp-p-border);
	border-radius: var(--mofhwp-p-radius-sm);
	box-shadow: var(--mofhwp-p-shadow-md);
	min-width: 200px;
	z-index: 50;
	padding: 4px 0;
	animation: mofhwp-dropdown-in 0.15s ease;
}

.mofhwp-dropdown-wrap.is-open .mofhwp-dropdown-menu {
	display: block;
}

.mofhwp-dropdown-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	font-size: 13px;
	color: var(--mofhwp-p-text);
	text-decoration: none;
	transition: background 0.12s;
}

.mofhwp-dropdown-item:hover {
	background: var(--mofhwp-p-muted-light);
}

.mofhwp-dropdown-item .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: var(--mofhwp-p-muted);
}

.mofhwp-dropdown-item.text-green {
	color: #059669;
}

.mofhwp-dropdown-item.text-green .dashicons {
	color: #059669;
}

.mofhwp-dropdown-item.text-red {
	color: var(--mofhwp-p-danger);
}

.mofhwp-dropdown-item.text-red .dashicons {
	color: var(--mofhwp-p-danger);
}

/* ===========================
   Empty State
   =========================== */
.mofhwp-empty-state {
	text-align: center;
	padding: 48px 24px;
	background: var(--mofhwp-p-surface);
	border: 2px dashed var(--mofhwp-p-border);
	border-radius: var(--mofhwp-p-radius);
}

.mofhwp-empty-icon .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: var(--mofhwp-p-border);
	margin-bottom: 12px;
}

.mofhwp-empty-state h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--mofhwp-p-text);
	margin: 0 0 6px;
}

.mofhwp-empty-state p {
	color: var(--mofhwp-p-text-secondary);
	font-size: 14px;
	margin: 0 0 20px;
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
}

/* ===========================
   Guest Notice (Not Logged In)
   =========================== */
.mofhwp-guest-notice {
	display: flex;
	justify-content: center;
	padding: 48px 24px;
}

.mofhwp-guest-box {
	text-align: center;
	background: var(--mofhwp-p-surface);
	border: 1px solid var(--mofhwp-p-border);
	border-radius: var(--mofhwp-p-radius);
	padding: 40px 32px;
	max-width: 420px;
	box-shadow: var(--mofhwp-p-shadow);
}

.mofhwp-guest-icon .dashicons {
	font-size: 40px;
	width: 40px;
	height: 40px;
	color: var(--mofhwp-p-primary);
	margin-bottom: 12px;
}

.mofhwp-guest-box h3 {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 8px;
}

.mofhwp-guest-box p {
	color: var(--mofhwp-p-text-secondary);
	font-size: 14px;
	margin: 0 0 20px;
}

.mofhwp-guest-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* ===========================
   Wizard — Steps Indicator
   =========================== */
.mofhwp-wizard-section {
	margin-top: 24px;
}

.mofhwp-wizard-container {
	background: var(--mofhwp-p-surface);
	border: 1px solid var(--mofhwp-p-border);
	border-radius: var(--mofhwp-p-radius);
	padding: 28px 32px;
	box-shadow: var(--mofhwp-p-shadow);
}

.mofhwp-wizard-steps-indicator {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin-bottom: 28px;
}

.mofhwp-step-pill {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	color: var(--mofhwp-p-muted);
	background: var(--mofhwp-p-muted-light);
	transition: var(--mofhwp-p-transition);
}

.mofhwp-step-pill.is-active {
	background: var(--mofhwp-p-primary-light);
	color: var(--mofhwp-p-primary-dark);
}

.mofhwp-step-pill.is-done {
	background: var(--mofhwp-p-success-light);
	color: #065f46;
}

.mofhwp-step-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--mofhwp-p-muted);
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	flex-shrink: 0;
}

.mofhwp-step-pill.is-active .mofhwp-step-dot {
	background: var(--mofhwp-p-primary);
}

.mofhwp-step-pill.is-done .mofhwp-step-dot {
	background: var(--mofhwp-p-success);
}

.mofhwp-step-connector {
	width: 40px;
	height: 2px;
	background: var(--mofhwp-p-border);
	flex-shrink: 0;
}

.mofhwp-step-name {
	display: none;
}

@media (min-width: 640px) {
	.mofhwp-step-name {
		display: inline;
	}
}

/* ===========================
   Wizard — Step Panes
   =========================== */
.mofhwp-wizard-step-pane {
	display: none;
}

.mofhwp-wizard-step-pane.is-visible {
	display: block;
	animation: mofhwp-fade-in 0.3s ease;
}

.mofhwp-wizard-step-pane h3 {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 6px;
}

.mofhwp-subtext {
	color: var(--mofhwp-p-text-secondary);
	font-size: 14px;
	margin: 0 0 20px;
}

.mofhwp-step-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 24px;
	gap: 12px;
}

/* ===========================
   Domain Type Toggle (Radio Cards)
   =========================== */
.mofhwp-radio-group {
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.mofhwp-radio-card {
	flex: 1;
	min-width: 180px;
	padding: 16px;
	border: 2px solid var(--mofhwp-p-border);
	border-radius: var(--mofhwp-p-radius-sm);
	cursor: pointer;
	transition: var(--mofhwp-p-transition);
	position: relative;
}

.mofhwp-radio-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.mofhwp-radio-card:hover {
	border-color: var(--mofhwp-p-primary);
}

.mofhwp-radio-card.is-selected {
	border-color: var(--mofhwp-p-primary);
	background: var(--mofhwp-p-primary-glow);
}

.mofhwp-radio-card-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mofhwp-radio-card-content strong {
	font-size: 14px;
	color: var(--mofhwp-p-text);
}

.mofhwp-radio-card-content span {
	font-size: 12px;
	color: var(--mofhwp-p-text-secondary);
}

/* ===========================
   Domain Input Fields
   =========================== */
.mofhwp-domain-input-box {
	margin-bottom: 16px;
}

.mofhwp-domain-input-box label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	color: var(--mofhwp-p-text);
	margin-bottom: 6px;
}

.mofhwp-subdomain-combiner {
	display: flex;
	align-items: center;
	border: 1.5px solid var(--mofhwp-p-border);
	border-radius: var(--mofhwp-p-radius-sm);
	overflow: hidden;
	transition: border-color 0.2s;
	background: var(--mofhwp-p-surface);
}

.mofhwp-subdomain-combiner:focus-within {
	border-color: var(--mofhwp-p-primary);
	box-shadow: 0 0 0 3px var(--mofhwp-p-primary-glow);
}

.mofhwp-subdomain-combiner input {
	flex: 1;
	border: none;
	padding: 10px 14px;
	font-size: 15px;
	outline: none;
	font-family: inherit;
	min-width: 0;
}

.mofhwp-domain-dot {
	font-size: 16px;
	font-weight: 700;
	color: var(--mofhwp-p-muted);
	padding: 0 2px;
}

.mofhwp-subdomain-combiner select {
	border: none;
	background: var(--mofhwp-p-muted-light);
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--mofhwp-p-text);
	outline: none;
	cursor: pointer;
	font-family: inherit;
}

.mofhwp-input-large {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid var(--mofhwp-p-border);
	border-radius: var(--mofhwp-p-radius-sm);
	font-size: 15px;
	font-family: inherit;
	transition: border-color 0.2s;
	background: var(--mofhwp-p-surface);
}

.mofhwp-input-large:focus {
	border-color: var(--mofhwp-p-primary);
	box-shadow: 0 0 0 3px var(--mofhwp-p-primary-glow);
	outline: none;
}

.mofhwp-info-hint {
	font-size: 12px;
	color: var(--mofhwp-p-text-secondary);
	margin-top: 6px;
}

.mofhwp-info-hint code {
	background: var(--mofhwp-p-muted-light);
	padding: 1px 5px;
	border-radius: 3px;
	font-size: 12px;
}

/* ===========================
   Domain Availability Status
   =========================== */
.mofhwp-domain-status-box {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: var(--mofhwp-p-radius-sm);
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 12px;
	animation: mofhwp-fade-in 0.2s ease;
}

.mofhwp-domain-status-box.is-checking {
	background: var(--mofhwp-p-muted-light);
	color: var(--mofhwp-p-muted);
}

.mofhwp-domain-status-box.is-available {
	background: var(--mofhwp-p-success-light);
	color: #065f46;
}

.mofhwp-domain-status-box.is-taken {
	background: var(--mofhwp-p-danger-light);
	color: #991b1b;
}

.mofhwp-status-icon .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* ===========================
   Plan Selector Cards
   =========================== */
.mofhwp-plans-selector-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}

.mofhwp-plan-card {
	padding: 16px;
	border: 2px solid var(--mofhwp-p-border);
	border-radius: var(--mofhwp-p-radius-sm);
	cursor: pointer;
	transition: var(--mofhwp-p-transition);
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mofhwp-plan-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.mofhwp-plan-card:hover {
	border-color: var(--mofhwp-p-primary);
}

.mofhwp-plan-card.is-selected {
	border-color: var(--mofhwp-p-primary);
	background: var(--mofhwp-p-primary-glow);
}

.mofhwp-plan-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--mofhwp-p-text);
}

.mofhwp-plan-desc {
	font-size: 12px;
	color: var(--mofhwp-p-text-secondary);
}

.mofhwp-plan-badge {
	position: absolute;
	top: -8px;
	right: 12px;
	background: var(--mofhwp-p-primary);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 4px;
	letter-spacing: 0.05em;
}

.mofhwp-label-bold {
	display: block;
	font-weight: 700;
	font-size: 13px;
	color: var(--mofhwp-p-text);
	margin-bottom: 8px;
}

/* ===========================
   Password Section
   =========================== */
.mofhwp-password-section {
	margin-top: 16px;
}

.mofhwp-flex-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.mofhwp-input-pass-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.mofhwp-input-pass-wrap input {
	flex: 1;
	padding-right: 42px;
}

.mofhwp-toggle-eye-btn {
	position: absolute;
	right: 8px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 18px;
	padding: 4px;
	color: var(--mofhwp-p-muted);
	transition: color 0.15s;
}

.mofhwp-toggle-eye-btn:hover {
	color: var(--mofhwp-p-text);
}

/* ===========================
   Password Strength Bar
   =========================== */
.mofhwp-password-strength-bar {
	height: 4px;
	background: var(--mofhwp-p-border);
	border-radius: 4px;
	margin-top: 6px;
	overflow: hidden;
}

.mofhwp-strength-fill {
	height: 100%;
	width: 0;
	border-radius: 4px;
	transition: width 0.3s ease, background 0.3s ease;
}

.mofhwp-strength-fill.is-weak {
	width: 25%;
	background: var(--mofhwp-p-danger);
}

.mofhwp-strength-fill.is-fair {
	width: 50%;
	background: var(--mofhwp-p-warning);
}

.mofhwp-strength-fill.is-good {
	width: 75%;
	background: #84cc16;
}

.mofhwp-strength-fill.is-strong {
	width: 100%;
	background: var(--mofhwp-p-success);
}

/* ===========================
   Summary Box (Step 3)
   =========================== */
.mofhwp-summary-box {
	background: var(--mofhwp-p-muted-light);
	border-radius: var(--mofhwp-p-radius-sm);
	padding: 16px 20px;
	margin-bottom: 16px;
}

.mofhwp-summary-row {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	font-size: 14px;
}

.mofhwp-summary-row+.mofhwp-summary-row {
	border-top: 1px solid var(--mofhwp-p-border);
}

.mofhwp-summary-row span {
	color: var(--mofhwp-p-text-secondary);
}

.mofhwp-summary-row strong {
	color: var(--mofhwp-p-text);
}

.text-primary {
	color: var(--mofhwp-p-primary) !important;
}

/* ===========================
   Captcha Wrapper
   =========================== */
.mofhwp-captcha-wrap {
	margin-bottom: 16px;
	display: flex;
	justify-content: center;
}

/* ===========================
   Terms Checkbox
   =========================== */
.mofhwp-terms-check {
	margin-bottom: 12px;
	font-size: 13px;
	color: var(--mofhwp-p-text-secondary);
}

.mofhwp-terms-check input[type="checkbox"] {
	margin-right: 6px;
	accent-color: var(--mofhwp-p-primary);
}

/* ===========================
   Form Groups (Modal)
   =========================== */
.mofhwp-form-group {
	margin-bottom: 16px;
}

/* ===========================
   Portal Modals
   =========================== */
.mofhwp-portal-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.mofhwp-portal-modal[style*="display:none"],
.mofhwp-portal-modal[style*="display: none"] {
	display: none !important;
}

.mofhwp-portal-modal-dialog {
	background: var(--mofhwp-p-surface);
	border-radius: var(--mofhwp-p-radius);
	box-shadow: var(--mofhwp-p-shadow-lg);
	width: 100%;
	max-width: 500px;
	max-height: 85vh;
	overflow-y: auto;
	animation: mofhwp-modal-in 0.25s ease;
}

.mofhwp-portal-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	border-bottom: 1px solid var(--mofhwp-p-border);
}

.mofhwp-portal-modal-header h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
}

.mofhwp-modal-close-btn:not(.mofhwp-btn) {
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	color: var(--mofhwp-p-muted);
	padding: 0;
	line-height: 1;
	transition: color 0.15s;
}

.mofhwp-modal-close-btn:not(.mofhwp-btn):hover {
	color: var(--mofhwp-p-danger);
}

.mofhwp-portal-modal-body {
	padding: 20px 24px;
}

.mofhwp-portal-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	padding: 12px 24px;
	border-top: 1px solid var(--mofhwp-p-border);
}

.mofhwp-modal-info-text {
	font-size: 13px;
	color: var(--mofhwp-p-text-secondary);
	margin: 0 0 12px;
}

.mofhwp-domain-highlight {
	padding: 10px 14px;
	background: var(--mofhwp-p-muted-light);
	border-radius: var(--mofhwp-p-radius-sm);
	margin-bottom: 16px;
	text-align: center;
	font-size: 15px;
	color: var(--mofhwp-p-primary-dark);
}

/* ===========================
   Connection Details Table
   =========================== */
.mofhwp-conn-table {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.mofhwp-conn-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	font-size: 13px;
	border-bottom: 1px solid var(--mofhwp-p-border);
	gap: 12px;
}

.mofhwp-conn-row:last-child {
	border-bottom: none;
}

.mofhwp-conn-label {
	color: var(--mofhwp-p-text-secondary);
	font-weight: 600;
	flex-shrink: 0;
}

.mofhwp-conn-val {
	display: flex;
	align-items: center;
	gap: 6px;
	text-align: right;
}

.mofhwp-conn-val code {
	background: var(--mofhwp-p-muted-light);
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-family: "SF Mono", "Fira Code", Consolas, monospace;
}

.mofhwp-conn-val a {
	color: var(--mofhwp-p-primary);
	text-decoration: none;
	font-weight: 600;
}

.mofhwp-conn-val a:hover {
	text-decoration: underline;
}

/* ===========================
   Toast Notifications (Portal)
   =========================== */
.mofhwp-portal-toast {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 1000000;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	border-radius: var(--mofhwp-p-radius-sm);
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	box-shadow: var(--mofhwp-p-shadow-lg);
	animation: mofhwp-toast-in 0.3s ease forwards;
	max-width: 400px;
}

.mofhwp-portal-toast.is-success {
	background: var(--mofhwp-p-success);
}

.mofhwp-portal-toast.is-error {
	background: var(--mofhwp-p-danger);
}

.mofhwp-portal-toast.is-info {
	background: var(--mofhwp-p-primary);
}

.mofhwp-portal-toast.is-exiting {
	animation: mofhwp-toast-out 0.3s ease forwards;
}

/* ===========================
   Spin Animation
   =========================== */
.mofhwp-spin {
	animation: mofhwp-spin 1s linear infinite;
}

/* ===========================
   Responsive
   =========================== */
@media screen and (max-width: 640px) {
	.mofhwp-portal-header {
		flex-direction: column;
		align-items: stretch;
	}

	.mofhwp-portal-header-right {
		text-align: center;
	}

	.mofhwp-account-cards-grid {
		grid-template-columns: 1fr;
	}

	.mofhwp-acc-specs-grid {
		grid-template-columns: 1fr;
	}

	.mofhwp-acc-card-actions {
		flex-direction: column;
	}

	.mofhwp-btn-sso {
		width: 100%;
	}

	.mofhwp-radio-group {
		flex-direction: column;
	}

	.mofhwp-plans-selector-grid {
		grid-template-columns: 1fr;
	}

	.mofhwp-wizard-container {
		padding: 20px 16px;
	}

	.mofhwp-conn-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.mofhwp-conn-val {
		text-align: left;
	}
}

/* ===========================
   Keyframe Animations
   =========================== */
@keyframes mofhwp-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes mofhwp-fade-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes mofhwp-modal-in {
	from {
		opacity: 0;
		transform: scale(0.95) translateY(12px);
	}

	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

@keyframes mofhwp-dropdown-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes mofhwp-toast-in {
	from {
		transform: translateX(100px);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes mofhwp-toast-out {
	from {
		transform: translateX(0);
		opacity: 1;
	}

	to {
		transform: translateX(100px);
		opacity: 0;
	}
}

/* ===========================
   Guest Auth (portal step 1)
   =========================== */
.mofhwp-auth-card {
	background: var(--mofhwp-p-surface);
	border: 1px solid var(--mofhwp-p-border);
	border-radius: var(--mofhwp-p-radius);
	box-shadow: var(--mofhwp-p-shadow);
	padding: 28px 32px;
	max-width: 620px;
	margin: 0 auto;
}

.mofhwp-auth-tabs {
	display: flex;
	gap: 6px;
	padding: 6px;
	background: var(--mofhwp-p-muted-light);
	border-radius: var(--mofhwp-p-radius-sm);
	margin-bottom: 22px;
}

.mofhwp-auth-tab {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--mofhwp-p-muted);
	border-radius: var(--mofhwp-p-radius-sm);
	cursor: pointer;
	transition: var(--mofhwp-p-transition);
}

.mofhwp-auth-tab:hover {
	color: var(--mofhwp-p-primary);
}

.mofhwp-auth-tab.is-active {
	background: var(--mofhwp-p-surface);
	color: var(--mofhwp-p-primary);
	box-shadow: var(--mofhwp-p-shadow);
}

.mofhwp-auth-form {
	display: none;
}

.mofhwp-auth-form.is-visible {
	display: block;
}

.mofhwp-auth-hint {
	color: var(--mofhwp-p-muted);
	font-size: 14px;
	margin: 0 0 20px;
}

.mofhwp-check-inline {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	font-size: 13px;
	color: var(--mofhwp-p-muted);
	cursor: pointer;
}

.mofhwp-auth-footer {
	text-align: center;
	font-size: 13px;
	color: var(--mofhwp-p-muted);
	margin-top: 18px;
}

.mofhwp-auth-footer a {
	color: var(--mofhwp-p-primary);
}

.mofhwp-guest-wrap .mofhwp-step-actions {
	justify-content: flex-end;
}

@media screen and (max-width: 600px) {
	.mofhwp-auth-card {
		padding: 20px 16px;
	}

	.mofhwp-guest-wrap .mofhwp-step-actions .mofhwp-btn {
		width: 100%;
	}
}

/* ===========================
   Theme Override Guard
   Keeps the portal UI intact against theme/plugin styles.
   Scoped to the portal root with a doubled ID (specificity 2,0,0) so guard
   rules beat theme !important declarations that chain ID or ID+class
   selectors (e.g. "#content .site-main button { ... !important }").
   !important is applied to identity properties only (colors, borders,
   radii, typography, shadows) — layout, positioning and the responsive
   @media rules above still win. Do not "simplify" the doubled ID: a
   single-ID guard loses to aggressive themes and page builders.
   =========================== */

/* --- Buttons: geometry + typography --- */
#mofhwp-portal#mofhwp-portal .mofhwp-btn,
#mofhwp-portal#mofhwp-portal a.mofhwp-btn,
#mofhwp-portal#mofhwp-portal button.mofhwp-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	padding: 10px 20px !important;
	margin: 0 !important;
	border-radius: var(--mofhwp-p-radius-sm) !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	text-decoration: none !important;
	text-shadow: none !important;
	white-space: nowrap !important;
	cursor: pointer !important;
	min-height: 0 !important;
}

/* --- Button colourways --- */
#mofhwp-portal#mofhwp-portal .mofhwp-btn-primary {
	background: var(--mofhwp-p-primary) !important;
	background-image: none !important;
	color: #ffffff !important;
	border: 0 !important;
	box-shadow: 0 1px 3px rgba(107, 145, 15, 0.3) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-btn-primary:hover {
	background: var(--mofhwp-p-primary-dark) !important;
	color: #ffffff !important;
	box-shadow: 0 3px 8px rgba(81, 108, 15, 0.35) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-btn-outline {
	background: transparent !important;
	color: var(--mofhwp-p-primary) !important;
	border: 1.5px solid var(--mofhwp-p-primary) !important;
	box-shadow: none !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-btn-outline:hover {
	background: var(--mofhwp-p-primary-light) !important;
	color: var(--mofhwp-p-primary-dark) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-btn-ghost {
	background: transparent !important;
	color: var(--mofhwp-p-text-secondary) !important;
	border: 1px solid var(--mofhwp-p-border) !important;
	box-shadow: none !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-btn-ghost:hover {
	background: var(--mofhwp-p-muted-light) !important;
	color: var(--mofhwp-p-text) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-btn-link {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--mofhwp-p-primary) !important;
	padding: 0 !important;
	font-size: 13px !important;
	text-decoration: underline !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-btn:disabled,
#mofhwp-portal#mofhwp-portal .mofhwp-btn[disabled] {
	opacity: 0.5 !important;
	cursor: not-allowed !important;
	pointer-events: none !important;
}

/* --- Buttons with custom sizing (mirrors the base rules) --- */
#mofhwp-portal#mofhwp-portal .mofhwp-btn-sso {
	flex: 1 !important;
	min-width: 0 !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-dropdown-toggle {
	padding: 8px 12px !important;
}

/* --- Form controls --- */
#mofhwp-portal#mofhwp-portal input[type="text"],
#mofhwp-portal#mofhwp-portal input[type="email"],
#mofhwp-portal#mofhwp-portal input[type="password"],
#mofhwp-portal#mofhwp-portal input[type="number"],
#mofhwp-portal#mofhwp-portal input[type="search"],
#mofhwp-portal#mofhwp-portal select,
#mofhwp-portal#mofhwp-portal textarea {
	background: var(--mofhwp-p-surface) !important;
	background-image: none !important;
	border: 1.5px solid var(--mofhwp-p-border) !important;
	border-radius: var(--mofhwp-p-radius-sm) !important;
	box-shadow: none !important;
	color: var(--mofhwp-p-text) !important;
	font-family: inherit !important;
	text-shadow: none !important;
	max-width: 100%;
}

#mofhwp-portal#mofhwp-portal input[type="text"]:focus,
#mofhwp-portal#mofhwp-portal input[type="email"]:focus,
#mofhwp-portal#mofhwp-portal input[type="password"]:focus,
#mofhwp-portal#mofhwp-portal input[type="number"]:focus,
#mofhwp-portal#mofhwp-portal select:focus,
#mofhwp-portal#mofhwp-portal textarea:focus {
	border-color: var(--mofhwp-p-primary) !important;
	box-shadow: 0 0 0 3px var(--mofhwp-p-primary-glow) !important;
	outline: none !important;
}

/* --- Domain combiner: borderless input/select, exempt from the generic
   form-control guard above (the wrapper carries the border + focus ring).
   Must stay after those rules to win at equal specificity. --- */
#mofhwp-portal#mofhwp-portal .mofhwp-subdomain-combiner {
	background: var(--mofhwp-p-surface) !important;
	background-image: none !important;
	border: 1.5px solid var(--mofhwp-p-border) !important;
	border-radius: var(--mofhwp-p-radius-sm) !important;
	box-shadow: none !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-subdomain-combiner:focus-within {
	border-color: var(--mofhwp-p-primary) !important;
	box-shadow: 0 0 0 3px var(--mofhwp-p-primary-glow) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-subdomain-combiner input {
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-subdomain-combiner select {
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--mofhwp-p-muted-light) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--mofhwp-p-text) !important;
	font-family: inherit !important;
}

/* keep the eye toggle clear of the input text */
#mofhwp-portal#mofhwp-portal .mofhwp-input-pass-wrap input {
	padding-right: 42px !important;
}

#mofhwp-portal#mofhwp-portal input[type="checkbox"],
#mofhwp-portal#mofhwp-portal input[type="radio"] {
	box-shadow: none !important;
}

/* --- Small icon controls --- */
#mofhwp-portal#mofhwp-portal .mofhwp-copy-icon-btn,
#mofhwp-portal#mofhwp-portal .mofhwp-toggle-eye-btn {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	line-height: 1 !important;
	cursor: pointer !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-toggle-eye-btn {
	position: absolute !important;
	right: 8px !important;
	padding: 4px !important;
	font-size: 18px !important;
	color: var(--mofhwp-p-text) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-copy-icon-btn {
	padding: 2px !important;
	font-size: 14px !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-modal-close-btn:not(.mofhwp-btn) {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	line-height: 1 !important;
}

/* --- Auth tabs --- */
#mofhwp-portal#mofhwp-portal .mofhwp-auth-tab {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--mofhwp-p-muted) !important;
	font-family: inherit !important;
	font-weight: 600 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	text-shadow: none !important;
	float: none !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-auth-tab.is-active {
	background: var(--mofhwp-p-surface) !important;
	color: var(--mofhwp-p-primary) !important;
	box-shadow: var(--mofhwp-p-shadow) !important;
}

/* --- Portal container & headings --- */
#mofhwp-portal#mofhwp-portal {
	font-family: var(--mofhwp-p-font) !important;
	color: var(--mofhwp-p-text) !important;
	line-height: 1.6 !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-portal-title {
	font-size: 24px !important;
	font-weight: 800 !important;
	color: var(--mofhwp-p-text) !important;
	letter-spacing: -0.025em !important;
	margin: 0 0 2px !important;
	text-transform: none !important;
	text-shadow: none !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-portal-subtitle {
	font-size: 14px !important;
	color: var(--mofhwp-p-text-secondary) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-portal-subtitle strong {
	color: var(--mofhwp-p-primary-dark) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-wizard-step-pane h3,
#mofhwp-portal#mofhwp-portal .mofhwp-empty-state h3 {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: var(--mofhwp-p-text) !important;
	margin: 0 0 6px !important;
	text-transform: none !important;
	text-shadow: none !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-guest-box h3 {
	font-size: 20px !important;
	font-weight: 700 !important;
	color: var(--mofhwp-p-text) !important;
	margin: 0 0 8px !important;
	text-transform: none !important;
	text-shadow: none !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-portal-modal-header h3 {
	font-size: 17px !important;
	font-weight: 700 !important;
	color: var(--mofhwp-p-text) !important;
	margin: 0 !important;
	text-transform: none !important;
	text-shadow: none !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-empty-state p,
#mofhwp-portal#mofhwp-portal .mofhwp-guest-box p {
	font-size: 14px !important;
	color: var(--mofhwp-p-text-secondary) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-subtext {
	font-size: 14px !important;
	color: var(--mofhwp-p-text-secondary) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-auth-hint {
	font-size: 14px !important;
	color: var(--mofhwp-p-muted) !important;
}

/* --- Links --- */
#mofhwp-portal#mofhwp-portal .mofhwp-acc-domain-link {
	font-size: 16px !important;
	font-weight: 700 !important;
	color: var(--mofhwp-p-text) !important;
	text-decoration: none !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-acc-domain-link:hover {
	color: var(--mofhwp-p-primary) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-conn-val a {
	color: var(--mofhwp-p-primary) !important;
	font-weight: 600 !important;
	text-decoration: none !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-conn-val a:hover {
	text-decoration: underline !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-auth-footer a {
	color: var(--mofhwp-p-primary) !important;
}

/* --- Code chips --- */
#mofhwp-portal#mofhwp-portal .mofhwp-spec-value code,
#mofhwp-portal#mofhwp-portal .mofhwp-conn-val code {
	background: var(--mofhwp-p-muted-light) !important;
	color: var(--mofhwp-p-text) !important;
	font-family: "SF Mono", "Fira Code", Consolas, monospace !important;
	font-size: 12px !important;
	border: 0 !important;
	border-radius: 4px !important;
	text-shadow: none !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-info-hint code {
	background: var(--mofhwp-p-muted-light) !important;
	font-size: 12px !important;
	border: 0 !important;
	border-radius: 3px !important;
}

/* --- Labels & helper text --- */
#mofhwp-portal#mofhwp-portal .mofhwp-domain-input-box label {
	display: block !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: var(--mofhwp-p-text) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-label-bold {
	display: block !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: var(--mofhwp-p-text) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-terms-check {
	font-size: 13px !important;
	color: var(--mofhwp-p-text-secondary) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-info-hint {
	font-size: 12px !important;
	color: var(--mofhwp-p-text-secondary) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-spec-label {
	font-size: 11px !important;
	font-weight: 600 !important;
	color: var(--mofhwp-p-text-secondary) !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-spec-value {
	font-size: 13px !important;
	color: var(--mofhwp-p-text) !important;
}

/* --- Account cards --- */
#mofhwp-portal#mofhwp-portal .mofhwp-account-card {
	background: var(--mofhwp-p-surface) !important;
	border: 1px solid var(--mofhwp-p-border) !important;
	border-radius: var(--mofhwp-p-radius) !important;
	box-shadow: var(--mofhwp-p-shadow) !important;
}

/* --- Status & quota badges --- */
#mofhwp-portal#mofhwp-portal .mofhwp-status-badge {
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
	padding: 3px 10px !important;
	border-radius: 20px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
	border: 0 !important;
	text-shadow: none !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-status-active {
	background: var(--mofhwp-p-success-light) !important;
	color: #065f46 !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-status-pending {
	background: var(--mofhwp-p-warning-light) !important;
	color: #92400e !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-refresh-link {
	display: inline-flex !important;
	align-items: center !important;
	color: inherit !important;
	text-decoration: none !important;
	margin-left: 2px !important;
	line-height: 1 !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-refresh-link .dashicons {
	font-size: 16px !important;
	width: 16px !important;
	height: 16px !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-refresh-link:hover .dashicons {
	animation: mofhwp-spin 0.8s linear infinite;
}

@keyframes mofhwp-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

#mofhwp-portal#mofhwp-portal .mofhwp-status-suspended {
	background: var(--mofhwp-p-danger-light) !important;
	color: #991b1b !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-quota-badge {
	display: inline-flex !important;
	align-items: center !important;
	padding: 6px 14px !important;
	border-radius: 20px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	border: 0 !important;
	text-shadow: none !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-quota-reached {
	background: var(--mofhwp-p-warning-light) !important;
	color: #92400e !important;
}

/* --- Alerts (no display guard: JS toggles inline display:none) --- */
#mofhwp-portal#mofhwp-portal .mofhwp-alert {
	padding: 10px 14px !important;
	border-radius: var(--mofhwp-p-radius-sm) !important;
	font-size: 13px !important;
	border: 0 !important;
	text-shadow: none !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-alert-amber {
	background: var(--mofhwp-p-warning-light) !important;
	color: #92400e !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-alert-danger {
	background: var(--mofhwp-p-danger-light) !important;
	color: #991b1b !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-alert-info {
	background: var(--mofhwp-p-primary-light) !important;
	color: #415412 !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-alert-success {
	background: var(--mofhwp-p-success-light) !important;
	color: #065f46 !important;
}

/* --- Availability status box (classes toggled by portal.js) --- */
#mofhwp-portal#mofhwp-portal .mofhwp-domain-status-box {
	padding: 12px 16px !important;
	border-radius: var(--mofhwp-p-radius-sm) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	border: 0 !important;
	text-shadow: none !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-domain-status-box.is-checking {
	background: var(--mofhwp-p-muted-light) !important;
	color: var(--mofhwp-p-muted) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-domain-status-box.is-available {
	background: var(--mofhwp-p-success-light) !important;
	color: #065f46 !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-domain-status-box.is-taken {
	background: var(--mofhwp-p-danger-light) !important;
	color: #991b1b !important;
}

/* --- Dropdown menu --- */
#mofhwp-portal#mofhwp-portal .mofhwp-dropdown-menu {
	background: var(--mofhwp-p-surface) !important;
	border: 1px solid var(--mofhwp-p-border) !important;
	border-radius: var(--mofhwp-p-radius-sm) !important;
	box-shadow: var(--mofhwp-p-shadow-md) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-dropdown-item {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 9px 14px !important;
	font-size: 13px !important;
	color: var(--mofhwp-p-text) !important;
	background: transparent !important;
	border: 0 !important;
	text-decoration: none !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-dropdown-item:hover {
	background: var(--mofhwp-p-muted-light) !important;
	color: var(--mofhwp-p-text) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-dropdown-item .dashicons {
	font-size: 16px !important;
	width: 16px !important;
	height: 16px !important;
	color: var(--mofhwp-p-muted) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-dropdown-item.text-green,
#mofhwp-portal#mofhwp-portal .mofhwp-dropdown-item.text-green .dashicons {
	color: #059669 !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-dropdown-item.text-red,
#mofhwp-portal#mofhwp-portal .mofhwp-dropdown-item.text-red .dashicons {
	color: var(--mofhwp-p-danger) !important;
}

/* --- Wizard container, auth card & tabs --- */
#mofhwp-portal#mofhwp-portal .mofhwp-wizard-container,
#mofhwp-portal#mofhwp-portal .mofhwp-auth-card {
	background: var(--mofhwp-p-surface) !important;
	border: 1px solid var(--mofhwp-p-border) !important;
	border-radius: var(--mofhwp-p-radius) !important;
	box-shadow: var(--mofhwp-p-shadow) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-auth-tabs {
	background: var(--mofhwp-p-muted-light) !important;
	border-radius: var(--mofhwp-p-radius-sm) !important;
	border: 0 !important;
}

/* --- Wizard step pills --- */
#mofhwp-portal#mofhwp-portal .mofhwp-step-pill {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 6px 16px !important;
	border-radius: 20px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: var(--mofhwp-p-muted) !important;
	background: var(--mofhwp-p-muted-light) !important;
	border: 0 !important;
	text-transform: none !important;
	text-shadow: none !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-step-pill.is-active {
	background: var(--mofhwp-p-primary-light) !important;
	color: var(--mofhwp-p-primary-dark) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-step-pill.is-done {
	background: var(--mofhwp-p-success-light) !important;
	color: #065f46 !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-step-dot {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 22px !important;
	height: 22px !important;
	border-radius: 50% !important;
	background: var(--mofhwp-p-muted) !important;
	color: #ffffff !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	border: 0 !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-step-pill.is-active .mofhwp-step-dot {
	background: var(--mofhwp-p-primary) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-step-pill.is-done .mofhwp-step-dot {
	background: var(--mofhwp-p-success) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-step-connector {
	background: var(--mofhwp-p-border) !important;
}

/* --- Radio & plan selector cards --- */
#mofhwp-portal#mofhwp-portal .mofhwp-radio-card,
#mofhwp-portal#mofhwp-portal .mofhwp-plan-card {
	background: transparent !important;
	border: 2px solid var(--mofhwp-p-border) !important;
	border-radius: var(--mofhwp-p-radius-sm) !important;
	box-shadow: none !important;
	cursor: pointer !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-radio-card:hover,
#mofhwp-portal#mofhwp-portal .mofhwp-plan-card:hover {
	border-color: var(--mofhwp-p-primary) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-radio-card.is-selected,
#mofhwp-portal#mofhwp-portal .mofhwp-plan-card.is-selected {
	border-color: var(--mofhwp-p-primary) !important;
	background: var(--mofhwp-p-primary-glow) !important;
}

/* keep the native radio inputs visually hidden (the card is the control) */
#mofhwp-portal#mofhwp-portal .mofhwp-radio-card input,
#mofhwp-portal#mofhwp-portal .mofhwp-plan-card input[type="radio"] {
	position: absolute !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-radio-card-content strong {
	color: var(--mofhwp-p-text) !important;
	font-size: 14px !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-radio-card-content span {
	color: var(--mofhwp-p-text-secondary) !important;
	font-size: 12px !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-plan-badge {
	background: var(--mofhwp-p-primary) !important;
	color: #ffffff !important;
	font-size: 10px !important;
	font-weight: 800 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	padding: 2px 8px !important;
	border-radius: 4px !important;
	border: 0 !important;
}

/* --- Summary box (wizard step 3) --- */
#mofhwp-portal#mofhwp-portal .mofhwp-summary-box {
	background: var(--mofhwp-p-muted-light) !important;
	border-radius: var(--mofhwp-p-radius-sm) !important;
	border: 0 !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-summary-row {
	font-size: 14px !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-summary-row span {
	color: var(--mofhwp-p-text-secondary) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-summary-row strong {
	color: var(--mofhwp-p-text) !important;
}

/* --- Connection details table --- */
#mofhwp-portal#mofhwp-portal .mofhwp-conn-row {
	font-size: 13px !important;
	border-bottom: 1px solid var(--mofhwp-p-border) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-conn-label {
	color: var(--mofhwp-p-text-secondary) !important;
	font-weight: 600 !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-domain-highlight {
	background: var(--mofhwp-p-muted-light) !important;
	border-radius: var(--mofhwp-p-radius-sm) !important;
	color: var(--mofhwp-p-primary-dark) !important;
	font-size: 15px !important;
	border: 0 !important;
}

/* --- Modal shell --- */
#mofhwp-portal#mofhwp-portal .mofhwp-portal-modal {
	position: fixed !important;
	inset: 0 !important;
	z-index: 999999 !important;
	background: rgba(0, 0, 0, 0.45) !important;
	backdrop-filter: blur(4px) !important;
	-webkit-backdrop-filter: blur(4px) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 20px !important;
	border: 0 !important;
}

/* PHP/JS hide modals with inline display:none — this must stay after the
   flex guard above and outranks it via the extra attribute selector. */
#mofhwp-portal#mofhwp-portal .mofhwp-portal-modal[style*="display:none"],
#mofhwp-portal#mofhwp-portal .mofhwp-portal-modal[style*="display: none"] {
	display: none !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-portal-modal-dialog {
	background: var(--mofhwp-p-surface) !important;
	border: 0 !important;
	border-radius: var(--mofhwp-p-radius) !important;
	box-shadow: var(--mofhwp-p-shadow-lg) !important;
	max-width: 500px !important;
	max-height: 85vh !important;
	overflow-y: auto !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-portal-modal-header {
	border-bottom: 1px solid var(--mofhwp-p-border) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-portal-modal-footer {
	border-top: 1px solid var(--mofhwp-p-border) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-modal-info-text {
	font-size: 13px !important;
	color: var(--mofhwp-p-text-secondary) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-modal-close-btn:not(.mofhwp-btn) {
	color: var(--mofhwp-p-muted) !important;
	font-size: 22px !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-modal-close-btn:not(.mofhwp-btn):hover {
	color: var(--mofhwp-p-danger) !important;
}

/* --- Empty state & guest box --- */
#mofhwp-portal#mofhwp-portal .mofhwp-empty-state {
	text-align: center !important;
	background: var(--mofhwp-p-surface) !important;
	border: 2px dashed var(--mofhwp-p-border) !important;
	border-radius: var(--mofhwp-p-radius) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-empty-icon .dashicons {
	font-size: 48px !important;
	width: 48px !important;
	height: 48px !important;
	color: var(--mofhwp-p-border) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-guest-box {
	text-align: center !important;
	background: var(--mofhwp-p-surface) !important;
	border: 1px solid var(--mofhwp-p-border) !important;
	border-radius: var(--mofhwp-p-radius) !important;
	box-shadow: var(--mofhwp-p-shadow) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-guest-icon .dashicons {
	font-size: 40px !important;
	width: 40px !important;
	height: 40px !important;
	color: var(--mofhwp-p-primary) !important;
}

/* --- Password strength meter --- */
#mofhwp-portal#mofhwp-portal .mofhwp-password-strength-bar {
	background: var(--mofhwp-p-border) !important;
	border-radius: 4px !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-strength-fill {
	border-radius: 4px !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-strength-fill.is-weak {
	background: var(--mofhwp-p-danger) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-strength-fill.is-fair {
	background: var(--mofhwp-p-warning) !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-strength-fill.is-good {
	background: #84cc16 !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-strength-fill.is-strong {
	background: var(--mofhwp-p-success) !important;
}

/* --- Icon sizing (dashicons inside buttons & alerts) --- */
#mofhwp-portal#mofhwp-portal .mofhwp-btn .dashicons {
	font-size: 18px !important;
	width: 18px !important;
	height: 18px !important;
	line-height: 18px !important;
}

#mofhwp-portal#mofhwp-portal .mofhwp-alert .dashicons,
#mofhwp-portal#mofhwp-portal .mofhwp-status-icon .dashicons {
	font-size: 18px !important;
	width: 18px !important;
	height: 18px !important;
}