.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.85);
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.modal-overlay.hidden {
	display: none;
}
.modal-box {
	background: #fff;
	border-radius: 24px;
	padding: 36px;
	width: 100%;
	max-width: 440px;
	box-shadow:
		0 25px 80px rgba(0, 0, 0, 0.35),
		0 0 0 1px rgba(255, 255, 255, 0.05);
	animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Password eye toggle ── */
.pw-wrap {
	position: relative;
	display: block;
	width: 100%;
}
.pw-wrap input {
	width: 100%;
	padding-right: 40px !important;
}
.pw-eye {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: #94a3b8;
	font-size: 15px;
	padding: 0;
	line-height: 1;
	transition: color 0.2s;
}
.pw-eye:hover {
	color: #0f172a;
}
@keyframes popIn {
	from {
		opacity: 0;
		transform: scale(0.92);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}
.modal-logo {
	text-align: center;
	margin-bottom: 24px;
}
.modal-logo .icon {
	font-size: 40px;
	color: #fbbf24;
	margin-bottom: 8px;
}
.modal-logo h2 {
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
}
.modal-logo p {
	font-size: 13px;
	color: #64748b;
	margin-top: 4px;
}
.modal-tabs {
	display: flex;
	border-bottom: 2px solid #e2e8f0;
	margin-bottom: 20px;
}
.modal-tab {
	flex: 1;
	padding: 10px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	color: #64748b;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	transition: all 0.2s;
}
.modal-tab.active {
	color: #0f172a;
	border-bottom-color: #fbbf24;
}
.modal-form {
	display: none;
}
.modal-form.active {
	display: block;
}
.mfield {
	margin-bottom: 16px;
}
.mfield label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	margin-bottom: 6px;
}
.mfield input {
	width: 100%;
	padding: 11px 14px;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	font-size: 14px;
	font-family: "Plus Jakarta Sans", sans-serif;
	transition: all 0.2s;
}
.mfield input:focus {
	outline: none;
	border-color: #fbbf24;
	box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
}
.mbtn {
	width: 100%;
	padding: 13px;
	background: #0f172a;
	color: #fbbf24;
	border: none;
	border-radius: 40px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s;
	margin-top: 4px;
}
.mbtn:hover {
	background: #1e293b;
	transform: translateY(-1px);
}
.mlink {
	text-align: center;
	font-size: 13px;
	color: #64748b;
	margin-top: 12px;
}
.mlink a {
	color: #0f172a;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
}
.merr {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 12px;
	display: none;
}
.merr.show {
	display: block;
}
.pay-box {
	max-width: 480px;
	padding: 0;
	display: flex;
	flex-direction: column;
	max-height: 92vh;
}
.pay-modal-header {
	padding: 20px 24px 0;
	flex-shrink: 0;
}
.pay-modal-scroll {
	flex: 1;
	overflow-y: auto;
	padding: 0 24px;
	-webkit-overflow-scrolling: touch;
}
.pay-modal-footer {
	padding: 16px 24px 20px;
	flex-shrink: 0;
	background: #fff;
	border-top: 1px solid #f1f5f9;
	border-radius: 0 0 24px 24px;
}
.pay-steps {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}
.pay-step {
	flex: 1;
	text-align: center;
	padding: 10px 6px;
	border-radius: 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	font-size: 11px;
}
.pay-step .pnum {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #0f172a;
	color: #fbbf24;
	font-weight: 700;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 4px;
}
.pay-step.done .pnum {
	background: #22c55e;
	color: #fff;
}
.mpesa-card {
	background: linear-gradient(135deg, #00a651, #007a3d);
	border-radius: 14px;
	padding: 16px;
	color: #fff;
	text-align: center;
	margin-bottom: 14px;
}
.mpesa-card .amount {
	font-size: 32px;
	font-weight: 700;
	margin: 6px 0;
}
.mpesa-card .number {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 2px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	padding: 6px 14px;
	display: inline-block;
	margin-top: 6px;
}
.mpesa-info {
	font-size: 11.5px;
	color: #64748b;
	background: #f8fafc;
	border-radius: 10px;
	padding: 10px 12px;
	margin-bottom: 12px;
	line-height: 1.6;
}
.mpesa-info p {
	margin-bottom: 3px;
}
.mpesa-info strong {
	color: #0f172a;
}
.code-input {
	border: 3px solid #00a651 !important;
	font-size: 17px !important;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 3px;
}
.admin-overlay {
	position: fixed;
	inset: 0;
	background: #f0f4f8;
	z-index: 3000;
	overflow-y: auto;
	display: none;
}
.admin-overlay.show {
	display: block;
}
.admin-header {
	background: #0f172a;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	border-bottom: 4px solid #fbbf24;
}
.admin-header h1 {
	color: #fbbf24;
	font-size: 18px;
	font-weight: 700;
	white-space: nowrap;
	flex-shrink: 0;
}
.admin-title-short {
	display: none;
}
.admin-header-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	flex: 1;
	justify-content: flex-end;
}
.admin-search-wrap {
	position: relative;
	flex: 1;
	min-width: 180px;
	max-width: 280px;
}
.admin-search-wrap input {
	width: 100%;
	padding: 8px 34px 8px 12px;
	border-radius: 20px;
	border: 1px solid #334155;
	background: #1e293b;
	color: #f1f5f9;
	font-size: 13px;
	font-family: "Plus Jakarta Sans", sans-serif;
	outline: none;
	transition: border-color 0.2s;
}
.admin-search-wrap input::placeholder {
	color: #64748b;
}
.admin-search-wrap input:focus {
	border-color: #fbbf24;
}
.admin-search-icon {
	position: absolute;
	right: 11px;
	top: 50%;
	transform: translateY(-50%);
	color: #64748b;
	pointer-events: none;
	font-size: 13px;
}
.admin-btn-row {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.abtn-export-users {
	background: #22c55e;
	color: #fff;
}
.abtn-export-pay {
	background: #3b82f6;
	color: #fff;
}
.abtn-refresh {
	background: #fbbf24;
	color: #0f172a;
}
.abtn-logout {
	background: #ef4444;
	color: #fff;
}
.admin-btn {
	padding: 8px 20px;
	border-radius: 20px;
	border: none;
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
}

