/* mod_manidownload_offers — new-member gift (banner + pop-up), loyalty card. RTL first, no fonts loaded. */
.mdo { --mdo-a: #6d28d9; --mdo-b: #db2777; --mdo-ink: #1d1f23; --mdo-muted: #6b7078; margin: 14px 0; direction: rtl; }
.mdo * { box-sizing: border-box; }
.mdo .bi { line-height: 1; }

/* ---------- banner ---------- */
.mdo-banner {
	position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 18px;
	padding: 18px 22px; border-radius: 22px; color: #fff;
	background: linear-gradient(120deg, var(--mdo-a), var(--mdo-b));
	box-shadow: 0 18px 40px -22px var(--mdo-a);
}
.mdo-banner-glow {
	position: absolute; inset: -40%; z-index: -1; pointer-events: none;
	background: radial-gradient(closest-side, rgba(255, 255, 255, .28), transparent 70%) 15% 30% / 40% 60% no-repeat,
		radial-gradient(closest-side, rgba(255, 255, 255, .18), transparent 70%) 85% 80% / 35% 55% no-repeat;
	animation: mdoDrift 9s ease-in-out infinite alternate;
}
@keyframes mdoDrift { to { transform: translate(6%, -4%) rotate(4deg); } }
.mdo-gift {
	display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; font-size: 28px; color: var(--mdo-a);
	background: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35); animation: mdoWiggle 3.2s ease-in-out infinite;
}
@keyframes mdoWiggle { 0%, 82%, 100% { transform: none; } 86% { transform: rotate(-10deg) scale(1.06); } 90% { transform: rotate(9deg) scale(1.06); } 94% { transform: rotate(-5deg); } }
.mdo-banner-body { min-width: 0; }
.mdo-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; line-height: 1.6; }
.mdo-pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-size: 12.5px; font-weight: 800; backdrop-filter: blur(4px); }
.mdo-text { margin-top: 3px; font-size: 13px; line-height: 1.9; opacity: .92; }
.mdo-banner-side { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mdo-code {
	display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border: 2px dashed rgba(255, 255, 255, .75); border-radius: 14px;
	background: rgba(255, 255, 255, .14); color: #fff; font-size: 16px; font-weight: 800; letter-spacing: 1.5px; cursor: pointer; transition: background .15s, transform .15s;
}
.mdo-code:hover { background: rgba(255, 255, 255, .24); transform: translateY(-1px); }
.mdo-code.is-copied { background: #fff; color: var(--mdo-a); border-style: solid; }
.mdo-code .bi { font-size: 15px; }
.mdo-timer { font-size: 12px; opacity: .9; white-space: nowrap; }
.mdo-cta {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 14px;
	background: #fff; color: var(--mdo-a) !important; font-size: 14px; font-weight: 800; text-decoration: none !important; white-space: nowrap; cursor: pointer;
	box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .45); transition: transform .15s, box-shadow .15s;
}
.mdo-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .5); }
@media (max-width: 767.98px) {
	.mdo-banner { grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; padding: 16px; border-radius: 18px; }
	.mdo-gift { width: 48px; height: 48px; font-size: 23px; border-radius: 14px; }
	.mdo-banner-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
	.mdo-cta { grid-column: 1 / -1; width: 100%; }
	.mdo-kicker { font-size: 14.5px; }
	.mdo-text { font-size: 12.5px; }
}

/* ---------- welcome pop-up ---------- */
html.mdo-lock { overflow: hidden; }
.mdo-modal { position: fixed; inset: 0; z-index: 100050; display: grid; place-items: center; padding: 16px; }
.mdo-modal[hidden] { display: none; }
.mdo-backdrop { position: absolute; inset: 0; background: rgba(12, 10, 24, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.mdo-dialog {
	position: relative; width: min(440px, 100%); padding: 34px 26px 22px; border-radius: 28px; text-align: center; color: var(--mdo-ink); overflow: hidden;
	background: #fff; transform: translateY(24px) scale(.94); opacity: 0; transition: transform .35s cubic-bezier(.2, .9, .25, 1.2), opacity .25s;
	box-shadow: 0 40px 90px -30px rgba(12, 10, 24, .6);
}
/* animated gradient frame */
.mdo-dialog::before {
	content: ""; position: absolute; inset: 0; z-index: 3; padding: 2px; border-radius: inherit; pointer-events: none;
	background: conic-gradient(from var(--mdo-ang, 0deg), var(--mdo-a), var(--mdo-b), #f59e0b, var(--mdo-a));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
	animation: mdoSpin 4s linear infinite;
}
.mdo-dialog::after {
	content: ""; position: absolute; inset: 0 0 auto; height: 150px; z-index: 0; pointer-events: none;
	background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--mdo-a) 16%, #fff), #fff 70%);
}
@property --mdo-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes mdoSpin { to { --mdo-ang: 360deg; } }
.mdo-dialog > * { position: relative; z-index: 1; }
.mdo-modal.is-open .mdo-backdrop { opacity: 1; }
.mdo-modal.is-open .mdo-dialog { transform: none; opacity: 1; }
.mdo-x { position: absolute; top: 14px; left: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f3f4f6; color: #4b5059; cursor: pointer; z-index: 2; }
.mdo-big-gift {
	display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 10px; border-radius: 28px; font-size: 46px; color: #fff;
	background: linear-gradient(135deg, var(--mdo-a), var(--mdo-b)); box-shadow: 0 18px 36px -12px var(--mdo-a);
	animation: mdoPop .7s cubic-bezier(.2, .9, .3, 1.4) .15s both, mdoFloat 3s ease-in-out 1s infinite;
}
@keyframes mdoPop { from { transform: scale(.3) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mdoFloat { 50% { transform: translateY(-6px) rotate(-3deg); } }
.mdo-percent { font-size: 14px; color: var(--mdo-muted); }
.mdo-percent b {
	display: inline-block; font-size: 42px; line-height: 1.1; font-weight: 900;
	background: linear-gradient(120deg, var(--mdo-a), var(--mdo-b)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mdo-dialog h3 { margin: 8px 0 6px; font-size: 20px; font-weight: 900; line-height: 1.6; color: var(--mdo-ink); }
.mdo-dialog p { margin: 0 0 16px; font-size: 13.5px; line-height: 2; color: #4b5059; }
.mdo-code-lg {
	display: flex; width: 100%; justify-content: space-between; padding: 12px 14px 12px 12px; border: 2px dashed color-mix(in srgb, var(--mdo-a) 55%, #fff);
	background: color-mix(in srgb, var(--mdo-a) 7%, #fff); color: var(--mdo-a); font-size: 22px; letter-spacing: 3px;
}
.mdo-code-lg em { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; background: var(--mdo-a); color: #fff; font-style: normal; font-size: 13px; letter-spacing: 0; }
.mdo-code-lg:hover { background: color-mix(in srgb, var(--mdo-a) 12%, #fff); }
.mdo-code-lg.is-copied { background: var(--mdo-a); color: #fff; }
.mdo-countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 16px; direction: rtl; }
.mdo-countdown > div { padding: 8px 4px; border-radius: 14px; background: #f6f5fb; }
.mdo-countdown b { display: block; font-size: 20px; font-weight: 900; color: var(--mdo-ink); font-variant-numeric: tabular-nums; }
.mdo-countdown small { font-size: 12px; color: var(--mdo-muted); }
.mdo-cta-lg { width: 100%; min-height: 52px; background: linear-gradient(120deg, var(--mdo-a), var(--mdo-b)); color: #fff !important; font-size: 15px; box-shadow: 0 16px 30px -14px var(--mdo-a); }
.mdo-later { margin-top: 10px; padding: 6px 12px; border: 0; background: none; color: var(--mdo-muted); font-size: 13px; cursor: pointer; }
/* confetti */
.mdo-confetti { position: absolute; inset: 0; z-index: 0 !important; pointer-events: none; overflow: hidden; }
.mdo-confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; opacity: 0; animation: mdoFall 2.6s ease-in forwards; }
.mdo-modal.is-open .mdo-confetti i { opacity: 1; }
.mdo-confetti i:nth-child(3n) { background: var(--mdo-a); } .mdo-confetti i:nth-child(3n+1) { background: var(--mdo-b); } .mdo-confetti i:nth-child(3n+2) { background: #f59e0b; }
.mdo-confetti i:nth-child(1) { left: 6%; animation-delay: .05s; } .mdo-confetti i:nth-child(2) { left: 12%; animation-delay: .3s; } .mdo-confetti i:nth-child(3) { left: 19%; animation-delay: .12s; }
.mdo-confetti i:nth-child(4) { left: 25%; animation-delay: .45s; } .mdo-confetti i:nth-child(5) { left: 31%; animation-delay: .2s; } .mdo-confetti i:nth-child(6) { left: 37%; animation-delay: .6s; }
.mdo-confetti i:nth-child(7) { left: 43%; animation-delay: .08s; } .mdo-confetti i:nth-child(8) { left: 49%; animation-delay: .35s; } .mdo-confetti i:nth-child(9) { left: 55%; animation-delay: .15s; }
.mdo-confetti i:nth-child(10) { left: 61%; animation-delay: .5s; } .mdo-confetti i:nth-child(11) { left: 67%; animation-delay: .25s; } .mdo-confetti i:nth-child(12) { left: 73%; animation-delay: .4s; }
.mdo-confetti i:nth-child(13) { left: 79%; animation-delay: .1s; } .mdo-confetti i:nth-child(14) { left: 85%; animation-delay: .55s; } .mdo-confetti i:nth-child(15) { left: 91%; animation-delay: .22s; }
.mdo-confetti i:nth-child(16) { left: 96%; animation-delay: .65s; } .mdo-confetti i:nth-child(17) { left: 3%; animation-delay: .7s; } .mdo-confetti i:nth-child(18) { left: 58%; animation-delay: .75s; }
@keyframes mdoFall { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(560px) rotate(540deg); opacity: 0; } }
@media (max-width: 575.98px) {
	.mdo-modal { place-items: end center; padding: 0; }
	.mdo-dialog { width: 100%; border-radius: 26px 26px 0 0; padding: 28px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); }
	.mdo-percent b { font-size: 36px; }
	.mdo-code-lg { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
	.mdo-banner-glow, .mdo-gift, .mdo-big-gift, .mdo-dialog::before, .mdo-confetti i { animation: none !important; }
}

/* ---------- loyalty card ---------- */
.mdo-loyal {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 20px;
	background: linear-gradient(120deg, color-mix(in srgb, var(--mdo-tier) 14%, #fff), #fff 70%); border: 1px solid color-mix(in srgb, var(--mdo-tier) 30%, #fff);
}
.mdo-medal { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 26px; color: #fff; background: var(--mdo-tier); box-shadow: 0 10px 22px -10px var(--mdo-tier); }
.mdo-loyal .mdo-kicker { color: var(--mdo-ink); font-size: 15px; }
.mdo-loyal .mdo-kicker b { color: var(--mdo-tier); }
.mdo-loyal .mdo-text { color: var(--mdo-muted); opacity: 1; font-size: 12.5px; }
.mdo-bar { height: 8px; margin: 8px 0 4px; border-radius: 999px; background: rgba(17, 24, 39, .08); overflow: hidden; }
.mdo-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mdo-tier), color-mix(in srgb, var(--mdo-tier) 60%, #fff)); }
.mdo-loyal-side { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mdo-loyal-side small { font-size: 12px; color: var(--mdo-muted); }
.mdo-loyal .mdo-code { border-color: var(--mdo-tier); background: #fff; color: var(--mdo-tier); font-size: 14px; padding: 7px 12px; }
.mdo-loyal .mdo-code.is-copied { background: var(--mdo-tier); color: #fff; }
.mdo-help { border: 0; background: none; color: var(--mdo-muted); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 2px; }
.mdo-dialog-help { text-align: start; }
.mdo-dialog-help::before, .mdo-dialog-help::after { display: none; }
.mdo-help-body { margin: 10px 0 16px; font-size: 13.5px; line-height: 2; color: #4b5059; max-height: 55vh; overflow: auto; }
@media (max-width: 767.98px) {
	.mdo-loyal { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
	.mdo-loyal-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
}
@media (max-width: 575.98px) { .mdo-banner .mdo-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } }

/* ---------- slim strip (default): full width, no rounded corners, no outer margin ---------- */
.mdo .mdo-short { display: none; }
.mdo-x-strip { display: none; }
.mdo.mdo-dismissed .mdo-banner, .mdo.mdo-dismissed .mdo-loyal { display: none !important; }
.mdo--strip { margin: 0 !important; }
.mdo--strip .mdo-banner, .mdo--strip .mdo-loyal {
	display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; margin: 0; padding: 6px 16px 6px 52px;
	border-radius: 0 !important; box-shadow: none; position: relative;
}
.mdo--strip .mdo-banner-glow { inset: -100% -20%; opacity: .6; }
.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-gift, .mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-medal {
	width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; font-size: 16px; box-shadow: none;
}
.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-banner-body, .mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-loyal-body {
	flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap; overflow: hidden;
}
.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-kicker { flex: 0 0 auto; flex-wrap: nowrap; gap: 8px; font-size: 14px; line-height: 1.4; }
.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-pill { font-size: 12px; padding: 1px 9px; }
.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-text { margin: 0; font-size: 13px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; }
.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-banner-side, .mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-loyal-side { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 10px; }
.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-code { padding: 3px 10px; font-size: 13px; border-width: 1.5px; border-radius: 9px; letter-spacing: 1px; }
.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-code .bi { font-size: 13px; }
.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-timer { font-size: 12px; }
.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-cta { flex: 0 0 auto; min-height: 32px; padding: 0 14px; border-radius: 10px; font-size: 13px; box-shadow: none; }
.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-bar { flex: 0 0 120px; margin: 0; }
.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-loyal-side small { display: none; }
.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-loyal-body .mdo-text { flex: 1 1 auto; min-width: 0; }
.mdo--strip .mdo-x-strip {
	display: grid; place-items: center; position: absolute; top: 50%; left: 12px; transform: translateY(-50%);
	width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: inherit; font-size: 12px; cursor: pointer;
}
.mdo--strip .mdo-x-strip:hover { background: rgba(255, 255, 255, .3); }
.mdo--strip .mdo-loyal .mdo-x-strip { background: rgba(0, 0, 0, .06); }
@media (max-width: 991.98px) {
	.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-timer { display: none; }
}
@media (max-width: 767.98px) {
	.mdo--strip .mdo-banner, .mdo--strip .mdo-loyal { gap: 8px; padding: 6px 10px 6px 44px; }
	.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-gift, .mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-medal { display: none; }
	.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-kicker { font-size: 13px; }
	.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-loyal-side .mdo-code { display: none; }
	.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-banner-body .mdo-kicker { font-size: 0; }      /* only the «۱۰٪ تخفیف» pill stays */
	.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-banner-body .mdo-kicker .mdo-pill { font-size: 12px; }
	.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-text { font-size: 12px; }
	.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-short { display: inline; }
	.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-long { display: none; }
	.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-cta { grid-column: auto; width: auto; min-height: 30px; padding: 0 10px; font-size: 12px; }
	.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-cta .bi { display: none; }
	.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-banner-side .mdo-code { display: none; }  /* the button applies it anyway */
	.mdo--strip :is(.mdo-banner, .mdo-loyal) .mdo-bar { display: none; }
	.mdo--strip .mdo-x-strip { left: 8px; width: 26px; height: 26px; }
}
