/* ==========================================================================
   Melkvareh design system — shared by EndPoint.PWA, EndPoint.Mobile and EndPoint.Site
   ========================================================================== */

/* Vazirmatn UI with Farsi digits: every Latin digit is rendered as a Persian digit,
   so all displayed numbers are Persian while stored values stay Latin (0-9). */
@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/Vazirmatn-UI-FD-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/Vazirmatn-UI-FD-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/Vazirmatn-UI-FD-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/Vazirmatn-UI-FD-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

/* ---------- Tokens ---------- */
:root,
[data-bs-theme=light] {
    --mv-primary: #0F766E;
    --mv-primary-600: #0D9488;
    --mv-primary-700: #0F766E;
    --mv-primary-800: #115E59;
    --mv-primary-soft: #E6F6F4;
    --mv-primary-rgb: 15, 118, 110;
    --mv-accent: #F59E0B;
    --mv-accent-600: #D97706;
    --mv-accent-soft: #FEF3C7;
    --mv-bg: #F4F7F6;
    --mv-surface: #FFFFFF;
    --mv-surface-2: #F8FAFA;
    --mv-text: #0F1F1D;
    --mv-muted: #64748B;
    --mv-border: #E3EAE8;
    --mv-shadow-sm: 0 1px 2px rgba(15, 31, 29, .06);
    --mv-shadow: 0 6px 20px -8px rgba(15, 31, 29, .18);
    --mv-shadow-lg: 0 18px 40px -16px rgba(15, 94, 89, .35);
    --mv-hero: linear-gradient(135deg, #14B8A6 0%, #0F766E 55%, #0B5E57 100%);
    --mv-radius-sm: 10px;
    --mv-radius: 16px;
    --mv-radius-lg: 24px;
    --mv-appbar-height: 60px;
    --mv-tabbar-height: 68px;

    --bs-body-font-family: Vazirmatn, Tahoma, sans-serif;
    --bs-body-bg: var(--mv-bg);
    --bs-body-color: var(--mv-text);
    --bs-secondary-color: var(--mv-muted);
    --bs-border-color: var(--mv-border);
    --bs-primary: var(--mv-primary);
    --bs-primary-rgb: var(--mv-primary-rgb);
    --bs-link-color: var(--mv-primary);
    --bs-link-color-rgb: var(--mv-primary-rgb);
    --bs-link-hover-color: var(--mv-primary-800);
    --bs-border-radius: var(--mv-radius-sm);
    --bs-border-radius-lg: var(--mv-radius);
    --bs-card-border-radius: var(--mv-radius);
    --bs-focus-ring-color: rgba(var(--mv-primary-rgb), .25);
}

[data-bs-theme=dark] {
    --mv-primary: #2DD4BF;
    --mv-primary-600: #5EEAD4;
    --mv-primary-700: #2DD4BF;
    --mv-primary-800: #99F6E4;
    --mv-primary-soft: rgba(45, 212, 191, .12);
    --mv-primary-rgb: 45, 212, 191;
    --mv-accent: #FBBF24;
    --mv-accent-600: #F59E0B;
    --mv-accent-soft: rgba(251, 191, 36, .14);
    --mv-bg: #0B1413;
    --mv-surface: #111D1C;
    --mv-surface-2: #152422;
    --mv-text: #E6F0EE;
    --mv-muted: #94A3B8;
    --mv-border: #22322F;
    --mv-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --mv-shadow: 0 6px 20px -8px rgba(0, 0, 0, .6);
    --mv-shadow-lg: 0 18px 40px -16px rgba(0, 0, 0, .7);
    --mv-hero: linear-gradient(135deg, #0F766E 0%, #115E59 55%, #0B3B37 100%);

    --bs-body-bg: var(--mv-bg);
    --bs-body-color: var(--mv-text);
    --bs-secondary-color: var(--mv-muted);
    --bs-border-color: var(--mv-border);
    --bs-primary: var(--mv-primary);
    --bs-primary-rgb: var(--mv-primary-rgb);
    --bs-link-color: var(--mv-primary);
    --bs-link-color-rgb: var(--mv-primary-rgb);
    --bs-link-hover-color: var(--mv-primary-800);
    --bs-card-bg: var(--mv-surface);
    --bs-tertiary-bg: var(--mv-surface-2);
}

/* ---------- Base ---------- */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--mv-bg);
    color: var(--mv-text);
    font-feature-settings: "ss01";
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--mv-text);
}

/* FocusOnNavigate focuses the page heading for screen readers; no visible outline needed */
h1:focus {
    outline: none;
}

a {
    text-decoration: none;
}

::selection {
    background: rgba(var(--mv-primary-rgb), .2);
}

/* ---------- Buttons ---------- */
.btn {
    --bs-btn-font-weight: 700;
    --bs-btn-padding-y: .6rem;
    --bs-btn-padding-x: 1.1rem;
    --bs-btn-border-radius: 12px;
    transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn:active {
    transform: scale(.98);
}

.btn-lg {
    --bs-btn-padding-y: .8rem;
    --bs-btn-border-radius: 14px;
}

.btn-primary {
    --bs-btn-bg: var(--mv-primary-700);
    --bs-btn-border-color: var(--mv-primary-700);
    --bs-btn-hover-bg: var(--mv-primary-800);
    --bs-btn-hover-border-color: var(--mv-primary-800);
    --bs-btn-active-bg: var(--mv-primary-800);
    --bs-btn-active-border-color: var(--mv-primary-800);
    --bs-btn-disabled-bg: var(--mv-primary-700);
    --bs-btn-disabled-border-color: var(--mv-primary-700);
    box-shadow: 0 8px 18px -10px rgba(var(--mv-primary-rgb), .9);
}

[data-bs-theme=dark] .btn-primary {
    --bs-btn-color: #04201D;
    --bs-btn-hover-color: #04201D;
    --bs-btn-active-color: #04201D;
    --bs-btn-disabled-color: #04201D;
}

.btn-accent {
    --bs-btn-color: #3B2300;
    --bs-btn-bg: var(--mv-accent);
    --bs-btn-border-color: var(--mv-accent);
    --bs-btn-hover-color: #3B2300;
    --bs-btn-hover-bg: var(--mv-accent-600);
    --bs-btn-hover-border-color: var(--mv-accent-600);
    --bs-btn-active-bg: var(--mv-accent-600);
    --bs-btn-active-color: #3B2300;
    box-shadow: 0 8px 18px -10px rgba(245, 158, 11, .9);
}

.btn-soft {
    --bs-btn-color: var(--mv-primary-700);
    --bs-btn-bg: var(--mv-primary-soft);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--mv-primary-800);
    --bs-btn-hover-bg: rgba(var(--mv-primary-rgb), .18);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-bg: rgba(var(--mv-primary-rgb), .22);
    --bs-btn-active-color: var(--mv-primary-800);
}

.btn-soft-danger {
    --bs-btn-color: #BE123C;
    --bs-btn-bg: rgba(225, 29, 72, .08);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #9F1239;
    --bs-btn-hover-bg: rgba(225, 29, 72, .14);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: #9F1239;
    --bs-btn-active-bg: rgba(225, 29, 72, .18);
}

[data-bs-theme=dark] .btn-soft-danger {
    --bs-btn-color: #FB7185;
    --bs-btn-hover-color: #FDA4AF;
    --bs-btn-active-color: #FDA4AF;
}

.btn-outline-primary {
    --bs-btn-color: var(--mv-primary-700);
    --bs-btn-border-color: var(--mv-primary-700);
    --bs-btn-hover-bg: var(--mv-primary-700);
    --bs-btn-hover-border-color: var(--mv-primary-700);
    --bs-btn-active-bg: var(--mv-primary-800);
}

.btn-icon {
    --bs-btn-padding-x: 0;
    --bs-btn-padding-y: 0;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
}

/* ---------- Forms ---------- */
.form-label {
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: .4rem;
}

.form-control,
.form-select {
    border-radius: 12px;
    padding: .7rem .9rem;
    background-color: var(--mv-surface);
    border-color: var(--mv-border);
    color: var(--mv-text);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--mv-primary-600);
    box-shadow: 0 0 0 .22rem rgba(var(--mv-primary-rgb), .15);
    background-color: var(--mv-surface);
    color: var(--mv-text);
}

.form-control::placeholder {
    color: var(--mv-muted);
    opacity: .75;
}

.input-icon {
    position: relative;
}

.input-icon > .bi {
    position: absolute;
    inset-inline-start: .95rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mv-muted);
    font-size: 1.05rem;
    pointer-events: none;
}

.input-icon > .form-control {
    padding-inline-start: 2.6rem;
}

.form-check-input:checked {
    background-color: var(--mv-primary-700);
    border-color: var(--mv-primary-700);
}

.invalid {
    border-color: #E11D48 !important;
}

.validation-message {
    color: #E11D48;
    font-size: .82rem;
    margin-top: .3rem;
}

/* ---------- Cards & surfaces ---------- */
.card,
.mv-card {
    background: var(--mv-surface);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-radius);
    box-shadow: var(--mv-shadow-sm);
}

.mv-card {
    padding: 1.1rem;
}

.mv-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.6rem 0 .8rem;
}

.mv-section-title h2 {
    font-size: 1.05rem;
    margin: 0;
}

.mv-section-title a {
    font-size: .85rem;
    font-weight: 700;
}

.mv-muted {
    color: var(--mv-muted);
}

.alert {
    border-radius: 14px;
    border: 0;
}

.badge {
    font-weight: 700;
}

.mv-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .85rem;
    border-radius: 999px;
    background: var(--mv-surface);
    border: 1px solid var(--mv-border);
    color: var(--mv-text);
    font-size: .85rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all .15s ease;
}

.mv-chip.active {
    background: var(--mv-primary-soft);
    border-color: rgba(var(--mv-primary-rgb), .35);
    color: var(--mv-primary-700);
}

/* Hover only where there is a mouse, and unlike "selected": on phones a tapped chip keeps
   :hover, which made a chip just turned off still look selected */
@media (hover: hover) {
    .mv-chip:not(.active):hover {
        border-color: rgba(var(--mv-primary-rgb), .35);
    }
}

.mv-scroll-x {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .25rem;
    scrollbar-width: none;
}

.mv-scroll-x::-webkit-scrollbar {
    display: none;
}

/* ---------- App shell (PWA & Mobile) ---------- */
.mv-app {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    /* Clip accidental horizontal overflow without creating a new scroll container. */
    overflow-x: clip;
}

.mv-appbar {
    position: sticky;
    top: 0;
    /* Above the tab bar (30): the app bar's stacking context also holds the city picker sheet */
    z-index: 40;
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: calc(var(--mv-appbar-height) + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 1rem 0;
    border-bottom: 1px solid transparent;
}

/* The blur lives on a pseudo-element: backdrop-filter on the app bar itself would make it the
   containing block of position:fixed children, and the city picker sheet would be clipped to it. */
.mv-appbar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: color-mix(in srgb, var(--mv-bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.mv-appbar.scrolled {
    border-bottom-color: var(--mv-border);
}

.mv-appbar > .mv-brand {
    flex-shrink: 0;
}

.mv-appbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    flex: 1;
    min-width: 0;
}

.mv-appbar-actions .mv-city-pill {
    min-width: 0;
    max-width: 100%;
}

.mv-appbar-actions .mv-city-pill > .bi,
.mv-appbar-actions .mv-bell {
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .mv-appbar {
        gap: .4rem;
        padding-inline: .75rem;
    }

    .mv-appbar-actions {
        gap: .25rem;
    }

    .mv-appbar-actions .mv-city-pill {
        padding-inline: .5rem;
    }
}

.mv-brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--mv-text);
    font-weight: 800;
    font-size: 1.2rem;
}

.mv-brand img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    box-shadow: var(--mv-shadow);
}

.mv-brand:hover {
    color: var(--mv-text);
}

.mv-appbar-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    flex: 1;
}

.mv-content {
    flex: 1;
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    max-width: 720px;
    margin: 0 auto;
    padding: .75rem 1rem calc(var(--mv-tabbar-height) + env(safe-area-inset-bottom) + 1.5rem);
    animation: mv-fade-in .25s ease;
}

/* "Fill in the required fields" warning (forms.js), under the app bar */
.mv-form-alert {
    position: fixed;
    top: calc(var(--mv-appbar-height) + env(safe-area-inset-top) + .5rem);
    inset-inline: 1rem;
    max-width: 520px;
    margin: 0 auto;
    z-index: 1080;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1rem;
    border-radius: 14px;
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    color: #78350F;
    font-size: .88rem;
    font-weight: 600;
    box-shadow: var(--mv-shadow-lg);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.mv-form-alert.show {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.mv-form-alert .bi {
    font-size: 1.15rem;
    color: #D97706;
    flex: none;
}

[data-bs-theme="dark"] .mv-form-alert {
    background: #3A2A06;
    border-color: #B45309;
    color: #FDE68A;
}

@keyframes mv-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.mv-tabbar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    align-items: stretch;
    height: calc(var(--mv-tabbar-height) + env(safe-area-inset-bottom, 0px));
    padding: 0 .35rem env(safe-area-inset-bottom, 0px);
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    background: var(--mv-surface);
    background: color-mix(in srgb, var(--mv-surface) 88%, transparent);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--mv-border);
    box-shadow: 0 -10px 30px -20px rgba(0, 0, 0, .25);
}

.mv-tab {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: .72rem;
    font-weight: 500;
    color: var(--mv-muted);
    transition: color .15s ease;
}

.mv-tab .bi {
    font-size: 1.35rem;
    line-height: 1;
    transition: transform .2s ease;
}

.mv-tab .bi-fill-on-active {
    display: none;
}

.mv-tab.active {
    color: var(--mv-primary-700);
    font-weight: 800;
}

.mv-tab.active .bi-fill-on-active {
    display: inline-block;
}

.mv-tab.active .bi-fill-off-active {
    display: none;
}

.mv-tab.active .bi {
    transform: translateY(-1px);
}

.mv-tab-fab {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--mv-text);
}

.mv-tab-fab .mv-fab {
    width: 54px;
    height: 54px;
    margin-top: -22px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: #3B2300;
    font-size: 1.6rem;
    box-shadow: 0 10px 22px -8px rgba(245, 158, 11, .8), 0 0 0 5px var(--mv-bg);
    transition: transform .15s ease;
}

.mv-tab-fab:active .mv-fab {
    transform: scale(.94);
}

/* ---------- Hero & home ---------- */
.mv-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--mv-radius-lg);
    background: var(--mv-hero);
    color: #fff;
    padding: 1.4rem 1.2rem 1.2rem;
    box-shadow: var(--mv-shadow-lg);
}

.mv-hero::before,
.mv-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.mv-hero::before {
    width: 220px;
    height: 220px;
    inset-inline-start: -70px;
    top: -90px;
}

.mv-hero::after {
    width: 140px;
    height: 140px;
    inset-inline-end: -40px;
    bottom: -60px;
    background: rgba(252, 211, 77, .16);
}

.mv-hero > * {
    position: relative;
    z-index: 1;
}

.mv-hero h1 {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: .35rem;
}

.mv-hero p {
    color: rgba(255, 255, 255, .85);
    font-size: .9rem;
    margin-bottom: 1rem;
}

.mv-search-box {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    padding: .8rem 1rem;
    border-radius: 14px;
    background: #fff;
    color: #64748B;
    font-size: .92rem;
    box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5);
}

.mv-search-box .bi {
    color: var(--mv-primary-700);
    font-size: 1.1rem;
}

[data-bs-theme=dark] .mv-search-box {
    background: var(--mv-surface);
    color: var(--mv-muted);
}

.mv-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem .5rem;
}

@media (min-width: 576px) {
    .mv-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
}

.mv-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    text-align: center;
    color: var(--mv-text);
    font-size: .76rem;
    font-weight: 500;
    line-height: 1.5;
}

.mv-category:hover {
    color: var(--mv-primary-700);
}

.mv-category-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--mv-primary-soft);
    background: color-mix(in srgb, var(--mv-cat, var(--mv-primary)) 13%, transparent);
    color: var(--mv-cat, var(--mv-primary-700));
    transition: transform .18s ease, box-shadow .18s ease;
}

[data-bs-theme=dark] .mv-category-icon {
    color: color-mix(in srgb, var(--mv-cat, var(--mv-primary)) 55%, #fff);
    background: color-mix(in srgb, var(--mv-cat, var(--mv-primary)) 18%, var(--mv-surface));
}

.mv-category:hover .mv-category-icon,
.mv-category:active .mv-category-icon {
    transform: translateY(-2px);
    box-shadow: var(--mv-shadow);
}

.mv-promo {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: var(--mv-radius);
    background: var(--mv-accent-soft);
    border: 1px solid rgba(245, 158, 11, .25);
}

.mv-promo-icon {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: #3B2300;
    font-size: 1.35rem;
}

.mv-promo h3 {
    font-size: .98rem;
    margin: 0 0 .15rem;
}

.mv-promo p {
    font-size: .8rem;
    margin: 0;
    color: var(--mv-muted);
}

/* ---------- Lists ---------- */
.mv-list {
    background: var(--mv-surface);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-radius);
    overflow: hidden;
}

.mv-list-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    width: 100%;
    padding: .9rem 1rem;
    color: var(--mv-text);
    background: transparent;
    border: 0;
    text-align: start;
    font-weight: 500;
}

.mv-list-item + .mv-list-item {
    border-top: 1px solid var(--mv-border);
}

@media (hover: hover) {
    .mv-list-item:hover {
        background: var(--mv-surface-2);
        color: var(--mv-text);
    }
}

.mv-list-item:active {
    background: var(--mv-surface-2);
}

.mv-list-item .mv-list-icon {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mv-primary-soft);
    background: color-mix(in srgb, var(--mv-cat, var(--mv-primary)) 13%, transparent);
    color: var(--mv-cat, var(--mv-primary-700));
    font-size: 1.1rem;
}

.mv-list-item .mv-list-dot {
    flex: none;
    width: 8px;
    height: 8px;
    margin-inline: .35rem .2rem;
    border-radius: 50%;
    background: var(--mv-cat, var(--mv-primary));
}

.mv-list-item .mv-list-text {
    flex: 1;
    min-width: 0;
}

.mv-list-item small {
    display: block;
    color: var(--mv-muted);
    font-weight: 400;
    font-size: .78rem;
}

.mv-list-item .mv-chevron {
    color: var(--mv-muted);
    font-size: .9rem;
}

/* ---------- Segmented control ---------- */
.mv-segmented {
    display: flex;
    gap: .25rem;
    padding: .25rem;
    border-radius: 14px;
    background: var(--mv-surface-2);
    border: 1px solid var(--mv-border);
}

.mv-segmented button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .5rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--mv-muted);
    font-weight: 700;
    font-size: .85rem;
}

.mv-segmented button.active {
    background: var(--mv-surface);
    color: var(--mv-primary-700);
    box-shadow: var(--mv-shadow-sm);
}

/* ---------- Empty state ---------- */
.mv-empty {
    text-align: center;
    padding: 2.2rem 1rem;
}

.mv-empty-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 1rem;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--mv-primary-soft);
    color: var(--mv-primary-700);
}

.mv-empty h3 {
    font-size: 1rem;
    margin-bottom: .35rem;
}

.mv-empty p {
    color: var(--mv-muted);
    font-size: .85rem;
    margin: 0 auto;
    max-width: 320px;
}

/* ---------- Profile ---------- */
.mv-profile {
    display: flex;
    align-items: center;
    gap: .85rem;
}

/* Long names are cut with an ellipsis; the edit button stays a compact icon */
.mv-profile-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    color: inherit;
    text-decoration: none;
}

.mv-profile-name {
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mv-profile-text [dir="ltr"] {
    text-align: right;
}

.flex-none {
    flex: none;
}

.mv-alert-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border-radius: var(--mv-radius, 16px);
    background: rgba(220, 53, 69, .08);
    border: 1px solid rgba(220, 53, 69, .25);
    color: var(--bs-danger-text-emphasis, #b02a37);
    text-decoration: none;
}

.mv-alert-card > .bi:first-child {
    font-size: 1.5rem;
}

.mv-alert-card span {
    flex: 1;
    font-size: .9rem;
}

.mv-alert-card small {
    display: block;
    opacity: .85;
    margin-top: .15rem;
}

.mv-list-item-danger .mv-list-icon {
    background: rgba(220, 53, 69, .12);
    color: #dc3545;
}

.mv-avatar {
    flex: none;
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mv-hero);
    color: #fff;
    font-size: 1.6rem;
}

/* ---------- Auth ---------- */
.mv-auth-logo {
    display: block;
    width: 72px;
    height: 72px;
    margin: .5rem auto 1rem;
    border-radius: 22px;
    box-shadow: var(--mv-shadow-lg);
}

/* ---------- Splash / loading (before Blazor starts) ---------- */
.mv-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: radial-gradient(120% 80% at 50% 0%, #14B8A6 0%, #0F766E 45%, #0B4A45 100%);
    color: #fff;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.mv-splash-logo {
    width: 104px;
    height: 104px;
    border-radius: 30px;
    box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .18);
    animation: mv-splash-pop .7s cubic-bezier(.2, .9, .3, 1.2) both;
}

.mv-splash-name {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -.01em;
    animation: mv-splash-up .6s .15s ease both;
}

.mv-splash-tagline {
    margin-top: -.6rem;
    font-size: .92rem;
    opacity: .85;
    animation: mv-splash-up .6s .25s ease both;
}

.mv-splash-progress {
    position: absolute;
    bottom: calc(env(safe-area-inset-bottom) + 64px);
    width: 140px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .22);
    overflow: hidden;
}

.mv-splash-progress::after {
    content: "";
    display: block;
    height: 100%;
    width: var(--blazor-load-percentage, 30%);
    border-radius: 4px;
    background: #FCD34D;
    transition: width .2s ease;
}

.mv-splash-progress.indeterminate::after {
    width: 40%;
    animation: mv-splash-indeterminate 1.1s ease-in-out infinite;
}

@keyframes mv-splash-pop {
    from { opacity: 0; transform: scale(.7); }
    to { opacity: 1; transform: none; }
}

@keyframes mv-splash-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@keyframes mv-splash-indeterminate {
    0% { transform: translateX(160%); }
    100% { transform: translateX(-260%); }
}

/* ---------- Blazor error UI ---------- */
#blazor-error-ui {
    display: none;
    position: fixed;
    inset-inline: .75rem;
    bottom: calc(var(--mv-tabbar-height) + env(safe-area-inset-bottom) + .75rem);
    z-index: 1000;
    padding: .85rem 1rem;
    border-radius: 14px;
    background: #FFF7ED;
    color: #7C2D12;
    box-shadow: var(--mv-shadow);
}

#blazor-error-ui .reload {
    font-weight: 700;
    margin-inline-start: .5rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    inset-inline-end: .85rem;
    top: .7rem;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* ---------- Account ---------- */
.mv-mobile-chip {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    padding: .7rem .9rem;
    border: 1px dashed rgba(var(--mv-primary-rgb), .45);
    border-radius: 12px;
    background: var(--mv-primary-soft);
    color: var(--mv-primary-700);
    font-weight: 700;
}

.mv-avatar {
    font-weight: 800;
}

.form-text {
    color: var(--mv-muted);
    font-size: .78rem;
    margin-top: .4rem;
}

/* ---------- Dynamic ad form ---------- */
.mv-form-section {
    margin-bottom: 1rem;
}

.mv-form-section-title {
    font-size: .95rem;
    margin: 0 0 1rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--mv-border);
}

.mv-field + .mv-field {
    margin-top: 1.1rem;
}

.mv-field-inline {
    padding: .2rem 0;
}

.mv-field .form-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0;
}

.mv-field .form-switch .form-check-input {
    order: 2;
    float: none;
    margin: 0;
    width: 2.6em;
    height: 1.4em;
    flex: none;
}

.mv-field .form-switch .form-check-label {
    font-weight: 500;
}

.mv-required {
    color: #E11D48;
    margin-inline-start: .15rem;
}

.mv-options {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.mv-options .mv-chip {
    padding: .5rem .95rem;
}

.mv-input-unit .input-group-text {
    min-width: 76px;
    justify-content: center;
    background: var(--mv-surface-2);
    border-color: var(--mv-border);
    color: var(--mv-muted);
    font-size: .82rem;
    border-radius: 12px;
}

.mv-input-unit > .form-control {
    border-radius: 12px;
}

.mv-money-text {
    margin-top: .35rem;
    color: var(--mv-primary-700);
    font-size: .8rem;
    font-weight: 700;
}

.mv-coming-soon {
    font-size: .68rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: var(--mv-surface-2);
    color: var(--mv-muted);
    border: 1px solid var(--mv-border);
    white-space: nowrap;
}

.mv-list-item.is-disabled {
    opacity: .6;
}

.mv-skeleton {
    border-radius: 18px;
    background: linear-gradient(90deg, var(--mv-surface-2) 25%, var(--mv-border) 50%, var(--mv-surface-2) 75%);
    background-size: 200% 100%;
    animation: mv-skeleton 1.2s ease-in-out infinite;
}

@keyframes mv-skeleton {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.mv-sticky-actions {
    position: sticky;
    bottom: calc(var(--mv-tabbar-height) + env(safe-area-inset-bottom) + .75rem);
    z-index: 5;
    margin-top: 1rem;
}

/* ---------- Location: city pill, picker sheet, suggestions ---------- */
.mv-city-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    max-width: 55vw;
    margin-inline-start: auto;
    padding: .45rem .8rem;
    border: 1px solid var(--mv-border);
    border-radius: 999px;
    background: var(--mv-surface);
    color: var(--mv-text);
    font-size: .85rem;
    font-weight: 700;
    box-shadow: var(--mv-shadow-sm);
}

.mv-city-pill > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mv-city-pill .bi-geo-alt-fill {
    color: var(--mv-primary-700);
}

.mv-select-trigger {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-align: start;
    cursor: pointer;
}

.mv-select-trigger > span {
    flex: 1;
}

.mv-sheet {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--mv-bg);
    padding-top: env(safe-area-inset-top);
    animation: mv-sheet-in .22s ease;
}

@keyframes mv-sheet-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

.mv-sheet-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1rem .5rem;
}

.mv-sheet-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.mv-sheet-search {
    padding: 0 1rem .75rem;
}

.mv-sheet-search > .bi {
    inset-inline-start: 1.95rem;
    top: calc(50% - .375rem);
}

.mv-sheet-body {
    flex: 1;
    min-height: 0; /* lets the list (not the sheet) scroll */
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 1rem calc(env(safe-area-inset-bottom) + 1.5rem);
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.mv-sheet-search,
.mv-sheet-header {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.mv-suggest {
    position: relative;
}

.mv-suggest-list {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 4px);
    z-index: 20;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--mv-border);
    border-radius: 12px;
    background: var(--mv-surface);
    box-shadow: var(--mv-shadow);
}

.mv-suggest-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .65rem .9rem;
    border: 0;
    background: transparent;
    color: var(--mv-text);
    text-align: start;
}

.mv-suggest-item + .mv-suggest-item {
    border-top: 1px solid var(--mv-border);
}

.mv-suggest-item small {
    color: var(--mv-muted);
    font-size: .75rem;
}

.mv-suggest-item:hover,
.mv-suggest-item:focus {
    background: var(--mv-primary-soft);
}

/* ---------- Ad photos (uploader) ---------- */
.mv-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: .6rem;
    border-radius: 14px;
}

.mv-images.invalid {
    outline: 2px solid #E11D48;
    outline-offset: 4px;
}

.mv-image {
    position: relative;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    background: var(--mv-surface-2);
    border: 1px solid var(--mv-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv-image-add {
    flex-direction: column;
    gap: .25rem;
    cursor: pointer;
    border: 1.5px dashed rgba(var(--mv-primary-rgb), .45);
    background: var(--mv-primary-soft);
    color: var(--mv-primary-700);
    font-size: .78rem;
    font-weight: 700;
    transition: transform .15s ease;
}

.mv-image-add i {
    font-size: 1.5rem;
}

.mv-image-add:active {
    transform: scale(.97);
}

.mv-image-add.disabled {
    opacity: .55;
    pointer-events: none;
}

.mv-image-pending {
    color: var(--mv-primary);
}

.mv-image-badge {
    position: absolute;
    bottom: .35rem;
    inset-inline-start: .35rem;
    background: var(--mv-primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: .1rem .5rem;
    border-radius: 999px;
}

.mv-image-action {
    position: absolute;
    top: .3rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 22, .6);
    color: #fff;
    font-size: .8rem;
    backdrop-filter: blur(4px);
}

.mv-image-remove {
    inset-inline-end: .3rem;
}

.mv-image-cover {
    inset-inline-start: .3rem;
}

.mv-counter {
    text-align: end;
    color: var(--mv-muted);
    font-size: .72rem;
    margin-top: .3rem;
}

textarea.form-control {
    min-height: 140px;
    line-height: 1.9;
}

/* ---------- Ad view / preview ---------- */
.mv-ad-view {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.mv-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    background: #0b1413;
}

.mv-gallery::-webkit-scrollbar {
    display: none;
}

.mv-gallery img {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    scroll-snap-align: center;
}

.mv-gallery-count {
    position: absolute;
    top: .75rem;
    inset-inline-end: .75rem;
    background: rgba(15, 23, 22, .6);
    color: #fff;
    font-size: .75rem;
    padding: .2rem .65rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.mv-gallery-empty {
    aspect-ratio: 16 / 7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    background: var(--mv-surface-2);
    color: var(--mv-muted);
    font-size: .85rem;
}

.mv-gallery-empty i {
    font-size: 2rem;
}

.mv-ad-body {
    padding: 1.1rem;
}

.mv-ad-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.7;
    margin: 0 0 .25rem;
}

.mv-ad-subtitle {
    font-size: .9rem;
    font-weight: 700;
    margin: 1.2rem 0 .6rem;
}

.mv-specs {
    margin: 0;
    border: 1px solid var(--mv-border);
    border-radius: 14px;
    overflow: hidden;
}

.mv-spec {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: .7rem .9rem;
    font-size: .88rem;
}

.mv-spec + .mv-spec {
    border-top: 1px solid var(--mv-border);
}

.mv-spec dt {
    font-weight: 500;
    color: var(--mv-muted);
}

.mv-spec dd {
    margin: 0;
    font-weight: 700;
    text-align: end;
}

.mv-spec.is-money dd {
    color: var(--mv-primary-700);
}

.mv-ad-description {
    white-space: pre-line;
    line-height: 2;
    margin: 0;
}

.mv-ad-code {
    background: var(--mv-surface-2);
    border-radius: 12px;
    padding: .5rem 1rem;
    display: inline-block;
}

/* ---------- My ads ---------- */
.mv-my-ads {
    display: grid;
    gap: .75rem;
}

.mv-my-ad {
    display: flex;
    gap: .85rem;
    padding: .75rem;
}

.mv-my-ad-thumb {
    flex: 0 0 88px;
    height: 88px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--mv-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mv-muted);
    font-size: 1.6rem;
}

.mv-my-ad-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv-my-ad-body {
    min-width: 0;
    flex: 1;
}

.mv-my-ad-title {
    font-size: .95rem;
    font-weight: 700;
    margin: 0 0 .2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mv-status {
    font-size: .72rem;
    font-weight: 700;
    padding: .15rem .6rem;
    border-radius: 999px;
    background: var(--mv-surface-2);
    color: var(--mv-muted);
}

.mv-status-pending {
    background: rgba(245, 158, 11, .15);
    color: #B45309;
}

.mv-status-published {
    background: rgba(16, 185, 129, .15);
    color: #047857;
}

.mv-status-rejected {
    background: rgba(225, 29, 72, .12);
    color: #BE123C;
}

[data-bs-theme="dark"] .mv-status-pending { color: #FBBF24; }
[data-bs-theme="dark"] .mv-status-published { color: #34D399; }
[data-bs-theme="dark"] .mv-status-rejected { color: #FB7185; }

.mv-reject-reason {
    margin-top: .5rem;
    font-size: .8rem;
    color: #BE123C;
    background: rgba(225, 29, 72, .08);
    border-radius: 10px;
    padding: .4rem .6rem;
}

/* ---------- Ad list ---------- */
.mv-ad-list {
    display: grid;
    gap: .75rem;
}

@media (min-width: 768px) {
    .mv-ad-list {
        grid-template-columns: 1fr 1fr;
    }
}

.mv-ad-card {
    display: flex;
    gap: .85rem;
    padding: .8rem;
    background: var(--mv-surface);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-radius);
    box-shadow: var(--mv-shadow-sm);
    color: inherit;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.mv-ad-card:hover {
    box-shadow: var(--mv-shadow);
    color: inherit;
}

.mv-ad-card:active {
    transform: scale(.99);
}

.mv-ad-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.mv-ad-card-title {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mv-ad-card-details {
    color: var(--mv-muted);
    font-size: .8rem;
}

.mv-ad-card-price {
    font-size: .88rem;
    font-weight: 700;
    color: var(--mv-primary-700);
}

[data-bs-theme="dark"] .mv-ad-card-price {
    color: var(--mv-primary);
}

.mv-ad-card-meta {
    margin-top: auto;
    color: var(--mv-muted);
    font-size: .74rem;
}

.mv-ad-card-thumb {
    position: relative;
    flex: 0 0 116px;
    height: 116px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--mv-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mv-muted);
    font-size: 1.8rem;
}

.mv-ad-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv-ad-card-count {
    position: absolute;
    bottom: .35rem;
    inset-inline-start: .35rem;
    display: inline-flex;
    gap: .25rem;
    align-items: center;
    background: rgba(15, 23, 22, .6);
    color: #fff;
    font-size: .68rem;
    padding: .1rem .45rem;
    border-radius: 999px;
}

.mv-ad-card-skeleton .mv-skeleton {
    display: block;
}

.mv-list-toolbar {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .85rem;
}

.mv-sort {
    width: auto;
    border-radius: 999px;
    background-color: var(--mv-surface);
    font-size: .8rem;
    padding: .35rem .9rem;
    padding-inline-end: 2.2rem; /* room for the arrow */
    background-position: left .75rem center;
}

.mv-filter-button {
    border-radius: 999px;
}

.mv-filter {
    padding: 1rem 0;
    border-bottom: 1px solid var(--mv-border);
}

.mv-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
}

.mv-sheet-footer {
    display: flex;
    gap: .6rem;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: .75rem 1rem calc(env(safe-area-inset-bottom) + .75rem);
    border-top: 1px solid var(--mv-border);
    background: var(--mv-bg);
}

/* ---------- Ad page ---------- */
.mv-owner-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: .75rem;
    padding: .6rem .9rem;
    border-radius: 14px;
    background: var(--mv-surface-2);
}

.mv-safety {
    display: flex;
    gap: .5rem;
    margin-top: 1rem;
    padding: .75rem .9rem;
    border-radius: 14px;
    background: rgba(245, 158, 11, .1);
    color: var(--mv-text);
}

.mv-safety .bi {
    color: #D97706;
}

.mv-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(0, 0, 0, .45);
    animation: mv-fade-in .2s ease;
}

.mv-bottom-sheet {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1061;
    max-width: 560px;
    margin: 0 auto;
    padding: .6rem 1.25rem calc(env(safe-area-inset-bottom) + 1.25rem);
    background: var(--mv-surface);
    border-radius: 24px 24px 0 0;
    box-shadow: var(--mv-shadow-lg);
    animation: mv-sheet-in .22s ease;
}

.mv-bottom-sheet-handle {
    width: 42px;
    height: 5px;
    border-radius: 999px;
    background: var(--mv-border);
    margin: 0 auto .9rem;
}

.mv-contact-number {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-align: center;
    padding: .6rem;
    border-radius: 14px;
    background: var(--mv-surface-2);
}

.mv-toast {
    position: fixed;
    bottom: calc(var(--mv-tabbar-height) + env(safe-area-inset-bottom) + 5rem);
    inset-inline: 0;
    width: fit-content;
    margin: 0 auto;
    z-index: 1070;
    padding: .55rem 1.1rem;
    border-radius: 999px;
    background: rgba(15, 23, 22, .88);
    color: #fff;
    font-size: .85rem;
    animation: mv-fade-in .2s ease;
}

@keyframes mv-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- Business: registration ---------- */
.mv-business-intro {
    position: relative;
    overflow: hidden;
    padding: 1.4rem;
    border-radius: var(--mv-radius-lg);
    background: var(--mv-hero);
    color: #fff;
}

.mv-business-intro > .bi {
    position: absolute;
    inset-inline-end: -10px;
    top: -14px;
    font-size: 6rem;
    opacity: .12;
}

.mv-business-intro h2 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: .9rem;
}

.mv-business-intro ul {
    list-style: none;
    padding: 0;
    margin: 0 0 .8rem;
    display: grid;
    gap: .5rem;
    font-size: .88rem;
}

.mv-business-intro li .bi {
    margin-inline-end: .5rem;
    color: #FCD34D;
}

.mv-status-card {
    display: flex;
    gap: .85rem;
    padding: 1rem;
    border-radius: var(--mv-radius);
    border: 1px solid transparent;
}

.mv-status-card > .bi {
    font-size: 1.5rem;
    line-height: 1.2;
}

.mv-status-card p {
    margin: .25rem 0 0;
    font-size: .85rem;
}

.mv-status-card.is-pending {
    background: rgba(245, 158, 11, .1);
    border-color: rgba(245, 158, 11, .3);
}

.mv-status-card.is-pending > .bi { color: #D97706; }

.mv-status-card.is-rejected {
    background: rgba(225, 29, 72, .08);
    border-color: rgba(225, 29, 72, .25);
}

.mv-status-card.is-rejected > .bi { color: #E11D48; }

.mv-status-card.is-verified {
    background: rgba(16, 185, 129, .1);
    border-color: rgba(16, 185, 129, .3);
}

.mv-status-card.is-verified > .bi { color: #059669; }

.mv-business-images {
    position: relative;
    margin-bottom: 3.2rem;
}

.mv-business-images .mv-file-slot-cover .mv-file-slot-box {
    aspect-ratio: 3 / 1;
    border-radius: 16px;
}

.mv-business-images .mv-file-slot-logo {
    position: absolute;
    bottom: -2.6rem;
    inset-inline-start: 1rem;
    width: 88px;
}

.mv-file-slot-logo .mv-file-slot-box {
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px solid var(--mv-surface);
    font-size: .7rem;
}

.mv-file-slot-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: var(--mv-surface-2);
    border: 1px solid var(--mv-border);
    text-align: center;
    padding: .4rem;
}

.mv-file-slot-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv-file-slot-add {
    cursor: pointer;
    border: 1.5px dashed rgba(var(--mv-primary-rgb), .45);
    background: var(--mv-primary-soft);
    color: var(--mv-primary-700);
    font-size: .78rem;
    font-weight: 700;
    margin: 0;
}

.mv-file-slot-add .bi {
    font-size: 1.4rem;
}

.mv-file-slot-add.disabled {
    opacity: .5;
    pointer-events: none;
}

.mv-file-slot.invalid .mv-file-slot-box {
    border-color: #E11D48;
}

.mv-file-slot-icon {
    font-size: 1.8rem;
    color: var(--mv-primary);
}

.mv-file-slot-name {
    font-size: .72rem;
    color: var(--mv-muted);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
}

.mv-business-docs > * {
    min-width: 0;
}

.mv-business-docs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .6rem;
}

.mv-chip.invalid {
    border-color: #E11D48;
}

.form-control:disabled {
    background: var(--mv-surface-2);
    opacity: .75;
}

/* ---------- Business: public profile ---------- */
.mv-profile-header {
    margin: -.75rem -1rem 1rem;
    padding: 0 1rem;
}

.mv-profile-cover {
    position: relative;
    height: 150px;
    margin: 0 -1rem;
    background: var(--mv-hero) center / cover;
}

.mv-profile-back,
.mv-profile-share {
    position: absolute;
    top: .75rem;
    background: rgba(15, 23, 22, .45);
    color: #fff;
    backdrop-filter: blur(6px);
}

.mv-profile-back { inset-inline-start: .75rem; }
.mv-profile-share { inset-inline-end: .75rem; }

.mv-profile-main {
    position: relative; /* above the cover */
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-top: -44px;
    margin-bottom: .6rem;
}

.mv-profile-logo {
    flex: none;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 4px solid var(--mv-bg);
    background: var(--mv-surface-2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--mv-muted);
    box-shadow: var(--mv-shadow-sm);
}

.mv-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv-profile-stats {
    display: flex;
    gap: 1.5rem;
    padding-bottom: .4rem;
}

.mv-profile-stats div {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: .75rem;
    color: var(--mv-muted);
}

.mv-profile-stats strong {
    font-size: 1.05rem;
    color: var(--mv-text);
}

.mv-profile-name {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 .15rem;
}

.mv-verified {
    color: #0EA5E9;
    font-size: .9em;
}

.mv-profile-bio {
    white-space: pre-line;
    line-height: 1.9;
    font-size: .9rem;
    margin-bottom: .75rem;
}

.mv-tag {
    font-size: .75rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: var(--mv-primary-soft);
    color: var(--mv-primary-700);
    font-weight: 600;
}

[data-bs-theme="dark"] .mv-tag {
    color: var(--mv-primary);
}

.mv-profile-actions {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
}

/* Instagram, WhatsApp, Telegram, website: equal buttons in one row */
.mv-profile-links {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: .5rem;
    margin: -.5rem 0 1rem;
}

.mv-profile-links .btn {
    font-size: 1.15rem;
    padding-block: .45rem;
}

.mv-profile-info {
    margin: 0;
    display: grid;
    gap: .45rem;
    font-size: .85rem;
}

.mv-profile-info div {
    display: flex;
    gap: .6rem;
}

.mv-profile-info dt {
    color: var(--mv-primary);
    font-weight: normal;
}

.mv-profile-info dd {
    margin: 0;
}

.mv-profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--mv-border);
    margin: 0 -1rem 1rem;
}

.mv-profile-tabs button {
    flex: 1;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: .7rem;
    color: var(--mv-muted);
    font-weight: 700;
    font-size: .88rem;
}

.mv-profile-tabs button.active {
    color: var(--mv-primary-700);
    border-bottom-color: var(--mv-primary);
}

.mv-profile-tabs small {
    font-size: .65rem;
    font-weight: normal;
}

.mv-business-chip {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1rem;
    padding: .75rem .9rem;
    border-radius: var(--mv-radius);
    background: var(--mv-surface);
    border: 1px solid var(--mv-border);
    color: inherit;
    text-decoration: none;
}

.mv-business-chip-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--mv-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    color: var(--mv-muted);
}

.mv-business-chip-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv-status-verified {
    background: rgba(16, 185, 129, .15);
    color: #047857;
}

.mv-status-suspended {
    background: rgba(100, 116, 139, .18);
    color: #475569;
}

/* ---------- Social: posts ---------- */
.mv-post {
    margin: 0 -1rem 1.25rem;
    background: var(--mv-surface);
    border-block: 1px solid var(--mv-border);
}

@media (min-width: 560px) {
    .mv-post {
        margin-inline: 0;
        border: 1px solid var(--mv-border);
        border-radius: var(--mv-radius);
        overflow: hidden;
    }
}

.mv-post-header {
    display: flex;
    align-items: center;
    padding: .65rem .85rem;
}

.mv-post-author {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: inherit;
    text-decoration: none;
    font-size: .88rem;
    line-height: 1.4;
}

.mv-post-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--mv-surface-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mv-muted);
    flex: none;
}

.mv-post-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv-post-media {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    background: #000;
    aspect-ratio: var(--ratio, 1);
}

.mv-post-media::-webkit-scrollbar {
    display: none;
}

.mv-post-media > img,
.mv-post-media > video {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: center;
    background: #000;
}

.mv-post-media > video {
    object-fit: contain;
}

.mv-post-dots {
    display: flex;
    justify-content: center;
    gap: .25rem;
    padding-top: .5rem;
}

.mv-post-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mv-border);
}

.mv-post-actions {
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: .35rem .5rem 0;
}

.mv-post-action {
    background: none;
    border: 0;
    font-size: 1.45rem;
    padding: .25rem .45rem;
    color: var(--mv-text);
    transition: transform .15s ease;
}

.mv-post-action:active {
    transform: scale(.85);
}

.mv-post-action.is-liked {
    color: #E11D48;
}

.mv-post-likes {
    font-weight: 700;
    font-size: .85rem;
    padding: 0 .9rem;
}

.mv-post-caption {
    white-space: pre-line;
    font-size: .88rem;
    line-height: 1.9;
    padding: .25rem .9rem .9rem;
    margin: 0;
}

.mv-post-caption.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}

.mv-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    margin: 0 -1rem;
}

.mv-post-grid > .mv-skeleton {
    aspect-ratio: 1;
    border-radius: 0;
}

.mv-post-tile {
    position: relative;
    aspect-ratio: 1;
    background: var(--mv-surface-2);
    overflow: hidden;
}

.mv-post-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv-post-tile-icon {
    position: absolute;
    top: .35rem;
    inset-inline-end: .4rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

.mv-media-duration {
    position: absolute;
    bottom: .35rem;
    inset-inline-start: .35rem;
    background: rgba(15, 23, 22, .65);
    color: #fff;
    font-size: .68rem;
    padding: .05rem .45rem;
    border-radius: 999px;
    direction: ltr;
}

/* ---------- Social: stories ---------- */
.mv-stories {
    display: flex;
    gap: .9rem;
    padding: .25rem 0 .9rem;
}

.mv-story-ring-item {
    background: none;
    border: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    width: 70px;
    flex: none;
    color: inherit;
}

.mv-story-ring,
.mv-profile-logo.has-stories {
    padding: 3px;
    border-radius: 50%;
    background: conic-gradient(from 200deg, #F59E0B, #E11D48, #0D9488, #F59E0B);
}

.mv-story-ring .mv-post-logo {
    width: 62px;
    height: 62px;
    border: 3px solid var(--mv-bg);
}

.mv-story-ring-name {
    font-size: .7rem;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

button.mv-profile-logo {
    cursor: default;
}

button.mv-profile-logo.has-stories {
    cursor: pointer;
}

.mv-profile-logo.has-stories img,
.mv-profile-logo.has-stories > .bi {
    border-radius: 50%;
    border: 3px solid var(--mv-bg);
}

.mv-story {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mv-fade-in .2s ease;
}

.mv-story-media {
    width: 100%;
    height: 100%;
    max-width: 560px;
    object-fit: contain;
}

.mv-story-bars {
    position: absolute;
    top: calc(env(safe-area-inset-top) + .6rem);
    inset-inline: .6rem;
    display: flex;
    gap: 4px;
    z-index: 2;
    max-width: 540px;
    margin: 0 auto;
}

.mv-story-bar {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .35);
    overflow: hidden;
}

.mv-story-bar > span {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
}

.mv-story-bar.is-done > span {
    width: 100%;
}

.mv-story-bar.is-active > span {
    animation: mv-story-progress linear forwards;
}

/* RTL: progress fills from the right */
@keyframes mv-story-progress {
    from { width: 0; }
    to { width: 100%; }
}

.mv-story-header {
    position: absolute;
    top: calc(env(safe-area-inset-top) + 1.2rem);
    inset-inline: .75rem;
    display: flex;
    align-items: center;
    z-index: 3;
    max-width: 540px;
    margin: 0 auto;
}

.mv-story-close {
    color: #fff;
    background: rgba(255, 255, 255, .15);
}

.mv-story-views {
    position: absolute;
    bottom: calc(env(safe-area-inset-bottom) + 1rem);
    color: #fff;
    font-size: .85rem;
    z-index: 3;
}

.mv-story-tap {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    background: none;
    border: 0;
    z-index: 1;
}

.mv-story-tap.is-back { inset-inline-start: 0; }
.mv-story-tap.is-next { inset-inline-end: 0; width: 60%; }

.mv-promo-feed .mv-promo-icon {
    background: linear-gradient(135deg, #F59E0B, #E11D48);
}

/* ---------- Business statistics ---------- */
.mv-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
}

@media (min-width: 640px) {
    .mv-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.mv-stat {
    position: relative;
    padding: .85rem;
    background: var(--mv-surface);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-radius);
}

.mv-stat-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    background: var(--mv-primary-soft);
    color: var(--mv-primary-700);
    margin-bottom: .45rem;
}

[data-bs-theme="dark"] .mv-stat-icon {
    color: var(--mv-primary);
}

.mv-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}

.mv-stat-title {
    font-size: .75rem;
    color: var(--mv-muted);
}

.mv-stat-change {
    position: absolute;
    top: .8rem;
    left: .7rem; /* physical side: the badge itself is LTR (+12%), the icon is on the right */
    font-size: .72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: .05rem .4rem;
    direction: ltr;
}

.mv-stat-change.is-up {
    color: #047857;
    background: rgba(16, 185, 129, .12);
}

.mv-stat-change.is-down {
    color: #BE123C;
    background: rgba(225, 29, 72, .1);
}

[data-bs-theme="dark"] .mv-stat-change.is-up { color: #34D399; }
[data-bs-theme="dark"] .mv-stat-change.is-down { color: #FB7185; }

.mv-chart {
    position: relative;
    margin: 0;
}

.mv-chart svg {
    width: 100%;
    height: 180px;
    display: block;
    overflow: visible;
}

.mv-chart-grid {
    stroke: var(--mv-border);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.mv-chart-line {
    fill: none;
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.mv-chart-area {
    opacity: .08;
}

.mv-chart-max {
    position: absolute;
    top: -.2rem;
    inset-inline-end: 0;
    font-size: .68rem;
    color: var(--mv-muted);
    background: var(--mv-surface);
    padding: 0 .25rem;
}

.mv-chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: .66rem;
    color: var(--mv-muted);
    margin-top: .35rem;
    direction: ltr;
}

.mv-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: .6rem;
    font-size: .75rem;
}

.mv-chart-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-inline-end: .3rem;
    vertical-align: -1px;
}

.mv-funnel {
    display: grid;
    gap: .45rem;
}

.mv-funnel > div {
    width: var(--w);
    min-width: fit-content;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem .8rem;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(var(--mv-primary-rgb), .08), rgba(var(--mv-primary-rgb), .22));
    font-size: .82rem;
    white-space: nowrap;
}

.mv-funnel small {
    color: var(--mv-muted);
    font-weight: normal;
}

.mv-stats-totals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--mv-surface);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-radius);
    padding: .8rem 0;
    text-align: center;
}

.mv-stats-totals div + div {
    border-inline-start: 1px solid var(--mv-border);
}

.mv-stats-totals strong {
    display: block;
    font-size: 1.1rem;
}

.mv-stats-totals span {
    font-size: .72rem;
    color: var(--mv-muted);
}

.mv-stats-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--mv-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mv-muted);
    flex: none;
}

.mv-stats-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv-stats-overlay {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: .25rem .4rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .65));
    color: #fff;
    font-size: .7rem;
    display: flex;
    gap: .25rem;
    align-items: center;
}

/* ---------- My ads: actions ---------- */
.mv-my-ad-card {
    padding: 0;
    overflow: hidden;
}

.mv-my-ad-card .mv-my-ad {
    border: 0;
    box-shadow: none;
    background: none;
    display: flex;
}

.mv-my-ad-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .75rem;
    border-top: 1px solid var(--mv-border);
    background: var(--mv-surface-2);
}

.btn-icon.is-active {
    color: var(--mv-primary);
}

.mv-my-ad-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    white-space: nowrap;
}

.mv-my-ad-actions > .mv-muted {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* ---------- Business team ---------- */
.mv-team {
    display: grid;
    gap: .6rem;
}

.mv-team-member {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .85rem;
}

.mv-team-member .mv-avatar,
.mv-team-chip .mv-avatar {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    flex: none;
}

.mv-team-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .9rem;
    margin-top: .45rem;
    font-size: .74rem;
    color: var(--mv-muted);
}

.mv-team-stats .bi {
    margin-inline-end: .25rem;
    color: var(--mv-primary);
}

.mv-team-strip {
    display: flex;
    gap: .6rem;
}

.mv-team-chip {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    padding: .75rem .9rem;
    min-width: 108px;
    background: var(--mv-surface);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-radius);
    text-align: center;
    font-size: .8rem;
}

.mv-team-chip small {
    color: var(--mv-muted);
    font-size: .7rem;
}

.min-w-0 {
    min-width: 0;
}

button.mv-list-item {
    width: 100%;
    background: none;
    border: 0;
    text-align: start;
}

/* ---------- Office (CRM) ---------- */
.mv-office-item {
    align-items: flex-start;
}

.mv-office-item .mv-avatar {
    width: 40px;
    height: 40px;
    font-size: .95rem;
    flex: none;
}

.mv-office-price {
    color: var(--mv-primary-700);
    font-weight: 700;
    font-size: .85rem;
}

[data-bs-theme="dark"] .mv-office-price {
    color: var(--mv-primary);
}

.mv-range {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.mv-range > .mv-field + .mv-field {
    margin-top: 0;
}

.mv-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .15rem;
}

.mv-timeline li {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    padding: .6rem 0;
}

.mv-timeline li + li {
    border-top: 1px solid var(--mv-border);
}

.mv-timeline-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mv-surface-2);
    color: var(--mv-muted);
}

.mv-timeline li.is-open .mv-timeline-icon {
    background: rgba(245, 158, 11, .15);
    color: #D97706;
}

.mv-timeline-text {
    white-space: pre-line;
    font-size: .88rem;
    line-height: 1.8;
}

.mv-due {
    margin-inline-start: .35rem;
    color: #D97706;
    white-space: nowrap;
}

.mv-due.is-late {
    color: #E11D48;
    font-weight: 700;
}

.mv-match {
    align-items: flex-start;
}

.mv-match-score {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 800;
    color: var(--mv-primary-700);
    background: conic-gradient(var(--mv-primary) calc(var(--score) * 1%), var(--mv-surface-2) 0);
    position: relative;
}

.mv-match-score::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--mv-surface);
}

.mv-match-score {
    isolation: isolate;
}

.mv-match-score::before {
    z-index: -1;
}

.mv-match-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin-top: .35rem;
}

.mv-match-reasons .mv-tag {
    font-size: .66rem;
    padding: .1rem .5rem;
}

/* ---------- Notifications ---------- */
.mv-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--mv-text);
    font-size: 1.2rem;
}

.mv-bell:hover {
    background: var(--mv-surface-2);
    color: var(--mv-text);
}

.mv-bell-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: #E11D48;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--mv-surface);
}

.mv-notification.is-unread {
    background: var(--mv-primary-soft);
    background: color-mix(in srgb, var(--mv-primary) 7%, transparent);
}

.mv-notification.is-unread .mv-list-text {
    font-weight: 700;
}

/* ---------- Leases ---------- */
.mv-date {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1.2fr;
    gap: .5rem;
}

.mv-date.invalid .form-select {
    border-color: var(--bs-form-invalid-border-color, #dc3545);
}

.mv-lease-banner {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.mv-lease-banner > .bi:first-child {
    font-size: 1.4rem;
    color: var(--mv-primary-700);
}

.mv-lease-banner.has-items {
    border-color: #F59E0B;
    background: color-mix(in srgb, #F59E0B 8%, var(--mv-surface));
}

.mv-lease-banner.has-items > .bi:first-child {
    color: #D97706;
}

/* ---------- Bar chart ---------- */
.mv-bars {
    margin: 0;
}

.mv-bars-plot {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 150px;
    border-bottom: 1px solid var(--mv-border);
    background: repeating-linear-gradient(to top, transparent 0 49px, var(--mv-border) 49px 50px);
}

.mv-bars-group {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    height: 100%;
}

.mv-bars-bar {
    flex: 1;
    max-width: 14px;
    border-radius: 4px 4px 0 0;
    transition: height .3s;
}

.mv-bars-labels {
    display: flex;
    gap: 4px;
    margin-top: .35rem;
}

.mv-bars-labels span {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: .6rem;
    color: var(--mv-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

/* ---------- Finance ---------- */
.mv-money-tile .mv-stat-value {
    font-size: 1.05rem;
}

.mv-amount-in { color: #059669; }
.mv-amount-out { color: #E11D48; }
[data-bs-theme="dark"] .mv-amount-in { color: #34D399; }
[data-bs-theme="dark"] .mv-amount-out { color: #FB7185; }

.mv-amount {
    flex: none;
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
}

.mv-progress {
    height: 8px;
    border-radius: 4px;
    background: var(--mv-surface-2);
    overflow: hidden;
}

.mv-progress > span {
    display: block;
    height: 100%;
    background: #10B981;
    border-radius: 4px;
}

.mv-share-row {
    display: grid;
    grid-template-columns: 1fr 96px auto;
    gap: .5rem;
    align-items: center;
    margin-bottom: .5rem;
}

.mv-kv {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .35rem 0;
    font-size: .88rem;
}

.mv-kv + .mv-kv {
    border-top: 1px dashed var(--mv-border);
}

.mv-kv.is-total {
    font-weight: 700;
}

/* ---------- Printable contract ---------- */
.mv-contract {
    background: #fff;
    color: #111;
    border: 1px solid var(--mv-border);
    border-radius: 12px;
    padding: 1.4rem 1.2rem;
    font-size: .86rem;
    line-height: 2;
    outline: none;
}

.mv-contract-head {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding-bottom: .7rem;
    border-bottom: 2px solid #111;
}

.mv-contract-head img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 10px;
}

.mv-contract-head strong {
    display: block;
    font-size: 1.05rem;
}

.mv-contract-head small {
    display: block;
    font-size: .72rem;
    color: #444;
    line-height: 1.6;
}

.mv-contract-meta {
    display: grid;
    font-size: .74rem;
    text-align: start;
    white-space: nowrap;
}

.mv-contract h1 {
    text-align: center;
    font-size: 1.15rem;
    margin: 1rem 0 .6rem;
}

.mv-contract h2 {
    font-size: .92rem;
    margin: .9rem 0 .2rem;
}

.mv-contract p,
.mv-contract ol {
    margin: 0 0 .3rem;
}

.mv-contract ol {
    padding-inline-start: 1.3rem;
}

.mv-blank {
    display: inline-block;
    border-bottom: 1px dotted #555;
    line-height: 1.2;
}

.mv-contract-signs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem .8rem;
    margin-top: 1.6rem;
    text-align: center;
    font-size: .8rem;
}

.mv-contract-signs > div {
    min-height: 70px;
    border-top: 1px solid #999;
    padding-top: .3rem;
}

@media print {
    @page {
        size: A4;
        margin: 14mm;
    }

    body {
        background: #fff !important;
    }

    body * {
        visibility: hidden;
    }

    .mv-contract,
    .mv-contract * {
        visibility: visible;
    }

    .mv-contract {
        position: absolute;
        inset: 0 0 auto 0;
        border: 0;
        border-radius: 0;
        padding: 0;
        font-size: 11pt;
    }
}

/* ---------- Calendar ---------- */
.mv-week {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.mv-week-days {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .25rem;
}

.mv-week-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .1rem;
    padding: .4rem 0 .3rem;
    border: 1px solid var(--mv-border);
    border-radius: 12px;
    background: var(--mv-surface);
    color: var(--mv-text);
}

.mv-week-day small {
    font-size: .68rem;
    color: var(--mv-muted);
}

.mv-week-day.is-today {
    border-color: var(--mv-primary);
}

.mv-week-day.active {
    background: var(--mv-primary);
    border-color: var(--mv-primary);
    color: #fff;
}

.mv-week-day.active small {
    color: rgba(255, 255, 255, .8);
}

.mv-week-dots {
    display: flex;
    gap: 2px;
    height: 5px;
}

.mv-week-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #F59E0B;
}

.mv-agenda-time {
    flex: none;
    width: 2.6rem;
    font-weight: 700;
    font-size: .82rem;
    padding-top: .45rem;
}

.mv-timeline li.is-done .mv-timeline-text {
    text-decoration: line-through;
    color: var(--mv-muted);
}

.mv-owner-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
}

/* ---------- Market tools ---------- */
.mv-market-row {
    display: block;
    padding: .45rem 0;
    cursor: pointer;
}

.mv-estimate {
    text-align: center;
    border-color: var(--mv-primary);
}

.mv-estimate-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--mv-primary-700);
    margin: .2rem 0;
}

/* The remove button of the round logo sits inside the circle */
.mv-file-slot-logo .mv-image-remove {
    top: 8%;
    inset-inline-end: 8%;
    width: 24px;
    height: 24px;
}

/* Input groups laid out left-to-right (e.g. "@" + handle): outer corners round, inner corners square */
.input-group[dir="ltr"] > :first-child {
    border-radius: 12px 0 0 12px !important;
}

.input-group[dir="ltr"] > :last-child:not(:first-child) {
    border-radius: 0 12px 12px 0 !important;
}

/* The same in right-to-left groups (e.g. a number + "%") */
.input-group:not([dir="ltr"]) > :first-child:not(:last-child) {
    border-radius: 0 12px 12px 0 !important;
}

.input-group:not([dir="ltr"]) > :last-child:not(:first-child) {
    border-radius: 12px 0 0 12px !important;
}

/* ---------- Maps ---------- */
.mv-map {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--mv-border);
    background: var(--mv-surface-2);
    z-index: 0;
}

.mv-map .leaflet-control-attribution {
    font-size: 10px;
}

.mv-map-popup {
    min-width: 150px;
    font-family: inherit;
    text-align: right;
}

.mv-map-popup strong {
    display: block;
    margin-bottom: .2rem;
}

.mv-map-popup a {
    display: inline-block;
    margin-top: .3rem;
    font-weight: 700;
}

/* ---------- Business kinds ---------- */
.mv-kind-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
}

@media (min-width: 640px) {
    .mv-kind-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.mv-kind {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 82px;
    padding: .5rem .35rem;
    border: 1px solid var(--mv-border);
    border-radius: 14px;
    background: var(--mv-surface);
    color: var(--mv-text);
    font-size: .74rem;
    line-height: 1.4;
    text-align: center;
}

.mv-kind .bi {
    font-size: 1.35rem;
    color: var(--mv-primary-700);
}

.mv-kind.active {
    border-color: var(--mv-primary);
    background: var(--mv-primary-soft);
    box-shadow: 0 0 0 1px var(--mv-primary) inset;
    font-weight: 700;
}

.mv-kind:disabled {
    opacity: .45;
}

/* Business directory and branches */
.mv-business-list { display: flex; flex-direction: column; gap: .5rem; }
.mv-business-row { display: flex; align-items: center; gap: .75rem; padding: .75rem; text-decoration: none; }
.mv-business-row-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; background: var(--mv-primary-soft); font-size: 1.35rem; color: var(--mv-primary); }
.mv-branch-list { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; flex-direction: column; gap: .75rem; }
.mv-branch-list li { display: flex; gap: .75rem; align-items: flex-start; }
.mv-branch-list li + li { border-top: 1px solid var(--mv-border); padding-top: .75rem; }
.min-w-0 { min-width: 0; }
.mv-hint { background: var(--mv-primary-soft); border-radius: var(--mv-radius-sm); padding: .65rem .8rem; font-size: .85rem; line-height: 1.8; }

/* ---------- Chat ---------- */
.mv-chat-avatar { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; object-fit: cover; display: grid; place-items: center; background: var(--mv-primary-soft); color: var(--mv-primary); font-weight: 700; }
.mv-chat-row.is-unread strong { color: var(--mv-primary); }
.mv-chat-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--mv-primary); color: #fff; font-size: .72rem; display: inline-grid; place-items: center; }
.mv-chat-head { display: flex; align-items: center; gap: .6rem; position: sticky; top: var(--mv-appbar-height); z-index: 6; background: var(--mv-bg); padding: .5rem 0; margin-bottom: .5rem; border-bottom: 1px solid var(--mv-border); }
.mv-chat-head .mv-chat-avatar { width: 40px; height: 40px; }
/* The room fills the screen so the composer sits just above the tab bar, even with few messages */
.mv-chat-page { display: flex; flex-direction: column; min-height: calc(100dvh - var(--mv-appbar-height) - var(--mv-tabbar-height) - env(safe-area-inset-bottom) - 1.75rem); margin-bottom: -1rem; }
.mv-chat-messages { display: flex; flex-direction: column; gap: .35rem; padding-bottom: .5rem; flex: 1; }
.mv-chat-day { text-align: center; margin: .5rem 0; }
.mv-chat-day span { background: var(--mv-surface); border: 1px solid var(--mv-border); border-radius: 999px; padding: .1rem .7rem; font-size: .75rem; color: var(--mv-muted); }
.mv-bubble { max-width: 80%; padding: .45rem .7rem .3rem; border-radius: 16px; display: flex; flex-direction: column; box-shadow: var(--mv-shadow-sm); }
.mv-bubble.mine { align-self: flex-start; background: var(--mv-primary); color: #fff; border-start-start-radius: 4px; }
.mv-bubble.theirs { align-self: flex-end; background: var(--mv-surface); border-start-end-radius: 4px; }
.mv-bubble-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.mv-bubble-meta { font-size: .68rem; opacity: .75; align-self: flex-end; display: flex; gap: .25rem; align-items: center; }
.mv-chat-composer { display: flex; gap: .5rem; align-items: flex-end; position: sticky; bottom: calc(var(--mv-tabbar-height) + env(safe-area-inset-bottom)); z-index: 5; background: var(--mv-bg); padding: .5rem 0; }
.mv-chat-composer textarea.form-control { resize: none; min-height: 44px; height: auto; max-height: 140px; field-sizing: content; border-radius: 22px; padding-block: .55rem; }
.mv-chat-composer .btn-icon { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.mv-chat-blocked { text-align: center; color: var(--mv-muted); padding: .75rem; background: var(--mv-surface); border-radius: var(--mv-radius-sm); display: flex; gap: .5rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.mv-chat-empty { text-align: center; color: var(--mv-muted); padding: 2rem 1rem; }
.mv-chat-empty .bi { font-size: 2.5rem; color: var(--mv-primary); }
.mv-chat-empty small { display: block; margin-top: .5rem; }
.mv-surface-btn { background: var(--mv-surface); box-shadow: var(--mv-shadow); }

/* ---------- Support ---------- */
.mv-ticket-thread { display: flex; flex-direction: column; gap: .6rem; }
.mv-ticket-message { background: var(--mv-surface); border-radius: var(--mv-radius); padding: .75rem .9rem; box-shadow: var(--mv-shadow-sm); border-inline-start: 3px solid var(--mv-border); }
.mv-ticket-message.staff { border-inline-start-color: var(--mv-primary); background: var(--mv-primary-soft); }
.mv-ticket-sender { display: flex; gap: .4rem; align-items: center; margin-bottom: .35rem; font-size: .85rem; }
.mv-ticket-sender small { margin-inline-start: auto; }
.mv-ticket-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; }
.mv-stars { display: flex; gap: .25rem; }
.mv-stars button { border: 0; background: none; font-size: 1.6rem; color: var(--mv-accent); padding: 0 .1rem; }

/* Chips on several lines */
.mv-chip-wrap { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.mv-chip-wrap .mv-chip { margin: 0; }
.mv-chip-more { border-style: dashed; color: var(--mv-primary); }
.mv-chip.is-soon { opacity: .6; }
.mv-otp { letter-spacing: .6em; text-align: center; font-size: 1.4rem; }

/* ---------- Banners (advertising) ---------- */
.mv-banner { position: relative; margin-bottom: 1rem; border-radius: var(--mv-radius); overflow: hidden; box-shadow: var(--mv-shadow-sm); background: var(--mv-surface); }
.mv-banner-link, .mv-banner img { display: block; width: 100%; }
.mv-banner img { object-fit: cover; }
.mv-banner-hometop img { aspect-ratio: 3 / 1; }
.mv-banner-categorytop img, .mv-banner-addetail img { aspect-ratio: 4 / 1; }
.mv-banner-badge { position: absolute; top: .5rem; inset-inline-end: .5rem; background: rgba(0,0,0,.55); color: #fff; font-size: .68rem; padding: .1rem .5rem; border-radius: 999px; }
.mv-banner-badge.static { position: static; background: var(--mv-accent-soft); color: var(--mv-text); margin-inline-end: .35rem; }
.mv-banner-dots { position: absolute; bottom: .4rem; inset-inline: 0; display: flex; justify-content: center; gap: .3rem; }
.mv-banner-dots button { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.6); }
.mv-banner-dots button.active { width: 18px; border-radius: 4px; background: #fff; }
.mv-native-banner { border: 1px dashed var(--mv-accent); }
.mv-native-banner-foot { font-size: .75rem; color: var(--mv-muted); margin-top: auto; }
.mv-native-banner .mv-ad-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mv-wallet { background: var(--mv-hero); color: #fff; }
.mv-wallet .mv-muted { color: rgba(255,255,255,.8) !important; }
.mv-wallet-balance { font-size: 2rem; font-weight: 800; margin: .25rem 0; }
.mv-wallet-balance small { font-size: .9rem; font-weight: 500; }
.mv-placements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.mv-placement { display: flex; flex-direction: column; gap: .2rem; align-items: flex-start; text-align: start; padding: .8rem; border-radius: var(--mv-radius-sm); border: 1.5px solid var(--mv-border); background: var(--mv-surface); color: inherit; }
.mv-placement .bi { font-size: 1.3rem; color: var(--mv-primary); }
.mv-placement small { color: var(--mv-muted); font-size: .75rem; line-height: 1.6; }
.mv-placement.active { border-color: var(--mv-primary); background: var(--mv-primary-soft); }
.mv-placement-meta { font-size: .72rem; color: var(--mv-primary); margin-top: auto; }
.mv-banner-upload { display: grid; place-items: center; width: 100%; border: 2px dashed var(--mv-border); border-radius: var(--mv-radius-sm); overflow: hidden; cursor: pointer; color: var(--mv-muted); background: var(--mv-bg); }
.mv-banner-upload.invalid { border-color: #DC2626; }
.mv-banner-upload img { width: 100%; height: 100%; object-fit: cover; }
.mv-quote { position: sticky; bottom: calc(var(--mv-tabbar-height) + env(safe-area-inset-bottom) + .5rem); z-index: 5; box-shadow: var(--mv-shadow-lg); }
.mv-campaign-row img { width: 84px; height: 42px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.mv-campaign-image { width: 100%; border-radius: var(--mv-radius-sm); }
@media (max-width: 380px) { .mv-placements { grid-template-columns: minmax(0, 1fr); } }

/* Promotions and badges */
.mv-ad-card-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .25rem; }
.mv-badge-featured, .mv-badge-verified { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .1rem .5rem; }
.mv-badge-featured { background: #fef3c7; color: #b45309; }
.mv-badge-verified { background: var(--mv-primary-soft); color: var(--mv-primary); }
.mv-ad-card.is-featured { box-shadow: inset 0 0 0 2px #fbbf24; }
.mv-promo-option { width: 100%; text-align: start; border: 0; background: transparent; }
.mv-promo-option.active { background: var(--mv-primary-soft); box-shadow: inset 0 0 0 2px var(--mv-primary); }
.mv-promo-option:disabled { opacity: .55; }

/* ---------- The business's own page (editor, requests, profile) ---------- */
.mv-site-hero {
    border-top: 4px solid var(--biz, var(--mv-primary));
}

.mv-site-url {
    display: block;
    /* Latin digits: the address is typed as shown */
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    margin: .2rem 0 .4rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--biz, var(--mv-primary));
    text-decoration: none;
    overflow-wrap: anywhere;
    text-align: right;
}

.mv-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.mv-color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--mv-surface);
    box-shadow: 0 0 0 1px var(--mv-border);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.mv-color-swatch.active {
    box-shadow: 0 0 0 2px var(--mv-text);
}

.mv-faq-edit {
    padding: .75rem;
    margin-bottom: .6rem;
    border-radius: 12px;
    background: var(--mv-surface-2);
}

.mv-project-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex: none;
}

.mv-project-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
}

.mv-project-photo {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
}

.mv-project-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv-project-photos .mv-file-slot-box {
    aspect-ratio: 1;
    border-radius: 12px;
    font-size: .75rem;
}

.mv-lead.is-new {
    border-inline-start: 4px solid var(--mv-primary);
}

.mv-lead-mobile {
    text-align: right;
    font-weight: 700;
    margin: .35rem 0;
}

.mv-lead-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .4rem;
}

.mv-lead-tags span {
    padding: .15rem .6rem;
    border-radius: 999px;
    background: var(--mv-surface-2);
    font-size: .8rem;
}

.mv-lead-message,
.mv-about-text {
    white-space: pre-line;
    line-height: 1.9;
}

.mv-lead-message {
    margin: .4rem 0;
    font-size: .9rem;
}

/* Photos of a portfolio item: swipe sideways */
.mv-project-gallery {
    display: flex;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    aspect-ratio: 4 / 3;
    background: var(--mv-surface-2);
}

.mv-project-gallery img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
}

.mv-faq {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.mv-faq summary {
    font-weight: 700;
    cursor: pointer;
}

.mv-faq p {
    margin: .5rem 0 0;
    white-space: pre-line;
    color: var(--mv-muted);
    line-height: 1.9;
}

/* The business's accent color on its profile */
.mv-profile-header .btn-primary {
    --bs-btn-bg: var(--biz);
    --bs-btn-border-color: var(--biz);
    --bs-btn-hover-bg: color-mix(in srgb, var(--biz) 85%, #000);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--biz) 85%, #000);
    --bs-btn-active-bg: color-mix(in srgb, var(--biz) 75%, #000);
    --bs-btn-active-border-color: color-mix(in srgb, var(--biz) 75%, #000);
}

.mv-profile-header .mv-verified {
    color: var(--biz);
}

.mv-profile-header .mv-lead-button {
    border: 1px dashed var(--biz);
    background: color-mix(in srgb, var(--biz) 10%, transparent);
    color: var(--biz);
    font-weight: 700;
}

.mv-lead-sheet {
    max-height: 90vh;
    overflow-y: auto;
}

/* Business stats: own page */
.mv-own-highlight {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    padding: .75rem .9rem;
    border-radius: var(--mv-radius-sm);
    background: var(--mv-primary-soft);
    color: var(--mv-primary-800);
    font-size: .92rem;
}

[data-bs-theme="dark"] .mv-own-highlight {
    color: #99F6E4;
}

.mv-own-subtitle {
    font-size: .9rem;
    font-weight: 700;
    margin: 0 0 .5rem;
}

.mv-bars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .55rem;
}

.mv-bars li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .2rem .75rem;
    font-size: .9rem;
}

.mv-bars li > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mv-bars li > i {
    grid-column: 1 / -1;
    display: block;
    height: 6px;
    border-radius: 999px;
    background: var(--mv-primary-600);
}

a.mv-stat {
    color: inherit;
    text-decoration: none;
}

/* New version of the web app (EndPoint.PWA/wwwroot/app-update.js) */
.mv-update-banner {
    position: fixed;
    inset-inline: 12px;
    bottom: calc(var(--mv-tabbar-height) + 12px + env(safe-area-inset-bottom));
    z-index: 1090;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .7rem .9rem;
    border-radius: var(--mv-radius);
    background: var(--mv-surface);
    color: var(--mv-text);
    border: 1px solid var(--mv-border);
    box-shadow: var(--mv-shadow-lg);
    font-size: .92rem;
    max-width: 520px;
    margin-inline: auto;
}

/* Smart empty state and wanted requests */
.mv-smart-empty h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: .75rem 0 .35rem;
}

.mv-smart-empty-icon {
    display: inline-grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: var(--mv-primary-soft);
    color: var(--mv-primary);
    font-size: 1.4rem;
}

.mv-wanted-card {
    display: grid;
    gap: .5rem;
}

.mv-wanted-title {
    font-size: .98rem;
    font-weight: 800;
    margin: 0 0 .15rem;
}

.mv-wanted-budget {
    font-weight: 700;
    color: var(--mv-primary-700);
    font-size: .9rem;
}

.mv-wanted-text {
    margin: 0;
    font-size: .9rem;
    white-space: pre-line;
}

.mv-onbehalf {
    border: 1px dashed var(--mv-primary-600);
}

/* Category tiles: count of ads in the city, empty ones faded */
.mv-category-icon {
    position: relative;
}

.mv-category-count {
    position: absolute;
    top: -6px;
    inset-inline-end: -8px;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 .3rem;
    border-radius: 999px;
    background: var(--mv-primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 2px var(--mv-surface);
}

.mv-category.is-empty {
    color: var(--mv-muted);
}

.mv-list-text small.mv-count-on {
    color: var(--mv-primary-700);
    font-weight: 600;
}

/* «عضو پیشگام» badge */
.mv-pioneer {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .1rem .5rem;
    border-radius: 999px;
    background: var(--mv-accent-soft);
    color: var(--mv-accent-600);
    font-size: .72rem;
    font-weight: 700;
    vertical-align: middle;
}
