:root {
	--ahb-primary: #0f4a85;
	--ahb-primary-dark: #0c3d6d;
	--ahb-danger: #b42318;
	--ahb-danger-dark: #8f1c14;
	--ahb-success: #0f8a5f;
	--ahb-bg: #f4f7fb;
	--ahb-card: #ffffff;
	--ahb-border: #d8e1ee;
	--ahb-text: #132238;
	--ahb-muted: #667085;
	--ahb-shadow: 0 14px 40px rgba(7, 26, 56, 0.12);
	--ahb-radius: 14px;
}

.ahb-wrapper {
	max-width: 980px;
	margin: 30px auto;
	padding: 0 16px;
	color: var(--ahb-text);
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.ahb-card {
	background: linear-gradient(180deg, #ffffff 0%, #fdfefe 100%);
	border: 1px solid var(--ahb-border);
	border-radius: var(--ahb-radius);
	box-shadow: var(--ahb-shadow);
	padding: 22px;
	margin-bottom: 18px;
}

.ahb-title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	color: #0b2743;
}

.ahb-subtitle,
.ahb-modal-subtitle,
.ahb-otp-expiry {
	margin: 0 0 16px;
	color: var(--ahb-muted);
	font-size: 14px;
}

.ahb-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 14px;
}

.ahb-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 13px;
}

.ahb-input,
.ahb-select,
.ahb-textarea {
	width: 100%;
	border: 1px solid #cbd6e5;
	background: #fff;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 14px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ahb-input:focus,
.ahb-select:focus,
.ahb-textarea:focus {
	border-color: var(--ahb-primary);
	box-shadow: 0 0 0 3px rgba(15, 74, 133, 0.14);
}

.ahb-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.ahb-actions-inline {
	justify-content: flex-start;
	flex-wrap: wrap;
}

.ahb-btn {
	border: 0;
	border-radius: 10px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: transform 0.15s ease, opacity 0.2s ease, background 0.2s ease;
}

.ahb-btn:hover {
	transform: translateY(-1px);
}

.ahb-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.ahb-btn-primary {
	background: var(--ahb-primary);
	color: #fff;
}

.ahb-btn-primary:hover {
	background: var(--ahb-primary-dark);
}

.ahb-btn-danger {
	background: var(--ahb-danger);
	color: #fff;
}

.ahb-btn-danger:hover {
	background: var(--ahb-danger-dark);
}

.ahb-btn-light {
	background: #eaf1fb;
	color: #19314f;
}

.ahb-spinner {
	width: 15px;
	height: 15px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	display: none;
	animation: ahb-spin 0.8s linear infinite;
}

.ahb-btn.is-loading .ahb-spinner {
	display: inline-block;
}

.ahb-results-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.ahb-result-card {
	border: 1px solid var(--ahb-border);
	background: #f9fbff;
	border-radius: 12px;
	padding: 14px;
	position: relative;
	overflow: hidden;
}

.ahb-result-card:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #1f6bb4, #0f8a5f);
}

.ahb-result-row {
	font-size: 14px;
	margin-bottom: 8px;
	word-break: break-word;
}

.ahb-result-actions {
	margin-top: 10px;
}

.ahb-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-transform: capitalize;
	margin-left: 6px;
}

.ahb-badge-active {
	background: #dff4ea;
	color: #0f8a5f;
}

.ahb-badge-cancelled {
	background: #fde8e7;
	color: #b42318;
}

.ahb-empty {
	padding: 16px;
	border-radius: 10px;
	background: #f7fafc;
	border: 1px dashed #c5d4e7;
	font-size: 14px;
	color: #4b5f77;
}

.ahb-alert {
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 14px;
	margin-bottom: 12px;
	border: 1px solid transparent;
}

.ahb-alert-info {
	background: #eaf4ff;
	border-color: #b5d6f7;
	color: #124980;
}

.ahb-alert-success {
	background: #e7f8f1;
	border-color: #b4ebd5;
	color: #0a734f;
}

.ahb-alert-error {
	background: #fdecec;
	border-color: #f8c6c4;
	color: #9b1c1c;
}

.ahb-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ahb-modal.is-open {
	display: flex;
}

.ahb-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(5, 18, 35, 0.62);
	backdrop-filter: blur(1px);
}

.ahb-modal-dialog {
	position: relative;
	z-index: 2;
	background: #fff;
	width: 100%;
	max-width: 520px;
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(5, 18, 35, 0.36);
	padding: 20px;
}

.ahb-modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	background: #edf2f8;
	font-size: 20px;
	line-height: 20px;
}

.ahb-otp-input {
	font-size: 20px;
	letter-spacing: 4px;
	text-align: center;
	font-weight: 700;
}

.ahb-required {
	color: var(--ahb-danger);
	font-weight: 700;
}

body.ahb-modal-open {
	overflow: hidden;
}

@keyframes ahb-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 900px) {
	.ahb-grid,
	.ahb-results-grid {
		grid-template-columns: 1fr;
	}
}
