/* Madani Muzakarah Library — Madinah-inspired theme (green dome, gold, cream). */
:root {
	--mm-bg: #FAF7F0;
	--mm-bg-alt: #F2EDE1;
	--mm-surface: #FFFFFF;
	--mm-ink: #1C2B26;
	--mm-ink-soft: #4E5E57;
	--mm-muted: #7A8781;
	--mm-green-950: #042A20;
	--mm-green-900: #063D2F;
	--mm-green-800: #034E3A;
	--mm-green-700: #0B5D40;
	--mm-green-600: #178E66;
	--mm-dome: #2E9A63;
	--mm-green-50: #E7F3EC;
	--mm-gold: #C9A24A;
	--mm-gold-600: #B08A34;
	--mm-gold-100: #F5EAD0;
	--mm-line: rgba(6, 61, 47, .12);
	--mm-shadow: 0 1px 2px rgba(6, 61, 47, .06), 0 8px 24px rgba(6, 61, 47, .08);
	--mm-shadow-lg: 0 24px 60px rgba(6, 61, 47, .16);
	--mm-radius: 20px;
	--mm-radius-sm: 12px;
	--mm-font: 'Google Sans', 'Noto Sans Bengali', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mm-font-ar: 'Noto Naskh Arabic', 'Google Sans', serif;
	--mm-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 8l5.9 8.1 9.9-2-2 9.9L48 28l-6.2 4 2 9.9-9.9-2L28 48l-5.9-8.1-9.9 2 2-9.9L8 28l6.2-4-2-9.9 9.9 2z' fill='none' stroke='%23C9A24A' stroke-opacity='.22' stroke-width='1'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
body.mm-body {
	margin: 0;
	background: var(--mm-bg);
	color: var(--mm-ink);
	font-family: var(--mm-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.mm-app *, .mm-app *::before, .mm-app *::after { box-sizing: border-box; }
.mm-app { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.mm-app img { max-width: 100%; display: block; }
.mm-app a { color: inherit; text-decoration: none; }
.mm-app h1, .mm-app h2, .mm-app h3 { font-family: var(--mm-font); margin: 0; line-height: 1.25; letter-spacing: 0; }
.mm-app p { margin: 0; }
.mm-app button, .mm-app input, .mm-app select { font: inherit; color: inherit; }
.mm-main { flex: 1; }
/* Inside a theme's header/footer (e.g. Madani Theme). */
.mm-app--embedded { min-height: 0; display: block; }
.mm-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.mm-muted { color: var(--mm-muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--mm-gold); outline-offset: 2px; }

/* ---------- buttons ---------- */
.mm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 22px; border-radius: 999px; border: 1.5px solid transparent;
	font-weight: 600; font-size: 16px; line-height: 1.2; cursor: pointer; white-space: nowrap;
	transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.mm-btn:hover { transform: translateY(-1px); }
.mm-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.mm-btn--sm { padding: 8px 16px; font-size: 14.5px; }
.mm-btn--lg { padding: 14px 28px; font-size: 17px; }
.mm-btn--block { width: 100%; }
.mm-btn--primary { background: linear-gradient(135deg, var(--mm-green-600), var(--mm-green-800)); color: #fff !important; box-shadow: 0 6px 18px rgba(3, 78, 58, .25); }
.mm-btn--primary:hover { box-shadow: 0 10px 26px rgba(3, 78, 58, .32); }
.mm-btn--outline { background: #fff; color: var(--mm-green-800) !important; border-color: rgba(3, 78, 58, .25); }
.mm-btn--outline:hover { border-color: var(--mm-green-800); }
.mm-btn--ghost { background: transparent; color: var(--mm-green-800) !important; }
.mm-btn--ghost:hover { background: rgba(23, 142, 102, .08); }
.mm-btn--gold { background: linear-gradient(135deg, #E2C278, var(--mm-gold-600)); color: var(--mm-green-950) !important; box-shadow: 0 6px 18px rgba(176, 138, 52, .3); }
.mm-btn--ghost-light { background: rgba(255, 255, 255, .12); color: #fff !important; border-color: rgba(255, 255, 255, .3); }
.mm-link { background: none; border: 0; padding: 0; color: var(--mm-green-700); font-weight: 600; cursor: pointer; }
.mm-link:hover { text-decoration: underline; }

/* ---------- header ---------- */
.mm-header { position: sticky; top: 0; z-index: 50; padding: 14px 16px 0; }
.mm-header__inner {
	max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 20px;
	padding: 10px 12px 10px 16px; border-radius: 999px;
	background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
	border: 1px solid var(--mm-line); box-shadow: var(--mm-shadow);
}
.mm-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mm-logo { width: 40px; height: 40px; flex-shrink: 0; }
.mm-logo-full { display: block; height: 64px; width: auto; max-width: none; flex-shrink: 0; }
.mm-logo-full--footer { height: 84px; }
.mm-modal__logo { display: block; height: 88px; width: auto; }
.mm-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.mm-brand__name { font-weight: 700; font-size: 18px; color: var(--mm-green-900); }
.mm-brand__sub { font-size: 12px; color: var(--mm-gold-600); font-weight: 500; letter-spacing: .02em; }
.mm-nav { display: flex; gap: 4px; margin-left: auto; }
.mm-nav__link { padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--mm-ink-soft); transition: background .2s, color .2s; }
.mm-nav__link:hover { background: rgba(23, 142, 102, .08); color: var(--mm-green-800); }
.mm-nav__link.is-active { background: var(--mm-green-50); color: var(--mm-green-800); font-weight: 700; }
.mm-nav__logout { color: var(--mm-muted); }
.mm-header__actions { display: flex; align-items: center; gap: 8px; }
.mm-goalpill { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--mm-gold-100); color: var(--mm-green-900); font-size: 14px; white-space: nowrap; }
.mm-goalpill__ring { --p: 0; width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(var(--mm-green-600) calc(var(--p) * 1%), rgba(6, 61, 47, .12) 0); position: relative; }
.mm-goalpill__ring::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--mm-gold-100); }
.mm-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--mm-green-600), var(--mm-green-800)); color: #fff; font-weight: 700; flex-shrink: 0; }
.mm-avatar--sm { width: 30px; height: 30px; font-size: 13px; }
.mm-burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(23, 142, 102, .1); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.mm-burger span { width: 18px; height: 2px; border-radius: 2px; background: var(--mm-green-900); }

/* ---------- hero ---------- */
.mm-hero { padding: 56px 0 72px; position: relative; }
.mm-hero::before { content: ''; position: absolute; inset: 0; background: var(--mm-pattern); opacity: .7; mask-image: linear-gradient(to bottom, #000, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.mm-hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.mm-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--mm-line); color: var(--mm-green-800); font-size: 14px; font-weight: 500; box-shadow: var(--mm-shadow); }
.mm-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mm-dome); box-shadow: 0 0 0 4px rgba(46, 154, 99, .18); }
.mm-hero__title { margin-top: 20px !important; font-size: clamp(36px, 5vw, 58px); font-weight: 700; color: var(--mm-green-900); }
.mm-hero__hl { display: block; font-size: .56em; margin-top: 10px; color: var(--mm-green-600); font-weight: 600; }
.mm-hero__hl::after { content: ''; display: block; width: 120px; height: 5px; border-radius: 4px; margin-top: 14px; background: linear-gradient(90deg, var(--mm-gold), transparent); }
.mm-hero__text { margin-top: 18px !important; font-size: 17.5px; color: var(--mm-ink-soft); max-width: 560px; }
.mm-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mm-hero__proof { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; padding: 12px 20px 12px 12px; border-radius: 18px; background: #fff; border: 1px solid var(--mm-line); box-shadow: var(--mm-shadow); }
.mm-hero__proof-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--mm-green-50); color: var(--mm-green-700); }
.mm-hero__proof-icon svg { width: 22px; }
.mm-hero__proof strong { display: block; font-size: 19px; color: var(--mm-green-900); }
.mm-hero__proof span { font-size: 14px; color: var(--mm-muted); }
.mm-hero__art { position: relative; }
.mm-hero__art::before { content: ''; position: absolute; inset: -18px -8px 26px 30px; border-radius: 34px; background: linear-gradient(135deg, var(--mm-green-600), var(--mm-green-900)); transform: rotate(3deg); }
.mm-hero__frame { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--mm-shadow-lg); border: 6px solid #fff; background: #fff; }
.mm-scene { width: 100%; height: auto; display: block; }
.mm-float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: #fff; box-shadow: var(--mm-shadow-lg); border: 1px solid var(--mm-line); font-size: 13.5px; }
.mm-float strong { display: block; font-size: 15px; color: var(--mm-green-900); }
.mm-float span { color: var(--mm-muted); }
.mm-float--goal { left: -28px; bottom: 36px; }
.mm-float--next { right: -6px; top: 26px; }
.mm-float__ring { --p: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--mm-green-600) calc(var(--p) * 1%), var(--mm-green-50) 0); position: relative; }
.mm-float__ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.mm-float__ring span { position: relative; font-weight: 700; color: var(--mm-green-800) !important; font-size: 12px; }
.mm-float__play { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #E2C278, var(--mm-gold-600)); color: var(--mm-green-950) !important; }
.mm-float__play svg { width: 20px; }

/* ---------- stats band ---------- */
.mm-stats { margin-top: -24px; position: relative; z-index: 2; }
.mm-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: var(--mm-radius); border: 1px solid var(--mm-line); box-shadow: var(--mm-shadow); overflow: hidden; }
.mm-stat { padding: 22px 24px; text-align: center; border-right: 1px solid var(--mm-line); }
.mm-stat:last-child { border-right: 0; }
.mm-stat strong { display: block; font-size: 30px; color: var(--mm-green-800); font-weight: 700; }
.mm-stat span { font-size: 14.5px; color: var(--mm-ink-soft); }

/* ---------- section heads ---------- */
.mm-section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.mm-section-head--row { display: flex; align-items: end; justify-content: space-between; text-align: left; max-width: none; gap: 16px; flex-wrap: wrap; }
.mm-eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--mm-gold); letter-spacing: .04em; margin-bottom: 10px; }
.mm-eyebrow--dark { color: var(--mm-gold-600); }
.mm-section-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; color: var(--mm-green-900); }
.mm-section-head p { margin-top: 12px; color: var(--mm-ink-soft); font-size: 17px; }
.mm-section-head--light .mm-section-title { color: #fff; }
.mm-section-head--light p { color: rgba(255, 255, 255, .78); }

/* ---------- how (dark green) ---------- */
.mm-how { margin-top: 88px; padding: 88px 0; background: radial-gradient(1200px 400px at 50% -10%, rgba(46, 154, 99, .35), transparent), var(--mm-green-900); position: relative; overflow: hidden; }
.mm-how::before { content: ''; position: absolute; inset: 0; background: var(--mm-pattern); opacity: .5; pointer-events: none; }
.mm-how .mm-container { position: relative; }
.mm-how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mm-how-card { padding: 30px 28px; border-radius: var(--mm-radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff; transition: transform .2s, background .2s; }
.mm-how-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .09); }
.mm-how-card__num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #E2C278, var(--mm-gold-600)); color: var(--mm-green-950); font-weight: 700; font-size: 24px; margin-bottom: 20px; }
.mm-how-card h3 { font-size: 22px; font-weight: 700; color: #fff; }
.mm-how-card p { margin-top: 10px; color: rgba(255, 255, 255, .75); }

/* ---------- features ---------- */
.mm-features { padding: 88px 0; }
.mm-features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mm-feature { padding: 28px 24px; border-radius: var(--mm-radius); background: #fff; border: 1px solid var(--mm-line); box-shadow: var(--mm-shadow); }
.mm-feature__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--mm-green-50); color: var(--mm-green-700); margin-bottom: 18px; }
.mm-feature__icon svg { width: 26px; height: 26px; }
.mm-feature h3 { font-size: 19px; font-weight: 700; color: var(--mm-green-900); }
.mm-feature p { margin-top: 8px; color: var(--mm-ink-soft); font-size: 15px; }

/* ---------- categories ---------- */
.mm-cats { padding: 88px 0; background: var(--mm-bg-alt); }
.mm-cats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.mm-cat { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: var(--mm-radius); background: #fff; border: 1px solid var(--mm-line); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.mm-cat::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--mm-pattern), var(--mm-gold-100); opacity: .8; }
.mm-cat:hover { transform: translateY(-4px); box-shadow: var(--mm-shadow-lg); }
.mm-cat__count { position: relative; z-index: 1; font-size: 34px; font-weight: 700; color: var(--mm-green-700); }
.mm-cat__count small { font-size: 15px; color: var(--mm-muted); font-weight: 500; }
.mm-cat h3 { margin-top: 6px !important; font-size: 21px; font-weight: 700; color: var(--mm-green-900); }
.mm-cat p { margin-top: 8px; color: var(--mm-ink-soft); font-size: 15px; flex: 1; }
.mm-cat__range { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--mm-line); font-size: 13.5px; color: var(--mm-gold-600); font-weight: 500; }

/* ---------- slider dots (phones only) ---------- */
.mm-dots { display: none; }

/* ---------- latest ---------- */
.mm-latest { padding: 88px 0; }

/* ---------- vision band ---------- */
.mm-vision { padding: 88px 0; background: linear-gradient(135deg, var(--mm-green-800), var(--mm-green-950)); color: #fff; text-align: center; position: relative; overflow: hidden; }
.mm-vision::before { content: ''; position: absolute; inset: 0; background: var(--mm-pattern); opacity: .6; }
.mm-vision__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.mm-vision__arabic { font-family: var(--mm-font-ar); font-size: clamp(30px, 4.4vw, 50px); color: #E9CF8E; line-height: 1.7; font-weight: 700; }
.mm-vision__bn { margin-top: 10px !important; font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; }
.mm-vision__ref { margin: 8px 0 30px; color: rgba(255, 255, 255, .65); font-size: 14.5px; }

/* ---------- footer ---------- */
.mm-footer { background: var(--mm-green-950); color: rgba(255, 255, 255, .72); padding: 34px 0; font-size: 14px; }
.mm-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mm-footer__brand { display: flex; align-items: center; gap: 12px; }
.mm-footer__brand strong { color: #fff; font-size: 16px; }
.mm-footer__copy { color: rgba(255, 255, 255, .5); display: flex; gap: 6px 24px; flex-wrap: wrap; }
.mm-footer__credit { color: rgba(233, 207, 142, .8); }

/* ---------- auth ---------- */
.mm-auth { padding: 44px 0 80px; }
.mm-auth__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border-radius: 28px; border: 1px solid var(--mm-line); box-shadow: var(--mm-shadow-lg); overflow: hidden; max-width: 1040px; }
.mm-auth__art { position: relative; background: var(--mm-green-900); display: flex; flex-direction: column; justify-content: flex-end; }
.mm-auth__art .mm-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mm-auth__quote { position: relative; margin: 24px; padding: 18px 20px; border-radius: 18px; background: rgba(4, 42, 32, .82); backdrop-filter: blur(6px); color: #fff; }
.mm-auth__quote strong { display: block; font-size: 18px; color: #E9CF8E; }
.mm-auth__quote span { font-size: 14.5px; color: rgba(255, 255, 255, .8); }
.mm-auth__card { padding: 40px 44px 44px; }
.mm-tabs { display: flex; padding: 5px; border-radius: 999px; background: var(--mm-bg-alt); margin-bottom: 26px; }
.mm-tabs__btn { flex: 1; padding: 10px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; color: var(--mm-ink-soft); cursor: pointer; }
.mm-tabs__btn[aria-selected="true"] { background: #fff; color: var(--mm-green-800); box-shadow: var(--mm-shadow); }
.mm-auth__card[data-tab="login"] [data-tab-panel="register"],
.mm-auth__card[data-tab="register"] [data-tab-panel="login"] { display: none; }
.mm-form__title { font-size: 28px; font-weight: 700; color: var(--mm-green-900); }
.mm-form__sub { margin: 4px 0 22px !important; color: var(--mm-muted); }
.mm-field { display: block; margin: 0 0 16px; padding: 0; border: 0; }
.mm-field > span, .mm-field legend { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 7px; color: var(--mm-ink); padding: 0; }
.mm-field small { color: var(--mm-muted); font-weight: 400; }
.mm-field input { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--mm-line); background: var(--mm-bg); font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s; }
.mm-field input:focus { outline: none; border-color: var(--mm-green-600); background: #fff; box-shadow: 0 0 0 4px rgba(23, 142, 102, .12); }
.mm-form__row { display: flex; justify-content: space-between; align-items: center; margin: -2px 0 20px; font-size: 14.5px; }
.mm-form__row a { color: var(--mm-green-700); font-weight: 500; }
.mm-check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.mm-check input { accent-color: var(--mm-green-700); width: 17px; height: 17px; }
.mm-form__switch { margin-top: 18px !important; text-align: center; color: var(--mm-muted); font-size: 15px; }
.mm-alert { padding: 12px 16px; border-radius: 14px; background: #FDECEC; color: #9B2C2C; border: 1px solid #F5C6C6; margin-bottom: 18px; font-size: 15px; }

/* chips */
.mm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-chip { position: relative; cursor: pointer; }
.mm-chip input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.mm-chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--mm-line); background: #fff; font-size: 14.5px; font-weight: 500; transition: all .15s; }
.mm-chip input:checked + span { background: var(--mm-green-800); border-color: var(--mm-green-800); color: #fff; }
.mm-chip input:focus-visible + span { outline: 3px solid var(--mm-gold); outline-offset: 2px; }
.mm-chip--input input { margin: 0; line-height: normal; width: 84px; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--mm-line); background: #fff; font-size: 14.5px; }
.mm-goalpick { margin-bottom: 22px; }
.mm-goalhint { margin-top: 8px !important; font-size: 13px; color: var(--mm-gold-600); }
.mm-goalnote { margin: -8px 0 18px; padding: 12px 14px; border-radius: 14px; background: var(--mm-gold-100); border: 1px solid rgba(201, 162, 74, .45); color: #5E4712; font-size: 14.5px; }
.mm-goalnote b { color: var(--mm-green-800); }

/* ---------- library ---------- */
.mm-lib, .mm-dash { padding: 34px 0 80px; }
.mm-lib__top, .mm-dash__head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.mm-lib__title { font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: var(--mm-green-900); }
.mm-lib__sub { color: var(--mm-muted); margin-top: 4px !important; }
.mm-resume { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 18px; background: #fff; border: 1px solid var(--mm-line); box-shadow: var(--mm-shadow); max-width: 460px; transition: transform .2s; }
.mm-resume:hover { transform: translateY(-2px); }
.mm-resume__thumb { position: relative; width: 120px; flex-shrink: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: var(--mm-bg-alt); }
.mm-resume__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mm-resume__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4, 42, 32, .35); color: #fff; }
.mm-resume__play svg { width: 30px; }
.mm-resume__body small { display: block; color: var(--mm-gold-600); font-weight: 600; font-size: 13px; }
.mm-resume__body strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; color: var(--mm-green-900); line-height: 1.4; }

.mm-toolbar { position: sticky; top: 86px; z-index: 20; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px; margin: 0 -10px 10px; border-radius: 18px; background: rgba(250, 247, 240, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mm-chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.mm-chips--scroll::-webkit-scrollbar { display: none; }
.mm-chip-btn { padding: 8px 16px; border-radius: 10px; border: 0; background: rgba(6, 61, 47, .06); font-weight: 500; font-size: 14.5px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.mm-chip-btn:hover { background: rgba(6, 61, 47, .1); }
.mm-chip-btn.is-active { background: var(--mm-green-900); color: #fff; }
.mm-toolbar__right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mm-search { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 42px; border-radius: 999px; background: #fff; border: 1.5px solid var(--mm-line); min-width: 250px; }
.mm-search:focus-within { border-color: var(--mm-green-600); box-shadow: 0 0 0 4px rgba(23, 142, 102, .12); }
.mm-search svg { width: 18px; color: var(--mm-muted); flex-shrink: 0; }
.mm-search input, .mm-search input:focus { border: 0; outline: 0; background: transparent; width: 100%; font-size: 15px; padding: 0; margin: 0; border-radius: 0; box-shadow: none; min-height: 0; }
.mm-select { width: auto; margin: 0; line-height: normal; color: var(--mm-ink); height: 42px; padding: 0 36px 0 14px; border-radius: 999px; border: 1.5px solid var(--mm-line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23063D2F' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; -webkit-appearance: none; font-size: 14.5px; cursor: pointer; }
.mm-select--sm { height: 34px; font-size: 13.5px; padding-right: 30px; background-position: right 10px center; }
.mm-count { color: var(--mm-muted); font-size: 14px; margin: 4px 0 14px !important; min-height: 1.5em; }

/* YouTube-style card grid */
.mm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 18px; }
.mm-card { display: flex; flex-direction: column; gap: 10px; border-radius: 16px; transition: transform .2s; }
.mm-card:hover { transform: translateY(-3px); }
.mm-card__thumb { position: relative; display: block; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: var(--mm-bg-alt); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.mm-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mm-card:hover .mm-card__thumb img { transform: scale(1.04); }
.mm-card__dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 12.5px; font-weight: 500; letter-spacing: .02em; }
.mm-card__done { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; background: var(--mm-green-800); color: #fff; font-size: 12px; font-weight: 600; }
.mm-card__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .45); }
.mm-card__progress span { display: block; height: 100%; background: var(--mm-gold); }
.mm-card.is-done .mm-card__thumb img { opacity: .78; }
.mm-card__body { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.mm-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 15.5px; line-height: 1.45; color: var(--mm-ink); margin-bottom: 4px; }
.mm-card__meta { font-size: 13.5px; color: var(--mm-muted); line-height: 1.5; }
.mm-card__ep { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 6px; background: var(--mm-gold-100); color: var(--mm-gold-600); font-weight: 600; font-size: 12.5px; }

.mm-loader { display: flex; justify-content: center; gap: 6px; padding: 30px 0; }
.mm-loader span { width: 9px; height: 9px; border-radius: 50%; background: var(--mm-green-600); animation: mm-bounce 1s infinite ease-in-out; }
.mm-loader span:nth-child(2) { animation-delay: .15s; }
.mm-loader span:nth-child(3) { animation-delay: .3s; }
.mm-loader--sm { padding: 14px 0; }
@keyframes mm-bounce { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.mm-empty { text-align: center; padding: 60px 0; color: var(--mm-muted); }

/* ---------- watch ---------- */
.mm-watch { padding: 22px 0 70px; }
.mm-watch__grid { max-width: 1720px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 26px; align-items: start; }
.mm-player { border-radius: 18px; overflow: hidden; background: #000; box-shadow: var(--mm-shadow-lg); }
.mm-player__ratio { position: relative; aspect-ratio: 16/9; }
.mm-player__ratio iframe, #mm-yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Covers YouTube's "More videos" shelf while paused, leaving the control bar usable. */
.mm-player__shield { position: absolute; left: 0; right: 0; top: 0; bottom: 54px; display: grid; place-items: center; background: linear-gradient(to bottom, rgba(4, 42, 32, .55), rgba(4, 42, 32, .75)); z-index: 2; }
/* Always-on blocker over the bottom-right "More videos" button and YouTube logo, which open suggestions / youtube.com. */
.mm-player__mask { position: absolute; right: 0; bottom: 0; width: min(270px, 45%); height: 42px; z-index: 2; background: transparent; }
/* Same for the title/channel link in the top-left corner. */
.mm-player__mask--top { top: 0; left: 0; right: auto; bottom: auto; width: 62%; height: 52px; }
.mm-player__bigplay { width: 84px; height: 84px; border-radius: 50%; border: 0; display: grid; place-items: center; background: linear-gradient(135deg, #E2C278, var(--mm-gold-600)); color: var(--mm-green-950); cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .15s; }
.mm-player__bigplay:hover { transform: scale(1.06); }
.mm-player__bigplay svg { width: 38px; margin-left: 4px; }
.mm-player__end { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 20px; background: var(--mm-pattern), radial-gradient(circle at 50% 30%, var(--mm-green-800), var(--mm-green-950)); color: #fff; text-align: center; }
.mm-player__end-inner { max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mm-player__end small { color: #E9CF8E; font-weight: 600; letter-spacing: .04em; }
.mm-player__end strong { font-size: clamp(16px, 2vw, 21px); line-height: 1.4; }
.mm-player__end-actions { display: flex; gap: 10px; margin-top: 6px; }
.mm-countdown { position: relative; width: 56px; height: 56px; display: grid; place-items: center; margin: 4px 0; }
.mm-countdown svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.mm-countdown circle { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 4; }
.mm-countdown .mm-countdown__bar { stroke: var(--mm-gold); stroke-dasharray: 132; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; stroke-linecap: round; }
.mm-countdown span { font-size: 20px; font-weight: 700; }

.mm-watch__info { padding: 18px 4px 0; }
.mm-watch__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.mm-tag { padding: 4px 12px; border-radius: 999px; background: var(--mm-green-800); color: #fff; font-size: 13px; font-weight: 600; }
.mm-tag--soft { background: var(--mm-gold-100); color: var(--mm-gold-600); }
.mm-tag--done { background: var(--mm-green-50); color: var(--mm-green-700); }
.mm-watch__title { font-size: clamp(19px, 2vw, 23px); font-weight: 700; color: var(--mm-ink); line-height: 1.4; }
.mm-watch__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; color: var(--mm-ink-soft); font-size: 14.5px; }
.mm-watch__channel { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--mm-ink); }
.mm-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--mm-muted); }
.mm-watch__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 0; border-top: 1px solid var(--mm-line); border-bottom: 1px solid var(--mm-line); flex-wrap: wrap; }
.mm-watch__nav { display: flex; gap: 8px; }
.mm-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; font-size: 14.5px; }
.mm-switch input { position: absolute; opacity: 0; }
.mm-switch__track { width: 42px; height: 24px; border-radius: 999px; background: rgba(6, 61, 47, .2); position: relative; transition: background .2s; }
.mm-switch__thumb { 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 .2s; }
.mm-switch input:checked + .mm-switch__track { background: var(--mm-green-600); }
.mm-switch input:checked + .mm-switch__track .mm-switch__thumb { transform: translateX(18px); }
.mm-switch input:focus-visible + .mm-switch__track { outline: 3px solid var(--mm-gold); outline-offset: 2px; }

.mm-today { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 16px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--mm-line); box-shadow: var(--mm-shadow); }
.mm-today.is-met { background: linear-gradient(135deg, var(--mm-green-50), #fff); border-color: rgba(23, 142, 102, .3); }
.mm-today__ring { --p: 0; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: conic-gradient(var(--mm-green-600) calc(var(--p) * 1%), var(--mm-green-50) 0); position: relative; transition: background .4s; }
.mm-today__ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.mm-today__ring span { position: relative; font-size: 13px; font-weight: 700; color: var(--mm-green-800); }
.mm-today__text { flex: 1; }
.mm-today__text strong { display: block; color: var(--mm-green-900); }
.mm-today__text span { color: var(--mm-ink-soft); font-size: 14.5px; }

.mm-upnext { position: sticky; top: 92px; background: #fff; border-radius: 18px; border: 1px solid var(--mm-line); box-shadow: var(--mm-shadow); overflow: hidden; }
.mm-upnext__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--mm-line); background: var(--mm-pattern), linear-gradient(135deg, var(--mm-green-800), var(--mm-green-900)); color: #fff; }
.mm-upnext__head .mm-select { color: var(--mm-ink); }
.mm-upnext__head strong { display: block; font-size: 16px; }
.mm-upnext__head small { color: rgba(255, 255, 255, .7); font-size: 12.5px; }
.mm-upnext__list { max-height: calc(100vh - 190px); overflow-y: auto; padding: 8px; scrollbar-width: thin; }
.mm-upnext__end { padding: 16px; text-align: center; font-size: 14px; }
.mm-up { display: grid; grid-template-columns: 26px 150px 1fr; gap: 10px; align-items: start; padding: 8px 6px; border-radius: 12px; transition: background .15s; }
.mm-up:hover { background: var(--mm-bg); }
.mm-up__num { font-size: 12px; color: var(--mm-muted); text-align: center; padding-top: 30px; }
.mm-up__thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--mm-bg-alt); }
.mm-up__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mm-up__thumb .mm-card__dur { right: 5px; bottom: 5px; font-size: 11px; padding: 1px 5px; }
.mm-up__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 3px; }
.mm-up__body { display: flex; flex-direction: column; min-width: 0; }
.mm-up.is-done .mm-up__thumb img { opacity: .7; }

/* ---------- dashboard ---------- */
.mm-panel { background: #fff; border-radius: var(--mm-radius); border: 1px solid var(--mm-line); box-shadow: var(--mm-shadow); padding: 24px; }
.mm-panel__title { font-size: 19px; font-weight: 700; color: var(--mm-green-900); margin-bottom: 18px !important; }
.mm-dash__top { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.mm-goalcard { display: flex; gap: 28px; align-items: center; background: var(--mm-pattern), linear-gradient(135deg, #fff, var(--mm-gold-100)); }
.mm-bigring { --p: 0; width: 176px; height: 176px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: conic-gradient(var(--mm-green-600) calc(var(--p) * 1%), rgba(6, 61, 47, .08) 0); position: relative; }
.mm-bigring::before { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--mm-line); }
.mm-bigring__inner { position: relative; text-align: center; }
.mm-bigring__inner strong { display: block; font-size: 38px; color: var(--mm-green-800); line-height: 1; }
.mm-bigring__inner span { font-size: 13.5px; color: var(--mm-muted); }
.mm-goalcard__text h2 { font-size: 40px; font-weight: 700; color: var(--mm-green-900); }
.mm-goalcard__text h2 small { font-size: 18px; color: var(--mm-muted); font-weight: 500; }
.mm-goalcard__text p { color: var(--mm-ink-soft); margin-top: 4px; }
.mm-goalform { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mm-goalform__label { width: 100%; font-weight: 600; font-size: 14.5px; }
.mm-goalform__msg { font-size: 14px; color: var(--mm-green-700); }
.mm-kpis { display: grid; gap: 14px; }
.mm-kpi { display: flex; flex-direction: column; padding: 18px 22px; }
.mm-kpi__label { font-size: 14px; color: var(--mm-muted); font-weight: 500; }
.mm-kpi strong { font-size: 28px; color: var(--mm-green-900); line-height: 1.3; }
.mm-kpi__sub { font-size: 13.5px; color: var(--mm-ink-soft); }
.mm-kpi--gold { background: linear-gradient(135deg, #FFF8E6, #fff); border-color: rgba(201, 162, 74, .35); }
.mm-kpi--gold strong { color: var(--mm-gold-600); }
.mm-chart { margin-top: 20px; }
.mm-chart__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.mm-chart__head h2 { font-size: 19px; font-weight: 700; color: var(--mm-green-900); }
.mm-chart__legend { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mm-ink-soft); flex-wrap: wrap; }
.mm-lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; }
.mm-lg--met { background: var(--mm-green-600); }
.mm-lg--part { background: #9FD3B8; }
.mm-lg--goal { height: 0; border-top: 2px dashed var(--mm-gold-600); border-radius: 0; }
.mm-chart__svg { width: 100%; height: 200px; display: block; }
.mm-bar--met { fill: var(--mm-green-600); }
.mm-bar--part { fill: #9FD3B8; }
.mm-bar--none { fill: rgba(6, 61, 47, .1); }
.mm-goal-line { stroke: var(--mm-gold-600); stroke-width: 2; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.mm-chart__axis { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--mm-muted); margin-top: 6px; }
.mm-dash__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.mm-progress + .mm-progress { margin-top: 16px; }
.mm-progress__row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.mm-progress__row a { font-weight: 600; color: var(--mm-green-800); }
.mm-progress__row span { color: var(--mm-muted); }
.mm-progress__bar { height: 10px; border-radius: 999px; background: var(--mm-bg-alt); overflow: hidden; }
.mm-progress__bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--mm-green-600), var(--mm-dome)); }
.mm-minilist { display: grid; gap: 10px; }
.mm-mini { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: center; padding: 6px; border-radius: 12px; }
.mm-mini:hover { background: var(--mm-bg); }
.mm-mini__thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--mm-bg-alt); }
.mm-mini__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mm-mini__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.mm-mini__body { display: flex; flex-direction: column; }

/* ---------- signup nudge (guests) ---------- */
.mm-nudge { display: flex; align-items: center; gap: 16px; padding: 14px 18px; margin: -6px 0 18px; border-radius: 18px; background: var(--mm-pattern), linear-gradient(135deg, #fff, var(--mm-gold-100)); border: 1px solid rgba(201, 162, 74, .35); }
.mm-nudge__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; background: var(--mm-green-800); color: #E9CF8E; }
.mm-nudge__icon svg { width: 24px; }
.mm-nudge strong { display: block; color: var(--mm-green-900); }
.mm-nudge span { font-size: 14.5px; color: var(--mm-ink-soft); }
.mm-nudge .mm-btn { margin-left: auto; flex-shrink: 0; }
.mm-today--guest .mm-today__ring { background: conic-gradient(var(--mm-gold) 100%, transparent 0); }
.mm-today--guest .mm-today__ring span { font-size: 12px; }

/* ---------- niyyah popup ---------- */
body.mm-modal-open { overflow: hidden; }
.mm-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; }
.mm-modal__backdrop { position: absolute; inset: 0; background: rgba(4, 42, 32, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: mm-fade .2s ease; }
.mm-modal__box { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 30px 28px 22px; border-radius: 26px; background: var(--mm-pattern), #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); text-align: center; animation: mm-rise .28s cubic-bezier(.2, 1.2, .4, 1); }
.mm-modal__box:focus { outline: none; }
.mm-modal__x { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--mm-bg-alt); color: var(--mm-ink-soft); font-size: 22px; line-height: 1; cursor: pointer; }
.mm-modal__head { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mm-modal__head .mm-logo { width: 58px; height: 58px; }
.mm-modal__head h2 { font-size: 24px; font-weight: 700; color: var(--mm-green-900); }
.mm-modal__text { margin-top: 10px !important; color: var(--mm-ink-soft); font-size: 15.5px; line-height: 1.75; }
.mm-modal__example { display: flex; gap: 10px; align-items: flex-start; text-align: left; margin: 16px 0 6px; padding: 12px 16px; border-radius: 16px; background: var(--mm-gold-100); border: 1px solid rgba(201, 162, 74, .45); color: #5E4712; font-size: 15px; line-height: 1.6; }
.mm-modal__example span { color: var(--mm-gold-600); font-size: 18px; line-height: 1.3; }
.mm-modal__example b { color: var(--mm-green-800); }
.mm-modal__label { display: block; margin: 16px 0 10px; font-weight: 600; font-size: 14.5px; color: var(--mm-ink); }
.mm-modal__chips { justify-content: center; margin-bottom: 18px; }
.mm-chip--gold span { border-color: rgba(201, 162, 74, .7); background: var(--mm-gold-100); }
.mm-chip--gold input:checked + span { background: linear-gradient(135deg, #E2C278, var(--mm-gold-600)); border-color: var(--mm-gold-600); color: var(--mm-green-950); }
.mm-modal__note { margin-top: 10px !important; font-size: 13px; color: var(--mm-muted); }
.mm-modal__msg { min-height: 1.2em; margin-top: 4px !important; font-size: 14px; color: var(--mm-green-700); }
.mm-modal__skip { margin-top: 4px; background: none; border: 0; color: var(--mm-muted); font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@keyframes mm-fade { from { opacity: 0; } }
@keyframes mm-rise { from { opacity: 0; transform: translateY(18px) scale(.97); } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
	.mm-watch__grid { grid-template-columns: minmax(0, 1fr) 340px; }
	.mm-up { grid-template-columns: 22px 120px 1fr; }
	.mm-features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
	.mm-hero__grid { grid-template-columns: 1fr; gap: 48px; }
	.mm-hero__art { max-width: 560px; margin: 0 auto; width: 100%; }
	.mm-watch__grid { grid-template-columns: 1fr; padding: 0; }
	.mm-watch__info { padding: 16px 16px 0; }
	.mm-player { border-radius: 0; }
	.mm-upnext { position: static; margin: 0 16px; }
	.mm-upnext__list { max-height: none; overflow: visible; }
	.mm-dash__top, .mm-dash__cols { grid-template-columns: 1fr; }
	.mm-kpis { grid-template-columns: repeat(3, 1fr); }
	.mm-auth__grid { grid-template-columns: 1fr; }
	.mm-auth__art { min-height: 220px; }
	.mm-auth__quote { display: none; }
}
@media (max-width: 860px) {
	.mm-burger { display: flex; }
	.mm-nav { position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); flex-direction: column; gap: 2px; padding: 10px; border-radius: 22px; background: #fff; border: 1px solid var(--mm-line); box-shadow: var(--mm-shadow-lg); display: none; }
	.mm-nav.is-open { display: flex; }
	.mm-nav__link { padding: 12px 16px; }
	.mm-header__actions { margin-left: auto; }
	.mm-how__grid { grid-template-columns: 1fr; }
	.mm-stats__grid { grid-template-columns: repeat(2, 1fr); }
	.mm-stat:nth-child(2) { border-right: 0; }
	.mm-stat:nth-child(-n+2) { border-bottom: 1px solid var(--mm-line); }
	.mm-toolbar { top: 76px; }
	.mm-toolbar__right { width: 100%; }
	.mm-search { flex: 1; min-width: 0; }
}
@media (max-width: 640px) {
	.mm-container { padding: 0 16px; }
	.mm-header { padding: 10px 10px 0; }
	.mm-header__inner { gap: 10px; padding: 8px 8px 8px 12px; }
	.mm-brand__sub, .mm-hide-sm, .mm-avatar { display: none; }
	.mm-brand__name { font-size: 16px; }
	.mm-logo { width: 36px; height: 36px; }
	.mm-app .mm-logo-full { height: 48px; }
	.mm-modal__logo { height: 72px; }
	.mm-goalpill__text { font-size: 12.5px; }
	.mm-hero { padding: 36px 0 60px; }
	.mm-hero__cta .mm-btn { flex: 1; }
	.mm-float--goal { left: 8px; bottom: -22px; }
	.mm-float--next { right: 8px; top: -18px; }
	.mm-float { padding: 10px 12px; font-size: 12px; }
	.mm-float strong { font-size: 13.5px; }
	/* "যা যা থাকছে" and "সংকলন" become swipeable sliders on phones. */
	.mm-features__grid, .mm-cats__grid {
		display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
		margin: 0 -16px; padding: 4px 16px 14px; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
	}
	.mm-features__grid::-webkit-scrollbar, .mm-cats__grid::-webkit-scrollbar { display: none; }
	.mm-feature, .mm-cat { flex: 0 0 84%; scroll-snap-align: center; }
	.mm-dots { display: flex; justify-content: center; gap: 7px; margin-top: 6px; }
	.mm-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(6, 61, 47, .2); cursor: pointer; transition: width .25s, background .25s; }
	.mm-dots button.is-active { width: 22px; background: var(--mm-green-700); }

	/* Centre every heading block on phones. */
	.mm-hero__copy { text-align: center; }
	.mm-hero__hl::after { margin-left: auto; margin-right: auto; }
	.mm-hero__text { margin-left: auto; margin-right: auto; }
	.mm-hero__cta { justify-content: center; }
	.mm-hero__proof { text-align: left; }
	.mm-hero__copy .mm-hero__proof { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
	.mm-section-head, .mm-section-head--row { text-align: center; justify-content: center; }
	.mm-section-head--row > div { width: 100%; }
	.mm-how, .mm-features, .mm-cats, .mm-latest, .mm-vision { padding: 64px 0; }
	.mm-how { margin-top: 64px; }
	.mm-grid { grid-template-columns: 1fr; gap: 22px; }
	.mm-toolbar__right .mm-select { flex: 1; }
	.mm-search { flex-basis: 100%; }
	.mm-resume { max-width: none; width: 100%; }
	.mm-nudge { flex-wrap: wrap; }
	.mm-nudge .mm-btn { margin-left: 0; width: 100%; }
	.mm-modal__box { padding: 26px 18px 18px; }
	.mm-auth { padding: 20px 0 60px; }
	.mm-auth__card { padding: 26px 20px 30px; }
	.mm-goalcard { flex-direction: column; align-items: flex-start; }
	.mm-bigring { width: 140px; height: 140px; align-self: center; }
	.mm-kpis { grid-template-columns: 1fr; }
	.mm-up { grid-template-columns: 130px 1fr; }
	.mm-up__num { display: none; }
	.mm-mini { grid-template-columns: 116px 1fr; }
	.mm-watch__bar { flex-direction: column; align-items: stretch; }
	.mm-watch__nav .mm-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.mm-app *, .mm-app *::before, .mm-app *::after { transition: none !important; animation: none !important; }
}
