/* ورود و ثبت‌نام پیامکی — سرزمین دخترانه */
.sdotp, .sdotp *, .sdotp *::before, .sdotp *::after { box-sizing: border-box; }
.sdotp {
	--p: var(--sdotp-primary, #ec4899);
	--p2: var(--sdotp-primary-2, #f9a8d4);
	--ink: #3b2233;
	--muted: #9a7b8c;
	--line: #f6d5e4;
	--soft: #fff5f9;
	--ok: #16a34a;
	--err: #e11d48;
	position: relative;
	display: flex;
	justify-content: center;
	padding: 56px 14px 28px;
	font-family: inherit;
	color: var(--ink);
	line-height: 1.7;
	text-align: right;
}
.sdotp button, .sdotp input { font-family: inherit; }

/* پس‌زمینه تزئینی */
.sdotp__bg { position: absolute; inset: 0; overflow: hidden; border-radius: 28px; pointer-events: none; z-index: 0; }
.sdotp__bg i { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .55; }
.sdotp__bg i:nth-child(1) { width: 240px; height: 240px; background: var(--p2); top: -70px; right: -50px; }
.sdotp__bg i:nth-child(2) { width: 200px; height: 200px; background: #fbcfe8; bottom: -60px; left: -40px; }
.sdotp__bg i:nth-child(3) { width: 130px; height: 130px; background: #fde7f1; top: 45%; left: 55%; }

.sdotp__card {
	position: relative; z-index: 1;
	width: 100%; max-width: 430px;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border: 1px solid #fff;
	border-radius: 28px;
	padding: 30px 26px 22px;
	box-shadow: 0 24px 60px -18px rgba(236, 72, 153, .35), 0 6px 18px -8px rgba(236, 72, 153, .18);
	animation: sdotp-rise .5s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes sdotp-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.sdotp__brand {
	width: 68px; height: 68px; margin: -64px auto 14px;
	display: grid; place-items: center;
	border-radius: 22px;
	background: linear-gradient(135deg, var(--p), var(--p2));
	color: #fff;
	box-shadow: 0 12px 26px -8px var(--p);
	transform: rotate(-6deg);
	overflow: hidden;
}
.sdotp__brand img { width: 100%; height: 100%; object-fit: cover; transform: rotate(6deg) scale(1.1); }
.sdotp__brand svg { transform: rotate(6deg); animation: sdotp-beat 2.2s ease-in-out infinite; }
@keyframes sdotp-beat { 0%, 100% { transform: rotate(6deg) scale(1); } 12% { transform: rotate(6deg) scale(1.14); } 24% { transform: rotate(6deg) scale(1); } }

.sdotp__head { text-align: center; margin-bottom: 18px; }
.sdotp__title { margin: 0 0 4px !important; font-size: 1.35rem !important; font-weight: 800; color: var(--ink); line-height: 1.5; }
.sdotp__sub { margin: 0 !important; font-size: .9rem; color: var(--muted); }

/* تب‌ها */
.sdotp__tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 4px; margin-bottom: 18px; }
.sdotp__tabs button {
	position: relative; z-index: 1; appearance: none; background: none !important; border: 0 !important; box-shadow: none !important;
	padding: 10px 6px; border-radius: 12px; cursor: pointer; font-size: .88rem; font-weight: 700; color: var(--muted) !important; transition: color .25s;
}
.sdotp__tabs button.is-active { color: #fff !important; }
.sdotp__tabs-ind { position: absolute; top: 4px; bottom: 4px; right: 4px; width: calc(50% - 4px); border-radius: 12px; background: linear-gradient(135deg, var(--p), var(--p2)); box-shadow: 0 8px 16px -8px var(--p); transition: transform .3s cubic-bezier(.3, .8, .3, 1); }
.sdotp__tabs.is-pass .sdotp__tabs-ind { transform: translateX(-100%); }

/* مراحل */
.sdotp__steps { position: relative; }
.sdotp__step { display: none; }
.sdotp__step.is-active { display: block; animation: sdotp-step .35s ease both; }
@keyframes sdotp-step { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.sdotp__form { margin: 0; padding: 0; }

.sdotp__field { display: block; margin-bottom: 14px; }
.sdotp__field[hidden] { display: none; }
.sdotp__label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.sdotp__label small { font-weight: 400; color: var(--muted); }
.sdotp__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.sdotp__input {
	display: flex; align-items: center; gap: 8px;
	background: var(--soft); border: 1.5px solid var(--line); border-radius: 16px;
	padding: 0 14px; height: 52px; color: var(--muted);
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.sdotp__input:focus-within { background: #fff; border-color: var(--p); color: var(--p); box-shadow: 0 0 0 4px rgba(236, 72, 153, .13); }
.sdotp .sdotp__input input {
	flex: 1; min-width: 0; width: 100%; height: 100%; margin: 0; padding: 0;
	border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important;
	font-size: 1rem; color: var(--ink); text-align: right;
}
.sdotp .sdotp__input input[dir="ltr"] { text-align: left; }
.sdotp .sdotp__input--phone input { letter-spacing: .06em; font-weight: 600; }
.sdotp .sdotp__input input::placeholder { color: #cdb0be; font-weight: 400; letter-spacing: 0; }
.sdotp__field.is-error .sdotp__input { border-color: var(--err); box-shadow: 0 0 0 4px rgba(225, 29, 72, .1); }
.sdotp__eye { appearance: none; background: none !important; border: 0 !important; padding: 4px; cursor: pointer; opacity: .55; font-size: 1rem; line-height: 1; }
.sdotp__eye:hover { opacity: 1; }
.sdotp__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* دکمه */
.sdotp .sdotp__btn {
	position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; height: 54px; margin-top: 4px;
	border: 0; border-radius: 16px; cursor: pointer;
	font-size: 1rem; font-weight: 800; color: #fff;
	background: linear-gradient(135deg, var(--p), var(--p2));
	box-shadow: 0 14px 26px -12px var(--p);
	transition: transform .15s, box-shadow .2s, filter .2s;
}
.sdotp .sdotp__btn:hover { filter: brightness(1.04); box-shadow: 0 18px 30px -12px var(--p); }
.sdotp .sdotp__btn:active { transform: scale(.985); }
.sdotp .sdotp__btn[disabled] { opacity: .75; cursor: not-allowed; }
.sdotp__spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: sdotp-spin .7s linear infinite; }
.sdotp__btn.is-loading .sdotp__spin { display: block; }
@keyframes sdotp-spin { to { transform: rotate(360deg); } }

/* کد تایید */
.sdotp__note { margin: 0 0 16px; text-align: center; font-size: .88rem; color: var(--muted); }
.sdotp__note b { color: var(--ink); }
.sdotp__note--ok { color: var(--ok); background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 14px; padding: 9px 12px; text-align: right; }
.sdotp__otp { display: flex; justify-content: center; gap: 9px; margin-bottom: 18px; }
.sdotp .sdotp__otp input {
	width: 100%; max-width: 54px; height: 60px; padding: 0; margin: 0;
	text-align: center; font-size: 1.45rem; font-weight: 800; color: var(--ink);
	background: var(--soft); border: 1.5px solid var(--line); border-radius: 16px; outline: 0; box-shadow: none;
	transition: border-color .2s, box-shadow .2s, transform .15s;
}
.sdotp .sdotp__otp input:focus { background: #fff; border-color: var(--p); box-shadow: 0 0 0 4px rgba(236, 72, 153, .13); transform: translateY(-2px); }
.sdotp .sdotp__otp input.is-filled { border-color: var(--p2); background: #fff; }
.sdotp__otp.is-error input { border-color: var(--err); animation: sdotp-shake .4s; }
@keyframes sdotp-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.sdotp__hint { margin: 14px 0 0; text-align: center; font-size: .85rem; color: var(--muted); }
.sdotp__hint[hidden] { display: none; }
.sdotp__hint b { color: var(--p); font-variant-numeric: tabular-nums; }
.sdotp .sdotp__link { appearance: none; background: none !important; border: 0 !important; box-shadow: none !important; padding: 0; margin: 0; cursor: pointer; color: var(--p) !important; font-size: inherit; font-weight: 700; text-decoration: none; }
.sdotp .sdotp__link:hover { text-decoration: underline; }
.sdotp__link[hidden], [data-timer-wrap][hidden] { display: none; }

.sdotp__check { display: flex; align-items: flex-start; gap: 8px; margin: 2px 0 12px; font-size: .84rem; color: var(--muted); cursor: pointer; }
.sdotp__check input { margin-top: 5px; accent-color: var(--p); }
.sdotp__check a { color: var(--p); }

/* پیام */
.sdotp__msg { min-height: 0; margin-top: 12px; font-size: .86rem; font-weight: 600; text-align: center; border-radius: 12px; }
.sdotp__msg.is-show { padding: 10px 12px; animation: sdotp-step .25s ease both; }
.sdotp__msg.is-error { color: var(--err); background: #fff1f4; border: 1px solid #fecdd6; }
.sdotp__msg.is-info { color: #0e7490; background: #ecfeff; border: 1px solid #a5f3fc; }
.sdotp__foot { margin: 16px 0 0; text-align: center; font-size: .78rem; color: #b79aab; }

/* موفقیت */
.sdotp__done { text-align: center; padding: 16px 0 6px; color: var(--ok); }
.sdotp__done svg circle { stroke-dasharray: 152; stroke-dashoffset: 152; animation: sdotp-draw .6s ease forwards; }
.sdotp__done svg path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: sdotp-draw .4s .45s ease forwards; }
@keyframes sdotp-draw { to { stroke-dashoffset: 0; } }
.sdotp__done h3 { margin: 10px 0 2px; color: var(--ink); font-size: 1.15rem; }
.sdotp__done p { margin: 0; color: var(--muted); font-size: .88rem; }

/* مودال */
.sdotp-modal { position: fixed; inset: 0; z-index: 999999; display: none; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.sdotp-modal.is-open { display: flex; }
.sdotp-modal__backdrop { position: fixed; inset: 0; background: rgba(76, 20, 52, .45); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: sdotp-fade .25s ease both; }
@keyframes sdotp-fade { from { opacity: 0; } to { opacity: 1; } }
.sdotp-modal__dialog { position: relative; z-index: 1; width: 100%; max-width: 470px; margin: auto; padding-top: 40px; }
.sdotp-modal .sdotp { padding: 12px 0 0; }
.sdotp-modal__close {
	position: absolute; top: 46px; left: 12px; z-index: 5; width: 36px; height: 36px; padding: 0; line-height: 34px;
	border: 0; border-radius: 50%; background: var(--soft, #fff5f9); color: #9a7b8c; font-size: 22px; cursor: pointer; transition: background .2s, transform .2s;
}
.sdotp-modal__close:hover { background: #fde1ee; transform: rotate(90deg); }
body.sdotp-lock { overflow: hidden; }

/* دکمه شورت‌کد */
.sdotp-btn-open {
	display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px; border: 0; border-radius: 14px; cursor: pointer;
	font-weight: 700; color: #fff !important; text-decoration: none;
	background: linear-gradient(135deg, var(--sdotp-primary, #ec4899), var(--sdotp-primary-2, #f9a8d4));
	box-shadow: 0 12px 22px -12px var(--sdotp-primary, #ec4899);
}

/* موبایل */
@media (max-width: 480px) {
	.sdotp { padding: 52px 10px 22px; }
	.sdotp__card { padding: 26px 18px 18px; border-radius: 24px; }
	.sdotp__row { grid-template-columns: 1fr; gap: 0; }
	.sdotp .sdotp__otp input { height: 54px; font-size: 1.3rem; }
	.sdotp__otp { gap: 7px; }
	.sdotp-modal { align-items: flex-end; padding: 0; }
	.sdotp-modal__dialog { max-width: none; margin: 0; padding-top: 34px; }
	.sdotp-modal .sdotp__card { border-radius: 26px 26px 0 0; padding-bottom: 28px; animation: sdotp-sheet .35s cubic-bezier(.2, .8, .2, 1) both; }
	.sdotp-modal__close { top: 40px; }
}
@keyframes sdotp-sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }


/* پاپ‌آپ تبلیغاتی */
.sdotp-promo { position: fixed; inset: 0; z-index: 999990; display: none; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; font-family: inherit; }
.sdotp-promo.is-open { display: flex; }
.sdotp-promo__backdrop { position: fixed; inset: 0; background: rgba(76, 20, 52, .5); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: sdotp-fade .3s ease both; }
.sdotp-promo__card {
	position: relative; z-index: 1; width: 100%; max-width: 440px; margin: auto; overflow: hidden;
	background: #fff; border-radius: 28px; text-align: center; color: #3b2233;
	box-shadow: 0 30px 70px -20px rgba(236, 72, 153, .55);
	animation: sdotp-pop .45s cubic-bezier(.2, .9, .25, 1.1) both;
}
@keyframes sdotp-pop { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
.sdotp-promo__x {
	position: absolute; top: 12px; left: 12px; z-index: 3; width: 36px; height: 36px; padding: 0; line-height: 34px;
	border: 0; border-radius: 50%; cursor: pointer; font-size: 22px; color: #9a7b8c; background: rgba(255, 255, 255, .9);
	box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .25); transition: transform .2s;
}
.sdotp-promo__x:hover { transform: rotate(90deg); }
.sdotp-promo__img img { display: block; width: 100%; height: auto; max-height: 240px; object-fit: cover; }
.sdotp-promo__body { padding: 26px 24px 22px; line-height: 1.9; }
.sdotp-promo__body::before { content: ""; display: block; height: 4px; width: 56px; margin: -8px auto 18px; border-radius: 99px; background: linear-gradient(90deg, var(--sdotp-primary, #ec4899), var(--sdotp-primary-2, #f9a8d4)); }
.sdotp-promo__content { font-size: .98rem; }
.sdotp-promo__content > :first-child { margin-top: 0; }
.sdotp-promo__content > :last-child { margin-bottom: 0; }
.sdotp-promo__content h1, .sdotp-promo__content h2, .sdotp-promo__content h3 { margin: 0 0 10px; font-weight: 800; line-height: 1.5; color: #3b2233; }
.sdotp-promo__content h2 { font-size: 1.4rem; }
.sdotp-promo__content p { margin: 0 0 10px; }
.sdotp-promo__content ul, .sdotp-promo__content ol { text-align: right; padding-inline-start: 22px; margin: 0 0 10px; }
.sdotp-promo__content a { color: var(--sdotp-primary, #ec4899); font-weight: 700; }
.sdotp-promo__content img { max-width: 100%; height: auto; border-radius: 14px; }
.sdotp-promo .sdotp-promo__cta {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; margin-top: 18px;
	border-radius: 16px; text-decoration: none; font-size: 1rem; font-weight: 800; color: #fff !important;
	background: linear-gradient(135deg, var(--sdotp-primary, #ec4899), var(--sdotp-primary-2, #f9a8d4));
	box-shadow: 0 14px 26px -12px var(--sdotp-primary, #ec4899); transition: transform .15s, filter .2s;
}
.sdotp-promo .sdotp-promo__cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
.sdotp-promo .sdotp-promo__later { display: inline-block; margin-top: 12px; padding: 6px 10px; border: 0 !important; background: none !important; box-shadow: none !important; color: #a98fa0 !important; font-size: .85rem; font-family: inherit; cursor: pointer; }
.sdotp-promo .sdotp-promo__later:hover { color: #3b2233 !important; text-decoration: underline; }
@media (max-width: 480px) {
	.sdotp-promo { align-items: flex-end; padding: 0; }
	.sdotp-promo__card { max-width: none; border-radius: 26px 26px 0 0; animation-name: sdotp-sheet; }
	.sdotp-promo__body { padding-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
	.sdotp *, .sdotp-modal *, .sdotp-promo * { animation: none !important; transition: none !important; }
}
