/* zsm-mobile v14 — schools-mobile.css */
@media (max-width: 767px) {
    :root {
        --zsm-y: #fbc42f;
        --zsm-ys: #fff9e8;
        --zsm-dk: #2f2f2f;
        --zsm-mut: #8a8a8a;
        --zsm-bd: #ececec;
        --zsm-bg: #ffffff;
    }

    /* مخفی کردن لایه قدیمی */
    .mir-page.zsm-ready > .container.primary-section { display: none !important; }
    .mir-page.zsm-ready .zsm-hide-legacy { display: none !important; }
    .mir-page.zsm-ready #classDetailBackdrop,
    #classDetailBackdrop.zsm-legacy-modal { display: none !important; }
    .mir-page.zsm-ready .zsm-profile { display: none !important; }
    .mir-page.zsm-ready .zsm-carousel__arrow { display: none !important; }

    .mir-page.zsm-ready {
        background: #fff !important;
        padding: 0 !important;
        font-size: 13px !important;
    }

    .mir-page.zsm-ready > .container {
        background: #fff !important;
        padding: 0 !important;
        box-shadow: none !important;
        max-width: 100% !important;
    }

    .mir-page.zsm-ready .secondary-card {
        background: #fff !important;
        border-radius: 0 !important;
        padding: 14px 16px !important;
        box-shadow: none !important;
        margin-top: 0 !important;
        border: 0 !important;
    }

    /* --- شِل موبایل — پس‌زمینه سفید تمام‌عرض --- */
    .zsm-shell {
        background: #fff;
        padding: 0;
    }

    /* ۱. کاروسل + اشتراک/علاقه‌مندی روی عکس */
    .zsm-carousel {
        position: relative;
        overflow: hidden;
        background: #f5f5f5;
        touch-action: manipulation;
    }

    .zsm-carousel__overlay {
        position: absolute;
        top: 12px;
        left: 12px;
        display: flex;
        gap: 8px;
        z-index: 4;
    }

    .zsm-carousel__overlay .icon-circle {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        border-radius: 50% !important;
        background: rgba(255,255,255,.92) !important;
        box-shadow: 0 2px 10px rgba(0,0,0,.12) !important;
        border: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .zsm-carousel__overlay .icon-circle img {
        width: 22px !important;
        height: 22px !important;
        filter: none !important;
    }

    .zsm-carousel__track {
        display: flex;
        direction: ltr;
        transition: transform .32s ease;
        will-change: transform;
    }

    .zsm-carousel__slide {
        flex: 0 0 100%;
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .zsm-carousel__slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .zsm-carousel__dots {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 10px;
        display: flex;
        justify-content: center;
        gap: 6px;
        z-index: 2;
    }

    .zsm-carousel__dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        border: 0;
        padding: 0;
        background: rgba(255,255,255,.45);
        cursor: pointer;
    }

    .zsm-carousel__dot.is-active { background: var(--zsm-y); }

    .zsm-carousel--single .zsm-carousel__dots { display: none; }

    /* پروفایل — فقط دسکتاپ/قدیمی؛ در موبایل نمایش داده نمی‌شود */
    .zsm-profile {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        background: #fff;
        margin: 0;
        padding: 16px;
        border-bottom: 1px solid #f2f2f2;
    }

    .zsm-profile__avatar {
        flex: 0 0 80px;
        width: 80px;
        height: 80px;
        border-radius: 16px;
        object-fit: cover;
        box-shadow: 0 2px 10px rgba(0,0,0,.08);
    }

    .zsm-profile__body { flex: 1; min-width: 0; }

    .zsm-profile__top {
        display: flex;
        align-items: flex-start;
        gap: 6px;
    }

    .zsm-profile__info { flex: 1; min-width: 0; }

    .zsm-biz-badge {
        display: inline-block;
        background: var(--zsm-ys);
        color: #9a7710;
        font-size: 10px;
        font-weight: 800;
        padding: 3px 9px;
        border-radius: 999px;
        margin-bottom: 4px;
    }

    .zsm-profile__name {
        font-size: 18px;
        font-weight: 800;
        color: var(--zsm-dk);
        margin: 0 0 3px;
        line-height: 1.35;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .zsm-profile__name-star {
        color: var(--zsm-y);
        font-size: 14px;
    }

    .zsm-profile__managed {
        font-size: 11px;
        color: var(--zsm-mut);
        margin: 0 0 3px;
    }

    .zsm-profile__cat {
        font-size: 12px;
        color: var(--zsm-mut);
        margin: 0 0 6px;
        line-height: 1.5;
    }

    .zsm-profile__teaser {
        font-size: 12px;
        color: #555;
        line-height: 1.85;
        margin: 6px 0 0;
    }

    .zsm-profile__more {
        display: inline;
        background: none;
        border: 0;
        color: #c99700;
        font-size: 12px;
        font-weight: 800;
        cursor: pointer;
        padding: 0;
        margin-right: 4px;
    }

    .zsm-biz-rating {
        display: flex;
        align-items: center;
        gap: 4px;
        margin-top: 5px;
        font-size: 12px;
    }

    .zsm-biz-rating:empty { display: none; }
    .zsm-biz-rating__star { color: var(--zsm-y); }
    .zsm-biz-rating__val { font-weight: 800; }
    .zsm-biz-rating__count { color: var(--zsm-mut); font-size: 11px; }

    /* آمار */
    .zsm-stats {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        background: #fff;
        margin: 0;
        padding: 14px 8px;
        border-bottom: 1px solid #f2f2f2;
        text-align: center;
    }

    .zsm-stats__item {
        position: relative;
        padding: 0 4px;
    }

    .zsm-stats__item:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 0;
        top: 15%;
        height: 70%;
        width: 1px;
        background: #ececec;
    }

    .zsm-stats__val {
        display: block;
        font-size: 14px;
        font-weight: 800;
        color: var(--zsm-dk);
    }

    .zsm-stats__lbl {
        display: block;
        font-size: 9px;
        color: var(--zsm-mut);
        margin-top: 3px;
        line-height: 1.4;
    }

    /* ۳. چهار دکمه در یک ردیف */
    .zsm-actions {
        display: flex;
        background: #fff;
        margin: 0;
        border-bottom: 1px solid #f2f2f2;
    }

    .zsm-action-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-height: 64px;
        border: 0;
        border-radius: 0;
        background: #fff;
        color: var(--zsm-dk);
        font-size: 10px;
        font-weight: 700;
        cursor: pointer;
        padding: 10px 4px;
        position: relative;
    }

    .zsm-action-btn:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 0;
        top: 20%;
        height: 60%;
        width: 1px;
        background: #ececec;
    }

    .zsm-action-btn__ic {
        width: 22px;
        height: 22px;
        color: #2f2f2f;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 22px;
    }

    .zsm-action-btn__ic svg {
        width: 22px;
        height: 22px;
        display: block;
    }

    /* ۴. تب کلاس‌ها / رویدادها */
    .zsm-main-tabs {
        display: flex;
        gap: 0;
        margin: 0;
        padding: 0 16px;
        border-bottom: 2px solid #ececec;
        background: #fff;
    }

    .zsm-main-tab {
        flex: 1;
        text-align: center;
        font-size: 14px;
        font-weight: 800;
        padding: 10px 0;
        border: 0;
        background: none;
        color: var(--zsm-mut);
        cursor: pointer;
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
    }

    .zsm-main-tab.is-active {
        color: #b8860b;
        border-bottom-color: var(--zsm-y);
    }

    .zsm-main-panel {
        margin: 0;
        background: #fff;
    }

    .zsm-main-panel[hidden] { display: none !important; }

    .mir-page.zsm-ready .classes-header { display: none !important; }

    /* جستجو + فیلتر + تگ دسته‌بندی */
    .zsm-class-search {
        display: flex;
        align-items: stretch;
        gap: 8px;
        direction: ltr;
    }

    .zsm-class-search__filter {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        border: 1px solid #e8e8e8;
        border-radius: 12px;
        background: #fff;
        color: #2f2f2f;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
    }

    .zsm-class-search__filter svg {
        width: 20px;
        height: 20px;
        display: block;
    }

    .zsm-class-search__field {
        flex: 1;
        position: relative;
        min-width: 0;
    }

    .zsm-class-search__field input {
        width: 100% !important;
        height: 44px !important;
        border: 1px solid #e8e8e8 !important;
        border-radius: 12px !important;
        padding: 10px 40px 10px 12px !important;
        font-size: 13px !important;
        text-align: right;
        direction: rtl;
        box-sizing: border-box;
        background: #fff !important;
    }

    .zsm-class-search__field .search-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #888;
        pointer-events: none;
    }

    .zsm-class-chips {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 10px 0 4px;
        margin-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .zsm-class-chips::-webkit-scrollbar { display: none; }

    .zsm-class-chip {
        flex: 0 0 auto;
        border: 1px solid #e8e8e8;
        border-radius: 999px;
        background: #fff;
        color: #444;
        font-size: 12px;
        font-weight: 700;
        padding: 7px 14px;
        cursor: pointer;
        white-space: nowrap;
    }

    .zsm-class-chip.is-active {
        background: var(--zsm-y);
        border-color: var(--zsm-y);
        color: #3a2e00;
    }

    .zsm-filter-sheet__list {
        display: flex;
        flex-direction: column;
        gap: 0;
        text-align: right;
    }

    .zsm-filter-sheet__item {
        display: block;
        width: 100%;
        text-align: right;
        border: 0;
        border-bottom: 1px solid #f2f2f2;
        background: #fff;
        padding: 12px 4px;
        font-size: 14px;
        color: #333;
        cursor: pointer;
    }

    .zsm-filter-sheet__item.is-active {
        color: #9a7710;
        font-weight: 800;
    }

    .zsm-filter-sheet__item:last-child { border-bottom: 0; }

    .zsm-events-soon {
        text-align: center;
        padding: 48px 24px;
        background: #fff;
        margin: 0;
    }

    .zsm-events-soon__badge {
        display: inline-block;
        background: var(--zsm-ys);
        color: #9a7710;
        font-weight: 800;
        font-size: 13px;
        padding: 8px 20px;
        border-radius: 999px;
        margin-bottom: 10px;
    }

    .zsm-events-soon__icon {
        width: 40px;
        height: 40px;
        color: #2f2f2f;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 8px;
    }

    .zsm-events-soon__icon svg {
        width: 40px;
        height: 40px;
        display: block;
    }
    .zsm-events-soon__text { font-size: 12.5px; color: var(--zsm-mut); line-height: 1.9; }

    /* کلاس‌ها */
    .mir-page.zsm-ready .secondary-card--classes {
        margin-top: 10px !important;
        border-radius: 18px !important;
    }

    .mir-page.zsm-ready .classes-header h3 {
        font-size: 13px !important;
        font-weight: 800 !important;
        margin-bottom: 10px !important;
    }

    .mir-page.zsm-ready .search-box {
        margin-bottom: 0 !important;
    }

    .mir-page.zsm-ready .class-mobile-results-count {
        font-size: 11px !important;
        color: var(--zsm-mut) !important;
        margin: 4px 0 8px !important;
        text-align: right !important;
    }

    /* کارت کلاس */
    .class-course-card { position: relative; }

    .mir-page .class-course-category { display: none !important; }

    .mir-page.zsm-ready .class-course-actions,
    .mir-page .class-course-actions {
        direction: ltr !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }

    .mir-page.zsm-ready .zsm-card-tools {
        position: static;
        grid-column: 1 / -1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        margin: 2px 0 4px;
        padding: 0;
        direction: ltr;
    }

    .zsm-card-tools {
        position: absolute;
        top: 8px;
        left: 8px;
        display: flex;
        gap: 5px;
        z-index: 3;
    }

    .zsm-tool {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        border: 1px solid #e8e8e8;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
        box-shadow: none;
        color: #2f2f2f;
    }

    .zsm-tool svg { width: 16px; height: 16px; display: block; }
    .zsm-tool.is-active { background: var(--zsm-ys); border-color: var(--zsm-y); color: #d39e00; }

    .zsm-ph {
        width: 100%;
        height: 100%;
        min-height: 90px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #3a2e00;
        background: #fff6dc;
    }

    .zsm-ph__ic {
        width: 46px;
        height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        background: rgba(255,255,255,.72);
        border: 1px solid rgba(251,196,47,.45);
        box-shadow: 0 4px 14px rgba(186,140,0,.1);
        color: #8a6a00;
    }

    .zsm-ph__ic svg {
        width: 26px;
        height: 26px;
        display: block;
    }

    .zsm-ph--1 { background: linear-gradient(160deg,#fff9e8,#ffe8a8); }
    .zsm-ph--2 { background: linear-gradient(160deg,#fff8e4,#f7d56d); }
    .zsm-ph--3 { background: linear-gradient(160deg,#fffaf0,#fbc42f); }
    .zsm-ph--4 { background: linear-gradient(160deg,#fff7df,#f0c84a); }
    .zsm-ph--5 { background: linear-gradient(160deg,#fff9e8,#efb820); }

    .zsm-sheet__media .zsm-ph { border-radius: 14px; }
    .zsm-sheet__media .zsm-ph__ic { width: 56px; height: 56px; border-radius: 16px; }
    .zsm-sheet__media .zsm-ph__ic svg { width: 30px; height: 30px; }

    /* ۵. درباره آموزشگاه */
    .zsm-about {
        background: #fff;
        border: 1px solid #efefef;
        border-radius: 14px;
        padding: 18px 16px 14px;
        margin: 16px;
        text-align: right;
        direction: rtl;
    }

    .zsm-about__title {
        font-size: 15px;
        font-weight: 800;
        color: var(--zsm-dk);
        margin: 0 0 10px;
        text-align: right;
        padding-right: 12px;
        border-right: 4px solid var(--zsm-y);
    }

    .zsm-about__preview {
        font-size: 12.5px;
        line-height: 2;
        color: #555;
        text-align: right;
    }

    .zsm-about__body {
        display: none;
        margin-top: 10px;
        text-align: right;
        font-size: 12.5px;
        line-height: 2;
        color: #444;
        white-space: pre-wrap;
        word-break: break-word;
    }

    .zsm-about.is-open .zsm-about__preview { display: none; }
    .zsm-about.is-open .zsm-about__body { display: block; }

    .zsm-about__toggle {
        display: block;
        margin-top: 10px;
        background: none;
        border: 0;
        color: #c99700;
        font-size: 12px;
        font-weight: 800;
        cursor: pointer;
        padding: 4px 0;
        text-align: right;
        width: 100%;
    }

    .zsm-about.is-open .zsm-about__toggle { text-align: center; }

    /* ۶. نظرات */
    .zsm-reviews-block {
        background: #fff;
        padding: 16px;
        border-top: 8px solid #f8f8f8;
        direction: rtl;
        text-align: right;
        font-family: inherit;
    }

    .zsm-reviews-block .secondary-card {
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: 0 !important;
        margin: 0 !important;
    }

    .zsm-reviews-block .secondary-card + .secondary-card {
        margin-top: 20px !important;
        padding-top: 18px !important;
        border-top: 1px solid #f0f0f0 !important;
    }

    .zsm-review-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
        text-align: right;
    }

    .zsm-review-form__title {
        margin: 0 0 4px;
        font-size: 15px;
        font-weight: 800;
        color: var(--zsm-dk);
        padding-right: 12px;
        border-right: 4px solid var(--zsm-y);
        line-height: 1.4;
    }

    .zsm-review-form__stars {
        display: flex;
        justify-content: flex-start;
        padding: 2px 0 4px;
    }

    .zsm-review-form__stars .stars {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        margin: 0 !important;
        direction: ltr;
    }

    .zsm-review-form__label {
        display: block;
        font-size: 13px;
        font-weight: 700;
        color: var(--zsm-dk);
        margin: 0;
    }

    .zsm-review-form__field {
        width: 100%;
    }

    .zsm-review-form__actions {
        width: 100%;
        margin-top: 2px;
    }

    .zsm-reviews-block .review-title {
        font-size: 15px !important;
        font-weight: 800 !important;
        margin-bottom: 14px !important;
        text-align: right !important;
        padding-right: 12px !important;
        border-right: 4px solid var(--zsm-y) !important;
        line-height: 1.4 !important;
    }

    .zsm-reviews-block .form-box {
        padding: 0 !important;
        box-shadow: none !important;
        text-align: right;
        width: 100%;
    }

    .zsm-reviews-block .address-row,
    .zsm-reviews-block .row.address-row {
        display: none !important;
    }

    .zsm-reviews-block .textarea-gray {
        border-radius: 12px !important;
        min-height: 96px;
        font-size: 14px !important;
        width: 100% !important;
        border: 1px solid #e0e0e0 !important;
        background: #f3f3f3 !important;
        padding: 12px !important;
        text-align: right;
        resize: vertical;
        box-sizing: border-box;
        display: block;
    }

    .zsm-reviews-block .submit-btn {
        width: 100% !important;
        border-radius: 12px !important;
        margin-top: 0 !important;
        font-size: 14px !important;
        padding: 13px !important;
        background: var(--zsm-y) !important;
        color: #3a2e00 !important;
        font-weight: 800 !important;
        border: 0 !important;
        display: block !important;
    }

    .zsm-reviews-block .stars i { font-size: 28px !important; }

    .zsm-reviews-block .reviews-list {
        margin-top: 0 !important;
    }

    .zsm-reviews-block .review-item {
        background: #fafafa !important;
        border: 1px solid #f0f0f0 !important;
        border-radius: 12px !important;
        margin-bottom: 10px !important;
        padding: 14px !important;
        text-align: right;
    }

    .zsm-reviews-block .review-item .review-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 8px;
        direction: rtl;
    }

    .zsm-reviews-block .review-item .review-meta .stars,
    .zsm-reviews-block .review-item .review-meta .review-stars {
        direction: ltr;
        display: inline-flex;
        gap: 3px;
    }

    .zsm-reviews-block .review-item .review-date {
        font-size: 11px !important;
        color: var(--zsm-mut) !important;
        white-space: nowrap;
    }

    .zsm-reviews-block .review-item .review-text {
        font-size: 13px !important;
        line-height: 1.85 !important;
        color: #444 !important;
    }

    .zsm-reviews-block .review-item .review-author {
        font-size: 12px !important;
        margin-bottom: 6px;
    }

    .zsm-reviews-block .reply-toggle-btn {
        border-radius: 8px !important;
        font-size: 12px !important;
        padding: 6px 14px !important;
    }

    .zsm-reviews-block .reply-box {
        text-align: right;
    }

    /* مینی‌شیت اکشن‌ها — تم سفید / زرد سایت */
    .zsm-mini-sheet {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.42);
        display: none;
        align-items: flex-end;
        z-index: 10050;
        direction: rtl;
    }

    .zsm-mini-sheet.is-open { display: flex; }

    .zsm-mini-sheet__panel {
        position: relative;
        background: #fff;
        width: 100%;
        max-height: 88vh;
        max-height: 88dvh;
        border-radius: 28px 28px 0 0;
        padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        text-align: center;
        box-shadow: 0 -8px 32px rgba(0,0,0,.12);
        -webkit-overflow-scrolling: touch;
        transition: transform .25s ease;
        will-change: transform;
        touch-action: pan-y;
    }

    .zsm-mini-sheet__panel.is-dragging {
        transition: none !important;
    }

    .zsm-mini-sheet__panel.is-compact {
        text-align: right;
        border-radius: 18px 18px 0 0;
        padding-top: 14px;
    }

    .zsm-mini-sheet__panel.is-compact .zsm-mini-sheet__hero {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: right;
        margin: 0 0 12px;
        padding: 0 40px 0 0;
    }

    .zsm-mini-sheet__panel.is-compact .zsm-mini-sheet__hero h4 {
        font-size: 15px;
        margin: 0;
        text-align: right;
    }

    .zsm-mini-sheet__panel.is-compact .zsm-mini-sheet__icon,
    .zsm-mini-sheet__panel.is-compact .zsm-mini-sheet__sub,
    .zsm-mini-sheet__panel.is-compact .zsm-mini-sheet__grip { display: none; }

    .zsm-mini-sheet__grip {
        width: 42px;
        height: 4px;
        background: #e2e2e2;
        border-radius: 3px;
        margin: 4px auto 10px;
        position: relative;
    }

    .zsm-mini-sheet__grip::before {
        content: '';
        position: absolute;
        left: -40px;
        right: -40px;
        top: -14px;
        bottom: -14px;
    }

    /* دکمه‌های بستن — فقط ضربدر، بدون پس‌زمینه */
    .zsm-mini-sheet__close,
    .zsm-sheet__close,
    button.zsm-mini-sheet__close,
    button.zsm-sheet__close {
        box-sizing: border-box !important;
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        background-color: transparent !important;
        color: #666 !important;
        cursor: pointer !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        font-family: Arial, Tahoma, sans-serif !important;
        font-size: 28px !important;
        font-weight: 400 !important;
        line-height: 1 !important;
        text-align: center !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 6 !important;
    }

    .zsm-mini-sheet__close::before,
    .zsm-mini-sheet__close::after,
    .zsm-sheet__close::before,
    .zsm-sheet__close::after {
        content: none !important;
        display: none !important;
    }

    .zsm-mini-sheet__close svg,
    .zsm-sheet__close svg {
        display: none !important;
    }

    .zsm-mini-sheet__close {
        position: absolute !important;
        top: 8px !important;
        left: 8px !important;
        right: auto !important;
    }

    .zsm-mini-sheet__hero {
        margin: 4px 0 16px;
    }

    .zsm-mini-sheet__icon {
        width: 58px;
        height: 58px;
        margin: 0 auto 12px;
        border-radius: 50%;
        background: var(--zsm-y);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 20px rgba(251, 196, 47, .35);
    }

    .zsm-mini-sheet__icon svg {
        width: 26px;
        height: 26px;
        display: block;
    }

    .zsm-mini-sheet__hero h4 {
        margin: 0 0 6px;
        font-size: 18px;
        font-weight: 800;
        color: var(--zsm-dk);
    }

    .zsm-mini-sheet__sub {
        margin: 0;
        font-size: 12.5px;
        color: var(--zsm-mut);
        line-height: 1.7;
    }

    .zsm-mini-sheet__content {
        text-align: right;
        direction: rtl;
    }

    .zsm-mini-sheet__empty {
        font-size: 13px;
        color: var(--zsm-mut);
        text-align: center;
        padding: 18px 8px;
        line-height: 1.8;
    }

    .zsm-action-feats {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .zsm-action-feats li {
        background: #fff;
        border: 1px solid #f0f0f0;
        border-radius: 14px;
        padding: 12px 14px;
        margin-bottom: 8px;
        font-size: 13.5px;
        color: #444;
        line-height: 1.8;
        box-shadow: 0 2px 10px rgba(0,0,0,.03);
        position: relative;
        padding-right: 28px;
    }

    .zsm-action-feats li::before {
        content: '';
        position: absolute;
        right: 12px;
        top: 18px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--zsm-y);
    }

    /* آدرس */
    .zsm-addr__map {
        position: relative;
        height: 168px;
        border-radius: 18px;
        overflow: hidden;
        margin-bottom: 12px;
        border: 1px solid #eadfbc;
        background: #f6edd2;
    }

    .zsm-addr__map--visual {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .zsm-addr__map-svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
    }

    .zsm-addr__pin {
        position: relative;
        z-index: 2;
        width: 44px;
        height: 44px;
        color: var(--zsm-y);
        display: flex;
        align-items: center;
        justify-content: center;
        filter: drop-shadow(0 8px 14px rgba(186, 140, 0, .4));
        transform: translateY(-4px);
    }

    .zsm-addr__pin svg { width: 44px; height: 44px; display: block; }

    .zsm-addr__card {
        background: #fff;
        border: 1px solid #f0f0f0;
        border-radius: 18px;
        padding: 14px;
        box-shadow: 0 4px 16px rgba(0,0,0,.04);
    }

    .zsm-addr__row {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 14px;
    }

    .zsm-addr__pin-sm {
        flex: 0 0 28px;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--zsm-ys);
        color: var(--zsm-y);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 2px;
    }

    .zsm-addr__pin-sm svg { width: 16px; height: 16px; display: block; }

    .zsm-addr__text {
        flex: 1;
        min-width: 0;
        text-align: right;
    }

    .zsm-addr__text p {
        margin: 0;
        font-size: 13.5px;
        line-height: 1.9;
        color: #444;
    }

    .zsm-addr__text em {
        display: block;
        margin-top: 2px;
        font-style: normal;
        font-size: 12px;
        color: var(--zsm-mut);
        line-height: 1.7;
    }

    .zsm-addr__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .zsm-addr__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 46px;
        border-radius: 12px;
        font-size: 13px;
        font-weight: 800;
        text-decoration: none;
        border: 0;
        cursor: pointer;
        font-family: inherit;
    }

    .zsm-addr__btn svg { width: 16px; height: 16px; display: block; flex: 0 0 16px; }

    .zsm-addr__btn--ghost {
        background: #fff;
        color: #666;
        border: 1px solid #e6e6e6;
    }

    .zsm-addr__btn--ghost.is-copied {
        border-color: var(--zsm-y);
        color: #9a7710;
        background: var(--zsm-ys);
    }

    .zsm-addr__btn--main {
        background: var(--zsm-y);
        color: #3a2e00;
    }

    /* شبکه‌ها */
    .zsm-social-list { display: flex; flex-direction: column; gap: 10px; }

    .zsm-social-card {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #fff;
        border: 1px solid #f0f0f0;
        border-radius: 16px;
        padding: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,.03);
    }

    .zsm-social-card__ic {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 800;
        color: #fff;
        background: var(--zsm-y);
    }

    .zsm-social-card__ic--ig { background: linear-gradient(135deg, #fbc42f, #f59e0b); }
    .zsm-social-card__ic--tg { background: #fbc42f; }
    .zsm-social-card__ic--wa { background: #e8b820; }
    .zsm-social-card__ic--ei { background: #f0b400; }
    .zsm-social-card__ic--bl,
    .zsm-social-card__ic--ru,
    .zsm-social-card__ic--def { background: var(--zsm-y); color: #3a2e00; }

    .zsm-social-card__body {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
        text-align: right;
    }

    .zsm-social-card__body strong {
        font-size: 13.5px;
        color: var(--zsm-dk);
        font-weight: 800;
    }

    .zsm-social-card__body em {
        font-style: normal;
        font-size: 12px;
        color: var(--zsm-mut);
        direction: ltr;
        text-align: right;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .zsm-social-card__act {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 2px;
        padding: 8px 12px;
        border-radius: 999px;
        background: var(--zsm-ys);
        color: #9a7710;
        font-size: 12px;
        font-weight: 800;
        text-decoration: none;
        border: 1px solid #f4e4a8;
    }

    .zsm-social-card__act svg {
        width: 14px;
        height: 14px;
        display: block;
    }

    /* تماس */
    .zsm-contact-list { display: flex; flex-direction: column; gap: 10px; }

    .zsm-contact-card {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #fff;
        border: 1px solid #f0f0f0;
        border-radius: 16px;
        padding: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,.03);
    }

    .zsm-contact-card__ic {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        border-radius: 14px;
        background: var(--zsm-ys);
        color: #b8860b;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .zsm-contact-card__ic svg { width: 22px; height: 22px; display: block; }

    .zsm-contact-card__body {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
        text-align: right;
    }

    .zsm-contact-card__body strong {
        font-size: 12px;
        color: var(--zsm-mut);
        font-weight: 700;
    }

    .zsm-contact-card__body em {
        font-style: normal;
        font-size: 14px;
        font-weight: 800;
        color: var(--zsm-dk);
        letter-spacing: .2px;
    }

    .zsm-contact-card__acts {
        display: flex;
        flex-direction: column;
        gap: 6px;
        flex: 0 0 auto;
    }

    .zsm-contact-act {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        border: 0;
        background: none;
        cursor: pointer;
        font-family: inherit;
        font-size: 11px;
        font-weight: 800;
        color: #666;
        text-decoration: none;
        padding: 0;
    }

    .zsm-contact-act__ic {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f3f3f3;
        color: #666;
    }

    .zsm-contact-act__ic svg { width: 14px; height: 14px; display: block; }

    .zsm-contact-act--call { color: #9a7710; }
    .zsm-contact-act--call .zsm-contact-act__ic {
        background: var(--zsm-y);
        color: #3a2e00;
    }

    .zsm-contact-act--copy.is-copied { color: #9a7710; }
    .zsm-contact-act--copy.is-copied .zsm-contact-act__ic {
        background: var(--zsm-ys);
        color: #9a7710;
    }

    .zsm-contact-wa {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 12px;
        min-height: 48px;
        border-radius: 14px;
        border: 1.5px solid var(--zsm-y);
        background: #fff;
        color: #9a7710;
        font-size: 14px;
        font-weight: 800;
        text-decoration: none;
    }

    .zsm-contact-wa svg {
        width: 20px;
        height: 20px;
        display: block;
        color: var(--zsm-y);
    }

    /* سازگاری قدیمی */
    .zsm-mini-sheet__list {
        margin: 0;
        padding: 0 18px 0 0;
        list-style: disc;
        font-size: 13.5px;
        line-height: 2.1;
        color: #444;
    }

    .zsm-mini-sheet__item {
        padding: 10px 0;
        border-bottom: 1px solid #f3f3f3;
        font-size: 13.5px;
        line-height: 1.85;
        text-align: right;
        color: #444;
    }

    .zsm-mini-sheet__item:last-child { border-bottom: 0; }
    .zsm-mini-sheet__item strong { color: var(--zsm-dk); font-weight: 800; }
    .zsm-mini-sheet__item a { color: #2f5f9e; text-decoration: none; word-break: break-all; }
    .zsm-mini-sheet__nav {
        display: inline-flex;
        align-items: center;
        margin-top: 12px;
        padding: 10px 18px;
        background: var(--zsm-ys);
        color: #9a7710;
        font-size: 13px;
        font-weight: 800;
        border-radius: 10px;
        text-decoration: none;
    }

    /* پاپ‌آپ کلاس — bottom sheet مرتب RTL */

    /* SweetAlert2 هماهنگ با تم موبایل */
    body .swal2-popup.zsm-swal-popup { width: min(92vw, 360px); padding: 24px 20px; border: 1px solid #f4d46c; border-radius: 20px; background: #fffdf7; box-shadow: 0 18px 48px rgba(66, 50, 0, .2); font-family: inherit; direction: rtl; }
    body .zsm-swal-popup .swal2-title { color: var(--zsm-dk); font-size: 18px; }
    body .zsm-swal-popup .swal2-html-container { color: #5a5a5a; line-height: 1.9; }
    body .zsm-swal-confirm, body .zsm-swal-cancel { min-width: 82px; border-radius: 10px !important; box-shadow: none !important; font-weight: 800; }
    body .zsm-swal-confirm { background: var(--zsm-y) !important; color: #3a2e00 !important; }
    body .zsm-swal-cancel { background: #f1f1f1 !important; color: #555 !important; }
    .zsm-sheet {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        display: none;
        align-items: flex-end;
        z-index: 10060;
        direction: rtl;
    }

    .zsm-sheet.is-open { display: flex; }

    .zsm-sheet__panel {
        background: #fff;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 16px 16px 0 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        animation: zsm-up .25s ease;
        font-family: inherit;
        font-size: 14px;
        line-height: 1.7;
        color: #222;
        text-align: right;
        transition: transform .25s ease;
        will-change: transform;
        touch-action: pan-y;
    }

    .zsm-sheet__panel.is-dragging {
        transition: none !important;
        animation: none !important;
    }

    @keyframes zsm-up {
        from { transform: translateY(28px); opacity: .6; }
        to { transform: translateY(0); opacity: 1; }
    }

    .zsm-sheet__grip {
        width: 42px;
        height: 4px;
        background: #ddd;
        border-radius: 3px;
        margin: 8px auto 4px;
        flex: 0 0 auto;
        position: relative;
    }

    .zsm-sheet__grip::before {
        content: '';
        position: absolute;
        left: -40px;
        right: -40px;
        top: -14px;
        bottom: -14px;
    }

    .zsm-sheet__topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 4px 16px 0;
        flex: 0 0 auto;
    }

    .zsm-sheet__save {
        background: none;
        border: 0;
        cursor: pointer;
        color: #bbb;
        padding: 0;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .zsm-sheet__save svg { width: 22px; height: 22px; display: block; }
    .zsm-sheet__save.is-active { color: var(--zsm-y); }

    .zsm-sheet__head {
        padding: 4px 16px 10px;
        text-align: right;
        flex: 0 0 auto;
    }

    .zsm-sheet__head h3 {
        font-size: 17px;
        font-weight: 700;
        margin: 0 0 6px;
        color: var(--zsm-dk);
        line-height: 1.55;
        text-align: right;
    }

    .zsm-sheet__sub {
        font-size: 13px;
        color: var(--zsm-mut);
        text-align: right;
        line-height: 1.6;
    }

    .zsm-sheet__rate {
        font-size: 13px;
        color: #d39e00;
        font-weight: 700;
        margin-top: 6px;
        text-align: right;
    }

    .zsm-sheet__rate:empty { display: none; }

    .zsm-sheet__media {
        margin: 0 16px;
        border-radius: 14px;
        overflow: hidden;
        height: 120px;
        background: #f5f5f5;
        flex: 0 0 auto;
    }

    .zsm-sheet__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .zsm-sheet__media .zsm-ph { border-radius: 14px; }

    .zsm-sheet__fee {
        color: #b8860b;
        font-weight: 700;
        font-size: 17px;
        padding: 12px 16px 4px;
        text-align: right;
    }

    .zsm-sheet__fee:empty { display: none; }

    .zsm-sheet__tabs {
        display: flex;
        border-bottom: 2px solid #f0f0f0;
        margin: 8px 16px 0;
        flex: 0 0 auto;
    }

    .zsm-sheet__tab {
        flex: 1;
        text-align: center;
        padding: 12px 0;
        font-size: 14px;
        font-weight: 800;
        color: var(--zsm-mut);
        cursor: pointer;
        border: 0;
        background: none;
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
    }

    .zsm-sheet__tab.is-active {
        color: var(--zsm-dk);
        border-bottom-color: var(--zsm-y);
    }

    .zsm-sheet__body {
        padding: 16px;
        overflow-y: auto;
        flex: 1 1 auto;
        min-height: 160px;
        -webkit-overflow-scrolling: touch;
        text-align: right;
    }

    .zsm-sheet__pane[hidden] { display: none !important; }

    .zsm-desc {
        font-size: 14px;
        line-height: 2;
        color: #444;
        white-space: pre-wrap;
        text-align: right;
        word-break: break-word;
    }

    .zsm-kv {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        direction: rtl;
    }

    .zsm-kv__item {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        text-align: right;
        min-width: 0;
        width: 100%;
    }

    .zsm-kv__ic {
        width: 20px;
        height: 20px;
        color: #2f2f2f;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 20px;
        margin-top: 2px;
    }

    .zsm-kv__ic svg {
        width: 20px;
        height: 20px;
        display: block;
    }

    .zsm-kv__content { min-width: 0; flex: 1; }

    .zsm-kv__t {
        color: var(--zsm-mut);
        font-size: 12px;
        font-weight: 400;
        display: block;
        margin-bottom: 3px;
    }

    .zsm-kv__v {
        font-weight: 700;
        font-size: 13px;
        line-height: 1.7;
        color: var(--zsm-dk);
        word-break: break-word;
    }

    .zsm-empty {
        color: var(--zsm-mut);
        font-size: 13px;
        text-align: center;
        padding: 12px 0;
        grid-column: 1 / -1;
    }

    .zsm-sheet__foot {
        padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid #f2f2f2;
        flex: 0 0 auto;
        background: #fff;
    }

    .zsm-sheet__reg {
        display: block;
        text-align: center;
        background: var(--zsm-y);
        color: #3a2e00;
        font-weight: 800;
        font-size: 15px;
        padding: 14px;
        border-radius: 12px;
        text-decoration: none;
    }

    .zsm-sheet__reg.is-disabled { background: #eee; color: #999; }

    body.zsm-modal-open { overflow: hidden; }
}

/* جایگزین عکس کلاس — آیکون SVG مینیمال (دسکتاپ و موبایل) */
.zsm-ph {
    width: 100%;
    height: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a2e00;
    background: #fff6dc;
}

.zsm-ph__ic {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(251,196,47,.45);
    box-shadow: 0 4px 14px rgba(186,140,0,.1);
    color: #8a6a00;
}

.zsm-ph__ic svg {
    width: 28px;
    height: 28px;
    display: block;
}

.zsm-ph--1 { background: linear-gradient(160deg,#fff9e8,#ffe8a8); }
.zsm-ph--2 { background: linear-gradient(160deg,#fff8e4,#f7d56d); }
.zsm-ph--3 { background: linear-gradient(160deg,#fffaf0,#fbc42f); }
.zsm-ph--4 { background: linear-gradient(160deg,#fff7df,#f0c84a); }
.zsm-ph--5 { background: linear-gradient(160deg,#fff9e8,#efb820); }

.class-course-media .zsm-ph {
    min-height: 145px;
}

.class-detail-row .zsm-ph {
    min-height: 180px;
    border-radius: 12px;
}

.class-detail-row .zsm-ph__ic {
    width: 64px;
    height: 64px;
}

.class-detail-row .zsm-ph__ic svg {
    width: 34px;
    height: 34px;
}
