/* ─── OTP Registration Verify — Front CSS ─── */
/* Prevent body scroll when popup open */
body.orv-popup-open {
	overflow: hidden;
}

/* ── Overlay ───────────────────────────── */
#orv-otp-popup {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(15, 15, 35, 0.65);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.orv-popup-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 20px;
	box-sizing: border-box;
}

/* ── Card ──────────────────────────────── */
.orv-popup-card {
	background: #fff;
	border-radius: 20px;
	padding: 40px 28px 32px;
	max-width: min(440px, calc(100vw - 40px));
	width: 100%;
	box-sizing: border-box;
	box-shadow:
		0 25px 50px -12px rgba(0,0,0,.3),
		0 0 0 1px rgba(255,255,255,.08) inset;
	position: relative;
	text-align: center;
	animation: orv-slide-up .25s cubic-bezier(.34,1.56,.64,1) both;
	overflow: hidden;
}

.orv-popup-card.orv-otp-length-4 {
	max-width: min(380px, calc(100vw - 40px));
}

.orv-popup-card.orv-otp-length-6 {
	max-width: min(440px, calc(100vw - 40px));
}

.orv-popup-card.orv-otp-length-8 {
	max-width: min(460px, calc(100vw - 40px));
}

@keyframes orv-slide-up {
	from { transform: translateY(28px) scale(.96); opacity: 0; }
	to   { transform: none; opacity: 1; }
}

/* ── Back button ───────────────────────── */
.orv-popup-close {
	position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    background: #f3f4f6;
    border: none !important;
    border-radius: 10px !important;
    width: 36px;
    height: 36px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #6b7280 !important;
    transition: background .18s, color .18s !important;
    padding: 0 !important;
	min-height:36px !important;

}
.orv-popup-close:hover { background: #e5e7eb; color: #111; }
.orv-popup-close svg { width: 18px; height: 18px; }

/* ── Icon ───────────────────────────────── */
.orv-popup-icon {
	margin: 0 auto 18px;
	width: 72px;
	height: 72px;
}
.orv-popup-icon svg { width: 72px; height: 72px; }

/* ── Headings ───────────────────────────── */
.orv-popup-card h2 {
	font-size: 22px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 10px;
	line-height: 1.3;
}

.orv-popup-desc {
	font-size: 14px;
	color: #6b7280;
	margin: 0 0 28px;
	line-height: 1.6;
}

/* ── OTP Inputs (grid: columns always fit card width) ── */
.orv-otp-inputs {
	display: grid;
	width: 100%;
	margin: 0 0 22px;
	padding: 0;
	box-sizing: border-box;
	gap: clamp(4px, 1.5vw, 10px);
	align-items: stretch;
}

.orv-popup-card.orv-otp-length-4 .orv-otp-inputs {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	width: min(100%, 280px);
	margin-left: auto;
	margin-right: auto;
}

.orv-popup-card.orv-otp-length-6 .orv-otp-inputs {
	grid-template-columns: repeat(6, minmax(0, 1fr));
	width: min(100%, 360px);
	margin-left: auto;
	margin-right: auto;
}

.orv-popup-card.orv-otp-length-8 .orv-otp-inputs {
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: clamp(3px, 1vw, 8px);
}

.orv-otp-digit {
	display: block;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	min-height: 0;
	font-size: clamp(15px, 3.8vw, 24px) !important;
	font-weight: 700 !important;
	text-align: center !important;
	border: 2px solid #e5e7eb !important;
	border-radius: clamp(8px, 2vw, 12px) !important;
	color: #111827 !important;
	background: #f9fafb !important;
	outline: none !important;
	box-shadow: none !important;
	transition: border-color .18s, box-shadow .18s !important;
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	-moz-appearance: textfield !important;
}
.orv-otp-digit::-webkit-inner-spin-button,
.orv-otp-digit::-webkit-outer-spin-button { -webkit-appearance: none; }
.orv-otp-inputs.orv-inputs-locked .orv-otp-digit {
	opacity: 0.55;
	cursor: not-allowed;
	background: #f3f4f6;
}

.orv-resend-blocked {
	text-decoration: line-through;
}

.orv-otp-digit:focus {
	border-color: #6366f1 !important;
	box-shadow: 0 0 0 3px rgba(99,102,241,.18) !important;
	background: #fff !important;
}

/* ── Messages ───────────────────────────── */
.orv-otp-error {
	color: #dc2626;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 16px;
	text-align: left;
}

.orv-otp-success {
	color: #16a34a;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 16px;
}

/* ── Verify button ──────────────────────── */
.orv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	transition: background .2s, transform .15s, box-shadow .2s;
	padding: 13px 28px;
	width: 100%;
	box-sizing: border-box;
	color:#e5e7eb !important;
}

.orv-btn-primary {
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	color: #fff;
	box-shadow: 0 4px 16px rgba(99,102,241,.35);
}
.orv-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(99,102,241,.45);
}
.orv-btn-primary:active { transform: none; }
.orv-btn-primary:disabled {
	opacity: .7;
	cursor: not-allowed;
	transform: none;
}

/* ── Spinner ─────────────────────────────── */
.orv-spin {
	animation: orv-rotate .8s linear infinite;
	width: 18px;
	height: 18px;
}
@keyframes orv-rotate {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

/* ── Footer ──────────────────────────────── */
.orv-popup-footer {
	margin: 18px 0 0;
	font-size: 13px;
	color: #6b7280;
}
.orv-popup-footer a {
	color: #6366f1;
	font-weight: 600;
	text-decoration: none;
}
.orv-popup-footer a:hover { text-decoration: underline; }

.orv-resend-success {
	margin-top: 10px;
	font-size: 13px;
	color: #16a34a;
}

/* ── Full-page loading overlay ──────────── */
.orv-loading-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(255,255,255,.82);
	display: flex;
	align-items: center;
	justify-content: center;
}
.orv-loading-spinner svg {
	width: 52px;
	height: 52px;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 480px) {
	.orv-popup-inner {
		padding: 12px;
	}

	.orv-popup-card {
		padding: 32px 18px 24px;
		max-width: calc(100vw - 24px);
	}

	.orv-popup-card.orv-otp-length-4,
	.orv-popup-card.orv-otp-length-6,
	.orv-popup-card.orv-otp-length-8 {
		max-width: calc(100vw - 24px);
	}

	.orv-popup-card.orv-otp-length-8 .orv-otp-inputs {
		gap: 4px;
	}

	.orv-popup-card.orv-otp-length-4 .orv-otp-inputs {
		width: min(100%, 260px);
	}

	.orv-popup-card.orv-otp-length-6 .orv-otp-inputs {
		width: min(100%, 320px);
	}

	.orv-otp-digit {
		font-size: clamp(14px, 4.2vw, 20px) !important;
	}
}

@media (max-width: 360px) {
	.orv-popup-card {
		padding: 28px 12px 22px;
	}

	.orv-popup-card.orv-otp-length-4 .orv-otp-inputs {
		width: 100%;
	}

	.orv-popup-card.orv-otp-length-6 .orv-otp-inputs {
		width: 100%;
	}

	.orv-popup-card.orv-otp-length-8 .orv-otp-inputs {
		gap: 3px;
	}

	.orv-otp-digit {
		border-width: 1.5px !important;
		font-size: clamp(13px, 4.5vw, 18px) !important;
	}
}
