.rt-sms-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.rt-sms-modal.rt-show {
	display: flex;
	animation: rtFadeIn .22s ease;
}

.rt-sms-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.58);
	backdrop-filter: blur(2px);
}

.rt-sms-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 18px;
	padding: 24px 20px 20px;
	box-shadow: 0 24px 80px rgba(0,0,0,.28);
	transform: translateY(16px) scale(.97);
	animation: rtPopupIn .24s ease forwards;
	text-align: center;
	overflow: hidden;
}

.rt-sms-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: #f1f5f9;
	color: #0f172a;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.rt-sms-modal__icon {
	width: 72px;
	height: 72px;
	border-radius: 999px;
	margin: 0 auto 12px;
	background: linear-gradient(135deg, #e0f2fe, #dbeafe);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.rt-sms-pulse {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: #2563eb;
	position: relative;
}

.rt-sms-pulse::before,
.rt-sms-pulse::after {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: 999px;
	border: 2px solid rgba(37,99,235,.28);
	animation: rtPulse 1.8s infinite;
}

.rt-sms-pulse::after {
	animation-delay: .8s;
}

.rt-sms-modal__title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
	color: #0f172a;
}

.rt-sms-modal__text {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.5;
	color: #475569;
}

.rt-sms-modal__phone {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
}

.rt-sms-modal__code-wrap {
	margin-bottom: 16px;
}

.rt-sms-modal__code {
	width: 100%;
	height: 56px;
	border: 1px solid #cbd5e1;
	border-radius: 14px;
	padding: 0 16px;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 10px;
	text-align: center;
	outline: none;
	transition: .2s ease;
}

.rt-sms-modal__code:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}

.rt-sms-modal__actions {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
}

.rt-sms-modal__actions--secondary {
	justify-content: center;
}

.rt-sms-btn {
	flex: 1;
	min-height: 48px;
	border: 0;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: .2s ease;
}

.rt-sms-btn:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.rt-sms-btn--primary {
	background: #2563eb;
	color: #fff;
}

.rt-sms-btn--success {
	background: #16a34a;
	color: #fff;
}

.rt-sms-btn--ghost {
	background: #f8fafc;
	color: #0f172a;
	border: 1px solid #e2e8f0;
	max-width: 180px;
}

.rt-sms-modal__status {
	min-height: 24px;
	font-size: 13px;
	line-height: 1.45;
	margin-top: 8px;
}

.rt-sms-status--ok {
	color: #15803d;
}

.rt-sms-status--err {
	color: #b91c1c;
}

.rt-sms-status--info {
	color: #1d4ed8;
}

.rt-sms-spinner {
	position: absolute;
	inset: 0;
	background: rgba(255,255,255,.72);
	display: none;
	align-items: center;
	justify-content: center;
}

.rt-sms-spinner.rt-show {
	display: flex;
}

.rt-sms-spinner span {
	width: 42px;
	height: 42px;
	border-radius: 999px;
	border: 4px solid #dbeafe;
	border-top-color: #2563eb;
	animation: rtSpin .8s linear infinite;
}

@keyframes rtSpin {
	to { transform: rotate(360deg); }
}

@keyframes rtFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes rtPopupIn {
	from { opacity: 0; transform: translateY(16px) scale(.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rtPulse {
	0% { transform: scale(.8); opacity: .9; }
	100% { transform: scale(1.5); opacity: 0; }
}