/* ==========================================================================
   گروهان فناوری — استایل اصلی
   پالت: سفید و سرمه‌ای، با آبی به‌عنوان رنگ تأکیدی و سبز/قرمز صرفاً برای پیام‌های وضعیت
   ========================================================================== */

:root {
    --mh-ink: #0B1B3D;
    --mh-ink-soft: #1F3A6E;
    --mh-blue: #2F5FD9;
    --mh-blue-tint: rgba(47,95,217,.10);
    --mh-purple: #7C5CFC;
    --mh-purple-tint: rgba(124,92,252,.12);
    --mh-orange: #F2994A;
    --mh-orange-tint: rgba(242,153,74,.12);
    --mh-green: #1F9D74;
    --mh-green-tint: rgba(31,157,116,.12);
    --mh-bg: #FFFFFF;
    --mh-bg-soft: #F5F7FB;
    --mh-surface: #FFFFFF;
    --mh-amber: #2F5FD9;
    --mh-emerald: #1F9D74;
    --mh-rose: #D64550;
    --mh-border: #E3E8F2;
    --mh-text: #14203D;
    --mh-text-muted: #64708A;
    --mh-radius: 14px;
    --mh-font: 'Vazirmatn', Tahoma, sans-serif;
    --mh-sidebar-bg: #0B1330;
    --mh-sidebar-bg-soft: #141B3D;
    --mh-sidebar-text: #97A0C3;
    --mh-sidebar-text-strong: #FFFFFF;
    --mh-sidebar-border: rgba(255,255,255,.08);
}

.mh-icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.mh-icon-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--mh-blue-tint); color: var(--mh-ink);
    flex-shrink: 0;
}
.mh-icon-badge.sm { width: 36px; height: 36px; border-radius: 10px; }
.mh-icon-badge .mh-icon { width: 22px; height: 22px; }
.mh-icon-badge.sm .mh-icon { width: 18px; height: 18px; }
.mh-icon-badge.navy { background: var(--mh-ink); color: #fff; }
.mh-icon-badge.purple { background: var(--mh-purple-tint); color: var(--mh-purple); }
.mh-icon-badge.orange { background: var(--mh-orange-tint); color: var(--mh-orange); }
.mh-icon-badge.green  { background: var(--mh-green-tint);  color: var(--mh-green); }
.mh-icon-badge.blue   { background: var(--mh-blue-tint);   color: var(--mh-blue); }
.mh-icon-badge.muted  { background: var(--mh-bg-soft);      color: var(--mh-text-muted); }

* { box-sizing: border-box; }

body {
    font-family: var(--mh-font);
    background: var(--mh-bg-soft);
    color: var(--mh-text);
    margin: 0;
    line-height: 1.7;
    font-size: 16px;
}

a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

.mh-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--mh-ink);
    margin: 0 0 8px;
}

/* ---------------- هدر ---------------- */
.mh-site-header {
    background: var(--mh-surface);
    border-bottom: 1px solid var(--mh-border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.mh-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}
.mh-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--mh-ink);
}
.mh-main-nav ul { display: flex; gap: 20px; }
.mh-main-nav a { color: var(--mh-text-muted); font-weight: 500; }
.mh-main-nav a:hover { color: var(--mh-ink); }
.mh-header-auth { display: flex; gap: 10px; align-items: center; }

/* ---------------- دکمه‌ها ---------------- */
.mh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14.5px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
}
.mh-btn-primary { background: var(--mh-ink); color: #fff; }
.mh-btn-primary:hover { box-shadow: 0 6px 16px rgba(30,27,58,.25); transform: translateY(-1px); }
.mh-btn-outline { border-color: var(--mh-border); color: var(--mh-ink); background: transparent; }
.mh-btn-ghost { color: var(--mh-text-muted); }
.mh-btn-ghost:hover { color: var(--mh-rose); }
.mh-btn-full { width: 100%; margin-top: 8px; }
.mh-btn-lg { padding: 14px 28px; font-size: 16px; }

/* ---------------- لندینگ ---------------- */
.mh-hero {
    padding: 90px 0 70px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--mh-bg-soft) 100%);
    text-align: center;
}
.mh-hero h1 { font-size: 40px; max-width: 700px; margin: 0 auto 16px; }
.mh-hero p { color: var(--mh-text-muted); max-width: 560px; margin: 0 auto 28px; font-size: 17px; }

/* هیرو دوستونه صفحه اصلی */
.mh-hero-split { text-align: right; padding: 70px 0; }
.mh-hero-split-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.mh-hero-text h1 { max-width: none; margin: 0 0 14px; }
.mh-hero-text p { max-width: 480px; margin: 0 0 26px; }
.mh-hero-cta { display: flex; gap: 12px; margin-bottom: 34px; flex-wrap: wrap; }
.mh-hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.mh-hero-stats div { display: flex; flex-direction: column; }
.mh-hero-stats strong { font-size: 22px; color: var(--mh-ink); font-weight: 800; }
.mh-hero-stats span { font-size: 12.5px; color: var(--mh-text-muted); }

.mh-hero-visual { display: flex; justify-content: center; }
.mh-mock-card {
    background: var(--mh-surface); border: 1px solid var(--mh-border); border-radius: 20px;
    padding: 22px; width: 100%; max-width: 340px; box-shadow: 0 20px 50px rgba(11,27,61,.12);
}
.mh-mock-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.mh-mock-head strong { display: block; font-size: 14px; }
.mh-mock-head span { font-size: 12px; color: var(--mh-text-muted); }
.mh-mock-stats { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.mh-mock-stat { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 600; }
.mh-mock-stat .mh-icon { width: 16px; height: 16px; }
.mh-mock-stat.purple { background: var(--mh-purple-tint); color: var(--mh-purple); }
.mh-mock-stat.orange { background: var(--mh-orange-tint); color: var(--mh-orange); }
.mh-mock-stat.green { background: var(--mh-green-tint); color: var(--mh-green); }
.mh-mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.mh-mock-bars span { flex: 1; background: var(--mh-blue-tint); border-radius: 4px 4px 0 0; }
.mh-mock-bars span:last-child { background: var(--mh-blue); }

.mh-section-title { font-size: 26px; text-align: center; margin-bottom: 32px; }

.mh-features { padding: 40px 0 90px; }
.mh-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.mh-feature-card {
    background: var(--mh-surface);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    padding: 24px;
    border-right: 3px solid var(--mh-blue);
    display: block;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
}
.mh-feature-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(11,27,61,.08); }
.mh-feature-card .mh-icon-badge { margin-bottom: 14px; }
.mh-feature-card h3 { font-size: 17px; }
.mh-feature-card p { color: var(--mh-text-muted); font-size: 14.5px; margin: 0; }
.mh-feature-icon { font-size: 26px; display: inline-block; margin-bottom: 10px; }

/* ---------------- چطور کار می‌کنه ---------------- */
.mh-how-it-works { padding: 20px 0 90px; }
.mh-steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.mh-step-card { text-align: center; padding: 10px; }
.mh-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; background: var(--mh-ink); color: #fff;
    font-weight: 800; font-size: 17px; margin-bottom: 14px;
}
.mh-step-card h4 { font-size: 16px; margin-bottom: 6px; }
.mh-step-card p { color: var(--mh-text-muted); font-size: 14px; max-width: 260px; margin: 0 auto; }

/* ---------------- پیشروهای برتر ---------------- */
.mh-top-preview { padding: 0 0 90px; }
.mh-top3-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; max-width: 720px; margin: 0 auto; }
.mh-top3-card {
    background: var(--mh-surface); border: 1px solid var(--mh-border); border-radius: var(--mh-radius);
    padding: 28px 16px; text-align: center; position: relative;
}
.mh-top3-card .mh-rank-medal { position: absolute; top: 14px; left: 14px; }
.mh-top3-card .mh-avatar-lg { margin: 0 auto 10px; width: 64px; height: 64px; }
.mh-top3-card strong { display: block; font-size: 14.5px; margin-bottom: 4px; }
.mh-top3-card span { font-size: 12.5px; color: var(--mh-text-muted); }

/* ---------------- نوار فراخوان نهایی ---------------- */
.mh-cta-band {
    background: var(--mh-ink); color: #fff; text-align: center; padding: 70px 0;
}
.mh-cta-band h2 { color: #fff; font-size: 28px; margin-bottom: 10px; }
.mh-cta-band p { color: rgba(255,255,255,.7); margin-bottom: 26px; }

/* ---------------- فرم‌ها (ورود/ثبت‌نام/پروفایل) ---------------- */
/* ---------------- صفحه ورود/ثبت‌نام دوستونه ---------------- */
.mh-auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.mh-auth-brand {
    background: var(--mh-ink); color: #fff; padding: 60px 50px;
    display: flex; flex-direction: column; justify-content: center;
}
.mh-auth-logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 50px; }
.mh-auth-brand h2 { color: #fff; font-size: 30px; max-width: 380px; margin: 0 0 12px; }
.mh-auth-brand > p { color: rgba(255,255,255,.65); max-width: 360px; margin: 0 0 30px; font-size: 15px; }
.mh-auth-bullets { list-style: none; padding: 0; margin: 0 0 40px; display: flex; flex-direction: column; gap: 14px; }
.mh-auth-bullets li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: rgba(255,255,255,.9); }
.mh-auth-bullets .mh-icon { color: var(--mh-blue); flex-shrink: 0; }
.mh-auth-stats { display: flex; gap: 30px; }
.mh-auth-stats div { display: flex; flex-direction: column; }
.mh-auth-stats strong { font-size: 20px; font-weight: 800; }
.mh-auth-stats span { font-size: 12px; color: rgba(255,255,255,.6); }

.mh-auth-form-side { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.mh-auth-back-link { display: block; text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--mh-text-muted); }
.mh-auth-back-link:hover { color: var(--mh-blue); }

.mh-auth-box {
    background: var(--mh-surface);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    padding: 32px;
    width: 100%;
    max-width: 420px;
}
.mh-auth-tabs { display: flex; border-bottom: 1px solid var(--mh-border); margin-bottom: 24px; }
.mh-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    color: var(--mh-text-muted);
    font-weight: 600;
    border-bottom: 2px solid transparent;
}
.mh-tab.active { color: var(--mh-ink); border-color: var(--mh-amber); }

.mh-form { display: flex; flex-direction: column; gap: 6px; }
.mh-form label { font-size: 13.5px; color: var(--mh-text-muted); margin-top: 10px; }
.mh-form input[type=text],
.mh-form input[type=email],
.mh-form input[type=password],
.mh-form input[type=file],
.mh-form textarea {
    border: 1px solid var(--mh-border);
    border-radius: 9px;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 15px;
    background: var(--mh-bg-soft);
    color: var(--mh-text);
}
.mh-form input:focus, .mh-form textarea:focus {
    outline: none;
    border-color: var(--mh-ink-soft);
    background: #fff;
}
.mh-form input:disabled { color: var(--mh-text-muted); cursor: not-allowed; }
.mh-checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.mh-checkbox-label input { width: auto; }
.mh-divider { border: none; border-top: 1px solid var(--mh-border); margin: 20px 0 4px; }

.mh-alert { padding: 12px 16px; border-radius: 9px; margin-bottom: 18px; font-size: 14.5px; }
.mh-alert-error { background: #FCEBEE; color: #B23A4E; }
.mh-alert-success { background: #E7F6EF; color: var(--mh-emerald); }
.mh-alert ul { padding-inline-start: 18px; list-style: disc; }

/* ---------------- داشبورد ---------------- */
.mh-dashboard {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    padding: 24px 24px 80px;
    align-items: start;
}
.mh-sidebar {
    background: var(--mh-sidebar-bg);
    border: 1px solid var(--mh-sidebar-border);
    border-radius: var(--mh-radius);
    padding: 24px 18px;
    position: sticky;
    top: 92px;
}
.mh-sidebar-profile { text-align: center; margin-bottom: 20px; }
.mh-avatar-lg { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; border: 3px solid var(--mh-bg-soft); }
.mh-sidebar .mh-avatar-lg { border-color: var(--mh-sidebar-bg-soft); }
.mh-sidebar-profile h3 { font-size: 16px; margin-bottom: 4px; color: var(--mh-sidebar-text-strong); }
.mh-level-badge {
    display: inline-block;
    background: var(--mh-blue-tint);
    color: var(--mh-blue);
    font-size: 12.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}
.mh-sidebar .mh-level-badge { background: rgba(124,92,252,.18); color: #B6A5FF; }
.mh-sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.mh-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 9px;
    color: var(--mh-sidebar-text);
    font-weight: 500;
    font-size: 14.5px;
}
.mh-sidebar-nav a .mh-icon { width: 19px; height: 19px; }
.mh-sidebar-nav a:hover { background: var(--mh-sidebar-bg-soft); color: var(--mh-sidebar-text-strong); }
.mh-sidebar-nav a.active { background: var(--mh-blue); color: #fff; }
.mh-sidebar-nav a.mh-disabled { opacity: .4; cursor: not-allowed; }
.mh-sidebar-nav a.mh-logout-link { margin-top: 14px; border-top: 1px solid var(--mh-sidebar-border); padding-top: 14px; color: #F09AA5; }
.mh-sidebar-divider {
    font-size: 11.5px; color: var(--mh-sidebar-text);
    margin: 16px 0 6px; padding: 0 12px; letter-spacing: .3px;
    display: flex; align-items: center; gap: 6px;
}
.mh-sidebar-divider::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--mh-blue); }

/* نوار بالای داشبورد: جست‌وجو + اعلان */
.mh-dashboard-topbar {
    background: var(--mh-surface);
    border-bottom: 1px solid var(--mh-border);
    position: sticky; top: 0; z-index: 60;
}
.mh-dashboard-topbar-inner {
    display: flex; align-items: center; gap: 16px;
    height: 72px;
}
.mh-search-form {
    flex: 1; max-width: 480px;
    display: flex; align-items: center; gap: 8px;
    background: var(--mh-bg-soft); border: 1px solid var(--mh-border);
    border-radius: 10px; padding: 0 14px; height: 42px;
}
.mh-search-form .mh-icon { width: 17px; height: 17px; color: var(--mh-text-muted); flex-shrink: 0; }
.mh-search-form input {
    border: none; background: transparent; flex: 1; height: 100%;
    font-family: inherit; font-size: 14.5px; color: var(--mh-text); outline: none;
}
.mh-dashboard-topbar-inner > .mh-notif-wrap { margin-inline-start: auto; }

.mh-page-title { font-size: 26px; }
.mh-subtitle { color: var(--mh-text-muted); margin-bottom: 28px; }

.mh-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.mh-stat-card {
    background: var(--mh-surface);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.mh-stat-body { flex: 1; min-width: 0; }
.mh-stat-number { font-size: 19px; font-weight: 800; color: var(--mh-ink); line-height: 1.2; }
.mh-stat-label { font-size: 12.5px; color: var(--mh-text-muted); margin-top: 4px; }
.mh-stat-progress {
    width: 100%; height: 6px; border-radius: 999px; background: var(--mh-bg-soft);
    margin-top: 8px; overflow: hidden;
}
.mh-stat-progress span { display: block; height: 100%; border-radius: 999px; background: var(--mh-purple); transition: width .3s ease; }

/* گرید نمودار + فعالیت‌های اخیر */
.mh-overview-grid {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-bottom: 24px; align-items: start;
}
.mh-chart-box h3, .mh-activity-box h3 { font-size: 15.5px; margin-bottom: 16px; }

.mh-bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; }
.mh-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.mh-bar-track { flex: 1; width: 100%; max-width: 28px; display: flex; align-items: flex-end; }
.mh-bar-fill { width: 100%; background: var(--mh-blue-tint); border-radius: 6px 6px 0 0; min-height: 4px; transition: height .3s ease; }
.mh-bar-fill.is-today { background: var(--mh-blue); }
.mh-bar-label { font-size: 11.5px; color: var(--mh-text-muted); margin-top: 8px; }

.mh-activity-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--mh-border); }
.mh-activity-item:last-child { border-bottom: none; }
.mh-activity-body { flex: 1; min-width: 0; }
.mh-activity-body p { font-size: 13.5px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-activity-time { font-size: 11.5px; color: var(--mh-text-muted); }
.mh-activity-points { font-size: 13px; font-weight: 800; flex-shrink: 0; }
.mh-activity-points.is-positive { color: var(--mh-green); }
.mh-activity-points.is-negative { color: var(--mh-rose); }

.mh-coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}
.mh-coming-card {
    background: var(--mh-surface);
    border: 1px dashed var(--mh-border);
    border-radius: var(--mh-radius);
    padding: 20px;
    opacity: .8;
}
.mh-coming-card .mh-icon-badge { margin-bottom: 12px; }
.mh-coming-card h4 { font-size: 15px; margin: 6px 0 4px; }
.mh-coming-card p { font-size: 13.5px; color: var(--mh-text-muted); margin: 0; }

.mh-avatar-upload { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.mh-avatar-upload label { margin-top: 0; display: flex; align-items: center; gap: 6px; }
.mh-inline-icon { width: 15px; height: 15px; }

/* ---------------- اعلان‌ها (زنگوله) ---------------- */
.mh-notif-wrap { position: relative; }
.mh-notif-bell {
    position: relative; width: 42px; height: 42px; border-radius: 10px;
    background: var(--mh-bg-soft); border: 1px solid var(--mh-border);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    color: var(--mh-ink);
}
.mh-notif-bell:hover { background: var(--mh-blue-tint); }
.mh-notif-count {
    position: absolute; top: -5px; left: -5px; min-width: 18px; height: 18px; padding: 0 4px;
    background: var(--mh-rose); color: #fff; font-size: 10.5px; font-weight: 800;
    border-radius: 999px; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--mh-surface);
}
.mh-notif-dropdown {
    display: none; position: absolute; top: calc(100% + 10px); left: 0; width: 320px; max-width: 90vw;
    background: var(--mh-surface); border: 1px solid var(--mh-border); border-radius: var(--mh-radius);
    box-shadow: 0 12px 30px rgba(11,27,61,.14); z-index: 100; overflow: hidden;
}
.mh-notif-dropdown.is-open { display: block; }
.mh-notif-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--mh-border); }
.mh-notif-head strong { font-size: 14px; }
.mh-notif-markread { background: none; border: none; color: var(--mh-blue); font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.mh-notif-list { max-height: 360px; overflow-y: auto; }
.mh-notif-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--mh-border); }
.mh-notif-item:last-child { border-bottom: none; }
.mh-notif-item:hover { background: var(--mh-bg-soft); }
.mh-notif-item p { font-size: 13px; margin: 0; color: var(--mh-text); line-height: 1.6; }
.mh-notif-time { font-size: 11px; color: var(--mh-text-muted); }
.mh-notif-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; margin-top: 6px; flex-shrink: 0; }
.mh-notif-item.is-unread { background: var(--mh-blue-tint); }
.mh-notif-item.is-unread .mh-notif-dot { background: var(--mh-blue); }
.mh-notif-item.is-unread p { font-weight: 600; }

/* ---------------- تب‌های بازه زمانی (رتبه‌بندی) ---------------- */
.mh-range-tabs { display: inline-flex; background: var(--mh-bg-soft); border-radius: 10px; padding: 4px; margin-bottom: 18px; gap: 2px; }
.mh-range-tabs a { padding: 8px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--mh-text-muted); }
.mh-range-tabs a.active { background: var(--mh-ink); color: #fff; }

/* ---------------- ناوبری پایین موبایل ---------------- */
.mh-mobile-nav {
    display: none;
    position: fixed; bottom: 0; right: 0; left: 0; z-index: 90;
    background: var(--mh-surface); border-top: 1px solid var(--mh-border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around; align-items: center;
}
.mh-mobile-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 4px; color: var(--mh-text-muted); font-size: 10.5px; flex: 1;
}
.mh-mobile-nav a .mh-icon { width: 21px; height: 21px; }
.mh-mobile-nav a.active { color: var(--mh-blue); }

/* ---------------- کارت کوچک پروفایل (شورت‌کد) ---------------- */
.mh-mini-card { display: flex; align-items: center; gap: 10px; }
.mh-mini-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.mh-mini-points { font-size: 12.5px; color: var(--mh-amber); font-weight: 700; }

/* ---------------- فوتر ---------------- */
.mh-site-footer {
    padding: 28px 0;
    text-align: center;
    color: var(--mh-text-muted);
    font-size: 13.5px;
    border-top: 1px solid var(--mh-border);
    margin-top: 40px;
}

/* ---------------- بخش مدیریت (ادمین) ---------------- */
.mh-admin-grid { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.mh-panel-box { background: var(--mh-surface); border: 1px solid var(--mh-border); border-radius: var(--mh-radius); padding: 22px; }
.mh-panel-box h3 { font-size: 16px; margin-bottom: 14px; }

.mh-admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mh-admin-table th { text-align: right; color: var(--mh-text-muted); font-weight: 600; font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--mh-border); }
.mh-admin-table td { padding: 12px 10px; border-bottom: 1px solid var(--mh-border); vertical-align: middle; }
.mh-admin-table tr:last-child td { border-bottom: none; }
.mh-empty-row { text-align: center; color: var(--mh-text-muted); padding: 24px 0 !important; }

.mh-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.mh-badge-on { background: rgba(31,157,116,.12); color: var(--mh-emerald); }
.mh-badge-pending { background: var(--mh-orange-tint); color: var(--mh-orange); }
.mh-badge-off { background: rgba(100,112,138,.12); color: var(--mh-text-muted); }

.mh-row-actions { display: flex; gap: 10px; white-space: nowrap; }
.mh-row-actions a { color: var(--mh-text-muted); }
.mh-row-actions a:hover { color: var(--mh-blue); }
.mh-row-actions a.mh-delete-link:hover { color: var(--mh-rose); }
.mh-row-actions .mh-icon { width: 17px; height: 17px; }

.mh-back-link { display: inline-block; margin-bottom: 12px; color: var(--mh-blue); font-size: 14px; font-weight: 600; }

.mh-option-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.mh-option-row input[type=radio] { width: auto; flex-shrink: 0; }
.mh-option-row input[type=text] { flex: 1; }

.mh-question-card { border: 1px solid var(--mh-border); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.mh-question-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.mh-option-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.mh-option-list li { font-size: 13.5px; color: var(--mh-text-muted); padding: 6px 10px; border-radius: 7px; background: var(--mh-bg-soft); }
.mh-option-list li.is-correct { background: rgba(31,157,116,.12); color: var(--mh-emerald); font-weight: 600; }

.mh-user-cell { display: flex; align-items: center; gap: 8px; }
.mh-mini-avatar-sm { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.mh-inline-edit-row td { background: var(--mh-bg-soft); }
.mh-inline-form { flex-direction: row !important; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.mh-inline-form > div { display: flex; flex-direction: column; }
.mh-inline-form label { margin-top: 0; }

@media (max-width: 900px) {
    .mh-admin-grid { grid-template-columns: 1fr; }
}

/* ---------------- آموزش (سمت عضو) ---------------- */
.mh-coming-card-active { display: block; opacity: 1; border-style: solid; transition: transform .12s ease, box-shadow .12s ease; }
.mh-coming-card-active:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(11,27,61,.08); }

.mh-lesson-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.mh-lesson-card {
    background: var(--mh-surface); border: 1px solid var(--mh-border); border-radius: var(--mh-radius);
    padding: 20px; display: flex; gap: 14px; align-items: flex-start;
    transition: transform .12s ease, box-shadow .12s ease;
}
.mh-lesson-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(11,27,61,.08); }
.mh-lesson-card h4 { font-size: 15.5px; margin-bottom: 6px; }
.mh-lesson-meta { display: flex; gap: 6px; flex-wrap: wrap; }

.mh-lesson-video { margin: 12px 0 18px; }
.mh-lesson-content { color: var(--mh-text); font-size: 15px; line-height: 1.9; }
.mh-lesson-content p { margin: 0 0 14px; }

.mh-quiz-cta { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.mh-quiz-cta h4 { font-size: 15.5px; margin-bottom: 4px; }
.mh-quiz-cta p { color: var(--mh-text-muted); font-size: 13.5px; margin: 0; }
.mh-quiz-cta .mh-btn { margin-inline-start: auto; flex-shrink: 0; }

.mh-quiz-question { border-top: 1px solid var(--mh-border); padding-top: 16px; margin-top: 16px; }
.mh-quiz-question:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.mh-quiz-question > strong { display: block; margin-bottom: 10px; font-size: 15px; }
.mh-quiz-option { background: var(--mh-bg-soft); border-radius: 9px; padding: 10px 12px; margin-top: 6px; }
.mh-quiz-option input { margin-inline-end: 6px; }

.mh-quiz-result { text-align: center; padding: 40px 24px; }
.mh-quiz-result .mh-icon-badge { margin: 0 auto 14px; width: 56px; height: 56px; }
.mh-quiz-result .mh-icon-badge .mh-icon { width: 28px; height: 28px; }
.mh-quiz-score { font-size: 34px; font-weight: 800; color: var(--mh-ink); margin: 6px 0; }

/* ---------------- ماموریت (سمت عضو) ---------------- */
.mh-mission-list { display: flex; flex-direction: column; gap: 12px; }
.mh-mission-card {
    background: var(--mh-surface); border: 1px solid var(--mh-border); border-radius: var(--mh-radius);
    padding: 18px 20px; display: flex; align-items: center; gap: 16px;
}
.mh-mission-info { flex: 1; }
.mh-mission-info h4 { font-size: 15.5px; margin-bottom: 4px; }
.mh-mission-info p { color: var(--mh-text-muted); font-size: 13.5px; margin: 0; }
.mh-mission-action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mh-mission-points { font-size: 12.5px; font-weight: 700; color: var(--mh-blue); }

@media (max-width: 600px) {
    .mh-mission-card { flex-wrap: wrap; }
    .mh-mission-action { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}

/* ---------------- تسک منیجر ---------------- */
.mh-task-row {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 4px; border-bottom: 1px solid var(--mh-border);
}
.mh-task-row:last-child { border-bottom: none; }
.mh-task-check {
    width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--mh-border);
    flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center;
    color: #fff; transition: background .12s ease, border-color .12s ease;
}
.mh-task-check:hover { border-color: var(--mh-blue); }
.mh-task-check.is-checked { background: var(--mh-emerald); border-color: var(--mh-emerald); }
.mh-task-check.is-checked .mh-icon { width: 13px; height: 13px; }
.mh-task-body { flex: 1; }
.mh-task-body strong { font-size: 14.5px; }
.mh-task-body p { font-size: 13px; color: var(--mh-text-muted); margin: 3px 0 0; }
.mh-task-meta { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.mh-task-row.is-done .mh-task-body strong { color: var(--mh-text-muted); text-decoration: line-through; }

/* ---------------- هبیت تریکر ---------------- */
.mh-habit-list { display: flex; flex-direction: column; gap: 14px; }
.mh-habit-card { background: var(--mh-surface); border: 1px solid var(--mh-border); border-radius: var(--mh-radius); padding: 20px; }
.mh-habit-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.mh-habit-info { flex: 1; }
.mh-habit-info h4 { font-size: 15.5px; margin-bottom: 4px; }
.mh-habit-streaks { display: flex; gap: 14px; font-size: 13px; color: var(--mh-text-muted); }
.mh-habit-week { display: flex; gap: 6px; margin-bottom: 14px; }
.mh-day-dot { width: 24px; height: 24px; border-radius: 7px; background: var(--mh-bg-soft); border: 1px solid var(--mh-border); }
.mh-day-dot.is-on { background: var(--mh-blue); border-color: var(--mh-blue); }
.mh-disabled-btn { pointer-events: none; opacity: .7; }

/* ---------------- لیگ ---------------- */
.mh-league-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.mh-league-card {
    background: var(--mh-surface); border: 1px solid var(--mh-border); border-radius: var(--mh-radius);
    padding: 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.mh-league-info h4 { font-size: 16px; margin-bottom: 4px; }
.mh-league-info p { font-size: 13.5px; color: var(--mh-text-muted); margin: 0 0 8px; }
.mh-league-card .mh-btn { align-self: stretch; text-align: center; }

.mh-leaderboard-table td { font-size: 14.5px; }
.mh-leaderboard-table tr.is-you { background: var(--mh-blue-tint); }
.mh-leaderboard-table tr.is-you td:first-child { border-radius: 8px 0 0 8px; }
.mh-rank-medal {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%; font-size: 12.5px; font-weight: 800; color: #fff;
}
.mh-rank-medal .mh-icon { width: 15px; height: 15px; }
.mh-rank-1 { background: #C89A2C; }
.mh-rank-2 { background: #8C97A8; }
.mh-rank-3 { background: #B0703B; }

/* ---------------- ریسپانسیو ---------------- */
@media (max-width: 860px) {
    .mh-dashboard { grid-template-columns: 1fr; padding: 16px 16px 90px; }
    .mh-sidebar { display: none; }
    .mh-overview-grid { grid-template-columns: 1fr; }
    .mh-header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; }
    .mh-main-nav { order: 3; width: 100%; }
    .mh-hero h1 { font-size: 30px; }
    .mh-hero-split-inner { grid-template-columns: 1fr; gap: 32px; }
    .mh-hero-text, .mh-hero-cta, .mh-hero-stats { justify-content: center; text-align: center; }
    .mh-hero-text p { margin-inline: auto; }
    .mh-hero-cta { justify-content: center; }
    .mh-auth-split { grid-template-columns: 1fr; min-height: auto; }
    .mh-auth-brand { padding: 40px 24px; text-align: center; align-items: center; }
    .mh-auth-brand h2, .mh-auth-brand > p { max-width: none; }
    .mh-auth-bullets { align-items: flex-start; margin-inline: auto; width: fit-content; }
    .mh-auth-stats { justify-content: center; }
    .mh-mobile-nav { display: flex; }
    body.mh-dashboard-page { padding-bottom: 56px; }
    .mh-dashboard-topbar-inner { height: 64px; }
    .mh-search-form { max-width: none; }
}
@media (min-width: 861px) {
    .mh-mobile-nav { display: none !important; }
}

/* ---------------- جست‌وجو ---------------- */
.mh-search-result-row {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 4px; border-bottom: 1px solid var(--mh-border); font-size: 14px;
}
.mh-search-result-row:last-child { border-bottom: none; }
.mh-search-result-row:hover { color: var(--mh-blue); }

/* ---------------- دایرکتوری اعضا ---------------- */
.mh-members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.mh-member-card {
    background: var(--mh-surface); border: 1px solid var(--mh-border); border-radius: var(--mh-radius);
    padding: 22px 16px; text-align: center;
}
.mh-member-card.is-you { border-color: var(--mh-blue); background: var(--mh-blue-tint); }
.mh-member-card h4 { font-size: 14px; margin: 4px 0 8px; }

/* ---------------- پیام‌های پشتیبانی ---------------- */
.mh-message-row { padding: 14px 0; border-bottom: 1px solid var(--mh-border); }
.mh-message-row:last-child { border-bottom: none; }
.mh-message-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mh-message-row p { font-size: 13.5px; color: var(--mh-text-muted); margin: 6px 0; line-height: 1.8; }
.mh-message-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }

/* ---------------- صفحه جزئیات عضو (مدیر) ---------------- */
.mh-member-header { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.mh-member-header .mh-avatar-lg { margin: 0; }
.mh-text-green { color: var(--mh-green); font-weight: 700; }
.mh-text-rose { color: var(--mh-rose); font-weight: 700; }

/* ---------------- ماموریت‌های در انتظار تایید ---------------- */
.mh-pending-box { margin-bottom: 20px; border-color: var(--mh-orange) !important; }
.mh-pending-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--mh-border); }
.mh-pending-row:last-child { border-bottom: none; }
.mh-pending-info { flex: 1; font-size: 13.5px; }
.mh-pending-actions { display: flex; gap: 8px; flex-shrink: 0; }
.mh-btn-sm { padding: 7px 14px; font-size: 13px; }

/* دسترسی‌پذیری: فوکوس کیبورد */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--mh-ink-soft);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
