/**
 * MasjidOS Demo — landing styles.
 * Everything is scoped under .msd so it can live inside any theme.
 */

/* ───────────────────────── Tokens ───────────────────────── */
.msd {
	--msd-bg: #fbf8f1;
	--msd-surface: #ffffff;
	--msd-surface-2: #f4efe3;
	--msd-ink: #0f1f1b;
	--msd-ink-2: #2b3d38;
	--msd-muted: #5b6b66;
	--msd-line: rgba(15, 31, 27, .1);
	--msd-line-2: rgba(15, 31, 27, .16);
	--msd-teal: #1a6b5a;
	--msd-teal-2: #22846f;
	--msd-teal-deep: #0e3b33;
	--msd-teal-soft: #e3f0ec;
	--msd-gold: #c9a84c;
	--msd-gold-2: #b08f35;
	--msd-gold-soft: #f6edd3;
	--msd-rose: #e2725b;
	--msd-purple: #7a6cf0;
	--msd-blue: #3a7bd5;
	--msd-glass: rgba(255, 255, 255, .72);
	--msd-glass-line: rgba(255, 255, 255, .6);
	--msd-shadow-sm: 0 1px 2px rgba(14, 59, 51, .06), 0 2px 8px rgba(14, 59, 51, .05);
	--msd-shadow: 0 10px 30px -12px rgba(14, 59, 51, .25), 0 2px 6px rgba(14, 59, 51, .06);
	--msd-shadow-lg: 0 40px 80px -30px rgba(14, 59, 51, .45);
	--msd-radius: 20px;
	--msd-radius-sm: 12px;
	--msd-wrap: 1200px;
	--msd-gutter: clamp(16px, 4vw, 32px);
	--msd-sec-pad: clamp(72px, 9vw, 128px);
	--msd-font: "Inter", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--msd-font-display: "Space Grotesk", "Hind Siliguri", "Inter", system-ui, sans-serif;
	--msd-font-ar: "Cairo", "Inter", system-ui, sans-serif;
	--msd-ease: cubic-bezier(.2, .8, .2, 1);

	color: var(--msd-ink);
	background: var(--msd-bg);
	font-family: var(--msd-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

:is([data-theme="dark"] .msd, .msd[data-theme="dark"]) {
	--msd-bg: #0a1412;
	--msd-surface: #10201c;
	--msd-surface-2: #152a25;
	--msd-ink: #eaf2ef;
	--msd-ink-2: #c8d8d3;
	--msd-muted: #93a9a2;
	--msd-line: rgba(255, 255, 255, .08);
	--msd-line-2: rgba(255, 255, 255, .14);
	--msd-teal: #3fb79a;
	--msd-teal-2: #56c9ad;
	--msd-teal-soft: rgba(63, 183, 154, .12);
	--msd-gold: #d9b45a;
	--msd-gold-soft: rgba(217, 180, 90, .14);
	--msd-glass: rgba(16, 32, 28, .72);
	--msd-glass-line: rgba(255, 255, 255, .08);
	--msd-shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
	--msd-shadow: 0 14px 34px -14px rgba(0, 0, 0, .6);
	--msd-shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8);
}

.msd .msd-section--dark {
	--msd-bg: #0b201c;
	--msd-surface: #11302a;
	--msd-surface-2: #163a33;
	--msd-ink: #f1f6f4;
	--msd-ink-2: #cfe0da;
	--msd-muted: #9bb8af;
	--msd-line: rgba(255, 255, 255, .09);
	--msd-line-2: rgba(255, 255, 255, .16);
	--msd-teal: #4cc3a5;
	--msd-teal-soft: rgba(76, 195, 165, .12);
	--msd-gold: #dcb75c;
	--msd-gold-soft: rgba(220, 183, 92, .14);
	--msd-glass: rgba(17, 48, 42, .7);
	--msd-glass-line: rgba(255, 255, 255, .1);
	color: var(--msd-ink);
	background:
		radial-gradient(1000px 500px at 85% 0%, rgba(201, 168, 76, .14), transparent 60%),
		radial-gradient(800px 500px at 0% 100%, rgba(63, 183, 154, .16), transparent 60%),
		var(--msd-bg);
}

/* ───────────────────────── Base ───────────────────────── */
body.msd { margin: 0; min-height: 100vh; }
.msd *, .msd *::before, .msd *::after { box-sizing: border-box; }
.msd img, .msd svg { max-width: 100%; }
.msd a { color: inherit; text-decoration: none; }
.msd button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
.msd input, .msd select, .msd textarea { font: inherit; color: inherit; }
.msd h1, .msd h2, .msd h3, .msd h4, .msd h5, .msd p, .msd ul, .msd ol, .msd figure, .msd blockquote { margin: 0; padding: 0; }
.msd ul, .msd ol { list-style: none; }
.msd code, .msd kbd, .msd pre { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .88em; }
.msd [lang="ar"], .msd [dir="rtl"] { font-family: var(--msd-font-ar); }
.msd [hidden] { display: none !important; }
.msd .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.msd :focus-visible { outline: 2px solid var(--msd-gold); outline-offset: 3px; border-radius: 6px; }
.msd ::selection { background: var(--msd-gold); color: #10201c; }
html:has(body.msd) { scroll-behavior: smooth; scroll-padding-top: 84px; }

.msd-skip { position: fixed; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: var(--msd-ink); color: var(--msd-bg) !important; transition: top .2s; }
.msd-skip:focus { top: 12px; }

.msd .msd-wrap { width: 100%; max-width: calc(var(--msd-wrap) + var(--msd-gutter) * 2); margin: 0 auto; padding: 0 var(--msd-gutter); }
.msd .msd-section { position: relative; padding: var(--msd-sec-pad) 0; }
.msd .msd-section--tint { background: linear-gradient(180deg, var(--msd-surface-2), var(--msd-bg)); }
.msd .msd-i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }
.msd .msd-muted { color: var(--msd-muted); font-size: .85rem; }
.msd .msd-link { color: var(--msd-teal); font-weight: 600; font-size: .9rem; }
.msd .msd-link:hover { text-decoration: underline; }

/* Typography */
.msd .msd-h1 {
	font-size: clamp(2.5rem, 6.2vw, 4.75rem);
	line-height: 1.02;
	letter-spacing: -.035em;
	font-weight: 700;
}
.msd .msd-h2 {
	font-size: clamp(2rem, 4.4vw, 3.4rem);
	line-height: 1.06;
	letter-spacing: -.03em;
	font-weight: 700;
}
.msd .msd-h1 em, .msd .msd-h2 em {
	font-style: normal;
	background: linear-gradient(100deg, var(--msd-teal) 0%, var(--msd-teal-2) 40%, var(--msd-gold) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.msd .msd-section--dark .msd-h2 em, .msd .msd-cta .msd-h2 em { background: linear-gradient(100deg, #f3d68a, var(--msd-gold) 50%, #7fe0c6); -webkit-background-clip: text; background-clip: text; }
.msd .msd-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--msd-teal);
}
.msd .msd-eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--msd-gold); }
.msd .msd-lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--msd-muted); max-width: 640px; }
.msd .msd-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); }
.msd .msd-head--center { justify-items: center; text-align: center; }
.msd .msd-head--center .msd-lead { margin: 0 auto; }

/* Buttons */
.msd .msd-btn {
	--b-bg: var(--msd-surface);
	--b-fg: var(--msd-ink);
	--b-bd: var(--msd-line-2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 20px;
	border-radius: 999px;
	border: 1px solid var(--b-bd);
	background: var(--b-bg);
	color: var(--b-fg);
	font-weight: 600;
	font-size: .95rem;
	white-space: nowrap;
	transition: transform .25s var(--msd-ease), box-shadow .25s, background .25s, border-color .25s;
}
.msd .msd-btn:hover { transform: translateY(-2px); box-shadow: var(--msd-shadow); }
.msd .msd-btn:active { transform: translateY(0); }
.msd .msd-btn--primary { --b-bg: var(--msd-teal-deep); --b-fg: #fff; --b-bd: transparent; background: linear-gradient(135deg, var(--msd-teal) 0%, var(--msd-teal-deep) 100%); }
:is([data-theme="dark"] .msd, .msd[data-theme="dark"]) .msd-btn--primary, .msd .msd-section--dark .msd-btn--primary { background: linear-gradient(135deg, #3fb79a, #1a6b5a); }
.msd .msd-btn--gold { --b-fg: #1d1606; --b-bd: transparent; background: linear-gradient(135deg, #f0d48a, var(--msd-gold) 55%, #b48f33); }
.msd .msd-btn--ghost { --b-bg: transparent; }
.msd .msd-btn--ghost:hover { --b-bg: var(--msd-surface); }
.msd .msd-btn--glass { --b-bg: var(--msd-glass); --b-bd: var(--msd-glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.msd .msd-btn--lg { height: 54px; padding: 0 26px; font-size: 1rem; }
.msd .msd-btn--sm { height: 36px; padding: 0 14px; font-size: .85rem; }
.msd .msd-btn--block { width: 100%; }
.msd .msd-play { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--msd-gold); color: #1d1606; margin-left: -8px; }
.msd .msd-play .msd-i { width: 12px; height: 12px; fill: currentColor; }

.msd .msd-iconbtn {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--msd-line);
	background: var(--msd-surface);
	transition: transform .2s, background .2s;
}
.msd .msd-iconbtn:hover { transform: scale(1.06); }
.msd .msd-iconbtn--sm { width: 32px; height: 32px; }
.msd .msd-copy { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--msd-muted); transition: background .2s, color .2s; }
.msd .msd-copy:hover { background: var(--msd-teal-soft); color: var(--msd-teal); }
.msd .msd-copy.is-done { color: var(--msd-teal); }

/* Badges & pills */
.msd .msd-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 22px;
	padding: 0 9px;
	border-radius: 999px;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1;
	vertical-align: middle;
	white-space: nowrap;
}
.msd .msd-badge .msd-i { width: 12px; height: 12px; }
.msd .msd-badge--free { color: var(--msd-teal); background: var(--msd-teal-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--msd-teal) 25%, transparent); }
.msd .msd-badge--pro { color: #3a2b05; background: linear-gradient(135deg, #f6dd94, #d6b154); box-shadow: 0 2px 10px -2px rgba(201, 168, 76, .6); }
.msd .msd-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; background: var(--msd-surface-2); color: var(--msd-ink-2); }
.msd .msd-pill--gold { background: var(--msd-gold-soft); color: var(--msd-gold-2); }
:is([data-theme="dark"] .msd, .msd[data-theme="dark"]) .msd-pill--gold, .msd .msd-section--dark .msd-pill--gold { color: var(--msd-gold); }
.msd .msd-pill--in { background: rgba(26, 107, 90, .14); color: var(--msd-teal); }
.msd .msd-pill--out { background: rgba(226, 114, 91, .14); color: var(--msd-rose); }
.msd .msd-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.msd .msd-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 14px 7px 10px;
	border-radius: 999px;
	background: var(--msd-glass);
	border: 1px solid var(--msd-line);
	backdrop-filter: blur(10px);
	font-size: .85rem;
	font-weight: 500;
	color: var(--msd-ink-2);
}
.msd .msd-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--msd-teal); box-shadow: 0 0 0 4px var(--msd-teal-soft); animation: msd-pulse 2s infinite; }
.msd .msd-avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--msd-teal), var(--msd-teal-deep)); color: #fff; font-size: .8rem; font-weight: 700; flex: none; }
.msd .msd-avatar--sm { width: 28px; height: 28px; font-size: .66rem; }
.msd .msd-avatar--lg { width: 56px; height: 56px; font-size: 1rem; }
.msd .msd-inline-code { display: inline-block; margin-top: 14px; padding: 6px 10px; border-radius: 8px; background: var(--msd-surface-2); color: var(--msd-ink-2); font-size: .8rem; }

/* Fields */
.msd .msd-field { display: grid; gap: 8px; }
.msd .msd-field > span { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--msd-muted); }
.msd select, .msd .msd-field select {
	appearance: none;
	width: 100%;
	height: 44px;
	padding: 0 38px 0 14px;
	border-radius: 12px;
	border: 1px solid var(--msd-line-2);
	background: var(--msd-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b66' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
	color: var(--msd-ink);
}
.msd .msd-toggle2 { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--msd-surface-2); border: 1px solid var(--msd-line); }
.msd .msd-toggle2 button { height: 36px; padding: 0 10px; border-radius: 9px; font-size: .86rem; font-weight: 600; color: var(--msd-muted); transition: background .2s, color .2s, box-shadow .2s; }
.msd .msd-toggle2 button.is-active { background: var(--msd-surface); color: var(--msd-ink); box-shadow: var(--msd-shadow-sm); }
.msd .msd-switch { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 500; cursor: pointer; user-select: none; }
.msd .msd-switch input { position: absolute; opacity: 0; pointer-events: none; }
.msd .msd-switch > span { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--msd-line-2); transition: background .25s; flex: none; }
.msd .msd-switch > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--msd-ease); }
.msd .msd-switch input:checked + span { background: var(--msd-teal); }
.msd .msd-switch input:checked + span::after { transform: translateX(18px); }
.msd .msd-switch input:focus-visible + span { outline: 2px solid var(--msd-gold); outline-offset: 2px; }
.msd .msd-switch--sm > span { width: 34px; height: 20px; }
.msd .msd-switch--sm > span::after { width: 14px; height: 14px; }
.msd .msd-switch--sm input:checked + span::after { transform: translateX(14px); }

.msd .msd-search { position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--msd-line-2); background: var(--msd-surface); color: var(--msd-muted); transition: border-color .2s, box-shadow .2s; }
.msd .msd-search:focus-within { border-color: var(--msd-teal); box-shadow: 0 0 0 4px var(--msd-teal-soft); }
.msd .msd-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--msd-ink); }
.msd .msd-search kbd { padding: 2px 7px; border-radius: 6px; border: 1px solid var(--msd-line-2); font-size: .75rem; }
.msd .msd-search--sm { height: 38px; border-radius: 10px; margin-bottom: 12px; }

/* ───────────────────────── Topbar & Header ───────────────────────── */
.msd .msd-topbar { position: relative; z-index: 60; background: var(--msd-teal-deep); color: #e7f2ee; font-size: .85rem; }
.msd .msd-topbar__in { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding-right: 48px; }
.msd .msd-topbar__pill { padding: 2px 8px; border-radius: 999px; background: var(--msd-gold); color: #251b04; font-weight: 700; font-size: .7rem; }
.msd .msd-topbar__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msd .msd-topbar__link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: #f3d68a; white-space: nowrap; }
.msd .msd-topbar__close { position: absolute; right: var(--msd-gutter); top: 50%; transform: translateY(-50%); opacity: .7; }
.msd .msd-topbar__close:hover { opacity: 1; }

.msd .msd-header { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.msd-embedded .msd-header { position: relative; }
.msd .msd-header__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.msd .msd-header--glass.is-scrolled, .msd .msd-header--solid { background: var(--msd-glass); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-color: var(--msd-line); }
.msd .msd-header--solid { background: var(--msd-surface); }
.msd .msd-header--minimal .msd-nav { display: none; }
.msd .msd-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(14, 59, 51, .35); }
.msd .msd-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; color: var(--msd-ink); }
.msd .msd-logo__mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--msd-teal); }
.msd .msd-logo__mark svg { width: 100%; height: 100%; }
.msd .msd-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.msd .msd-nav__link { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px; border-radius: 999px; font-size: .94rem; font-weight: 500; color: var(--msd-ink-2); transition: background .2s, color .2s; }
.msd .msd-nav__link:hover, .msd .msd-nav__link.is-current { background: var(--msd-teal-soft); color: var(--msd-teal); }
.msd .msd-caret { width: 14px; height: 14px; transition: transform .25s; }
.msd .msd-nav__item--mega { position: relative; }
.msd .msd-nav__item--mega.is-open .msd-caret { transform: rotate(180deg); }
.msd .msd-mega {
	position: absolute;
	top: calc(100% + 12px);
	left: -20px;
	display: grid;
	grid-template-columns: 1fr 1fr 240px;
	gap: 8px;
	width: min(860px, 92vw);
	padding: 14px;
	border-radius: 22px;
	background: var(--msd-surface);
	border: 1px solid var(--msd-line);
	box-shadow: var(--msd-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px) scale(.98);
	transform-origin: top left;
	transition: opacity .2s, transform .25s var(--msd-ease), visibility .2s;
}
.msd .msd-nav__item--mega:hover .msd-mega, .msd .msd-nav__item--mega.is-open .msd-mega { opacity: 1; visibility: visible; transform: none; }
.msd .msd-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.msd .msd-companybar { background: var(--msd-surface-2); border-bottom: 1px solid var(--msd-line); font-size: .78rem; color: var(--msd-muted); }
.msd .msd-companybar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.msd .msd-companybar a { color: inherit; font-weight: 500; transition: color .2s; }
.msd .msd-companybar a:hover { color: var(--msd-teal); }
.msd .msd-companybar__brand a { color: var(--msd-ink, inherit); font-weight: 700; }
.msd .msd-companybar__links { display: flex; align-items: center; gap: 18px; }
.msd .msd-mega__col { display: grid; align-content: start; gap: 2px; padding: 6px; }
.msd .msd-mega__title { display: flex; align-items: center; gap: 8px; padding: 6px 10px 10px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--msd-muted); }
.msd .msd-mega__link { display: flex; gap: 12px; padding: 10px; border-radius: 14px; transition: background .2s; }
.msd .msd-mega__link:hover { background: var(--msd-surface-2); }
.msd .msd-mega__link strong { display: block; font-size: .92rem; font-weight: 600; }
.msd .msd-mega__link small { display: block; color: var(--msd-muted); font-size: .8rem; line-height: 1.35; }
.msd .msd-mega__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--msd-teal-soft); color: var(--msd-teal); flex: none; }
.msd .msd-mega__feature { display: grid; align-content: end; gap: 10px; padding: 18px; border-radius: 16px; color: #eaf3f0; background: radial-gradient(240px 200px at 100% 0%, rgba(201, 168, 76, .35), transparent 70%), linear-gradient(160deg, #165a4c, #0b2e28); }
.msd .msd-mega__feature .msd-eyebrow { color: #f3d68a; }
.msd .msd-mega__feature strong { font-size: 1.1rem; line-height: 1.25; }
.msd .msd-mega__feature p { font-size: .82rem; opacity: .8; }
.msd .msd-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.msd .msd-burger { display: none; }
.msd .msd-show-dark { display: none; }
:is([data-theme="dark"] .msd, .msd[data-theme="dark"]) .msd-show-dark { display: inline-flex; }
:is([data-theme="dark"] .msd, .msd[data-theme="dark"]) .msd-show-light { display: none; }
.msd .msd-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--msd-teal), var(--msd-gold)); }

/* Drawer */
.msd .msd-drawer { position: fixed; inset: 0; z-index: 200; background: rgba(5, 18, 15, .5); backdrop-filter: blur(4px); animation: msd-fade .2s; }
.msd .msd-drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 92vw); overflow-y: auto; padding: 18px; background: var(--msd-surface); box-shadow: var(--msd-shadow-lg); animation: msd-slide-in .3s var(--msd-ease); }
.msd .msd-drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 700; font-size: 1.15rem; }
.msd .msd-drawer__group { padding: 12px 0; border-bottom: 1px solid var(--msd-line); }
.msd .msd-drawer__link { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; font-weight: 500; }
.msd .msd-drawer__link:hover { background: var(--msd-surface-2); }
.msd .msd-drawer__link .msd-i { color: var(--msd-teal); }
.msd .msd-drawer__cta { display: grid; gap: 10px; padding-top: 18px; }

/* ───────────────────────── Hero ───────────────────────── */
.msd .msd-hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(80px, 10vw, 140px); overflow: hidden; isolation: isolate; }
.msd .msd-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.msd .msd-pattern {
	position: absolute;
	inset: 0;
	opacity: .5;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%231A6B5A' stroke-opacity='.13' stroke-width='1'%3E%3Cpath d='M40 4 50 30 76 40 50 50 40 76 30 50 4 40 30 30Z'/%3E%3Cpath d='M40 18 46 34 62 40 46 46 40 62 34 46 18 40 34 34Z'/%3E%3Ccircle cx='40' cy='40' r='4'/%3E%3C/g%3E%3C/svg%3E");
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
}
.msd .msd-pattern--light { opacity: .35; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.22' stroke-width='1'%3E%3Cpath d='M40 4 50 30 76 40 50 50 40 76 30 50 4 40 30 30Z'/%3E%3Cpath d='M40 18 46 34 62 40 46 46 40 62 34 46 18 40 34 34Z'/%3E%3C/g%3E%3C/svg%3E"); -webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 50%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 70% 90% at 80% 50%, #000 10%, transparent 70%); }
.msd .msd-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.msd .msd-orb--a { width: 520px; height: 520px; right: -120px; top: -140px; background: radial-gradient(circle, rgba(201, 168, 76, .55), transparent 65%); animation: msd-drift 18s ease-in-out infinite alternate; }
.msd .msd-orb--b { width: 600px; height: 600px; left: -240px; bottom: -260px; background: radial-gradient(circle, rgba(26, 107, 90, .45), transparent 65%); animation: msd-drift 22s ease-in-out infinite alternate-reverse; }
.msd .msd-star { position: absolute; fill: none; stroke: var(--msd-gold); stroke-width: 1.4; opacity: .55; transition: transform .6s var(--msd-ease); }
.msd .msd-star--1 { width: 90px; left: 46%; top: 12%; animation: msd-spin 40s linear infinite; }
.msd .msd-star--2 { width: 46px; left: 6%; bottom: 14%; stroke: var(--msd-teal); animation: msd-spin 30s linear infinite reverse; }
.msd .msd-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.msd .msd-hero__copy { display: grid; justify-items: start; gap: 24px; }
.msd .msd-hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--msd-muted); max-width: 560px; }
.msd .msd-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.msd .msd-hero__trust { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: var(--msd-muted); }
.msd .msd-hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.msd .msd-hero__trust .msd-i { color: var(--msd-teal); }
.msd .msd-hero__visual { position: relative; display: grid; place-items: center; min-height: 560px; }

.msd .msd-arch {
	position: relative;
	width: min(430px, 100%);
	padding: 12px;
	border-radius: 220px 220px 32px 32px;
	background: linear-gradient(160deg, rgba(201, 168, 76, .7), rgba(26, 107, 90, .5) 50%, rgba(201, 168, 76, .4));
	box-shadow: var(--msd-shadow-lg);
	transition: transform .6s var(--msd-ease);
}
.msd .msd-arch__inner { border-radius: 210px 210px 24px 24px; overflow: hidden; background: linear-gradient(180deg, #0f4c41, #0a2c26); padding: 70px 22px 22px; color: #eaf3f0; position: relative; }
.msd .msd-arch__inner::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 80 80'%3E%3Cpath d='M40 4 50 30 76 40 50 50 40 76 30 50 4 40 30 30Z' fill='none' stroke='%23ffffff' stroke-opacity='.07'/%3E%3C/svg%3E"); }
.msd .msd-pw { position: relative; display: grid; gap: 16px; }
.msd .msd-pw__top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.msd .msd-pw__masjid { font-weight: 700; font-size: 1.05rem; }
.msd .msd-pw__date { font-size: .8rem; opacity: .7; }
.msd .msd-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .72rem; font-weight: 600; }
.msd .msd-live span { width: 7px; height: 7px; border-radius: 50%; background: #5ef0c3; animation: msd-pulse 1.6s infinite; }
.msd .msd-pw__next { position: relative; display: grid; place-items: center; height: 170px; text-align: center; }
.msd .msd-pw__label { position: relative; z-index: 1; font-size: .82rem; opacity: .8; }
.msd .msd-pw__label b { color: #f3d68a; }
.msd .msd-pw__count { position: relative; z-index: 1; font-size: 2.1rem; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; margin-top: -40px; }
.msd .msd-pw__next .msd-ring { position: absolute; inset: 0; display: grid; place-items: center; }
.msd .msd-ring svg { width: 170px; height: 170px; transform: rotate(-90deg); }
.msd .msd-ring__bg { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 6; }
.msd .msd-ring__fg { fill: none; stroke: url(#msd-grad), var(--msd-gold); stroke: var(--msd-gold); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .6s var(--msd-ease); }
.msd .msd-pw__list { display: grid; gap: 4px; }
.msd .msd-pw__list li { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 12px; font-size: .9rem; background: rgba(255, 255, 255, .04); transition: background .3s; }
.msd .msd-pw__list li span:last-child { font-variant-numeric: tabular-nums; opacity: .9; }
.msd .msd-pw__list li small { opacity: .55; margin-left: 8px; font-size: .75rem; }
.msd .msd-pw__list li.is-next { background: linear-gradient(90deg, rgba(201, 168, 76, .35), rgba(201, 168, 76, .08)); box-shadow: inset 3px 0 0 #f3d68a; }
.msd .msd-pw__list li.is-past { opacity: .5; }

.msd .msd-float {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px 10px 10px;
	border-radius: 16px;
	background: var(--msd-glass);
	border: 1px solid var(--msd-glass-line);
	box-shadow: var(--msd-shadow);
	backdrop-filter: blur(14px) saturate(150%);
	-webkit-backdrop-filter: blur(14px) saturate(150%);
	font-size: .85rem;
	white-space: nowrap;
	transition: transform .6s var(--msd-ease);
	animation: msd-bob 6s ease-in-out infinite;
}
.msd .msd-float small { display: flex; align-items: center; gap: 6px; color: var(--msd-muted); font-size: .72rem; }
.msd .msd-float b { display: block; font-weight: 600; }
.msd .msd-float .msd-badge { height: 17px; padding: 0 6px; font-size: .58rem; }
.msd .msd-float__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; flex: none; color: #fff; }
.msd .msd-float__ic--teal { background: linear-gradient(135deg, #2aa184, #1a6b5a); }
.msd .msd-float__ic--gold { background: linear-gradient(135deg, #e7c66f, #b48f33); }
.msd .msd-float__ic--rose { background: linear-gradient(135deg, #f19a7f, #d6553d); }
.msd .msd-float__ic--ink { background: linear-gradient(135deg, #34514a, #0e3b33); }
.msd .msd-float--a { left: -4%; top: 18%; animation-delay: -1s; }
.msd .msd-float--b { right: -6%; top: 8%; animation-delay: -3s; }
.msd .msd-float--c { right: -8%; bottom: 22%; animation-delay: -2s; }
.msd .msd-float--d { left: -2%; bottom: 8%; animation-delay: -4s; }
.msd .msd-float--e { right: 10%; bottom: -2%; padding: 10px 18px; font-size: 1.4rem; color: var(--msd-gold-2); font-weight: 700; }
:is([data-theme="dark"] .msd, .msd[data-theme="dark"]) .msd-float--e { color: var(--msd-gold); }
.msd .msd-scrollcue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--msd-line-2); border-radius: 20px; }
.msd .msd-scrollcue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--msd-teal); animation: msd-scroll 1.8s infinite; }

/* ───────────────────────── Stats ───────────────────────── */
.msd .msd-stats { padding: 0 0 clamp(56px, 7vw, 96px); }
.msd .msd-stats__grid { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--msd-line); border-radius: var(--msd-radius); background: var(--msd-surface); box-shadow: var(--msd-shadow-sm); overflow: hidden; }
.msd .msd-stat { display: grid; gap: 6px; padding: 26px 20px; border-right: 1px solid var(--msd-line); }
.msd .msd-stat:last-child { border-right: 0; }
.msd .msd-stat__num { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--msd-teal); font-variant-numeric: tabular-nums; }
.msd .msd-stat__label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .86rem; color: var(--msd-muted); }
.msd .msd-marquee { margin-top: clamp(40px, 5vw, 64px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.msd .msd-marquee__track { display: flex; gap: 36px; width: max-content; animation: msd-marquee 60s linear infinite; }
.msd .msd-marquee:hover .msd-marquee__track { animation-play-state: paused; }
.msd .msd-marquee__item { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; color: var(--msd-ink-2); white-space: nowrap; }
.msd .msd-marquee__item svg { width: 16px; fill: var(--msd-gold); }

/* ───────────────────────── Before / After ───────────────────────── */
.msd .msd-compare { position: relative; max-width: 980px; margin: 0 auto; border-radius: 28px; overflow: hidden; box-shadow: var(--msd-shadow-lg); user-select: none; --pos: 50%; }
.msd .msd-compare__pane { padding: clamp(28px, 4vw, 48px); min-height: 100%; }
.msd .msd-compare__pane ul { display: grid; gap: 14px; max-width: 640px; }
.msd .msd-compare__pane li { display: flex; align-items: center; gap: 14px; font-size: clamp(.95rem, 1.4vw, 1.08rem); }
.msd .msd-compare__pane li .msd-badge { margin-left: 6px; }
.msd .msd-compare__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; }
.msd .msd-compare__pane--after { background: linear-gradient(135deg, #11463c, #0a2a24); color: #eaf3f0; }
.msd .msd-compare__pane--after .msd-compare__ic { background: rgba(201, 168, 76, .2); color: #f3d68a; }
.msd .msd-compare__pane--before { position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, #efe8d8, #efe8d8 14px, #ebe3d1 14px, #ebe3d1 28px); color: #4b4436; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.msd .msd-compare__pane--before .msd-compare__ic { background: rgba(226, 114, 91, .15); color: #c4503a; }
.msd .msd-compare__pane--before li span:last-child { text-decoration: line-through; text-decoration-color: rgba(196, 80, 58, .4); }
.msd .msd-compare__tag { display: inline-block; margin-bottom: 22px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .07); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.msd .msd-compare__tag--after { background: rgba(201, 168, 76, .25); color: #f3d68a; }
.msd .msd-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--msd-gold); pointer-events: none; }
.msd .msd-compare__handle span { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--msd-gold); color: #1d1606; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.msd .msd-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* ───────────────────────── Module explorer ───────────────────────── */
.msd .msd-explorer__bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.msd .msd-explorer__bar .msd-search { flex: 1 1 320px; max-width: 460px; }
.msd .msd-seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 5px; border-radius: 16px; background: var(--msd-surface); border: 1px solid var(--msd-line); box-shadow: var(--msd-shadow-sm); }
.msd .msd-seg button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 12px; font-weight: 600; font-size: .92rem; color: var(--msd-muted); transition: color .25s; }
.msd .msd-seg button span { padding: 1px 7px; border-radius: 999px; background: var(--msd-surface-2); font-size: .72rem; }
.msd .msd-seg button.is-active { color: #fff; }
.msd .msd-seg button.is-active span { background: rgba(255, 255, 255, .2); }
.msd .msd-seg__glider { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 12px; background: linear-gradient(135deg, var(--msd-teal), var(--msd-teal-deep)); transition: transform .35s var(--msd-ease), width .35s var(--msd-ease); }
.msd .msd-seg--sm button { height: 34px; padding: 0 14px; font-size: .86rem; }
.msd .msd-cats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: none; }
.msd .msd-cats::-webkit-scrollbar { display: none; }
.msd .msd-cats button { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--msd-line); background: var(--msd-surface); font-size: .86rem; font-weight: 500; color: var(--msd-ink-2); transition: all .2s; }
.msd .msd-cats button:hover { border-color: var(--msd-teal); color: var(--msd-teal); }
.msd .msd-cats button.is-active { background: var(--msd-ink); color: var(--msd-bg); border-color: var(--msd-ink); }
.msd .msd-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.msd .msd-mcard {
	position: relative;
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	gap: 10px;
	padding: 20px;
	border-radius: var(--msd-radius);
	background: var(--msd-surface);
	border: 1px solid var(--msd-line);
	cursor: pointer;
	overflow: hidden;
	transition: transform .35s var(--msd-ease), box-shadow .35s, border-color .3s, opacity .3s;
}
.msd .msd-mcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--msd-teal) 12%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; }
.msd .msd-mcard:hover { transform: translateY(-4px); box-shadow: var(--msd-shadow); border-color: color-mix(in srgb, var(--msd-teal) 35%, transparent); }
.msd .msd-mcard:hover::after { opacity: 1; }
.msd .msd-mcard--pro { background: linear-gradient(180deg, color-mix(in srgb, var(--msd-gold) 7%, var(--msd-surface)), var(--msd-surface) 60%); }
.msd .msd-mcard--pro:hover { border-color: color-mix(in srgb, var(--msd-gold) 50%, transparent); }
.msd .msd-mcard__top { display: flex; align-items: center; justify-content: space-between; }
.msd .msd-mcard__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--msd-teal-soft); color: var(--msd-teal); }
.msd .msd-mcard--pro .msd-mcard__ic { background: var(--msd-gold-soft); color: var(--msd-gold-2); }
:is([data-theme="dark"] .msd, .msd[data-theme="dark"]) .msd-mcard--pro .msd-mcard__ic { color: var(--msd-gold); }
.msd .msd-mcard__ic .msd-i { width: 22px; height: 22px; }
.msd .msd-mcard__title { font-size: 1.08rem; font-weight: 650; letter-spacing: -.01em; }
.msd .msd-mcard__text { font-size: .9rem; color: var(--msd-muted); }
.msd .msd-mcard__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px dashed var(--msd-line-2); font-size: .8rem; }
.msd .msd-mcard__cat { color: var(--msd-muted); }
.msd .msd-mcard__go { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--msd-teal); transition: gap .2s; }
.msd .msd-mcard:hover .msd-mcard__go { gap: 8px; }
.msd .msd-mcard.is-hidden { display: none; }
.msd .msd-mcard.is-in { animation: msd-pop .4s var(--msd-ease) both; }
.msd .msd-empty { padding: 40px; text-align: center; color: var(--msd-muted); }

/* Sheet (module drawer) */
.msd .msd-sheet { position: fixed; inset: 0; z-index: 300; }
.msd .msd-sheet__backdrop { position: absolute; inset: 0; background: rgba(5, 18, 15, .55); backdrop-filter: blur(4px); animation: msd-fade .25s; }
.msd .msd-sheet__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(620px, 100%); background: var(--msd-bg); box-shadow: var(--msd-shadow-lg); animation: msd-slide-in .35s var(--msd-ease); }
.msd .msd-sheet__close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.msd .msd-sheet__body { flex: 1; overflow-y: auto; padding: 28px clamp(20px, 4vw, 36px) 20px; }
.msd .msd-sheet__nav { display: flex; justify-content: space-between; padding: 14px clamp(20px, 4vw, 36px); border-top: 1px solid var(--msd-line); background: var(--msd-surface); }
.msd .msd-detail { display: grid; gap: 22px; }
.msd .msd-detail__head { display: flex; gap: 16px; align-items: center; padding-right: 48px; }
.msd .msd-detail__head .msd-mcard__ic { width: 56px; height: 56px; border-radius: 16px; }
.msd .msd-detail__head h3 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -.02em; }
.msd .msd-detail__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; align-items: center; font-size: .82rem; color: var(--msd-muted); }
.msd .msd-detail__visual { border-radius: 18px; padding: 18px; background: linear-gradient(160deg, #0f4c41, #0a2c26); color: #eaf3f0; min-height: 180px; overflow: hidden; position: relative; }
.msd .msd-detail__visual--pro { background: linear-gradient(160deg, #3a2f12, #1a1508); }
.msd .msd-detail p.msd-detail__desc { color: var(--msd-ink-2); }
.msd .msd-detail h4 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--msd-muted); margin-bottom: 10px; }
.msd .msd-detail__features { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.msd .msd-detail__features li { display: flex; gap: 8px; align-items: start; padding: 10px 12px; border-radius: 12px; background: var(--msd-surface); border: 1px solid var(--msd-line); font-size: .88rem; }
.msd .msd-detail__features .msd-i { color: var(--msd-teal); margin-top: 3px; }
.msd .msd-detail__designs { display: flex; flex-wrap: wrap; gap: 8px; }
.msd .msd-detail__designs span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--msd-surface); border: 1px solid var(--msd-line); font-size: .85rem; }
.msd .msd-codeline { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; margin-bottom: 8px; border-radius: 12px; background: #0d1f1b; color: #bfe8da; overflow: hidden; }
.msd .msd-codeline code { flex: 1; overflow-x: auto; white-space: nowrap; }
.msd .msd-codeline .msd-copy { color: #8fb5a9; }
.msd .msd-detail__where { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--msd-teal-soft); color: var(--msd-teal); font-size: .88rem; font-weight: 500; }

/* Mini visuals inside module sheet */
.msd .msd-vis { display: grid; gap: 8px; font-size: .82rem; }
.msd .msd-vis__row { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.msd .msd-vis__row.is-hl { background: rgba(201, 168, 76, .3); }
.msd .msd-vis__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.msd .msd-vis__grid span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; background: rgba(255, 255, 255, .06); font-size: .72rem; }
.msd .msd-vis__grid span.is-hl { background: var(--msd-gold); color: #1d1606; font-weight: 700; }
.msd .msd-vis__grid span.is-ev { box-shadow: inset 0 -3px 0 #5ef0c3; }
.msd .msd-vis__big { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.msd .msd-vis__bars { display: flex; align-items: end; gap: 8px; height: 110px; }
.msd .msd-vis__bars i { flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #f3d68a, #b48f33); height: var(--h); animation: msd-grow .8s var(--msd-ease) both; transform-origin: bottom; }
.msd .msd-vis__ticker { overflow: hidden; white-space: nowrap; padding: 10px; border-radius: 10px; background: rgba(201, 168, 76, .2); }
.msd .msd-vis__ticker span { display: inline-block; animation: msd-ticker 12s linear infinite; padding-left: 100%; }
.msd .msd-vis__code { font-family: ui-monospace, Menlo, monospace; font-size: .78rem; white-space: pre; color: #bfe8da; }
.msd .msd-vis__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.msd .msd-vis__chips span { padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.msd .msd-vis__chips span.is-on { background: #5ef0c3; color: #062019; }
.msd .msd-vis__bar { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.msd .msd-vis__bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #5ef0c3, #f3d68a); animation: msd-widen 1s var(--msd-ease) both; transform-origin: left; }
.msd .msd-vis__tv { aspect-ratio: 16 / 9; border-radius: 10px; border: 6px solid #111; background: #07110f; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; }
.msd .msd-vis__tv b { grid-column: 1 / -1; font-size: 1.4rem; text-align: center; color: #f3d68a; }

/* ───────────────────────── Prayer lab ───────────────────────── */
.msd .msd-lab { display: grid; grid-template-columns: 340px 1fr; gap: 20px; }
.msd .msd-lab__controls { display: grid; gap: 18px; align-content: start; padding: 22px; border-radius: 24px; background: var(--msd-surface); border: 1px solid var(--msd-line); box-shadow: var(--msd-shadow-sm); }
.msd .msd-datestep { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 44px; border-radius: 12px; border: 1px solid var(--msd-line-2); background: var(--msd-surface); overflow: hidden; }
.msd .msd-datestep button { height: 100%; font-size: 1.3rem; color: var(--msd-muted); }
.msd .msd-datestep button:hover { background: var(--msd-surface-2); color: var(--msd-ink); }
.msd .msd-datestep output { text-align: center; font-weight: 600; font-size: .9rem; }
.msd .msd-adjust { border-radius: 14px; border: 1px solid var(--msd-line); background: var(--msd-surface-2); }
.msd .msd-adjust summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; font-weight: 600; font-size: .9rem; list-style: none; }
.msd .msd-adjust summary::-webkit-details-marker { display: none; }
.msd .msd-adjust summary small { margin-left: auto; color: var(--msd-muted); font-weight: 400; font-size: .75rem; }
.msd .msd-adjust__grid { display: grid; gap: 10px; padding: 4px 14px 14px; }
.msd .msd-adjust__grid label { display: grid; grid-template-columns: 64px 1fr 30px; align-items: center; gap: 10px; font-size: .85rem; }
.msd .msd-adjust__grid output { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--msd-teal); }
.msd input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: var(--msd-line-2); outline-offset: 6px; }
.msd input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--msd-teal); border: 3px solid var(--msd-surface); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); cursor: pointer; }
.msd input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--msd-teal); border: 3px solid var(--msd-surface); cursor: pointer; }
.msd .msd-lab__code { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--msd-surface-2); font-size: .82rem; }
.msd .msd-lab__code span { color: var(--msd-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.msd .msd-lab__code code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msd .msd-lab__out { display: grid; gap: 18px; align-content: start; padding: clamp(20px, 3vw, 30px); border-radius: 28px; color: #eaf3f0; background: radial-gradient(500px 300px at 100% 0%, rgba(201, 168, 76, .25), transparent 70%), linear-gradient(160deg, #11463c, #08221d); box-shadow: var(--msd-shadow-lg); position: relative; overflow: hidden; }
.msd .msd-lab__out::before { content: ""; position: absolute; inset: 0; opacity: .6; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 4 50 30 76 40 50 50 40 76 30 50 4 40 30 30Z' fill='none' stroke='%23ffffff' stroke-opacity='.05'/%3E%3C/svg%3E"); }
.msd .msd-lab__out > * { position: relative; }
.msd .msd-lab__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.msd .msd-lab__city { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.msd .msd-lab__dates { font-size: .88rem; opacity: .75; }
.msd .msd-lab__next { text-align: right; }
.msd .msd-lab__next small { display: block; opacity: .75; }
.msd .msd-lab__next b { color: #f3d68a; }
.msd .msd-lab__next strong { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.msd .msd-times { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.msd .msd-time { position: relative; display: grid; gap: 4px; padding: 14px 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06); transition: background .3s, transform .3s; }
.msd .msd-time small { font-size: .76rem; opacity: .7; }
.msd .msd-time b { font-size: 1.28rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.msd .msd-time i { font-style: normal; font-size: .72rem; opacity: .6; }
.msd .msd-time.is-next { background: linear-gradient(160deg, rgba(243, 214, 138, .35), rgba(201, 168, 76, .12)); border-color: rgba(243, 214, 138, .45); transform: translateY(-3px); }
.msd .msd-time.is-next::after { content: "NEXT"; position: absolute; top: 10px; right: 10px; font-size: .58rem; letter-spacing: .1em; font-weight: 700; color: #f3d68a; }
.msd .msd-time.is-flash b { animation: msd-flash .6s; }
.msd .msd-lab__extras { display: grid; grid-template-columns: auto 1fr; gap: 16px; }
.msd .msd-qibla { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: 18px; background: rgba(255, 255, 255, .06); }
.msd .msd-qibla small { display: block; opacity: .7; font-size: .76rem; }
.msd .msd-qibla b { font-size: 1.2rem; }
.msd .msd-qibla__dial { position: relative; width: 74px; height: 74px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); background: radial-gradient(circle, rgba(255, 255, 255, .06), transparent 70%); flex: none; }
.msd .msd-qibla__n { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); font-size: .6rem; font-weight: 700; opacity: .6; }
.msd .msd-qibla__needle { position: absolute; inset: 8px; color: #fff; transition: transform 1s var(--msd-ease); }
.msd .msd-qibla__needle svg { width: 100%; height: 100%; }
.msd .msd-qibla__kaaba { position: absolute; bottom: -6px; right: -6px; font-size: 1rem; }
.msd .msd-sunbar { display: grid; gap: 8px; padding: 14px 18px; border-radius: 18px; background: rgba(255, 255, 255, .06); }
.msd .msd-sunbar small { opacity: .7; font-size: .76rem; }
.msd .msd-sunbar__track { position: relative; height: 34px; border-radius: 0 0 40px 40px; border: 2px dashed rgba(255, 255, 255, .15); border-top: 0; }
.msd .msd-sunbar__sun { position: absolute; top: 50%; left: var(--x, 0%); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: radial-gradient(circle, #ffe9a8, #f2b93b); box-shadow: 0 0 18px #f2b93b; transition: left 1s var(--msd-ease); }
.msd .msd-sunbar__labels { display: flex; justify-content: space-between; font-size: .76rem; opacity: .7; }
.msd .msd-note { display: flex; align-items: center; gap: 8px; font-size: .82rem; opacity: .75; }

/* ───────────────────────── Design gallery ───────────────────────── */
.msd .msd-gallery { display: grid; gap: 16px; }
.msd .msd-gallery__tabs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.msd .msd-gallery__tabs button { height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 600; color: var(--msd-muted); border: 1px solid transparent; transition: all .2s; }
.msd .msd-gallery__tabs button.is-active { color: var(--msd-ink); background: var(--msd-surface); border-color: var(--msd-line); box-shadow: var(--msd-shadow-sm); }
.msd .msd-gallery__chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.msd .msd-gallery__chips button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--msd-surface); border: 1px solid var(--msd-line); font-size: .88rem; font-weight: 500; transition: all .2s; }
.msd .msd-gallery__chips button.is-active { border-color: var(--msd-teal); box-shadow: 0 0 0 3px var(--msd-teal-soft); }
.msd .msd-gallery__stage { max-width: 880px; width: 100%; margin: 12px auto 0; display: grid; gap: 12px; }
.msd .msd-browser { border-radius: 18px; overflow: hidden; background: var(--msd-surface); border: 1px solid var(--msd-line); box-shadow: var(--msd-shadow-lg); }
.msd .msd-browser__bar, .msd .msd-app__bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; background: var(--msd-surface-2); border-bottom: 1px solid var(--msd-line); font-size: .78rem; color: var(--msd-muted); }
.msd .msd-browser__bar i, .msd .msd-app__bar i { width: 10px; height: 10px; border-radius: 50%; background: #e66; }
.msd .msd-browser__bar i:nth-child(2), .msd .msd-app__bar i:nth-child(2) { background: #e5b84a; }
.msd .msd-browser__bar i:nth-child(3), .msd .msd-app__bar i:nth-child(3) { background: #4bbf7a; }
.msd .msd-browser__bar span, .msd .msd-app__bar span { margin-left: 12px; padding: 4px 12px; border-radius: 8px; background: var(--msd-surface); }
.msd .msd-app__bar .msd-badge { margin-left: auto; }
.msd .msd-browser__view { padding: clamp(18px, 4vw, 40px); min-height: 340px; display: grid; place-items: center; background: radial-gradient(500px 240px at 50% 0%, var(--msd-teal-soft), transparent 70%); }
.msd .msd-gallery__code { display: flex; align-items: center; gap: 8px; justify-content: center; }
.msd .msd-gallery__code code { padding: 8px 14px; border-radius: 10px; background: var(--msd-surface); border: 1px solid var(--msd-line); font-size: .85rem; }
.msd .msd-wd { width: 100%; max-width: 560px; animation: msd-pop .45s var(--msd-ease) both; }
.msd .msd-wd--locked { position: relative; }
.msd .msd-wd__lock { position: absolute; top: -12px; right: -12px; z-index: 2; }

/* design variants */
.msd .msd-wd-card { border-radius: 18px; padding: 20px; background: var(--msd-surface); border: 1px solid var(--msd-line); box-shadow: var(--msd-shadow); }
.msd .msd-wd-card h5 { font-size: 1rem; display: flex; justify-content: space-between; margin-bottom: 12px; }
.msd .msd-wd-card h5 small { font-weight: 400; color: var(--msd-muted); }
.msd .msd-wd-row { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px; font-size: .9rem; font-variant-numeric: tabular-nums; }
.msd .msd-wd-row:nth-child(odd) { background: var(--msd-surface-2); }
.msd .msd-wd-row.is-hl { background: var(--msd-teal); color: #fff; }
.msd .msd-wd-compact { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.msd .msd-wd-compact div { display: grid; gap: 2px; padding: 12px 6px; text-align: center; border-radius: 12px; background: var(--msd-surface); border: 1px solid var(--msd-line); font-size: .8rem; }
.msd .msd-wd-compact div b { font-size: 1rem; }
.msd .msd-wd-compact div.is-hl { background: var(--msd-teal); color: #fff; border-color: transparent; }
.msd .msd-wd-premium { border-radius: 24px; padding: 24px; color: #fff; background: radial-gradient(300px 200px at 100% 0%, rgba(243, 214, 138, .45), transparent 70%), linear-gradient(150deg, #165a4c, #0a2c26); box-shadow: var(--msd-shadow-lg); }
.msd .msd-wd-premium .msd-wd-big { font-size: 2.6rem; font-weight: 700; letter-spacing: -.02em; }
.msd .msd-wd-premium .msd-wd-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 16px; }
.msd .msd-wd-premium .msd-wd-chips div { padding: 10px 4px; text-align: center; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: .76rem; }
.msd .msd-wd-premium .msd-wd-chips div b { display: block; font-size: .95rem; }
.msd .msd-wd-premium .msd-wd-chips div.is-hl { background: #f3d68a; color: #1d1606; }
.msd .msd-wd-display { border-radius: 14px; padding: 18px; background: #050d0b; color: #f3d68a; border: 8px solid #1a1a1a; box-shadow: var(--msd-shadow-lg); text-align: center; }
.msd .msd-wd-display .msd-wd-big { font-size: 3rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.msd .msd-wd-display .msd-wd-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 10px; }
.msd .msd-wd-display .msd-wd-chips div { padding: 8px 2px; border-top: 2px solid rgba(243, 214, 138, .4); font-size: .75rem; color: #d4e7e1; }
.msd .msd-wd-display .msd-wd-chips div b { display: block; color: #fff; font-size: 1rem; }
.msd .msd-wd-ramadan { border-radius: 24px; padding: 24px; color: #fff4d6; background: radial-gradient(circle at 85% 15%, rgba(255, 233, 168, .5) 0 30px, transparent 31px), radial-gradient(400px 200px at 0% 100%, rgba(122, 108, 240, .35), transparent 70%), linear-gradient(150deg, #2b1d4d, #120c24); box-shadow: var(--msd-shadow-lg); }
.msd .msd-wd-ramadan .msd-wd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.msd .msd-wd-ramadan .msd-wd-two div { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); }
.msd .msd-wd-ramadan .msd-wd-two b { display: block; font-size: 1.8rem; color: #ffe9a8; }
.msd .msd-wd-board { border-radius: 10px; padding: 18px; background: #101a17; color: #eaf3f0; font-family: ui-monospace, Menlo, monospace; border: 1px solid #263b35; }
.msd .msd-wd-board .msd-wd-led { padding: 10px; border-radius: 6px; background: #000; color: #ffb547; letter-spacing: .08em; overflow: hidden; white-space: nowrap; text-shadow: 0 0 8px rgba(255, 181, 71, .7); }
.msd .msd-wd-board .msd-wd-led span { display: inline-block; padding-left: 100%; animation: msd-ticker 14s linear infinite; }

/* ───────────────────────── TV simulator ───────────────────────── */
.msd .msd-tvlab { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; }
.msd .msd-tvlab__controls { display: grid; gap: 20px; padding: 22px; border-radius: 24px; background: var(--msd-surface); border: 1px solid var(--msd-line); }
.msd .msd-swatches { display: flex; gap: 10px; }
.msd .msd-swatches button { width: 40px; height: 40px; border-radius: 12px; background: var(--sw); border: 2px solid var(--msd-line-2); transition: transform .2s; }
.msd .msd-swatches button.is-active { border-color: var(--msd-gold); transform: scale(1.08); box-shadow: 0 0 0 3px rgba(201, 168, 76, .3); }
.msd .msd-toggle2--3 { grid-auto-columns: 1fr; }
.msd .msd-tvwrap { display: grid; justify-items: center; perspective: 1400px; }
.msd .msd-tv {
	--tv-bg: #07110f;
	--tv-fg: #eaf3f0;
	--tv-muted: rgba(234, 243, 240, .6);
	--tv-accent: #f3d68a;
	--tv-card: rgba(255, 255, 255, .05);
	width: 100%;
	max-width: 760px;
	padding: 12px;
	border-radius: 18px;
	background: linear-gradient(180deg, #1d1d1d, #0b0b0b);
	box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
	transform: rotateX(4deg);
	transition: transform .6s var(--msd-ease);
}
.msd .msd-tv:hover { transform: rotateX(0); }
.msd .msd-tv--light { --tv-bg: #f6f1e4; --tv-fg: #12302a; --tv-muted: rgba(18, 48, 42, .6); --tv-accent: #a37f22; --tv-card: rgba(18, 48, 42, .06); }
.msd .msd-tv--green { --tv-bg: #0d4d3f; --tv-fg: #f0fbf7; --tv-muted: rgba(240, 251, 247, .65); --tv-accent: #ffe08a; --tv-card: rgba(255, 255, 255, .08); }
.msd .msd-tv__screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--tv-bg); color: var(--tv-fg); display: grid; grid-template-rows: auto 1fr auto; container-type: inline-size; transition: background .5s, color .5s, filter .6s; }
.msd .msd-tv.is-dim .msd-tv__screen { filter: brightness(.45) saturate(.8); }
.msd .msd-tv__pattern { position: absolute; inset: 0; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 80 80'%3E%3Cpath d='M40 4 50 30 76 40 50 50 40 76 30 50 4 40 30 30Z' fill='none' stroke='%23c9a84c' stroke-opacity='.12'/%3E%3C/svg%3E"); pointer-events: none; }
.msd .msd-tv__head { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 3cqw 3.5cqw 1cqw; font-size: 2cqw; }
.msd .msd-tv__brand { display: flex; align-items: center; gap: 1cqw; font-weight: 700; }
.msd .msd-tv__logo { display: inline-block; width: 3cqw; height: 3cqw; min-width: 14px; min-height: 14px; border-radius: 50% 50% 4px 4px; background: linear-gradient(160deg, var(--msd-gold), var(--msd-teal)); }
.msd .msd-tv__clock { font-size: 4cqw; font-weight: 700; font-variant-numeric: tabular-nums; }
.msd .msd-tv__hijri { color: var(--tv-muted); }
.msd .msd-tv__body { position: relative; display: grid; grid-template-columns: 1fr; gap: 2cqw; padding: 1cqw 3.5cqw; align-content: center; }
.msd .msd-tv__next { display: grid; justify-items: center; text-align: center; }
.msd .msd-tv__next small { font-size: 1.8cqw; color: var(--tv-muted); text-transform: uppercase; letter-spacing: .2em; }
.msd .msd-tv__next strong { font-size: 5cqw; line-height: 1.1; color: var(--tv-accent); }
.msd .msd-tv__next span { font-size: 6.5cqw; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.msd .msd-tv__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1cqw; }
.msd .msd-tv__grid div { display: grid; gap: .3cqw; padding: 1.4cqw .6cqw; text-align: center; border-radius: 1cqw; background: var(--tv-card); font-size: 1.7cqw; }
.msd .msd-tv__grid div b { font-size: 2.6cqw; font-variant-numeric: tabular-nums; }
.msd .msd-tv__grid div small { font-size: 1.3cqw; color: var(--tv-muted); }
.msd .msd-tv__grid div.is-next { background: var(--tv-accent); color: #1d1606; }
.msd .msd-tv__grid div.is-next small { color: rgba(29, 22, 6, .7); }
.msd .msd-tv--split .msd-tv__body { grid-template-columns: 1fr 1.3fr; align-items: center; }
.msd .msd-tv--split .msd-tv__grid { grid-template-columns: 1fr 1fr; }
.msd .msd-tv--split .msd-tv__grid div { display: flex; justify-content: space-between; align-items: center; padding: 1cqw 1.5cqw; text-align: left; }
.msd .msd-tv--split .msd-tv__grid div small { display: none; }
.msd .msd-tv--focus .msd-tv__grid { display: none; }
.msd .msd-tv--focus .msd-tv__next strong { font-size: 7cqw; }
.msd .msd-tv--focus .msd-tv__next span { font-size: 12cqw; }
.msd .msd-tv__slide { position: absolute; left: 3.5cqw; right: 3.5cqw; bottom: 6.5cqw; display: none; padding: 1.6cqw 2cqw; border-radius: 1.2cqw; background: var(--tv-card); backdrop-filter: blur(6px); font-size: 1.8cqw; animation: msd-pop .5s var(--msd-ease); }
.msd .msd-tv__slide.is-on { display: flex; align-items: center; gap: 1.5cqw; }
.msd .msd-tv__slide b { color: var(--tv-accent); }
.msd .msd-tv__slide .msd-tv__bars { display: flex; align-items: end; gap: .6cqw; height: 5cqw; margin-left: auto; }
.msd .msd-tv__slide .msd-tv__bars i { width: 2.4cqw; border-radius: .4cqw; background: var(--tv-accent); height: var(--h); }
.msd .msd-tv__ticker { position: relative; overflow: hidden; white-space: nowrap; padding: 1.2cqw 0; background: color-mix(in srgb, var(--tv-accent) 18%, transparent); font-size: 1.7cqw; }
.msd .msd-tv__ticker span { display: inline-block; padding-left: 100%; animation: msd-ticker 22s linear infinite; }
.msd .msd-tv__quiet { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4, 12, 10, .88); color: #fff; text-align: center; opacity: 0; pointer-events: none; transition: opacity .5s; }
.msd .msd-tv__quiet div { display: grid; justify-items: center; gap: 1cqw; }
.msd .msd-tv__quiet .msd-i { width: 6cqw; height: 6cqw; color: #f3d68a; }
.msd .msd-tv__quiet b { font-size: 5cqw; }
.msd .msd-tv__quiet small { font-size: 2.2cqw; opacity: .7; }
.msd .msd-tv.is-quiet .msd-tv__quiet { opacity: 1; }
.msd .msd-tv__stand { width: 180px; height: 26px; margin-top: -2px; background: linear-gradient(180deg, #222, #0c0c0c); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }

/* ───────────────────────── Tour / app frames ───────────────────────── */
.msd .msd-tour { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.msd .msd-tour__tabs { display: grid; gap: 6px; }
.msd .msd-tour__tab { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; text-align: left; border: 1px solid transparent; transition: all .25s; }
.msd .msd-tour__tab b { display: block; font-size: .95rem; }
.msd .msd-tour__tab small { display: block; font-size: .8rem; color: var(--msd-muted); line-height: 1.3; }
.msd .msd-tour__tab:hover { background: var(--msd-surface); }
.msd .msd-tour__tab.is-active { background: var(--msd-surface); border-color: var(--msd-line); box-shadow: var(--msd-shadow); }
.msd .msd-tour__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--msd-surface-2); color: var(--msd-muted); flex: none; transition: all .25s; }
.msd .msd-tour__tab.is-active .msd-tour__ic { background: linear-gradient(135deg, var(--msd-teal), var(--msd-teal-deep)); color: #fff; }
.msd .msd-app { border-radius: 22px; overflow: hidden; background: var(--msd-surface); border: 1px solid var(--msd-line); box-shadow: var(--msd-shadow-lg); }
.msd .msd-app__body { padding: clamp(16px, 3vw, 28px); min-height: 400px; }
.msd .msd-pane { display: none; }
.msd .msd-pane.is-active { display: block; animation: msd-pane .45s var(--msd-ease); }
.msd .msd-pane__code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--msd-line-2); }
.msd .msd-pane__code code { padding: 5px 10px; border-radius: 8px; background: var(--msd-surface-2); font-size: .78rem; }

.msd .msd-ov { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.msd .msd-ov__hero { grid-row: span 2; display: grid; align-content: end; gap: 10px; min-height: 240px; padding: 22px; border-radius: 18px; color: #eaf3f0; background: radial-gradient(260px 200px at 100% 0%, rgba(243, 214, 138, .35), transparent 70%), linear-gradient(150deg, #165a4c, #0a2c26); }
.msd .msd-ov__hero .msd-eyebrow { color: #f3d68a; }
.msd .msd-ov__hero h4 { font-size: 1.6rem; line-height: 1.15; }
.msd .msd-ov__khatib { display: flex; align-items: center; gap: 10px; }
.msd .msd-ov__khatib small { display: block; opacity: .7; }
.msd .msd-ov__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.msd .msd-ov__cards div { padding: 14px; border-radius: 14px; background: var(--msd-surface-2); }
.msd .msd-ov__cards small { display: block; font-size: .76rem; color: var(--msd-muted); }
.msd .msd-ov__cards b { font-size: 1.5rem; }
.msd .msd-ov__days { padding: 14px; border-radius: 14px; border: 1px solid var(--msd-line); }
.msd .msd-ov__days small { color: var(--msd-muted); font-size: .76rem; }
.msd .msd-ov__days li { display: flex; gap: 10px; padding: 6px 0; font-size: .86rem; border-bottom: 1px dashed var(--msd-line); }
.msd .msd-ov__days li:last-child { border: 0; }
.msd .msd-ov__days li b { min-width: 86px; color: var(--msd-teal); }
.msd .msd-mini-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.msd .msd-mini-table th { text-align: left; padding: 10px; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--msd-muted); border-bottom: 1px solid var(--msd-line); font-weight: 600; }
.msd .msd-mini-table td { padding: 10px; border-bottom: 1px solid var(--msd-line); vertical-align: middle; }
.msd .msd-mini-table td .msd-avatar { margin-right: 6px; vertical-align: middle; }
.msd .msd-mini-table tr.is-now td { background: var(--msd-teal-soft); }
.msd .msd-mini-table tr.is-hidden { display: none; }
.msd .msd-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.msd .msd-kanban > div { display: grid; align-content: start; gap: 8px; padding: 12px; border-radius: 16px; background: var(--msd-surface-2); min-height: 220px; }
.msd .msd-kanban h5 { font-size: .8rem; color: var(--msd-muted); letter-spacing: .04em; margin-bottom: 4px; }
.msd .msd-kcard { padding: 12px; border-radius: 12px; background: var(--msd-surface); box-shadow: var(--msd-shadow-sm); font-size: .88rem; font-weight: 500; border-left: 3px solid var(--msd-teal); cursor: grab; transition: transform .2s; }
.msd .msd-kcard:hover { transform: translateY(-2px) rotate(-.6deg); }
.msd .msd-kcard--gold { border-left-color: var(--msd-gold); }
.msd .msd-kcard--dash { border: 1px dashed var(--msd-line-2); background: transparent; box-shadow: none; color: var(--msd-muted); }
.msd .msd-builder { display: grid; gap: 8px; counter-reset: b; margin-bottom: 14px; }
.msd .msd-builder li { counter-increment: b; position: relative; display: grid; gap: 2px; padding: 12px 14px 12px 50px; border-radius: 14px; background: var(--msd-surface-2); font-size: .9rem; animation: msd-pop .35s var(--msd-ease); }
.msd .msd-builder li::before { content: counter(b); position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--msd-teal); color: #fff; font-size: .8rem; font-weight: 700; }
.msd .msd-builder li b { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--msd-teal); }
.msd .msd-refs { display: grid; gap: 8px; }
.msd .msd-refs li { display: flex; gap: 12px; align-items: start; padding: 12px; border-radius: 14px; border: 1px solid var(--msd-line); }
.msd .msd-refs li > div { flex: 1; }
.msd .msd-refs p { font-size: .86rem; color: var(--msd-muted); }
.msd .msd-bookmark { color: var(--msd-muted); transition: color .2s, transform .2s; }
.msd .msd-bookmark.is-on { color: var(--msd-gold); }
.msd .msd-bookmark.is-on .msd-i { fill: currentColor; }
.msd .msd-bookmark:active { transform: scale(1.3); }
.msd .msd-archive-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.msd .msd-archive-filter button { height: 32px; padding: 0 12px; border-radius: 999px; font-size: .82rem; background: var(--msd-surface-2); }
.msd .msd-archive-filter button.is-active { background: var(--msd-teal); color: #fff; }
.msd .msd-archive { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.msd .msd-archive__item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--msd-line); }
.msd .msd-archive__item > div { flex: 1; min-width: 0; }
.msd .msd-archive__item b { display: block; font-size: .9rem; }
.msd .msd-archive__item small { color: var(--msd-muted); font-size: .78rem; }
.msd .msd-archive__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--msd-gold-soft); color: var(--msd-gold-2); flex: none; }
.msd .msd-archive__item.is-hidden { display: none; }
.msd .msd-ask { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.msd .msd-ask__form { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: 16px; background: var(--msd-surface-2); }
.msd .msd-ask__form label { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; }
.msd .msd-ask__form textarea { padding: 12px; border-radius: 12px; border: 1px solid var(--msd-line-2); background: var(--msd-surface); resize: vertical; font-weight: 400; }
.msd .msd-ask__ok { display: flex; gap: 6px; align-items: center; color: var(--msd-teal); font-size: .85rem; font-weight: 500; }
.msd .msd-ask__lib { display: grid; gap: 8px; align-content: start; }
.msd .msd-ask__lib small { color: var(--msd-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.msd .msd-ask__lib details { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--msd-line); }
.msd .msd-ask__lib summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.msd .msd-ask__lib p { margin-top: 8px; font-size: .86rem; color: var(--msd-muted); }

/* ───────────────────────── Bento / community / learning ───────────────────────── */
.msd .msd-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.msd .msd-tile { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 24px; background: var(--msd-surface); border: 1px solid var(--msd-line); box-shadow: var(--msd-shadow-sm); overflow: hidden; transition: transform .35s var(--msd-ease), box-shadow .35s; }
.msd .msd-tile:hover { box-shadow: var(--msd-shadow); }
.msd .msd-tile--wide { grid-column: span 2; }
.msd .msd-tile__head { display: flex; align-items: center; gap: 12px; }
.msd .msd-tile__head > div { flex: 1; min-width: 0; }
.msd .msd-tile__head h3 { font-size: 1.08rem; font-weight: 650; }
.msd .msd-tile__head p { font-size: .84rem; color: var(--msd-muted); }
.msd .msd-tile__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--msd-teal-soft); color: var(--msd-teal); flex: none; }
.msd .msd-tile__ic--purple { background: rgba(122, 108, 240, .12); color: var(--msd-purple); }
.msd .msd-tile__ic--green { background: rgba(63, 183, 154, .14); color: #1f9a7c; }
.msd .msd-tile__ic--gold { background: var(--msd-gold-soft); color: var(--msd-gold-2); }
.msd .msd-tile__ic--blue { background: rgba(58, 123, 213, .12); color: var(--msd-blue); }
.msd .msd-toggle2--4 { max-width: 420px; }
.msd .msd-notice-stage { position: relative; min-height: 190px; padding: 16px; border-radius: 18px; background: var(--msd-surface-2); overflow: hidden; display: grid; align-content: center; }
.msd .msd-n-list { display: grid; gap: 8px; animation: msd-pop .35s var(--msd-ease); }
.msd .msd-n-list li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--msd-surface); font-size: .9rem; }
.msd .msd-n-list li span { margin-left: auto; font-size: .74rem; color: var(--msd-muted); }
.msd .msd-n-ticker { display: flex; align-items: center; border-radius: 12px; overflow: hidden; background: var(--msd-teal-deep); color: #fff; font-size: .92rem; animation: msd-pop .35s var(--msd-ease); }
.msd .msd-n-ticker b { padding: 12px 14px; background: var(--msd-gold); color: #1d1606; white-space: nowrap; }
.msd .msd-n-ticker div { overflow: hidden; white-space: nowrap; flex: 1; }
.msd .msd-n-ticker span { display: inline-block; padding-left: 100%; animation: msd-ticker 16s linear infinite; }
.msd .msd-n-banner { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, #c9a84c, #8a6a1f); animation: msd-pop .35s var(--msd-ease); }
.msd .msd-n-banner .msd-i { width: 28px; height: 28px; }
.msd .msd-n-banner b { display: block; font-size: 1.05rem; }
.msd .msd-n-banner small { opacity: .9; }
.msd .msd-n-popup { display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--msd-muted); font-size: .9rem; }
.msd .msd-events { display: grid; gap: 8px; }
.msd .msd-events li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--msd-surface-2); }
.msd .msd-events__date { display: grid; place-items: center; width: 50px; height: 54px; border-radius: 12px; background: var(--msd-surface); line-height: 1; flex: none; }
.msd .msd-events__date b { font-size: 1.2rem; }
.msd .msd-events__date small { font-size: .66rem; text-transform: uppercase; color: var(--msd-rose); font-weight: 700; letter-spacing: .06em; }
.msd .msd-events__info { flex: 1; min-width: 0; }
.msd .msd-events__info b { display: block; font-size: .9rem; }
.msd .msd-events__info small { display: flex; align-items: center; gap: 4px; color: var(--msd-muted); font-size: .76rem; }
.msd .msd-events__badge { padding: 3px 8px; border-radius: 999px; background: rgba(122, 108, 240, .14); color: var(--msd-purple); font-size: .7rem; font-weight: 700; white-space: nowrap; }
.msd .msd-cal { display: grid; gap: 8px; }
.msd .msd-cal__head { display: flex; align-items: center; justify-content: space-between; text-align: center; }
.msd .msd-cal__head b { display: block; font-size: .95rem; }
.msd .msd-cal__head small { color: var(--msd-muted); font-size: .76rem; }
.msd .msd-cal__head button { width: 32px; height: 32px; border-radius: 10px; background: var(--msd-surface-2); font-size: 1.1rem; }
.msd .msd-cal__dow, .msd .msd-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.msd .msd-cal__dow span { font-size: .62rem; color: var(--msd-muted); font-weight: 600; }
.msd .msd-cal__grid span { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 9px; font-size: .78rem; line-height: 1; }
.msd .msd-cal__grid span small { position: absolute; bottom: 3px; right: 4px; font-size: .52rem; color: var(--msd-muted); }
.msd .msd-cal__grid span.is-today { background: var(--msd-teal); color: #fff; font-weight: 700; }
.msd .msd-cal__grid span.is-today small { color: rgba(255, 255, 255, .8); }
.msd .msd-cal__grid span.is-friday { color: var(--msd-teal); font-weight: 600; }
.msd .msd-cal__grid span.is-holy { background: var(--msd-gold-soft); }
.msd .msd-cal__grid span.is-event::after { content: ""; position: absolute; top: 4px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--msd-purple); }

.msd .msd-bento--learn { grid-template-columns: repeat(3, 1fr); }
.msd .msd-tasbih { grid-row: span 2; align-items: stretch; }
.msd .msd-tasbih__btn { position: relative; display: grid; place-items: center; align-content: center; gap: 4px; width: min(250px, 100%); aspect-ratio: 1; margin: 6px auto; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #1e7562, #0b2e28); color: #eaf3f0; box-shadow: var(--msd-shadow-lg), inset 0 -10px 30px rgba(0, 0, 0, .3); transition: transform .12s; -webkit-tap-highlight-color: transparent; }
.msd .msd-tasbih__btn:active { transform: scale(.96); }
.msd .msd-tasbih__btn svg { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); transform: rotate(-90deg); pointer-events: none; }
.msd .msd-tasbih__btn .msd-ring__bg { stroke: var(--msd-line-2); stroke-width: 4; }
.msd .msd-tasbih__btn .msd-ring__fg { stroke-width: 4; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke-dashoffset .25s; }
.msd .msd-tasbih__ar { font-size: 1.7rem; font-weight: 700; color: #f3d68a; }
.msd .msd-tasbih__count { font-size: 1rem; opacity: .8; font-variant-numeric: tabular-nums; }
.msd .msd-tasbih__count b { font-size: 2.6rem; opacity: 1; display: inline-block; }
.msd .msd-tasbih__count b.is-bump { animation: msd-bump .25s; }
.msd .msd-tasbih__tr { font-size: .85rem; opacity: .75; }
.msd .msd-tasbih__cats { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.msd .msd-tasbih__cats span { padding: 4px 10px; border-radius: 999px; background: var(--msd-surface-2); font-size: .74rem; color: var(--msd-ink-2); }
.msd .msd-tasbih .msd-link { align-self: center; }
.msd .msd-verse__ar { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.7; text-align: center; color: var(--msd-teal); }
.msd .msd-verse__tr { text-align: center; color: var(--msd-ink-2); font-size: 1rem; }
.msd .msd-verse__lang { display: flex; justify-content: center; gap: 6px; margin-top: auto; }
.msd .msd-verse__lang button { height: 30px; padding: 0 12px; border-radius: 999px; font-size: .8rem; background: var(--msd-surface-2); }
.msd .msd-verse__lang button.is-active { background: var(--msd-teal); color: #fff; }
.msd .msd-hadith blockquote { font-size: 1.12rem; line-height: 1.5; font-weight: 500; padding-left: 16px; border-left: 3px solid var(--msd-gold); }
.msd .msd-share { display: flex; gap: 8px; margin-top: auto; }
.msd .msd-share button { height: 32px; padding: 0 12px; border-radius: 999px; font-size: .8rem; border: 1px solid var(--msd-line-2); }
.msd .msd-names__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.msd .msd-flip { perspective: 600px; aspect-ratio: 1 / 1.05; }
.msd .msd-flip__in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s var(--msd-ease); }
.msd .msd-flip:hover .msd-flip__in, .msd .msd-flip.is-flipped .msd-flip__in { transform: rotateY(180deg); }
.msd .msd-flip__front, .msd .msd-flip__back { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 2px; padding: 6px; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; text-align: center; }
.msd .msd-flip__front { background: linear-gradient(160deg, var(--msd-gold-soft), var(--msd-surface)); border: 1px solid var(--msd-line); }
.msd .msd-flip__front small { position: absolute; top: 6px; left: 8px; font-size: .62rem; color: var(--msd-muted); }
.msd .msd-flip__front b { font-size: clamp(1rem, 1.8vw, 1.35rem); color: var(--msd-teal); }
.msd .msd-flip__back { transform: rotateY(180deg); background: linear-gradient(160deg, #165a4c, #0a2c26); color: #eaf3f0; }
.msd .msd-flip__back b { font-size: .82rem; color: #f3d68a; }
.msd .msd-flip__back small { font-size: .7rem; opacity: .85; line-height: 1.2; }
.msd .msd-audio select { height: 40px; }
.msd .msd-wave { display: flex; align-items: center; gap: 3px; height: 54px; }
.msd .msd-wave i { flex: 1; height: var(--h); border-radius: 3px; background: var(--msd-line-2); transition: background .3s; }
.msd .msd-audio.is-playing .msd-wave i { background: var(--msd-teal); animation: msd-eq 1s ease-in-out infinite alternate; }
.msd .msd-audio.is-playing .msd-wave i:nth-child(3n) { animation-delay: -.3s; }
.msd .msd-audio.is-playing .msd-wave i:nth-child(4n) { animation-delay: -.6s; }
.msd .msd-audio__ctrl { display: flex; align-items: center; gap: 12px; }
.msd .msd-audio__play { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--msd-teal); color: #fff; box-shadow: var(--msd-shadow); }
.msd .msd-audio__play .msd-i { fill: currentColor; }
.msd .msd-show-playing { display: none; }
.msd .msd-audio.is-playing .msd-show-playing { display: inline-flex; }
.msd .msd-audio.is-playing .msd-show-paused { display: none; }
.msd .msd-audio__time { font-variant-numeric: tabular-nums; font-size: .86rem; color: var(--msd-muted); }
.msd .msd-articles { display: grid; gap: 8px; }
.msd .msd-articles li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 12px; border-radius: 12px; background: var(--msd-surface-2); }
.msd .msd-articles .msd-pill { grid-row: span 2; align-self: center; }
.msd .msd-articles b { font-size: .9rem; }
.msd .msd-articles small { font-size: .76rem; color: var(--msd-muted); }

/* ───────────────────────── Pro suite ───────────────────────── */
.msd .msd-pro { overflow: hidden; }
.msd .msd-pro__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(800px 400px at 50% 0%, rgba(201, 168, 76, .14), transparent 70%); }
.msd .msd-pro .msd-eyebrow { color: var(--msd-gold-2); }
:is([data-theme="dark"] .msd, .msd[data-theme="dark"]) .msd-pro .msd-eyebrow { color: var(--msd-gold); }
.msd .msd-suite { position: relative; display: grid; gap: 16px; }
.msd .msd-suite__tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin: 0 auto; max-width: 100%; border-radius: 18px; background: var(--msd-surface); border: 1px solid var(--msd-line); scrollbar-width: none; }
.msd .msd-suite__tabs::-webkit-scrollbar { display: none; }
.msd .msd-suite__tabs button { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 42px; padding: 0 16px; border-radius: 14px; font-weight: 600; font-size: .9rem; color: var(--msd-muted); transition: all .25s; }
.msd .msd-suite__tabs button.is-active { color: #3a2b05; background: linear-gradient(135deg, #f6dd94, #d6b154); box-shadow: 0 6px 18px -6px rgba(201, 168, 76, .7); }
.msd .msd-app--pro { border-color: color-mix(in srgb, var(--msd-gold) 35%, transparent); box-shadow: 0 50px 100px -40px rgba(201, 168, 76, .4), var(--msd-shadow); }
.msd .msd-don { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.msd .msd-don__campaign { display: grid; gap: 12px; align-content: start; }
.msd .msd-don__campaign .msd-eyebrow { color: var(--msd-gold-2); }
.msd .msd-don__campaign h4 { font-size: 1.4rem; line-height: 1.2; }
.msd .msd-bar { height: 14px; border-radius: 14px; background: var(--msd-surface-2); overflow: hidden; }
.msd .msd-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--msd-teal), #4cc3a5, var(--msd-gold)); background-size: 200% 100%; transition: width 1.2s var(--msd-ease); animation: msd-shine 3s linear infinite; }
.msd .msd-bar--sm { height: 8px; }
.msd .msd-don__nums { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.msd .msd-don__nums b { font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.msd .msd-don__nums span { color: var(--msd-muted); font-size: .9rem; }
.msd .msd-don__pct { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: var(--msd-teal-soft); color: var(--msd-teal) !important; font-weight: 700; }
.msd .msd-don__recent { display: grid; gap: 6px; }
.msd .msd-don__recent li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--msd-surface-2); font-size: .88rem; animation: msd-pop .4s var(--msd-ease); }
.msd .msd-don__recent li b { margin-left: auto; }
.msd .msd-don__recent li small { color: var(--msd-muted); font-size: .74rem; min-width: 44px; text-align: right; }
.msd .msd-don__form { display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: 18px; background: var(--msd-surface-2); }
.msd .msd-don__amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.msd .msd-don__amounts button, .msd .msd-don__methods button { height: 44px; border-radius: 12px; background: var(--msd-surface); border: 1px solid var(--msd-line); font-weight: 600; font-size: .9rem; transition: all .2s; }
.msd .msd-don__amounts button.is-active, .msd .msd-don__methods button.is-active { border-color: var(--msd-gold); box-shadow: 0 0 0 3px var(--msd-gold-soft); }
.msd .msd-don__methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.msd .msd-don__methods button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.msd .msd-acc { display: grid; grid-template-columns: 200px 1fr 1.4fr; gap: 20px; align-items: center; }
.msd .msd-donut { position: relative; display: grid; place-items: center; width: 200px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--g)); animation: msd-spin-in 1s var(--msd-ease); }
.msd .msd-donut::before { content: ""; position: absolute; inset: 26px; border-radius: 50%; background: var(--msd-surface); }
.msd .msd-donut div { position: relative; text-align: center; }
.msd .msd-donut small { display: block; font-size: .74rem; color: var(--msd-muted); }
.msd .msd-donut b { font-size: 1.4rem; }
.msd .msd-legend { display: grid; gap: 8px; }
.msd .msd-legend li { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.msd .msd-legend li b { margin-left: auto; }
.msd .msd-ledger { padding: 16px; border-radius: 16px; background: var(--msd-surface-2); }
.msd .msd-ledger__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: .9rem; gap: 10px; flex-wrap: wrap; }
.msd .msd-ledger ul { display: grid; gap: 6px; transition: opacity .3s; }
.msd .msd-ledger li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--msd-surface); font-size: .86rem; }
.msd .msd-ledger li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.msd .msd-ledger.is-locked ul { opacity: .55; filter: grayscale(.5); }
.msd .msd-ledger__locked { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .82rem; color: var(--msd-gold-2); font-weight: 500; }
.msd .msd-bars { display: flex; align-items: end; gap: clamp(8px, 2vw, 20px); height: 260px; margin-top: 18px; padding: 0 4px; border-bottom: 1px solid var(--msd-line-2); }
.msd .msd-bars__col { flex: 1; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 6px; height: 100%; }
.msd .msd-bars__col b { font-size: .78rem; font-variant-numeric: tabular-nums; color: var(--msd-ink-2); }
.msd .msd-bars__col i { align-self: end; width: 100%; max-width: 64px; height: var(--h); border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #f3d68a, #c9a84c 60%, #a5852f); transition: height .8s var(--msd-ease); }
.msd .msd-bars__col:nth-child(even) i { background: linear-gradient(180deg, #5bd1b3, #1a6b5a); }
.msd .msd-bars__col span { font-size: .74rem; color: var(--msd-muted); text-align: center; line-height: 1.2; transform: translateY(26px); }
.msd .msd-members { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.msd .msd-members__list { overflow-x: auto; }
.msd .msd-status { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; }
.msd .msd-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.msd .msd-status--paid { color: #1f9a7c; }
.msd .msd-status--due { color: var(--msd-gold-2); }
.msd .msd-status--overdue { color: var(--msd-rose); }
.msd .msd-idcard { display: grid; gap: 14px; padding: 18px; border-radius: 18px; color: #eaf3f0; background: radial-gradient(240px 160px at 100% 0%, rgba(243, 214, 138, .35), transparent 70%), linear-gradient(150deg, #165a4c, #0a2c26); box-shadow: var(--msd-shadow-lg); aspect-ratio: 1.42; transition: transform .5s var(--msd-ease); }
.msd .msd-idcard.is-swap { animation: msd-cardflip .5s var(--msd-ease); }
.msd .msd-idcard__top { display: flex; align-items: center; gap: 8px; font-size: .86rem; }
.msd .msd-idcard__top small { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: rgba(243, 214, 138, .25); color: #f3d68a; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.msd .msd-idcard__body { display: flex; align-items: center; gap: 14px; }
.msd .msd-idcard__body b { display: block; font-size: 1.1rem; }
.msd .msd-idcard__body small { display: block; opacity: .7; font-size: .8rem; }
.msd .msd-idcard__body code { font-size: .74rem; color: #f3d68a; }
.msd .msd-idcard__foot { display: flex; justify-content: space-between; align-items: end; margin-top: auto; font-size: .7rem; opacity: .75; }
.msd .msd-qr { width: 40px; height: 40px; border-radius: 4px; background: conic-gradient(from 90deg, #fff 25%, #0a2c26 0 50%, #fff 0 75%, #0a2c26 0) 0 0 / 10px 10px; opacity: .9; }
.msd .msd-classes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.msd .msd-class { display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: var(--msd-surface-2); font-size: .86rem; }
.msd .msd-class b { font-size: .98rem; }
.msd .msd-class small { color: var(--msd-muted); font-size: .76rem; }
.msd .msd-attend { display: grid; gap: 10px; margin-top: 16px; padding: 16px; border-radius: 16px; border: 1px solid var(--msd-line); }
.msd .msd-attend__row { display: flex; flex-wrap: wrap; gap: 8px; }
.msd .msd-attend__row button { height: 36px; padding: 0 14px; border-radius: 999px; font-size: .86rem; font-weight: 500; border: 1px solid var(--msd-line-2); color: var(--msd-muted); text-decoration: line-through; transition: all .2s; }
.msd .msd-attend__row button.is-on { background: var(--msd-teal-soft); border-color: var(--msd-teal); color: var(--msd-teal); text-decoration: none; }
.msd .msd-book__grid { display: grid; grid-template-columns: 90px repeat(6, 1fr); gap: 6px; font-size: .8rem; }
.msd .msd-book__grid > span { display: grid; place-items: center; color: var(--msd-muted); font-weight: 600; font-size: .76rem; }
.msd .msd-book__grid .msd-book__slot { justify-items: start; }
.msd .msd-book__grid button { height: 44px; border-radius: 10px; border: 1px dashed var(--msd-line-2); background: var(--msd-surface); transition: all .2s; font-size: .74rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.msd .msd-book__grid button:hover { border-color: var(--msd-teal); background: var(--msd-teal-soft); }
.msd .msd-book__grid button.is-booked { border-style: solid; border-color: transparent; background: var(--msd-gold-soft); color: var(--msd-gold-2); }
:is([data-theme="dark"] .msd, .msd[data-theme="dark"]) .msd-book__grid button.is-booked { color: var(--msd-gold); }
.msd .msd-book__grid button.is-req { background: var(--msd-teal); color: #fff; border-style: solid; animation: msd-pop .3s var(--msd-ease); }
.msd .msd-book__grid button.is-conflict { animation: msd-shake .4s; border-color: var(--msd-rose); }
.msd .msd-book__msg { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--msd-surface-2); font-size: .86rem; }
.msd .msd-book__msg.is-ok { background: var(--msd-teal-soft); color: var(--msd-teal); }
.msd .msd-book__msg.is-bad { background: rgba(226, 114, 91, .12); color: var(--msd-rose); }
.msd .msd-shifts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.msd .msd-shift { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 16px; border-radius: 16px; background: var(--msd-surface-2); }
.msd .msd-shift b { display: block; }
.msd .msd-shift small { color: var(--msd-muted); font-size: .8rem; }
.msd .msd-shift .msd-bar { grid-column: 1 / -1; }
.msd .msd-shift [data-shift-label] { grid-column: 1; }
.msd .msd-shift button { grid-column: 2; grid-row: 1; }
.msd .msd-shift.is-full button { opacity: .5; pointer-events: none; }

/* ───────────────────────── Split layout, multilingual, roles, dev ───────────────────────── */
.msd .msd-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.msd .msd-split .msd-head { margin-bottom: 24px; }
.msd .msd-checks { display: grid; gap: 12px; }
.msd .msd-checks li { display: flex; align-items: center; gap: 10px; font-size: 1rem; }
.msd .msd-checks .msd-i { display: grid; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--msd-teal-soft); color: var(--msd-teal); }
.msd .msd-checks code { padding: 2px 6px; border-radius: 6px; background: var(--msd-surface-2); }
.msd .msd-langdemo { display: grid; justify-items: center; gap: 18px; }
.msd .msd-langcard { width: min(420px, 100%); padding: 22px; border-radius: 24px; background: var(--msd-surface); border: 1px solid var(--msd-line); box-shadow: var(--msd-shadow-lg); transition: opacity .25s, transform .25s; }
.msd .msd-langcard.is-swap { opacity: 0; transform: translateY(8px); }
.msd .msd-langcard[dir="rtl"] { font-family: var(--msd-font-ar); }
.msd .msd-langcard__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.msd .msd-langcard__head b { font-size: 1.25rem; }
.msd .msd-langcard__head small { color: var(--msd-muted); }
.msd .msd-langcard ul { display: grid; gap: 4px; }
.msd .msd-langcard li { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 12px; font-variant-numeric: tabular-nums; }
.msd .msd-langcard li:nth-child(odd) { background: var(--msd-surface-2); }
.msd .msd-langcard li.is-hl { background: linear-gradient(90deg, var(--msd-teal), var(--msd-teal-deep)); color: #fff; }
.msd .msd-langcard__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--msd-line-2); color: var(--msd-muted); }
.msd .msd-langcard__foot b { font-size: 1.4rem; color: var(--msd-teal); font-variant-numeric: tabular-nums; }

.msd .msd-rolemx { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
.msd .msd-rolemx__roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.msd .msd-rolemx__roles button { display: flex; align-items: start; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid var(--msd-line); background: var(--msd-surface); text-align: left; transition: all .25s; }
.msd .msd-rolemx__roles button > span:nth-child(2) { flex: 1; min-width: 0; }
.msd .msd-rolemx__roles button b { display: block; font-size: .95rem; }
.msd .msd-rolemx__roles button small { display: block; font-size: .78rem; color: var(--msd-muted); line-height: 1.35; }
.msd .msd-rolemx__roles button.is-active { border-color: var(--msd-teal); box-shadow: 0 0 0 3px var(--msd-teal-soft), var(--msd-shadow); transform: translateY(-2px); }
.msd .msd-rolemx__caps { display: grid; gap: 6px; padding: 16px; border-radius: 22px; background: var(--msd-surface); border: 1px solid var(--msd-line); box-shadow: var(--msd-shadow-sm); }
.msd .msd-rolemx__caps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: .92rem; color: var(--msd-muted); transition: all .3s; }
.msd .msd-rolemx__state { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--msd-line-2); flex: none; transition: all .3s; }
.msd .msd-rolemx__caps li.is-on { color: var(--msd-ink); background: var(--msd-teal-soft); }
.msd .msd-rolemx__caps li.is-on .msd-rolemx__state { border-color: var(--msd-teal); background: var(--msd-teal); }
.msd .msd-rolemx__caps li.is-on .msd-rolemx__state::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.msd .msd-code { border-radius: 20px; overflow: hidden; background: #071512; border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--msd-shadow-lg); }
.msd .msd-code__tabs { display: flex; gap: 4px; padding: 8px; background: rgba(255, 255, 255, .03); border-bottom: 1px solid rgba(255, 255, 255, .06); overflow-x: auto; }
.msd .msd-code__tabs button { flex: none; height: 34px; padding: 0 14px; border-radius: 10px; font-size: .84rem; font-weight: 600; color: #8fb5a9; }
.msd .msd-code__tabs button.is-active { background: rgba(76, 195, 165, .15); color: #c8f3e5; }
.msd .msd-code .msd-pane { position: relative; }
.msd .msd-code pre { margin: 0; padding: 20px 22px; overflow-x: auto; color: #bfe8da; font-size: .84rem; line-height: 1.7; min-height: 280px; }
.msd .msd-code__copy { position: absolute; top: 10px; right: 10px; color: #8fb5a9; }

/* ───────────────────────── Steps, compare, pricing ───────────────────────── */
.msd .msd-steps__list { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.msd .msd-steps__list::before { content: ""; position: absolute; left: 10%; right: 10%; top: 46px; height: 2px; background: repeating-linear-gradient(90deg, var(--msd-line-2) 0 8px, transparent 8px 16px); }
.msd .msd-step { position: relative; display: grid; justify-items: center; gap: 12px; text-align: center; padding: 0 8px; }
.msd .msd-step__num { position: absolute; top: -6px; left: calc(50% + 22px); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--msd-gold); color: #1d1606; font-size: .78rem; font-weight: 700; z-index: 2; }
.msd .msd-step__ic { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 28px; background: var(--msd-surface); border: 1px solid var(--msd-line); box-shadow: var(--msd-shadow); color: var(--msd-teal); transition: transform .35s var(--msd-ease); }
.msd .msd-step:hover .msd-step__ic { transform: translateY(-6px) rotate(-4deg); }
.msd .msd-step__ic .msd-i { width: 34px; height: 34px; }
.msd .msd-step h3 { font-size: 1.1rem; }
.msd .msd-step p { font-size: .9rem; color: var(--msd-muted); }

.msd .msd-ctable { max-width: 900px; margin: 0 auto; border-radius: 24px; background: var(--msd-surface); border: 1px solid var(--msd-line); box-shadow: var(--msd-shadow); overflow: hidden; }
.msd .msd-ctable__tools { display: flex; justify-content: flex-end; padding: 14px 18px; border-bottom: 1px solid var(--msd-line); }
.msd .msd-ctable__scroll { max-height: 620px; overflow: auto; }
.msd .msd-ctable table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.msd .msd-ctable thead th { position: sticky; top: 0; z-index: 2; padding: 14px 18px; background: var(--msd-surface); border-bottom: 1px solid var(--msd-line); text-align: center; }
.msd .msd-ctable thead th:first-child { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--msd-muted); }
.msd .msd-ctable td { padding: 12px 18px; border-bottom: 1px solid var(--msd-line); text-align: center; }
.msd .msd-ctable td:first-child { text-align: left; font-weight: 500; }
.msd .msd-ctable td small { display: block; font-weight: 400; color: var(--msd-muted); font-size: .8rem; }
.msd .msd-ctable__group th { padding: 10px 18px; text-align: left; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; background: var(--msd-surface-2); color: var(--msd-teal); }
.msd .msd-ctable.is-pro-only tr[data-row-tier="free"] { display: none; }
.msd .msd-yes { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--msd-teal-soft); color: var(--msd-teal); }
.msd .msd-yes--gold { background: var(--msd-gold-soft); color: var(--msd-gold-2); }
:is([data-theme="dark"] .msd, .msd[data-theme="dark"]) .msd-yes--gold { color: var(--msd-gold); }
.msd .msd-no { color: var(--msd-line-2); font-weight: 700; }

.msd .msd-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.msd .msd-plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 28px; background: var(--msd-surface); border: 1px solid var(--msd-line); box-shadow: var(--msd-shadow-sm); transition: transform .3s var(--msd-ease), box-shadow .3s; transform-style: preserve-3d; }
.msd .msd-plan:hover { box-shadow: var(--msd-shadow-lg); }
.msd .msd-plan--featured { color: #eaf3f0; background: radial-gradient(400px 260px at 100% 0%, rgba(243, 214, 138, .3), transparent 70%), linear-gradient(160deg, #165a4c, #08221d); border-color: transparent; box-shadow: var(--msd-shadow-lg); --msd-muted: rgba(234, 243, 240, .72); --msd-line: rgba(255, 255, 255, .12); --msd-teal: #5ef0c3; }
.msd .msd-plan__ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; background: linear-gradient(135deg, #f6dd94, #d6b154); color: #3a2b05; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.msd .msd-plan__head { display: flex; justify-content: space-between; align-items: center; }
.msd .msd-plan__head h3 { font-size: 1.3rem; }
.msd .msd-plan__price { display: flex; align-items: baseline; gap: 4px; }
.msd .msd-plan__price span { font-size: 1.3rem; font-weight: 600; opacity: .7; }
.msd .msd-plan__price b { font-size: 3.4rem; line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.msd .msd-plan__price small { color: var(--msd-muted); }
.msd .msd-plan__note { color: var(--msd-muted); font-size: .9rem; margin-top: -8px; }
.msd .msd-plan__items { display: grid; gap: 10px; padding-top: 16px; border-top: 1px dashed var(--msd-line); }
.msd .msd-plan__items li { display: flex; gap: 10px; font-size: .92rem; }
.msd .msd-plan__items .msd-i { color: var(--msd-teal); margin-top: 3px; }

/* Testimonials */
.msd .msd-quotes { overflow: hidden; }
.msd .msd-quotes__rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(var(--msd-gutter), calc((100vw - var(--msd-wrap)) / 2)) 24px; scrollbar-width: none; }
.msd .msd-quotes__rail::-webkit-scrollbar { display: none; }
.msd .msd-quote { flex: 0 0 min(400px, 84vw); scroll-snap-align: center; display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: 24px; background: var(--msd-surface); border: 1px solid var(--msd-line); box-shadow: var(--msd-shadow-sm); }
.msd .msd-quote__mark { width: 34px; height: 34px; color: var(--msd-gold); }
.msd .msd-quote blockquote { font-size: 1.08rem; line-height: 1.55; flex: 1; }
.msd .msd-quote figcaption { display: flex; gap: 10px; align-items: center; }
.msd .msd-quote figcaption b { display: block; font-size: .92rem; }
.msd .msd-quote figcaption small { color: var(--msd-muted); font-size: .8rem; }
.msd .msd-quotes__nav { display: flex; justify-content: center; gap: 10px; }

/* FAQ */
.msd .msd-split--faq { align-items: start; grid-template-columns: .8fr 1.2fr; }
.msd .msd-acc-list { display: grid; gap: 10px; }
.msd .msd-acc-item { border-radius: 18px; background: var(--msd-surface); border: 1px solid var(--msd-line); transition: box-shadow .3s, border-color .3s; }
.msd .msd-acc-item.is-open { box-shadow: var(--msd-shadow); border-color: color-mix(in srgb, var(--msd-teal) 35%, transparent); }
.msd .msd-acc-item__q { display: flex; align-items: center; gap: 12px; width: 100%; padding: 18px 20px; text-align: left; font-weight: 600; font-size: 1rem; }
.msd .msd-acc-item__q > span:first-child { flex: 1; }
.msd .msd-acc-item__plus { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--msd-surface-2); flex: none; transition: transform .3s, background .3s; }
.msd .msd-acc-item__plus::before, .msd .msd-acc-item__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: currentColor; transition: transform .3s; }
.msd .msd-acc-item__plus::after { transform: rotate(90deg); }
.msd .msd-acc-item.is-open .msd-acc-item__plus { background: var(--msd-teal); color: #fff; transform: rotate(180deg); }
.msd .msd-acc-item.is-open .msd-acc-item__plus::after { transform: rotate(0); }
.msd .msd-acc-item__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--msd-ease); }
.msd .msd-acc-item.is-open .msd-acc-item__a { grid-template-rows: 1fr; }
.msd .msd-acc-item__a > div { overflow: hidden; }
.msd .msd-acc-item__a p { padding: 0 20px 20px; color: var(--msd-muted); }

/* CTA */
.msd .msd-cta { padding-top: 0; }
.msd .msd-cta__card { position: relative; display: grid; justify-items: center; gap: 18px; padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 64px); border-radius: 36px; overflow: hidden; text-align: center; color: #eaf3f0; background: radial-gradient(600px 300px at 90% 0%, rgba(243, 214, 138, .35), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(94, 240, 195, .18), transparent 70%), linear-gradient(150deg, #155446, #071d19); box-shadow: var(--msd-shadow-lg); isolation: isolate; }
.msd .msd-cta__card > .msd-pattern { z-index: -1; }
.msd .msd-cta__card .msd-eyebrow { color: #f3d68a; }
.msd .msd-cta__card p { max-width: 560px; opacity: .85; font-size: 1.08rem; }
.msd .msd-cta__card .msd-btn--glass { --b-bg: rgba(255, 255, 255, .1); --b-bd: rgba(255, 255, 255, .2); --b-fg: #fff; }
.msd .msd-cta__star { width: 160px; right: -30px; top: -30px; stroke: #f3d68a; opacity: .5; animation: msd-spin 50s linear infinite; z-index: -1; }

/* Custom section */
.msd .msd-custom__body { color: var(--msd-ink-2); }
.msd .msd-custom__body--center { text-align: center; max-width: 820px; margin: 0 auto; }
.msd .msd-custom__body p + p { margin-top: 1em; }
.msd .msd-custom__body ul { list-style: disc; padding-left: 1.2em; }
.msd .msd-custom__body a { color: var(--msd-teal); text-decoration: underline; }

/* ───────────────────────── Footer ───────────────────────── */
.msd .msd-footer { position: relative; margin-top: clamp(40px, 6vw, 80px); padding: 72px 0 28px; color: #cfe0da; background: #061512; }
.msd .msd-footer__arch { position: absolute; left: 0; right: 0; top: -60px; height: 60px; background: #061512; -webkit-mask: radial-gradient(60px 60px at 50% 100%, #000 98%, transparent) 0 0 / 120px 60px repeat-x; mask: radial-gradient(60px 60px at 50% 100%, #000 98%, transparent) 0 0 / 120px 60px repeat-x; }
.msd .msd-footer .msd-logo { color: #fff; }
.msd .msd-footer .msd-logo__mark { color: #5ef0c3; }
.msd .msd-footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.msd .msd-footer__brand { display: grid; gap: 16px; align-content: start; }
.msd .msd-footer__brand p { font-size: .92rem; opacity: .75; max-width: 360px; }
.msd .msd-footer h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: #fff; font-size: .95rem; }
.msd .msd-footer__col ul { display: grid; gap: 10px; }
.msd .msd-footer__col a { font-size: .92rem; opacity: .75; transition: opacity .2s, color .2s; }
.msd .msd-footer__col a:hover { opacity: 1; color: #f3d68a; }
.msd .msd-newsletter { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); max-width: 380px; }
.msd .msd-newsletter input { flex: 1; min-width: 0; padding: 0 12px; border: 0; outline: 0; background: transparent; color: #fff; }
.msd .msd-footer__bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding-top: 24px; font-size: .82rem; opacity: .65; }
.msd .msd-footer--minimal { padding-top: 40px; }
.msd .msd-footer--minimal .msd-footer__bottom { border-top: 0; padding-top: 0; }

/* ───────────────────────── Floating layer ───────────────────────── */
.msd .msd-dock {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 90;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px 8px 8px;
	border-radius: 999px;
	background: var(--msd-glass);
	border: 1px solid var(--msd-glass-line);
	box-shadow: var(--msd-shadow);
	backdrop-filter: blur(16px) saturate(160%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	transform: translateY(140%);
	opacity: 0;
	transition: transform .5s var(--msd-ease), opacity .4s;
	text-align: left;
}
.msd .msd-dock.is-visible { transform: none; opacity: 1; }
.msd .msd-dock__moon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--msd-teal), var(--msd-teal-deep)); color: #f3d68a; }
.msd .msd-dock__txt small { display: block; font-size: .7rem; color: var(--msd-muted); line-height: 1.2; }
.msd .msd-dock__txt > b { font-variant-numeric: tabular-nums; font-size: 1rem; }
/* Page guide (shared Readscope component): colours from the demo tokens. */
.msd {
	--rsg-accent: var(--msd-teal);
	--rsg-bg: color-mix(in srgb, var(--msd-surface) 92%, transparent);
	--rsg-fg: var(--msd-ink);
	--rsg-mut: var(--msd-muted);
	--rsg-line: var(--msd-line-2);
	--rsg-ink: var(--msd-ink);
	--rsg-on-ink: var(--msd-bg);
	--rsg-font: var(--msd-font);
}
.msd .msd-dots { position: fixed; right: 18px; top: 50%; z-index: 80; display: grid; gap: 10px; transform: translateY(-50%); }
.msd .msd-dots a { position: relative; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--msd-line-2); transition: all .3s; }
.msd .msd-dots a:hover, .msd .msd-dots a.is-active { background: var(--msd-teal); transform: scale(1.35); }
.msd .msd-dots a span { position: absolute; right: 22px; top: 50%; transform: translate(6px, -50%); padding: 4px 10px; border-radius: 8px; background: var(--msd-ink); color: var(--msd-bg); font-size: .72rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: all .2s; }
.msd .msd-dots a:hover span { opacity: 1; transform: translate(0, -50%); }
.msd .msd-totop { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--msd-surface); box-shadow: var(--msd-shadow); color: var(--msd-teal); opacity: 0; transform: translateY(20px) scale(.9); transition: all .35s var(--msd-ease); pointer-events: none; }
.msd .msd-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.msd .msd-totop > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.msd .msd-totop__bg { fill: none; stroke: var(--msd-line); stroke-width: 3; }
.msd .msd-totop__fg { fill: none; stroke: var(--msd-teal); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; }
.msd .msd-totop > .msd-i { position: relative; }
.msd .msd-mobilebar { display: none; }
.msd .msd-toast { position: fixed; left: 50%; bottom: 90px; z-index: 400; padding: 12px 18px; border-radius: 14px; background: var(--msd-ink); color: var(--msd-bg); font-size: .9rem; font-weight: 500; box-shadow: var(--msd-shadow-lg); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: all .35s var(--msd-ease); }
.msd .msd-toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* Modal */
.msd .msd-modal { position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; padding: 20px; background: rgba(5, 18, 15, .55); backdrop-filter: blur(4px); animation: msd-fade .2s; }
.msd .msd-modal__card { position: relative; display: grid; justify-items: center; gap: 12px; max-width: 420px; padding: 32px 26px 26px; border-radius: 24px; text-align: center; background: var(--msd-surface); box-shadow: var(--msd-shadow-lg); animation: msd-pop .35s var(--msd-ease); }
.msd .msd-modal__x { position: absolute; top: 12px; right: 12px; }
.msd .msd-modal__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--msd-gold-soft); color: var(--msd-gold-2); }
.msd .msd-modal__card h4 { font-size: 1.25rem; }
.msd .msd-modal__card p { color: var(--msd-muted); }

/* ───────────────────────── Reveal & motion ───────────────────────── */
.msd [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--msd-ease), transform .8s var(--msd-ease); transition-delay: var(--d, 0ms); }
.msd [data-reveal].is-in { opacity: 1; transform: none; }
.msd.no-js [data-reveal], .msd .msd-reveal-off [data-reveal] { opacity: 1; transform: none; }

@keyframes msd-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes msd-drift { to { transform: translate(-60px, 40px) scale(1.08); } }
@keyframes msd-spin { to { transform: rotate(360deg); } }
@keyframes msd-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes msd-scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes msd-marquee { to { transform: translateX(-50%); } }
@keyframes msd-fade { from { opacity: 0; } }
@keyframes msd-slide-in { from { transform: translateX(100%); } }
@keyframes msd-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes msd-pane { from { opacity: 0; transform: translateX(14px); } }
@keyframes msd-ticker { to { transform: translateX(-100%); } }
@keyframes msd-grow { from { transform: scaleY(0); } }
@keyframes msd-widen { from { transform: scaleX(0); } }
@keyframes msd-flash { 0% { color: #f3d68a; } 100% { color: inherit; } }
@keyframes msd-bump { 50% { transform: scale(1.18); } }
@keyframes msd-eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@keyframes msd-shine { to { background-position: -200% 0; } }
@keyframes msd-spin-in { from { transform: rotate(-90deg) scale(.8); opacity: 0; } }
@keyframes msd-cardflip { 0% { transform: rotateY(0); } 50% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
@keyframes msd-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

@media (prefers-reduced-motion: reduce) {
	.msd *, .msd *::before, .msd *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.msd [data-reveal] { opacity: 1; transform: none; }
}

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1140px) {
	.msd .msd-nav__link[href="#faq"] { display: none; }
	.msd .msd-stats__grid { grid-template-columns: repeat(3, 1fr); }
	.msd .msd-stat:nth-child(3) { border-right: 0; }
	.msd .msd-stat:nth-child(-n+3) { border-bottom: 1px solid var(--msd-line); }
	.msd .msd-times { grid-template-columns: repeat(3, 1fr); }
	.msd .msd-acc { grid-template-columns: 180px 1fr; }
	.msd .msd-acc .msd-ledger { grid-column: 1 / -1; }
	.msd .msd-donut { width: 180px; }
	.msd .msd-dots { display: none; }
}

@media (max-width: 980px) {
	.msd .msd-nav, .msd .msd-hide-sm { display: none; }
	.msd .msd-burger { display: inline-grid; }
	.msd .msd-hero__grid { grid-template-columns: 1fr; }
	.msd .msd-hero__copy { justify-items: center; text-align: center; }
	.msd .msd-hero__trust, .msd .msd-hero__cta { justify-content: center; }
	.msd .msd-hero__visual { min-height: 520px; }
	.msd .msd-lab, .msd .msd-tvlab, .msd .msd-tour, .msd .msd-split, .msd .msd-split--faq, .msd .msd-rolemx { grid-template-columns: 1fr; }
	.msd .msd-tour__tabs { display: flex; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
	.msd .msd-tour__tabs::-webkit-scrollbar { display: none; }
	.msd .msd-tour__tab { flex: none; }
	.msd .msd-tour__tab small { display: none; }
	.msd .msd-bento, .msd .msd-bento--learn { grid-template-columns: 1fr 1fr; }
	.msd .msd-tasbih { grid-row: auto; }
	.msd .msd-names__grid { grid-template-columns: repeat(4, 1fr); }
	.msd .msd-don, .msd .msd-members { grid-template-columns: 1fr; }
	.msd .msd-classes { grid-template-columns: 1fr 1fr; }
	.msd .msd-steps__list { grid-template-columns: 1fr 1fr; row-gap: 40px; }
	.msd .msd-steps__list::before { display: none; }
	.msd .msd-plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
	.msd .msd-plan--featured { order: -1; }
	.msd .msd-footer__top { grid-template-columns: 1fr 1fr 1fr; }
	.msd .msd-footer__brand { grid-column: 1 / -1; }
	.msd .msd-mega { display: none; }
}

@media (max-width: 680px) {
	.msd { font-size: 15px; }
	.msd .msd-topbar__text { display: none; }
	.msd .msd-companybar__brand { display: none; }
	.msd .msd-companybar__links { width: 100%; justify-content: space-between; }
	.msd .msd-topbar__in { justify-content: flex-start; }
	.msd .msd-header__in { height: 64px; }
	.msd .msd-hero__visual { min-height: 0; padding: 30px 0 50px; }
	.msd .msd-star--1 { width: 54px; left: auto; right: 4%; top: 2%; opacity: .35; }
	.msd .msd-float { font-size: .76rem; padding: 7px 10px 7px 7px; }
	.msd .msd-float__ic { width: 30px; height: 30px; }
	.msd .msd-float--a { left: -2%; top: 4%; }
	.msd .msd-float--b { right: -2%; top: 30%; }
	.msd .msd-float--c { display: none; }
	.msd .msd-float--d { left: -2%; bottom: 4%; }
	.msd .msd-float--e { right: 0; bottom: -2%; font-size: 1.1rem; }
	.msd .msd-arch__inner { padding: 56px 16px 16px; }
	.msd .msd-stats__grid { grid-template-columns: 1fr 1fr; }
	.msd .msd-stat { border-right: 1px solid var(--msd-line) !important; border-bottom: 1px solid var(--msd-line); }
	.msd .msd-stat:nth-child(2n) { border-right: 0 !important; }
	.msd .msd-stat:nth-last-child(-n+2) { border-bottom: 0; }
	.msd .msd-compare__pane li { font-size: .9rem; }
	.msd .msd-explorer__bar { flex-direction: column; align-items: stretch; }
	.msd .msd-explorer__bar .msd-search { max-width: none; flex: auto; }
	.msd .msd-search kbd { display: none; }
	.msd .msd-seg { display: grid; }
	.msd .msd-mgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.msd .msd-mcard { padding: 14px; gap: 8px; }
	.msd .msd-mcard__ic { width: 38px; height: 38px; border-radius: 11px; }
	.msd .msd-mcard__title { font-size: .95rem; }
	.msd .msd-mcard__text { font-size: .8rem; }
	.msd .msd-mcard__cat { display: none; }
	.msd .msd-detail__features { grid-template-columns: 1fr; }
	.msd .msd-times { grid-template-columns: repeat(2, 1fr); }
	.msd .msd-lab__extras { grid-template-columns: 1fr; }
	.msd .msd-lab__next { text-align: left; }
	.msd .msd-bento, .msd .msd-bento--learn { grid-template-columns: 1fr; }
	.msd .msd-tile--wide { grid-column: auto; }
	.msd .msd-names__grid { grid-template-columns: repeat(3, 1fr); }
	.msd .msd-ov { grid-template-columns: 1fr; }
	.msd .msd-kanban { grid-template-columns: 1fr; }
	.msd .msd-kanban > div { min-height: 0; }
	.msd .msd-archive, .msd .msd-ask, .msd .msd-shifts { grid-template-columns: 1fr; }
	.msd .msd-acc { grid-template-columns: 1fr; justify-items: center; }
	.msd .msd-legend { width: 100%; }
	.msd .msd-book__grid { grid-template-columns: 64px repeat(6, 1fr); gap: 3px; }
	.msd .msd-book__grid button { height: 38px; font-size: 0; }
	.msd .msd-book__grid button.is-booked::after { content: "•"; font-size: 1rem; }
	.msd .msd-rolemx__roles { grid-template-columns: 1fr; }
	.msd .msd-steps__list { grid-template-columns: 1fr; }
	.msd .msd-tv__grid { grid-template-columns: repeat(3, 1fr); }
	.msd .msd-footer__top { grid-template-columns: 1fr 1fr; }
	.msd .msd-footer__bottom { justify-content: center; text-align: center; }
	.msd .msd-wd-compact, .msd .msd-wd-premium .msd-wd-chips, .msd .msd-wd-display .msd-wd-chips { grid-template-columns: repeat(3, 1fr); }
	.msd .msd-dock { left: 12px; bottom: 76px; }
	.msd .msd-totop { right: 12px; bottom: 76px; width: 46px; height: 46px; }
	.msd .msd-mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--msd-glass); border-top: 1px solid var(--msd-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transform: translateY(100%); transition: transform .4s var(--msd-ease); }
	.msd .msd-mobilebar.is-visible { transform: none; }
	.msd .msd-mobilebar .msd-btn { height: 44px; }
	.msd .msd-toast { bottom: 140px; }
	.msd .msd-sheet__panel { top: auto; width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; animation: msd-sheet-up .35s var(--msd-ease); }
}

@keyframes msd-sheet-up { from { transform: translateY(100%); } }

@media (max-width: 400px) {
	.msd .msd-mgrid { grid-template-columns: 1fr; }
	.msd .msd-names__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ───────────────────────── Walkthrough (30s screencast) ───────────────────────── */
.msd .msd-wt-sec { padding-top: clamp(24px, 4vw, 48px); }
.msd .msd-wt { max-width: 1020px; margin: 0 auto; display: grid; gap: 14px; }
.msd .msd-wt__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #0b1714; border: 1px solid var(--msd-line); box-shadow: var(--msd-shadow-lg); }
.msd .msd-wt__frame--video iframe, .msd .msd-wt__frame--video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.msd .msd-wt__stage { position: absolute; left: 0; top: 0; width: 960px; height: 540px; transform: scale(var(--s, 1)); transform-origin: 0 0; font-family: var(--msd-font); color: #1d2b27; font-size: 14px; line-height: 1.4; overflow: hidden; }
.msd .msd-wt__scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s, transform .6s var(--msd-ease); transform: scale(1.02); }
.msd .msd-wt__scene.is-active { opacity: 1; visibility: visible; transform: none; }
.msd .msd-wt__caption { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: 86%; padding: 8px 16px; border-radius: 10px; background: rgba(5, 14, 12, .82); color: #fff; font-size: clamp(.72rem, 1.6vw, .95rem); text-align: center; backdrop-filter: blur(6px); transition: opacity .3s; pointer-events: none; z-index: 5; }
.msd .msd-wt__caption.is-swap { opacity: 0; }
.msd .msd-wt__big { position: absolute; left: 50%; top: 50%; z-index: 6; display: grid; place-items: center; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--msd-gold); color: #1d1606; box-shadow: 0 0 0 12px rgba(201, 168, 76, .25), 0 20px 40px rgba(0, 0, 0, .4); transition: opacity .3s, transform .3s; }
.msd .msd-wt__big .msd-i { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.msd .msd-wt__big:hover { transform: scale(1.06); }
.msd .msd-wt.is-playing .msd-wt__big { opacity: 0; pointer-events: none; transform: scale(.8); }
.msd .msd-wt__controls { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 16px; background: var(--msd-surface); border: 1px solid var(--msd-line); }
.msd .msd-wt__play { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--msd-teal); color: #fff; flex: none; }
.msd .msd-wt__play .msd-i { fill: currentColor; }
.msd .msd-wt.is-playing .msd-show-playing { display: inline-flex; }
.msd .msd-wt.is-playing .msd-show-paused { display: none; }
.msd .msd-wt__track { position: relative; flex: 1; height: 8px; border-radius: 8px; background: var(--msd-surface-2); cursor: pointer; }
.msd .msd-wt__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--msd-teal), var(--msd-gold)); }
.msd .msd-wt__track i { position: absolute; top: -3px; width: 3px; height: 14px; border-radius: 2px; background: var(--msd-line-2); }
.msd .msd-wt__track i:first-of-type { display: none; }
.msd .msd-wt__time { font-variant-numeric: tabular-nums; font-size: .86rem; color: var(--msd-muted); white-space: nowrap; }
.msd .msd-wt__chapters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.msd .msd-wt__chapters button { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; height: 100%; padding: 12px; border-radius: 14px; text-align: left; background: var(--msd-surface); border: 1px solid var(--msd-line); transition: all .25s; overflow: hidden; }
.msd .msd-wt__chapters button b { display: block; font-size: .9rem; }
.msd .msd-wt__chapters button small { display: block; font-size: .74rem; color: var(--msd-muted); line-height: 1.3; }
.msd .msd-wt__chapters button em { position: absolute; top: 8px; right: 10px; font-style: normal; font-size: .68rem; color: var(--msd-muted); }
.msd .msd-wt__chapters button.is-active { border-color: var(--msd-teal); box-shadow: 0 0 0 3px var(--msd-teal-soft); }
.msd .msd-wt__chapters button.is-active .msd-wt__ic { background: var(--msd-teal); color: #fff; }
.msd .msd-wt__num { display: none; }
.msd .msd-wt__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--msd-teal-soft); color: var(--msd-teal); flex: none; transition: all .25s; }

/* Stage contents (design size 960x540) */
.msd .wt-admin { display: flex; height: 100%; background: #f1f1f1; }
.msd .wt-side { display: flex; flex-direction: column; gap: 2px; width: 150px; padding: 10px 0; background: #1d2327; color: #c3c4c7; font-size: 12.5px; }
.msd .wt-side span, .msd .wt-side small { padding: 7px 14px; }
.msd .wt-side small { padding: 5px 14px 5px 22px; background: #2c3338; font-size: 11.5px; }
.msd .wt-side .is-on { background: #1a6b5a; color: #fff; }
.msd .wt-side small.is-on { background: #2c3338; color: #72e0c2; font-weight: 600; }
.msd .wt-wp { display: grid; place-items: center; width: 26px; height: 26px; margin: 0 14px 10px; border-radius: 50%; border: 2px solid #c3c4c7; font-style: normal; font-weight: 700; font-size: 13px; }
.msd .wt-main { position: relative; flex: 1; padding: 26px 30px; overflow: hidden; }
.msd .wt-welcome { background: radial-gradient(500px 280px at 100% 0%, rgba(201, 168, 76, .2), transparent 70%), #f7f4ec; }
.msd .wt-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #1a6b5a; }
.msd .wt-welcome h3 { font-size: 26px; margin: 6px 0 4px; letter-spacing: -.01em; }
.msd .wt-welcome p { color: #5b6b66; }
.msd .wt-live { display: flex; align-items: center; gap: 20px; margin: 18px 0; padding: 16px 18px; border-radius: 16px; color: #eaf3f0; background: linear-gradient(140deg, #165a4c, #0a2c26); }
.msd .wt-live small { display: block; opacity: .7; font-size: 11px; }
.msd .wt-live b { font-size: 18px; }
.msd .wt-live__row { display: flex; gap: 6px; margin-left: auto; }
.msd .wt-live__row span { padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .08); font-size: 11px; text-align: center; }
.msd .wt-live__row span.is-on { background: #f3d68a; color: #1d1606; }
.msd .wt-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.msd .wt-path { display: grid; gap: 4px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid #e3ded2; transition: all .3s; }
.msd .wt-path .msd-i { width: 26px; height: 26px; color: #1a6b5a; margin-bottom: 6px; }
.msd .wt-path b { font-size: 14px; }
.msd .wt-path small { color: #6b7a75; font-size: 12px; }
.msd .wt-path.is-hover, .msd .wt-card.is-hover { border-color: #1a6b5a; box-shadow: 0 0 0 3px rgba(26, 107, 90, .15), 0 10px 24px -10px rgba(14, 59, 51, .4); transform: translateY(-3px); }
.msd .wt-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.msd .wt-bar b { font-size: 22px; }
.msd .wt-search { display: inline-flex; align-items: center; gap: 6px; width: 240px; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid #ddd; color: #8a948f; font-size: 12px; }
.msd .wt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.msd .wt-card { display: grid; gap: 3px; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid #e3e3e3; transition: all .3s; }
.msd .wt-card .msd-i { width: 22px; height: 22px; color: #1a6b5a; margin-bottom: 4px; }
.msd .wt-card b { font-size: 13.5px; }
.msd .wt-card small { color: #6b7a75; font-size: 11.5px; }
.msd .wt-panel { position: absolute; top: 0; right: 0; bottom: 0; display: grid; align-content: start; gap: 10px; width: 330px; padding: 24px 22px; background: #fff; box-shadow: -20px 0 40px -20px rgba(0, 0, 0, .3); transform: translateX(105%); transition: transform .5s var(--msd-ease); }
.msd .wt-panel.is-open { transform: none; }
.msd .wt-panel > b { font-size: 17px; margin-bottom: 4px; }
.msd .wt-panel label { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px; background: #f5f3ee; font-size: 12.5px; }
.msd .wt-panel label span { font-weight: 600; }
.msd .wt-tog { position: relative; width: 32px; height: 18px; border-radius: 10px; background: #1a6b5a; }
.msd .wt-tog::after { content: ""; position: absolute; right: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.msd .wt-code { padding: 12px; border-radius: 10px; background: #0d1f1b; color: #bfe8da; font-size: 12px; }
.msd .wt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 10px; background: #1a6b5a; color: #fff; font-weight: 600; font-size: 13px; transition: transform .15s; }
.msd .wt-btn.is-press { transform: scale(.94); }
.msd .wt-btn--blue { background: #2271b1; height: 32px; font-size: 12.5px; border-radius: 4px; }
.msd .wt-toast { justify-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #10201c; color: #fff; font-size: 12.5px; opacity: 0; transform: translateY(8px); transition: all .35s; }
.msd .wt-toast.is-on { opacity: 1; transform: none; }
.msd .wt-editor { height: 100%; background: #fff; display: flex; flex-direction: column; }
.msd .wt-editor__top { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px 0 0; border-bottom: 1px solid #e0e0e0; font-size: 13px; }
.msd .wt-editor__top .wt-wp { margin: 0; width: 54px; height: 54px; border-radius: 0; border: 0; background: #1e1e1e; color: #fff; }
.msd .wt-editor__sp { flex: 1; }
.msd .wt-ghost { color: #2271b1; }
.msd .wt-editor__doc { width: 600px; margin: 50px auto 0; }
.msd .wt-editor__doc h3 { font-size: 34px; font-family: Georgia, serif; font-weight: 400; margin-bottom: 14px; }
.msd .wt-editor__p { color: #444; margin-bottom: 18px; font-size: 15px; }
.msd .wt-block { padding: 14px 16px; border: 1px solid #1e1e1e; border-radius: 2px; }
.msd .wt-block small { display: block; margin-bottom: 8px; color: #757575; font-size: 11.5px; }
.msd .wt-block code { display: block; padding: 10px 12px; border: 1px solid #ccc; border-radius: 2px; font-size: 14px; min-height: 40px; }
.msd .wt-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; background: currentColor; vertical-align: -.2em; animation: msd-blink 1s steps(2) infinite; }
@keyframes msd-blink { 50% { opacity: 0; } }
.msd .wt-site { position: relative; height: 100%; background: #fbf8f1; }
.msd .wt-site__nav { display: flex; align-items: center; gap: 24px; height: 60px; padding: 0 34px; background: #0e3b33; color: #cfe0da; font-size: 13px; }
.msd .wt-site__nav b { margin-right: auto; color: #fff; font-size: 16px; }
.msd .wt-site__nav .is-on { color: #f3d68a; }
.msd .wt-site__body { padding: 40px 80px; }
.msd .wt-site__body h3 { font-size: 32px; letter-spacing: -.02em; }
.msd .wt-site__body > p { color: #5b6b66; margin: 6px 0 22px; }
.msd .wt-widget { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.msd .wt-widget div { display: grid; gap: 2px; padding: 20px 10px; text-align: center; border-radius: 16px; background: #fff; border: 1px solid #e6e0d2; }
.msd .wt-widget small { color: #6b7a75; }
.msd .wt-widget b { font-size: 22px; }
.msd .wt-widget .is-on { background: #1a6b5a; color: #fff; border-color: transparent; }
.msd .wt-widget .is-on small { color: rgba(255, 255, 255, .8); }
.msd .wt-site__meta { margin-top: 18px; color: #5b6b66; }
.msd .wt-toast--pub { position: absolute; top: 76px; right: 30px; }
.msd .wt-browser { display: flex; flex-direction: column; height: 100%; background: #dfe3e1; }
.msd .wt-browser__bar { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; background: #e9ecea; }
.msd .wt-browser__bar > i { width: 10px; height: 10px; border-radius: 50%; background: #e66; }
.msd .wt-browser__bar > i:nth-child(2) { background: #e5b84a; }
.msd .wt-browser__bar > i:nth-child(3) { background: #4bbf7a; }
.msd .wt-url { flex: 1; margin-left: 14px; padding: 6px 14px; border-radius: 999px; background: #fff; font-size: 13px; color: #333; }
.msd .wt-tv { position: relative; flex: 1; display: grid; grid-template-rows: auto 1fr auto auto; color: #eaf3f0; background: radial-gradient(500px 260px at 80% 0%, rgba(201, 168, 76, .2), transparent 70%), #06120f; opacity: 0; transform: scale(.96); transition: opacity .6s, transform .6s var(--msd-ease); }
.msd .wt-tv.is-on { opacity: 1; transform: none; }
.msd .wt-tv__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 30px 0; }
.msd .wt-tv__head b { font-size: 18px; }
.msd .wt-tv__head small { color: rgba(234, 243, 240, .6); }
.msd .wt-tv__clock { font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; }
.msd .wt-tv__next { display: grid; justify-items: center; align-content: center; }
.msd .wt-tv__next small { letter-spacing: .25em; color: rgba(234, 243, 240, .6); }
.msd .wt-tv__next b { font-size: 34px; color: #f3d68a; line-height: 1.1; }
.msd .wt-tv__next strong { font-size: 64px; font-variant-numeric: tabular-nums; line-height: 1; }
.msd .wt-tv__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 0 30px 16px; }
.msd .wt-tv__grid span { display: grid; gap: 2px; padding: 12px 6px; text-align: center; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 13px; }
.msd .wt-tv__grid b { font-size: 20px; }
.msd .wt-tv__grid .is-on { background: #f3d68a; color: #1d1606; }
.msd .wt-tv__ticker { overflow: hidden; white-space: nowrap; padding: 9px 0; background: rgba(243, 214, 138, .16); font-size: 13px; }
.msd .wt-tv__ticker span { display: inline-block; padding-left: 100%; animation: msd-ticker 18s linear infinite; }
.msd .wt-cursor { position: absolute; left: 0; top: 0; z-index: 4; width: 26px; height: 26px; pointer-events: none; transition: opacity .3s; will-change: transform; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.msd .wt-cursor svg { position: relative; z-index: 1; width: 100%; height: 100%; }
.msd .wt-cursor i { position: absolute; left: -14px; top: -14px; width: 32px; height: 32px; border-radius: 50%; background: rgba(201, 168, 76, .55); transform: scale(0); opacity: 0; }
.msd .wt-cursor.is-click i { animation: msd-click .5s ease-out; }
@keyframes msd-click { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.msd .wt-cursor.is-hidden { opacity: 0; }

/* Bangla typography */
.msd:lang(bn), :lang(bn) .msd { --msd-font: "Hind Siliguri", "Inter", system-ui, sans-serif; --msd-font-display: "Hind Siliguri", "Space Grotesk", system-ui, sans-serif; }
/* Readscope type: display face for headings. */
.msd .msd-h1, .msd .msd-h2, .msd .msd-mcard__title { font-family: var(--msd-font-display); }
:lang(bn) .msd .msd-h1, :lang(bn) .msd .msd-h2, .msd:lang(bn) .msd-h1, .msd:lang(bn) .msd-h2 { letter-spacing: 0; line-height: 1.25; }
:lang(bn) .msd .msd-h1, .msd:lang(bn) .msd-h1 { font-size: clamp(2.1rem, 5.2vw, 4rem); }
:lang(bn) .msd .msd-eyebrow, .msd:lang(bn) .msd-eyebrow { letter-spacing: .03em; text-transform: none; }
:lang(bn) .msd .msd-badge, .msd:lang(bn) .msd-badge { letter-spacing: .02em; }
.msd .msd-langswitch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--msd-line); background: var(--msd-surface); }
.msd .msd-langswitch a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--msd-muted); }
.msd .msd-langswitch a.is-active { background: var(--msd-teal); color: #fff; }

@media (max-width: 980px) {
	.msd .msd-wt__chapters { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scrollbar-width: none; }
}
@media (max-width: 680px) {
	.msd .msd-wt__chapters button small, .msd .msd-wt__chapters button em { display: none; }
	.msd .msd-wt__chapters { grid-template-columns: repeat(5, minmax(110px, 1fr)); }
	.msd .msd-wt__big { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
	.msd .msd-langswitch a { padding: 0 9px; height: 30px; }
}
@media (max-width: 680px) {
	.msd .msd-wt__caption { bottom: 6px; max-width: 94%; padding: 5px 10px; font-size: .64rem; line-height: 1.35; }
	.msd .msd-wt__frame { border-radius: 14px; }
}
@media (max-width: 680px) {
	.msd .msd-wt__chapters .msd-wt__ic { display: none; }
	.msd .msd-wt__chapters button { justify-content: center; text-align: center; padding: 10px 8px; }
}

/* Pricing: Annual / Lifetime switch */
.msd .msd-billing-wrap { display: flex; justify-content: center; margin: 0 0 28px; }
.msd .msd-billing { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--msd-surface-2); border: 1px solid var(--msd-line); }
.msd .msd-billing__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; font-size: .92rem; font-weight: 600; color: var(--msd-muted); transition: background .2s, color .2s, box-shadow .2s; }
.msd .msd-billing__btn:hover { color: var(--msd-ink); }
.msd .msd-billing__btn[aria-pressed="true"] { background: var(--msd-surface); color: var(--msd-ink); box-shadow: var(--msd-shadow-sm); }
.msd .msd-billing__btn:focus-visible { outline: 2px solid var(--msd-teal); outline-offset: 2px; }
.msd .msd-billing__chip { font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; background: var(--msd-gold-soft); color: var(--msd-gold-2); }
.msd .msd-plan__price b, .msd .msd-plan__price small, .msd .msd-plan__note { transition: opacity .14s ease, transform .14s ease; }
.msd .msd-plan__price.is-swapping b, .msd .msd-plan__price.is-swapping small, .msd .msd-plan__note.is-swapping { opacity: 0; transform: translateY(6px); }
@media (prefers-reduced-motion: reduce) {
	.msd .msd-plan__price b, .msd .msd-plan__price small, .msd .msd-plan__note { transition: none; }
	.msd .msd-plan__price.is-swapping b, .msd .msd-plan__price.is-swapping small, .msd .msd-plan__note.is-swapping { transform: none; }
}
@media (max-width: 480px) { .msd .msd-billing__btn { padding: 0 14px; font-size: .86rem; } }
