.aibs-portal-notice {
	padding: 12px 16px;
	background: #f0f6fc;
	border-left: 4px solid #2271b1;
}

.aibs-portal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
	margin: 16px 0;
}

.aibs-portal-card {
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 16px;
	text-align: center;
}

.aibs-portal-stat {
	display: block;
	font-size: 28px;
	font-weight: 700;
}

.aibs-portal-label {
	color: #666;
	font-size: 13px;
}

.aibs-portal-table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0;
}

.aibs-portal-table th,
.aibs-portal-table td {
	text-align: left;
	padding: 8px 12px;
	border-bottom: 1px solid #e0e0e0;
}

.aibs-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 12px;
	background: #e0e0e0;
}

.aibs-badge-paid,
.aibs-badge-accepted,
.aibs-badge-resolved,
.aibs-badge-closed {
	background: #d4edda;
	color: #155724;
}

.aibs-badge-unpaid,
.aibs-badge-open,
.aibs-badge-pending {
	background: #fff3cd;
	color: #856404;
}

.aibs-badge-declined {
	background: #f8d7da;
	color: #721c24;
}

.aibs-quote-card {
	display: inline-block;
	width: 260px;
	margin-right: 16px;
	vertical-align: top;
	text-align: left;
}

.aibs-form p {
	margin-bottom: 12px;
}

.aibs-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.aibs-form input[type="text"],
.aibs-form input[type="email"],
.aibs-form textarea {
	width: 100%;
	max-width: 480px;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.aibs-inline-form {
	display: inline-flex;
	gap: 8px;
	margin-top: 8px;
}

.aibs-btn {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 4px;
	border: 1px solid #ccc;
	background: #fff;
	cursor: pointer;
}

.aibs-btn-primary {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

.aibs-portal-files {
	list-style: disc;
	padding-left: 20px;
}

/* ---------------------------------------------------------------- */
/* Auth card (login / forgot password / register)                   */
/* ---------------------------------------------------------------- */

.aibs-auth-card {
	max-width: 400px;
	margin: 2rem auto;
	padding: 2.25rem 2rem;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.06 ), 0 8px 24px rgba( 0, 0, 0, 0.08 );
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.aibs-auth-card--compact {
	text-align: center;
	padding: 2rem;
}

.aibs-auth-avatar img {
	border-radius: 50%;
	margin-bottom: 0.75rem;
}

.aibs-auth-welcome {
	font-size: 15px;
	color: #333;
	margin-bottom: 1.25rem;
}

.aibs-auth-title {
	margin: 0 0 0.35rem;
	font-size: 22px;
	font-weight: 700;
	color: #1e1e1e;
}

.aibs-auth-subtitle {
	margin: 0 0 1.5rem;
	font-size: 14px;
	color: #6b7280;
	line-height: 1.5;
}

.aibs-auth-form .aibs-field {
	margin-bottom: 1.1rem;
}

.aibs-auth-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 0.35rem;
}

.aibs-input-group {
	position: relative;
	display: flex;
	align-items: center;
}

.aibs-input-icon {
	position: absolute;
	left: 12px;
	font-size: 15px;
	opacity: 0.45;
	pointer-events: none;
}

.aibs-input-group input[type="text"],
.aibs-input-group input[type="email"],
.aibs-input-group input[type="password"] {
	width: 100%;
	padding: 10px 12px 10px 36px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;
}

.aibs-input-group input:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba( 34, 113, 177, 0.15 );
}

.aibs-toggle-password {
	position: absolute;
	right: 8px;
	background: none;
	border: none;
	color: #2271b1;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	padding: 4px 8px;
}

.aibs-toggle-password:hover {
	text-decoration: underline;
}

.aibs-field-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.25rem;
	font-size: 13px;
}

.aibs-checkbox-label {
	display: flex !important;
	align-items: center;
	gap: 6px;
	font-weight: 400 !important;
	color: #4b5563;
	margin: 0 !important;
	cursor: pointer;
}

.aibs-auth-link {
	color: #2271b1;
	text-decoration: none;
	font-weight: 600;
}

.aibs-auth-link:hover {
	text-decoration: underline;
}

.aibs-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.aibs-btn-block {
	display: block;
	width: 100%;
	text-align: center;
	padding: 11px 16px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	transition: background-color 0.15s ease, transform 0.05s ease;
}

.aibs-btn-block:active {
	transform: translateY(1px);
}

.aibs-btn.is-busy {
	opacity: 0.7;
	cursor: default;
}

.aibs-auth-footer {
	text-align: center;
	margin-top: 1.5rem;
	font-size: 13px;
	color: #6b7280;
}

.aibs-auth-footer a {
	color: #2271b1;
	font-weight: 600;
	text-decoration: none;
}

.aibs-auth-footer a:hover {
	text-decoration: underline;
}

.aibs-alert {
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.5;
	margin-bottom: 1.25rem;
}

.aibs-alert--success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.aibs-alert--error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.aibs-alert--info {
	background: #eff6ff;
	color: #1e40af;
	border: 1px solid #bfdbfe;
}

@media ( max-width: 480px ) {
	.aibs-auth-card {
		margin: 1rem;
		padding: 1.5rem;
	}
}

/* ---------------------------------------------------------------- */
/* Portal navigation bar (shown at the top of every gated shortcode) */
/* ---------------------------------------------------------------- */

.aibs-portal-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	padding: 10px 12px;
	margin-bottom: 20px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}

.aibs-portal-nav a {
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	text-decoration: none;
}

.aibs-portal-nav a:hover {
	background: #eef2f7;
}

.aibs-portal-nav a.is-current {
	background: #2271b1;
	color: #fff;
}

.aibs-portal-nav-logout {
	margin-left: auto;
	color: #b91c1c !important;
}

.aibs-portal-nav-logout:hover {
	background: #fef2f2 !important;
}
