/* ITX HostKit Portal — Whop-inspired minimal interface. */
.itxhk-portal {
	--itxhk-bg: #f4f6fb;
	--itxhk-surface: #ffffff;
	--itxhk-surface-soft: #f7f9fd;
	--itxhk-text: #111827;
	--itxhk-muted: #667085;
	--itxhk-border: #e5eaf3;
	--itxhk-accent: #1754d8;
	--itxhk-accent-strong: #1243b0;
	--itxhk-danger: #dc2626;
	--itxhk-success: #0f766e;
	max-width: 1080px;
	margin: 0 auto;
	padding: 18px;
	border-radius: 16px;
	background: linear-gradient(180deg, #f8faff 0%, #f4f6fb 100%);
	border: 1px solid #e9edf6;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: var(--itxhk-text);
}

.itxhk-portal * {
	box-sizing: border-box;
}

.itxhk-portal-login {
	max-width: 440px;
	padding: 22px 18px;
}

.itxhk-portal-login-card {
	margin-bottom: 0;
	padding: 24px 22px;
}

.itxhk-portal-login-head {
	text-align: center;
	margin-bottom: 22px;
}

.itxhk-portal-logo {
	display: block;
	height: 35px;
	width: auto;
	margin: 0 auto 12px;
}

.itxhk-portal-login-head h2 {
	margin: 4px 0 8px;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.itxhk-portal-login-head .itxhk-muted {
	margin: 0;
}

.itxhk-portal-login-form {
	margin-top: 4px;
}

.itxhk-portal-login #itxhk-loginform p {
	margin: 0 0 16px;
}

.itxhk-portal-login #itxhk-loginform label {
	display: block;
	font-weight: 600;
	color: #344054;
	font-size: 14px;
	line-height: 1.4;
}

.itxhk-portal-login #itxhk-loginform input[type="text"],
.itxhk-portal-login #itxhk-loginform input[type="password"] {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	border: 1px solid #ccd6e5;
	border-radius: 10px;
	background: #fff;
	font-size: 15px;
	font-family: inherit;
	color: var(--itxhk-text);
}

.itxhk-portal-login #itxhk-loginform input[type="text"]:focus,
.itxhk-portal-login #itxhk-loginform input[type="password"]:focus {
	border-color: #9bb6ff;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(23, 84, 216, 0.16);
}

.itxhk-portal-login #itxhk-loginform .forgetmenot {
	margin-bottom: 18px;
}

.itxhk-portal-login #itxhk-loginform .forgetmenot label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	font-size: 13px;
	color: var(--itxhk-muted);
	cursor: pointer;
}

.itxhk-portal-login #itxhk-loginform .forgetmenot input {
	margin: 0;
}

.itxhk-portal-login #itxhk-loginform .submit {
	margin: 0;
	padding: 0;
}

.itxhk-portal-login #itxhk-loginform #wp-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 42px;
	padding: 11px 14px;
	background: var(--itxhk-accent);
	border: 0;
	border-radius: 10px;
	color: #fff;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background 0.18s ease, transform 0.18s ease;
	box-shadow: none;
	text-shadow: none;
}

.itxhk-portal-login #itxhk-loginform #wp-submit:hover {
	background: var(--itxhk-accent-strong);
	transform: translateY(-1px);
}

.itxhk-portal-login #itxhk-loginform #wp-submit:focus-visible {
	outline: 0;
	box-shadow: 0 0 0 3px rgba(23, 84, 216, 0.22);
}

.itxhk-portal-login-meta {
	text-align: center;
	margin: 16px 0 0;
}

.itxhk-portal-login-meta a {
	color: var(--itxhk-accent);
	font-weight: 600;
	text-decoration: none;
}

.itxhk-portal-login-meta a:hover {
	text-decoration: underline;
}

.itxhk-portal-login-meta a:focus-visible {
	outline: 0;
	box-shadow: 0 0 0 3px rgba(23, 84, 216, 0.22);
	border-radius: 6px;
}

.itxhk-portal h3 {
	font-size: 18px;
	letter-spacing: -0.01em;
}

.itxhk-portal-head {
	padding: 6px 2px 12px;
}

.itxhk-portal-head h2 {
	margin: 2px 0 6px;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.itxhk-portal-eyebrow {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #475467;
}

.itxhk-section-title {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.itxhk-subsection-title {
	margin: 18px 0 10px;
	font-size: 14px;
	font-weight: 600;
	color: #344054;
}

.itxhk-back-link {
	margin-top: 10px;
}

.itxhk-back-link a {
	color: var(--itxhk-accent);
	font-weight: 600;
	text-decoration: none;
}

.itxhk-back-link a:hover {
	text-decoration: underline;
}

.itxhk-portal-nav {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	padding: 8px;
	margin-bottom: 22px;
	background: var(--itxhk-surface);
	border: 1px solid var(--itxhk-border);
	border-radius: 14px;
}

.itxhk-portal-nav a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 14px;
	border-radius: 10px;
	color: #344054;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.18s ease;
}

.itxhk-portal-nav a:hover {
	background: #f2f6ff;
	color: #0f172a;
}

.itxhk-portal-nav a.is-active {
	background: #eef3ff;
	color: var(--itxhk-accent);
	font-weight: 600;
}

.itxhk-portal-nav a.itxhk-portal-logout {
	margin-left: auto;
	color: var(--itxhk-danger);
}

.itxhk-portal-card {
	border: 1px solid var(--itxhk-border);
	border-radius: 16px;
	padding: 18px;
	margin-bottom: 14px;
	background: var(--itxhk-surface);
	box-shadow: 0 10px 32px -30px rgba(17, 24, 39, 0.55);
}

.itxhk-portal-section {
	margin-bottom: 8px;
}

.itxhk-portal-card h3 {
	margin: 0 0 10px;
}

.itxhk-portal-section + .itxhk-portal-section {
	margin-top: 20px;
}

.itxhk-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	vertical-align: middle;
}

.itxhk-badge-active {
	background: #eafaf5;
	color: var(--itxhk-success);
	border: 1px solid #c5efdf;
}

.itxhk-badge-inactive {
	background: #fff3f2;
	color: #b42318;
	border: 1px solid #ffd5d2;
}

.itxhk-portal table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0 0 12px;
	background: var(--itxhk-surface);
	border: 1px solid var(--itxhk-border);
	border-radius: 14px;
	overflow: hidden;
}

.itxhk-portal th,
.itxhk-portal td {
	text-align: left;
	padding: 12px 14px;
	border-bottom: 1px solid #eef2f7;
	vertical-align: middle;
}

.itxhk-portal tr:last-child td {
	border-bottom: 0;
}

.itxhk-portal tbody tr:hover td {
	background: #f8faff;
}

.itxhk-portal th {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--itxhk-muted);
	background: var(--itxhk-surface-soft);
}

.itxhk-portal code {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 8px;
	background: #f1f5fc;
	border: 1px solid #e2e8f5;
	font-size: 13px;
}

.itxhk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 14px;
	background: var(--itxhk-accent);
	color: #fff !important;
	border: 0;
	border-radius: 10px;
	text-decoration: none;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	transition: all 0.18s ease;
}

.itxhk-btn:hover {
	background: var(--itxhk-accent-strong);
	transform: translateY(-1px);
}

.itxhk-btn-secondary {
	background: #fff;
	color: #1f2937 !important;
	border: 1px solid #d6dfef;
}

.itxhk-btn-secondary:hover {
	background: #f5f8ff;
	border-color: #c6d4ee;
}

.itxhk-btn-sm {
	padding: 6px 10px;
	font-size: 12px;
	border-radius: 8px;
}

.itxhk-btn-group {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.itxhk-btn-link {
	background: none;
	border: 0;
	color: var(--itxhk-accent);
	cursor: pointer;
	padding: 0 4px;
	font-size: 13px;
	font-weight: 600;
}

.itxhk-btn-link:hover {
	text-decoration: underline;
}

.itxhk-btn:focus-visible,
.itxhk-btn-link:focus-visible,
.itxhk-portal-nav a:focus-visible,
.itxhk-back-link a:focus-visible,
.itxhk-portal details summary:focus-visible {
	outline: 0;
	box-shadow: 0 0 0 3px rgba(23, 84, 216, 0.22);
}

.itxhk-table-wrap {
	overflow-x: auto;
}

.itxhk-table-wrap table {
	min-width: 640px;
}

.itxhk-portal-notice {
	padding: 12px 14px;
	border-radius: 12px;
	margin-bottom: 18px;
	background: #ebfef5;
	color: #065f46;
	border: 1px solid #bbf7d0;
}

.itxhk-portal-notice.is-error {
	background: #fff2f2;
	color: #b42318;
	border-color: #ffd1d1;
}

.itxhk-portal-field {
	margin-bottom: 16px;
}

.itxhk-portal-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	color: #344054;
}

.itxhk-portal-field input[type="text"],
.itxhk-portal-field input[type="password"] {
	width: 100%;
	max-width: 440px;
	padding: 10px 12px;
	border: 1px solid #ccd6e5;
	border-radius: 10px;
	background: #fff;
}

.itxhk-portal-field input[type="text"]:focus,
.itxhk-portal-field input[type="password"]:focus {
	border-color: #9bb6ff;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(23, 84, 216, 0.16);
}

.itxhk-muted {
	color: var(--itxhk-muted);
	font-size: 13px;
}

.itxhk-empty-state {
	padding: 28px 20px;
	text-align: center;
	background: var(--itxhk-surface);
	border: 1px dashed var(--itxhk-border);
	border-radius: 16px;
}

.itxhk-empty-state__title {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 600;
	color: #344054;
}

.itxhk-empty-state .itxhk-muted {
	margin: 0;
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
}

.itxhk-portal details summary {
	cursor: pointer;
	color: var(--itxhk-accent);
	font-size: 13px;
	font-weight: 600;
}

.itxhk-checkout {
	max-width: 860px;
}

.itxhk-checkout-card {
	padding: 22px;
}

.itxhk-checkout-title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.itxhk-checkout-lead {
	margin: 0 0 18px;
}

.itxhk-checkout-embed {
	min-height: 420px;
}

/* Portal page chrome — hide duplicate theme title and admin-bar offset for customers. */
body.itxhk-portal-page .entry-title,
body.itxhk-portal-page .page-title,
body.itxhk-portal-page .wp-block-post-title {
	display: none;
}

body.itxhk-portal-page:not(.itxhk-portal-page--admin) {
	margin-top: 0 !important;
}

body.itxhk-portal-page:not(.itxhk-portal-page--admin) #wpadminbar {
	display: none;
}

@media (max-width: 768px) {
	.itxhk-portal {
		padding: 12px;
		border-radius: 14px;
	}

	.itxhk-portal-nav {
		gap: 6px;
		padding: 6px;
	}

	.itxhk-portal-nav a {
		flex: 1 1 auto;
	}

	.itxhk-portal-nav a.itxhk-portal-logout {
		margin-left: 0;
	}

	.itxhk-table-wrap table {
		min-width: 560px;
	}

	.itxhk-portal-login {
		padding: 12px;
	}

	.itxhk-portal-login-card {
		padding: 20px 16px;
	}
}
