/*
 * DM-Plus customer UI outside the approved package design (that one is dm-plus-packages.css):
 * my-account club card + countdown, [dmp_user_status], the benefits modal, product badge.
 * Every rule is scoped under .dmp-front (or a dmp- class); --dmp-brand is printed inline from the identity screen.
 */

.dmp-front {
	--dmp-brand: #3e68ff;
	--dmp-ink: #131327;
	--dmp-muted: #5d6078;
	--dmp-line: #e7e8f2;
	direction: rtl;
	text-align: start;
	box-sizing: border-box;
	font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
	color: var(--dmp-ink);
}

.dmp-front *,
.dmp-front *::before,
.dmp-front *::after {
	box-sizing: inherit;
}

/* The root itself can carry [hidden] (the modal): a descendant-only rule would never hide it. */
.dmp-front[hidden],
.dmp-front [hidden] {
	display: none !important;
}

.dmp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 18px;
	border: 0;
	border-radius: 12px;
	background: var(--dmp-brand);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.dmp-btn:hover,
.dmp-btn:focus-visible {
	color: #fff;
	filter: brightness(.92);
}

.dmp-btn:focus-visible {
	outline: 2px solid var(--dmp-ink);
	outline-offset: 2px;
}

/* ---- [dmp_user_status] ---- */

.dmp-status {
	padding: 16px 20px;
	margin-block-end: 20px;
	border: 1px solid var(--dmp-line);
	border-radius: 16px;
	background: #fff;
}

.dmp-status p {
	margin: 4px 0;
}

.dmp-status__plan {
	font-weight: 700;
	color: var(--dmp-pkg, var(--dmp-brand));
}

/* ---- my-account club page ---- */

.dmp-club__status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-width: 0;
	padding: 20px;
	margin-block-end: 24px;
	border: 1px solid var(--dmp-line);
	border-inline-start: 5px solid var(--dmp-pkg, var(--dmp-brand));
	border-radius: 18px;
	background: #fff;
}

.dmp-club__text {
	min-width: 0;
}

.dmp-club__title {
	margin: 0 0 8px;
	font-size: 18px;
}

.dmp-club__line,
.dmp-club__hint {
	margin: 4px 0;
	font-size: 14px;
}

.dmp-club__hint {
	color: var(--dmp-muted);
}

.dmp-pill {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	background: var(--dmp-pkg, var(--dmp-brand));
	color: #fff;
	font-weight: 700;
	font-size: 14px;
}

.dmp-club__timer {
	min-width: 0;
	text-align: center;
}

.dmp-club__timer-label {
	margin-block-end: 8px;
	font-size: 13px;
	color: var(--dmp-muted);
}

.dmp-countdown {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.dmp-countdown__box {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 56px;
	padding: 8px 6px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--dmp-pkg, var(--dmp-brand)) 10%, #fff);
}

.dmp-countdown__num {
	font-size: 20px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--dmp-pkg, var(--dmp-brand));
}

.dmp-countdown__unit {
	font-size: 11px;
	color: var(--dmp-muted);
}

.dmp-club__sub {
	margin: 0 0 12px;
	font-size: 16px;
}

/* ---- benefits modal ---- */

.dmp-modal-open {
	overflow: hidden;
}

.dmp-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 16px;
}

.dmp-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(6, 6, 28, .55);
}

.dmp-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(520px, 100%);
	max-height: calc(100vh - 32px);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(6, 6, 28, .25);
	overflow: hidden;
}

.dmp-modal__dialog:focus {
	outline: none;
}

.dmp-modal__close {
	position: absolute;
	inset-block-start: 10px;
	inset-inline-end: 10px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 10px;
	background: #f4f5fa;
	color: var(--dmp-ink);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.dmp-modal__close:focus-visible {
	outline: 2px solid var(--dmp-brand);
}

.dmp-modal__header {
	padding: 20px 20px 12px;
	padding-inline-end: 56px;
	border-block-end: 1px solid var(--dmp-line);
}

.dmp-modal__header h2 {
	margin: 0 0 4px;
	font-size: 18px;
	color: var(--dmp-brand);
}

.dmp-modal__header p {
	margin: 0;
	font-size: 13px;
	color: var(--dmp-muted);
}

.dmp-modal__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 14px 20px;
}

.dmp-modal__plans {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.dmp-modal__plan {
	border: 1px solid var(--dmp-line);
	border-radius: 14px;
	overflow: hidden;
}

.dmp-modal__plan.is-active {
	border-color: var(--dmp-pkg, var(--dmp-brand));
	box-shadow: 0 0 0 1px var(--dmp-pkg, var(--dmp-brand));
}

.dmp-modal__plan-head {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 10px 14px;
	font-weight: 700;
	cursor: pointer;
}

.dmp-modal__plan-head input {
	accent-color: var(--dmp-pkg, var(--dmp-brand));
}

.dmp-modal__plan-body {
	display: none;
	padding: 0 14px 14px;
}

.dmp-modal__plan.is-active .dmp-modal__plan-body {
	display: block;
}

.dmp-modal__duration {
	width: 100%;
	min-height: 44px;
	padding: 6px 10px;
	border: 1px solid var(--dmp-line);
	border-radius: 10px;
	font-family: inherit;
	font-size: 14px;
	background: #fff;
}

.dmp-modal__features,
.dmp-modal__global ul {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.dmp-modal__features li,
.dmp-modal__global li {
	position: relative;
	padding-block: 4px;
	padding-inline-start: 18px;
	font-size: 13px;
}

.dmp-modal__features li::before,
.dmp-modal__global li::before {
	content: "";
	position: absolute;
	inset-inline-start: 2px;
	inset-block-start: 11px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--dmp-pkg, var(--dmp-brand));
}

.dmp-modal__global {
	margin-block-start: 14px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #f7f8fc;
}

.dmp-modal__global h3 {
	margin: 0;
	font-size: 14px;
}

.dmp-modal__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 20px;
	border-block-start: 1px solid var(--dmp-line);
}

.dmp-modal__total {
	display: flex;
	flex-direction: column;
	min-width: 0;
	font-size: 12px;
	color: var(--dmp-muted);
}

.dmp-modal__total strong {
	font-size: 17px;
	color: var(--dmp-ink);
	font-variant-numeric: tabular-nums;
}

.dmp-product-cta {
	margin-block: 12px;
}

/* ---- product badge ---- */

.dmp-badge {
	display: inline-flex;
	gap: 4px;
	padding: 2px 10px;
	border-radius: 999px;
	font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
	font-size: 12px;
	color: #fff;
	background: var(--dmp-badge, #3e68ff);
}
