/* =====================================================================
 * Hamkaran Pricing Display v2.0.0 — Modern Enterprise RTL Design
 * Palette: سرمه‌ای / آبی سازمانی / فیروزه‌ای / سفید / خاکستری روشن
 * Methodology: BEM-like (.block__element--modifier)
 * ===================================================================== */

/* --- فونت Vazirmatn (نسخه متغیر) از خود سایت لود می‌شود تا روی سیستم‌های
 * فاقد این فونت هم نمایش یکسان باشد. وابسته به نصب بودن فونت روی کاربر نیست. --- */
@font-face {
    font-family: "vazirmatn";
    src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* --- Design Tokens --- */
.hpd-pricing-wrapper {
    /* palette اصلی — رنگ‌های سازمانی همکاران */
    --hpd-navy:        #27336C;   /* سرمه‌ای سازمانی (e-global-color-482aaad) */
    --hpd-navy-2:      #1d2652;   /* سرمه‌ای تیره‌تر */
    --hpd-blue:        #27336C;   /* سرمه‌ای */
    --hpd-sky:         #1DC3E9;   /* فیروزه‌ای روشن سازمانی (e-global-color-aa4daf2) */
    --hpd-sky-light:   #4dd6f0;   /* فیروزه‌ای روشن‌تر */
    --hpd-sky-pale:    #e7f9fd;   /* فیروزه‌ای بسیار روشن */
    --hpd-teal:        #1DC3E9;   /* = فیروزه‌ای سازمانی (جایگزین سبز) */
    --hpd-emerald:     #1DC3E9;   /* = فیروزه‌ای سازمانی (جایگزین سبز) */
    --hpd-amber:       #f59e0b;   /* کهربایی (فقط برای وضعیت «قابل خرید») */
    --hpd-surface:     #f8fafc;
    --hpd-surface-2:   #f1f5f9;
    --hpd-card-bg:     #ffffff;
    --hpd-text:        #27336C;   /* متن اصلی سرمه‌ای */
    --hpd-text-2:      #475569;
    --hpd-muted:       #64748b;
    --hpd-line:        #e2e8f0;
    --hpd-line-2:      #cbd5e1;

    /* متغیر accent از تنظیمات (CTA برند) */
    --hpd-accent:      #1DC3E9;   /* فیروزه‌ای سازمانی */
    --hpd-accent-soft: rgba(29, 195, 233, 0.10);

    /* شعاع و سایه */
    --hpd-radius:      18px;
    --hpd-radius-md:   12px;
    --hpd-radius-sm:   8px;
    --hpd-shadow-sm:   0 1px 2px rgba(39, 51, 108, 0.04), 0 1px 3px rgba(39, 51, 108, 0.06);
    --hpd-shadow-md:   0 4px 12px -2px rgba(39, 51, 108, 0.08), 0 2px 6px -2px rgba(39, 51, 108, 0.05);
    --hpd-shadow-lg:   0 16px 40px -12px rgba(39, 51, 108, 0.16), 0 4px 10px -4px rgba(39, 51, 108, 0.06);
    --hpd-shadow-pop:  0 24px 60px -15px rgba(39, 51, 108, 0.22);

    --hpd-transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --hpd-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    color: var(--hpd-text);
    overflow-x: hidden;

}

/* --- Container --- */
.hpd-pricing-container {
    font-family: "vazirmatn", Sans-serif;
    direction: rtl;
    text-align: right;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hpd-pricing-container *,
.hpd-pricing-container *::before,
.hpd-pricing-container *::after {
    box-sizing: border-box;
}

.hpd-pricing-wrapper {
    padding: 8px 0;
}

/* =====================================================================
 * 1. HERO
 * ===================================================================== */
.hpd-hero {
    text-align: center;
    padding: 24px 16px 20px;
    margin-bottom: 8px;
    animation: hpd-fade-up 0.6s ease-out both;
}

.hpd-hero__title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--hpd-navy);
    margin: 0 0 12px;
    line-height: 1.3;
}

.hpd-hero__subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--hpd-text-2);
    max-width: 640px;
    margin: 0 auto 24px;
}

.hpd-hero__benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
}

.hpd-hero__benefit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hpd-teal);
    background: #fff;
    border: 1px solid var(--hpd-line);
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: var(--hpd-shadow-sm);
}

.hpd-hero__benefit-icon {
    display: inline-flex;
    color: var(--hpd-emerald);
    background: rgba(5, 150, 105, 0.12);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
}

/* =====================================================================
 * 2. PERIOD TOGGLE
 * ===================================================================== */
.hpd-period-toggle {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 18px 8px 8px;
    background: var(--hpd-surface-2);
    border: 1px solid var(--hpd-line);
    border-radius: var(--hpd-radius);
    max-width: 760px;
    margin: 20px auto 32px;
    animation: hpd-fade-up 0.7s ease-out both;
}

.hpd-period-toggle__btn {
    position: relative;
    flex: 1 1 140px;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: var(--hpd-radius-md);
    background: transparent;
    color: var(--hpd-text-2);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--hpd-transition);
    justify-content: center;
}

.hpd-period-toggle__btn span {
    line-height: 20px;
    border-radius: 10px 10px 0px 0px;
    top: -29px;
}

.hpd-period-toggle__btn:hover {
    background: #fff;
    color: var(--hpd-navy);
}

.hpd-period-toggle__btn:focus-visible {
    outline: 3px solid var(--hpd-sky-light);
    outline-offset: 2px;
}

.hpd-period-toggle__btn.is-active {
    background: #fff;
    border-color: var(--hpd-sky);
    color: var(--hpd-navy);
    box-shadow: var(--hpd-shadow-md);
}

.hpd-period-toggle__label {
    font-size: 1rem;
}

.hpd-period-toggle__discount {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--hpd-emerald);
}

.hpd-period-toggle__badge {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--hpd-sky) 0%, var(--hpd-blue) 100%);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: var(--hpd-shadow-md);
    letter-spacing: -0.02em;
    z-index: 1;
}

.hpd-period-toggle__btn.is-best:not(.is-active) .hpd-period-toggle__badge {
    background: var(--hpd-navy);
}

/* =====================================================================
 * 3. CARDS GRID
 * ===================================================================== */
.hpd-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.hpd-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--hpd-card-bg);
    border: 1px solid var(--hpd-line);
    border-radius: var(--hpd-radius);
    box-shadow: var(--hpd-shadow-sm);
    overflow: hidden;
    transition: transform var(--hpd-transition), box-shadow var(--hpd-transition), border-color var(--hpd-transition);
    animation: hpd-fade-up 0.7s ease-out both;
}

.hpd-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hpd-shadow-lg);
    border-color: var(--hpd-sky-light);
}

.hpd-card.is-popular {
    border-color: var(--hpd-sky);
    border-width: 2px;
    box-shadow: var(--hpd-shadow-pop);
}

.hpd-card__popular-badge {
    position: absolute;
    top: 0;
    inset-inline: 0;
    background: linear-gradient(135deg, var(--hpd-sky) 0%, var(--hpd-blue) 100%);
    color: #fff;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 8px 12px;
    letter-spacing: -0.01em;
    z-index: 1;
}

.hpd-card.is-popular .hpd-card__body {
    padding-top: 44px;
}

.hpd-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px 24px 24px;
    gap: 14px;
}

.hpd-card__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.hpd-card__image {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.hpd-card__image img {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.hpd-card__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--hpd-navy);
    margin: 0;
}

.hpd-card__desc {
    font-size: 0.9rem;
    color: var(--hpd-muted);
    margin: 0;
    min-height: 1.4em;
}

.hpd-card__meta {
    font-size: 0.92rem;
    color: var(--hpd-text-2);
    background: var(--hpd-surface);
    padding: 8px 12px;
    border-radius: var(--hpd-radius-sm);
}

.hpd-card__meta strong {
    color: var(--hpd-navy);
    font-weight: 800;
}

/* --- Price Box --- */
.hpd-card__price-box {
    background: linear-gradient(180deg, var(--hpd-sky-pale) 0%, #fff 100%);
    border: 1px solid var(--hpd-sky-pale);
    border-radius: var(--hpd-radius-md);
    padding: 18px 16px;
    text-align: center;
}

.hpd-card__price-box--error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
    font-size: 0.9rem;
}

.hpd-card__price-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.hpd-card__price-value {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--hpd-navy);
    line-height: 1.1;
    letter-spacing: -0.02em;
    transition: opacity var(--hpd-transition);
}

.hpd-card__price-unit {
    font-size: 0.82rem;
    color: var(--hpd-muted);
    font-weight: 600;
}

.hpd-card__price-breakdown {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px dashed var(--hpd-line);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hpd-card__price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--hpd-text-2);
}

.hpd-card__price-row--discount {
    color: var(--hpd-emerald);
    font-weight: 700;
}

.hpd-card__setup-badge {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--hpd-teal);
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.2);
    padding: 6px 12px;
    border-radius: 999px;
}

/* --- Features --- */
.hpd-card__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hpd-card__feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--hpd-text-2);
}

.hpd-card__feature-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

.hpd-card__feature-icon--included {
    background: rgba(5, 150, 105, 0.12);
    color: var(--hpd-emerald);
}

/* --- Addons (in card) --- */
.hpd-card__addons {
    border-top: 1px solid var(--hpd-line);
    padding-top: 12px;
}

.hpd-card__addons-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--hpd-muted);
    margin-bottom: 8px;
}

.hpd-card__addons-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hpd-card__addon {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--hpd-text-2);
}

.hpd-card__addon-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
}

/* --- Status icons (shared) --- */
.hpd-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.hpd-status--included {
    background: rgba(5, 150, 105, 0.14);
    color: var(--hpd-emerald);
}

.hpd-status--purchasable {
    background: rgba(217, 119, 6, 0.14);
    color: var(--hpd-amber);
}

.hpd-status--unavailable {
    background: var(--hpd-surface-2);
    color: var(--hpd-muted);
}

.hpd-card__addon--included .hpd-status--included,
.hpd-card__addon--purchasable .hpd-status--purchasable {
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
}

/* --- Details toggle (accordion) --- */
.hpd-card__details-toggle {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--hpd-blue);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hpd-card__details-toggle:hover {
    color: var(--hpd-sky);
}

/* --- CTA --- */
.hpd-card__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--hpd-accent) 0%, var(--hpd-blue) 100%);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--hpd-radius-md);
    transition: transform var(--hpd-transition), box-shadow var(--hpd-transition), filter var(--hpd-transition);
    box-shadow: 0 4px 14px -4px rgba(29, 78, 216, 0.5);
}

.hpd-card__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px -6px rgba(29, 78, 216, 0.6);
    filter: brightness(1.05);
}

.hpd-card__cta:focus-visible {
    outline: 3px solid var(--hpd-sky-light);
    outline-offset: 3px;
}

.hpd-card.is-popular .hpd-card__cta {
    background: linear-gradient(135deg, var(--hpd-sky) 0%, var(--hpd-navy-2) 100%);
}

/* =====================================================================
 * 4. FINANCIAL BAR
 * ===================================================================== */
.hpd-financial-bar {
    background: var(--hpd-navy);
    color: #fff;
    border-radius: var(--hpd-radius);
    padding: 20px 24px;
    margin: 32px 0;
    box-shadow: var(--hpd-shadow-md);
}

.hpd-financial-bar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    justify-content: center;
}

.hpd-financial-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
}

.hpd-financial-bar__icon {
    display: inline-flex;
    color: var(--hpd-sky-light);
    width: 18px;
    height: 18px;
}

/* =====================================================================
 * 5. COMPARISON TABLE
 * ===================================================================== */
.hpd-comparison {
    margin: 48px 0;
}

.hpd-comparison__title {
    text-align: center;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    color: var(--hpd-navy);
    margin: 0 0 24px;
}

.hpd-comparison__table-wrap {
    overflow-x: auto;
    border-radius: var(--hpd-radius);
    border: 1px solid var(--hpd-line);
    box-shadow: var(--hpd-shadow-sm);
    -webkit-overflow-scrolling: touch;
}

.hpd-comparison__table-wrap:focus-visible {
    outline: 3px solid var(--hpd-sky-light);
}

.hpd-comparison__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.hpd-comparison__table thead th {
    background: var(--hpd-navy);
    color: #fff;
    font-weight: 700;
    padding: 16px 12px;
    text-align: center;
    font-size: 0.92rem;
    position: sticky;
    top: 0;
    z-index: 2;
}

.hpd-comparison__corner {
    text-align: right !important;
    position: sticky;
    inset-inline-start: 0;
    z-index: 3;
    background: var(--hpd-navy-2) !important;
    min-width: 160px;
}

.hpd-comparison__plan-col {
    min-width: 110px;
}

.hpd-comparison__table tbody th,
.hpd-comparison__table tbody td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid var(--hpd-line);
    font-size: 0.88rem;
}

.hpd-comparison__row-label {
    text-align: right !important;
    background: var(--hpd-surface);
    font-weight: 700;
    color: var(--hpd-text-2);
    position: sticky;
    inset-inline-start: 0;
    z-index: 1;
    min-width: 160px;
}

.hpd-comparison__table tbody tr:nth-child(even) td {
    background: rgba(241, 245, 249, 0.5);
}

.hpd-comparison__value {
    font-weight: 700;
    color: var(--hpd-navy);
}

.hpd-comparison__value small {
    font-weight: 500;
    color: var(--hpd-muted);
    font-size: 0.75rem;
}

.hpd-comparison__value--strong {
    color: var(--hpd-blue);
}

.hpd-comparison__na {
    color: var(--hpd-muted);
}

/* --- Legend --- */
.hpd-comparison__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--hpd-text-2);
}

.hpd-comparison__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- Mobile comparison (hidden on desktop) --- */
.hpd-comparison__mobile {
    display: none;
}

.hpd-comparison__mobile-item {
    border: 1px solid var(--hpd-line);
    border-radius: var(--hpd-radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}

.hpd-comparison__mobile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--hpd-surface);
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.hpd-comparison__mobile-head::-webkit-details-marker {
    display: none;
}

.hpd-comparison__mobile-name {
    color: var(--hpd-navy);
}

.hpd-comparison__mobile-price {
    color: var(--hpd-blue);
    font-size: 0.9rem;
}

.hpd-comparison__mobile-body {
    padding: 8px 16px 16px;
}

.hpd-comparison__mobile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--hpd-line);
    font-size: 0.88rem;
}

.hpd-comparison__mobile-row:last-child {
    border-bottom: none;
}

.hpd-comparison__mobile-label {
    color: var(--hpd-muted);
}

/* =====================================================================
 * 6. ADDONS (purchasable)
 * ===================================================================== */
.hpd-addons {
    margin: 48px 0;
}

.hpd-addons__title {
    text-align: center;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    color: var(--hpd-navy);
    margin: 0 0 8px;
}

.hpd-addons__subtitle {
    text-align: center;
    color: var(--hpd-text-2);
    margin: 0 0 28px;
    font-size: 0.95rem;
}

.hpd-addons__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hpd-addons__card {
    background: #fff;
    border: 1px solid var(--hpd-line);
    border-radius: var(--hpd-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform var(--hpd-transition), box-shadow var(--hpd-transition);
}

.hpd-addons__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hpd-shadow-md);
}

.hpd-addons__card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hpd-addons__card-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.hpd-addons__card-icon--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hpd-sky-pale);
    color: var(--hpd-sky);
    border-radius: var(--hpd-radius-sm);
}

.hpd-addons__card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hpd-navy);
    margin: 0;
}

.hpd-addons__card-desc {
    font-size: 0.86rem;
    color: var(--hpd-muted);
    margin: 0;
    flex: 1;
}

.hpd-addons__card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.hpd-addons__card-price-label {
    font-size: 0.8rem;
    color: var(--hpd-muted);
}

.hpd-addons__card-price-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--hpd-navy);
}

.hpd-addons__card-price-unit {
    font-size: 0.8rem;
    color: var(--hpd-muted);
}

.hpd-addons__card-price-contact {
    color: var(--hpd-amber);
    font-weight: 700;
    font-size: 0.9rem;
}

.hpd-addons__card-link {
    align-self: flex-start;
    color: var(--hpd-blue);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    border-bottom: 2px solid var(--hpd-sky-pale);
    padding-bottom: 2px;
    transition: border-color var(--hpd-transition);
}

.hpd-addons__card-link:hover {
    border-color: var(--hpd-sky);
}

/* =====================================================================
 * 7. PROVIDERS (PSTN)
 * ===================================================================== */
.hpd-providers {
    margin: 48px 0;
}

.hpd-providers__header {
    text-align: center;
    margin-bottom: 28px;
}

.hpd-providers__title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    color: var(--hpd-navy);
    margin: 0 0 8px;
}

.hpd-providers__subtitle {
    color: var(--hpd-text-2);
    margin: 0 0 8px;
    font-size: 0.95rem;
}

.hpd-providers__note {
    color: var(--hpd-muted);
    font-size: 0.88rem;
    margin: 0;
}

.hpd-providers__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hpd-provider {
    background: #fff;
    border: 1px solid var(--hpd-line);
    border-radius: var(--hpd-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform var(--hpd-transition), box-shadow var(--hpd-transition);
}

.hpd-provider:hover {
    transform: translateY(-4px);
    box-shadow: var(--hpd-shadow-md);
}

.hpd-provider__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hpd-provider__logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--hpd-radius-sm);
    background: var(--hpd-surface);
    flex-shrink: 0;
}

.hpd-provider__logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--hpd-sky);
    background: var(--hpd-sky-pale);
}

.hpd-provider__names {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hpd-provider__name-fa {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--hpd-navy);
}

.hpd-provider__name-en {
    font-size: 0.82rem;
    color: var(--hpd-muted);
    direction: ltr;
    text-align: right;
}

.hpd-provider__desc {
    font-size: 0.86rem;
    color: var(--hpd-text-2);
    margin: 0;
    line-height: 1.8;
}

.hpd-provider__meta {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hpd-provider__meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.86rem;
}

.hpd-provider__meta-row dt {
    color: var(--hpd-muted);
    margin-inline-end: 8px;
}

.hpd-provider__meta-row dd {
    margin: 0;
    color: var(--hpd-text-2);
    font-weight: 600;
}

.hpd-provider__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #16a34a;
    font-size: 0.82rem;
    font-weight: 700;
}

.hpd-provider__status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.hpd-provider__btn {
    margin-top: auto;
    align-self: stretch;
    text-align: center;
    padding: 12px 16px;
    background: var(--hpd-accent-soft);
    color: var(--hpd-blue);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--hpd-sky-pale);
    border-radius: var(--hpd-radius-md);
    transition: all var(--hpd-transition);
}

.hpd-provider__btn:hover {
    background: var(--hpd-accent);
    color: #fff;
    border-color: var(--hpd-accent);
}

.hpd-provider__btn:focus-visible {
    outline: 3px solid var(--hpd-sky-light);
    outline-offset: 2px;
}

.hpd-providers__financial-note {
    text-align: center;
    color: var(--hpd-muted);
    font-size: 0.86rem;
    margin: 24px auto 0;
    line-height: 1.8;
    max-width: 760px;
}

.hpd-providers--empty,
.hpd-providers__empty {
    text-align: center;
    color: var(--hpd-muted);
    padding: 24px;
}

/* =====================================================================
 * ERROR & EMPTY STATES
 * ===================================================================== */
.hpd-error,
.hpd-empty {
    background: var(--hpd-surface);
    border: 1px solid var(--hpd-line);
    border-radius: var(--hpd-radius);
    padding: 32px 24px;
    text-align: center;
    color: var(--hpd-text-2);
}

.hpd-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.hpd-error--admin {
    text-align: right;
}

/* =====================================================================
 * SKELETON LOADING
 * ===================================================================== */
.hpd-skeleton {
    background: linear-gradient(90deg, var(--hpd-surface) 25%, var(--hpd-surface-2) 50%, var(--hpd-surface) 75%);
    background-size: 200% 100%;
    animation: hpd-shimmer 1.4s ease-in-out infinite;
    border-radius: var(--hpd-radius-sm);
}

@keyframes hpd-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =====================================================================
 * ANIMATIONS
 * ===================================================================== */
@keyframes hpd-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hpd-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hpd-card {
    animation: hpd-fade-up 0.6s ease-out both;
}

.hpd-cards .hpd-card:nth-child(1) { animation-delay: 0.05s; }
.hpd-cards .hpd-card:nth-child(2) { animation-delay: 0.12s; }
.hpd-cards .hpd-card:nth-child(3) { animation-delay: 0.19s; }
.hpd-cards .hpd-card:nth-child(4) { animation-delay: 0.26s; }
.hpd-cards .hpd-card:nth-child(5) { animation-delay: 0.33s; }
.hpd-cards .hpd-card:nth-child(6) { animation-delay: 0.40s; }

/* =====================================================================
 * RESPONSIVE
 * ===================================================================== */

/* Tablet: 2 cards per row */
@media (max-width: 1024px) {
    .hpd-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .hpd-addons__grid,
    .hpd-providers__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 card per row + horizontal scroll grid option */
@media (max-width: 768px) {
    .hpd-hero {
        padding: 28px 14px 20px;
    }

    .hpd-hero__benefits {
        gap: 8px 12px;
    }

    .hpd-hero__benefit {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .hpd-period-toggle {
        gap: 6px;
        padding: 6px;
    }

    .hpd-period-toggle__btn {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
        padding: 10px 8px;
        font-size: 0.9rem;
    }

    .hpd-period-toggle__badge {
        font-size: 0.6rem;
        padding: 3px 8px;
        top: -10px;
    }

    /* Cards: horizontal scroll on small screens */
    .hpd-cards {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .hpd-cards .hpd-card {
        flex: 0 0 85%;
        max-width: 320px;
        scroll-snap-align: center;
    }

    .hpd-financial-bar__list {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .hpd-financial-bar__item {
        font-size: 0.85rem;
    }

    /* Hide desktop table, show mobile accordion */
    .hpd-comparison__table-wrap {
        display: none;
    }
    .hpd-comparison__mobile {
        display: block;
    }

    .hpd-addons__grid,
    .hpd-providers__grid {
        grid-template-columns: 1fr;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .hpd-pricing-container {
        padding: 0;
    }

    .hpd-hero__title {
        font-size: 1.4rem;
    }

    .hpd-card__body {
        padding: 22px 18px 18px;
    }

    .hpd-card__price-value {
        font-size: 1.6rem;
    }

    .hpd-cards .hpd-card {
        flex-basis: 90%;
    }

    .hpd-card__image img {
        width: 80px;
        height: 80px;
    }

    .hpd-period-toggle__btn {
        flex: 1 1 100%;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hpd-card,
    .hpd-hero,
    .hpd-period-toggle {
        animation: none;
    }

    .hpd-card:hover,
    .hpd-addons__card:hover,
    .hpd-provider:hover {
        transform: none;
    }

    .hpd-skeleton {
        animation: none;
    }
}

/* Print */
@media print {
    .hpd-period-toggle,
    .hpd-financial-bar,
    .hpd-card__cta,
    .hpd-provider__btn {
        display: none;
    }
}


/* =====================================================================
 * MARKETPLACE CTA BUTTON (در صفحه‌ی قیمت‌گذاری)
 * ===================================================================== */
.hpd-addons__marketplace-cta {
    text-align: center;
    margin-top: 36px;
}

.hpd-marketplace-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--hpd-navy);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--hpd-radius-md);
    box-shadow: 0 4px 14px -4px rgba(39, 51, 108, 0.4);
    transition: transform var(--hpd-transition), box-shadow var(--hpd-transition), background var(--hpd-transition);
}

.hpd-marketplace-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px -6px rgba(39, 51, 108, 0.5);
    background: var(--hpd-navy-2);
}

.hpd-marketplace-btn:focus-visible {
    outline: 3px solid var(--hpd-sky-light);
    outline-offset: 3px;
}

.hpd-marketplace-btn__icon {
    display: inline-flex;
    align-items: center;
    color: var(--hpd-accent);
}

.hpd-marketplace-btn__arrow {
    font-size: 1.15rem;
    transition: transform var(--hpd-transition);
}

.hpd-marketplace-btn:hover .hpd-marketplace-btn__arrow {
    transform: translateX(-4px);
}

.hpd-addons__marketplace-hint {
    margin: 12px 0 0;
    color: var(--hpd-muted);
    font-size: 0.86rem;
}

/* =====================================================================
 * MARKETPLACE PAGE — بازارچه هم‌افزار (طراحی گرافیکی مدرن)
 * ===================================================================== */

/* --- Reset تم برای content area خام --- */
.site-main--raw {
    background: #fff;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

.hpd-mp {
    font-family: "vazirmatn", Sans-serif;
    direction: rtl;
    text-align: right;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 40px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    color: #1e293b;
}

.hpd-mp *,
.hpd-mp *::before,
.hpd-mp *::after {
    box-sizing: border-box;
}

/* ============================================================
 * HERO گرافیکی — تمام عرض صفحه (full-bleed)
 * ============================================================ */
.hpd-mp-hero {
    position: relative;
    text-align: center;
    padding: 72px 20px 64px;
    margin-inline: calc(-50vw + 50%);
    margin-top: 0;
    margin-bottom: 52px;
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    background: linear-gradient(135deg, #27336C 0%, #1d2652 55%, #161e42 100%);
    color: #fff;
    isolation: isolate;
}

/* لایه‌ی ۱: orbهای نوری بزرگ متحرک (پرمیوم) */
.hpd-mp-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(45px);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.hpd-mp-hero__orb--1 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(29, 195, 233, 0.85) 0%, rgba(29, 195, 233, 0) 70%);
    top: -160px;
    inset-inline-end: 5%;
    animation: hpd-orb-float-1 14s ease-in-out infinite;
}

.hpd-mp-hero__orb--2 {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(125, 99, 241, 0.75) 0%, rgba(125, 99, 241, 0) 70%);
    bottom: -140px;
    inset-inline-start: 3%;
    animation: hpd-orb-float-2 18s ease-in-out infinite;
}

.hpd-mp-hero__orb--3 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(56, 211, 248, 0.70) 0%, rgba(56, 211, 248, 0) 70%);
    top: 20%;
    inset-inline-start: 38%;
    animation: hpd-orb-float-3 11s ease-in-out infinite;
}

@keyframes hpd-orb-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-80px, 50px) scale(1.15); }
    50% { transform: translate(40px, 90px) scale(0.9); }
    75% { transform: translate(60px, -40px) scale(1.08); }
}

@keyframes hpd-orb-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(90px, -60px) scale(1.2); }
    66% { transform: translate(-50px, 40px) scale(0.92); }
}

@keyframes hpd-orb-float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(-70px, 50px) scale(0.8); opacity: 1; }
}

/* لایه‌ی ۲: الگوی نقطه‌ای ظریف روی کل هدر */
.hpd-mp-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
    opacity: 0.6;
    z-index: 1;
}

/* لایه‌ی ۳: خطوط نوری افقی متحرک (mesh grid پرمیوم) */
.hpd-mp-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(29, 195, 233, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 195, 233, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    animation: hpd-mp-grid-pan 40s linear infinite;
}

@keyframes hpd-mp-grid-pan {
    from { background-position: 0 0, 0 0; }
    to { background-position: 60px 60px, 60px 60px; }
}

/* لایه‌ی ۴: موج نوری عبوری (shimmer premium) */
.hpd-mp-hero__shimmer {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    background: linear-gradient(90deg, transparent 0%, rgba(125, 211, 252, 0.08) 50%, transparent 100%);
    transform: skewX(-20deg);
    animation: hpd-mp-shimmer 9s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes hpd-mp-shimmer {
    0% { inset-inline-start: -40%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { inset-inline-start: 110%; opacity: 0; }
}


.hpd-mp-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

.hpd-mp-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(29, 195, 233, 0.18);
    border: 1px solid rgba(29, 195, 233, 0.35);
    color: #7dd3fc;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.hpd-mp-hero__title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.hpd-mp-hero__desc {
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 26px;
    line-height: 1.9;
}

.hpd-mp-hero__stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 14px 8px;
}

.hpd-mp-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 28px;
}

.hpd-mp-hero__stat-num {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1DC3E9;
    line-height: 1;
    text-shadow: 0 0 24px rgba(29, 195, 233, 0.4);
}

.hpd-mp-hero__stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

.hpd-mp-hero__stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================================
 * باکس جستجو
 * ============================================================ */
.hpd-mp-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 540px;
    margin: 0 auto;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 12px 34px -8px rgba(0, 0, 0, 0.38);
    transition: box-shadow var(--hpd-transition), transform var(--hpd-transition);
}

.hpd-mp-search:hover {
    transform: translateY(-1px);
}

.hpd-mp-search:focus-within {
    box-shadow: 0 14px 38px -8px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(29, 195, 233, 0.3);
}

.hpd-mp-search__icon {
    flex-shrink: 0;
    margin: 0 18px 0 8px;
    color: #1DC3E9;
}

.hpd-mp-search__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 16px 8px 16px 0;
    font-family: inherit;
    font-size: 1rem;
    color: #1e293b;
    min-width: 0;
}

.hpd-mp-search__input::placeholder {
    color: #94a3b8;
}

.hpd-mp-search__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.hpd-mp-search__count {
    flex-shrink: 0;
    font-size: 0.78rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 999px;
    margin: 0 8px 0 16px;
    white-space: nowrap;
}

/* ============================================================
 * گرید کارت‌ها
 * ============================================================ */
.hpd-mp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* --- کارت --- */
.hpd-mp-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 24px 24px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform var(--hpd-transition), box-shadow var(--hpd-transition), border-color var(--hpd-transition);
    animation: hpd-fade-up 0.5s ease-out both;
    position: relative;
    overflow: hidden;
}

.hpd-mp-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1DC3E9 0%, #27336C 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--hpd-transition);
}

.hpd-mp-card::after {
    content: '';
    position: absolute;
    top: -40px;
    inset-inline-start: 50%;
    width: 120px;
    height: 120px;
    transform: translateX(50%);
    background: radial-gradient(circle, rgba(29, 195, 233, 0.08) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--hpd-transition);
}

.hpd-mp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px -14px rgba(39, 51, 108, 0.22), 0 6px 14px -6px rgba(15, 23, 42, 0.08);
    border-color: #38bdf8;
}

.hpd-mp-card:hover::before {
    transform: scaleX(1);
}

.hpd-mp-card:hover::after {
    opacity: 1;
}

.hpd-mp-card:nth-child(1) { animation-delay: 0.04s; }
.hpd-mp-card:nth-child(2) { animation-delay: 0.09s; }
.hpd-mp-card:nth-child(3) { animation-delay: 0.14s; }
.hpd-mp-card:nth-child(4) { animation-delay: 0.19s; }
.hpd-mp-card:nth-child(5) { animation-delay: 0.24s; }
.hpd-mp-card:nth-child(6) { animation-delay: 0.29s; }

.hpd-mp-card--hidden {
    display: none;
}

.hpd-mp-card--inactive {
    opacity: 0.7;
}

.hpd-mp-card--inactive:hover {
    transform: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
}

.hpd-mp-card--inactive::before {
    background: #cbd5e1;
}

/* --- ردیف بالا: آیکون + وضعیت --- */
.hpd-mp-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.hpd-mp-card__icon-wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: transform var(--hpd-transition), box-shadow var(--hpd-transition);
}

.hpd-mp-card:hover .hpd-mp-card__icon-wrap {
    transform: scale(1.06);
    box-shadow: 0 8px 20px -6px rgba(29, 195, 233, 0.35);
}

.hpd-mp-card__icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.hpd-mp-card__icon--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #1DC3E9 0%, #27336C 100%);
    border-radius: 14px;
    width: 60px;
    height: 60px;
}

/* --- badge وضعیت --- */
.hpd-mp-card__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
}

.hpd-mp-card__status--active {
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
}

.hpd-mp-card__status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
    animation: hpd-pulse 2.4s ease-in-out infinite;
}

@keyframes hpd-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16); }
    50% { box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.06); }
}

.hpd-mp-card__status--soon {
    background: #f1f5f9;
    color: #64748b;
}

/* --- نام و توضیح --- */
.hpd-mp-card__name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #27336C;
    margin: 0 0 8px;
}

.hpd-mp-card__desc {
    font-size: 0.88rem;
    color: #475569;
    margin: 0 0 14px;
    line-height: 1.75;
    flex: 1;
}

/* --- رایگان در پلن --- */
.hpd-mp-card__free-in {
    background: #e7f9fd;
    border: 1px solid rgba(29, 195, 233, 0.18);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 16px;
    font-size: 0.78rem;
}

.hpd-mp-card__free-in-label {
    color: #64748b;
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
}

.hpd-mp-card__free-in-plans {
    color: #27336C;
    font-weight: 700;
}

/* --- پایین کارت: قیمت + دکمه --- */
.hpd-mp-card__bottom {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}

.hpd-mp-card__price {
    text-align: center;
    line-height: 1.4;
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px 8px;
}

.hpd-mp-card__price-label {
    font-size: 0.74rem;
    color: #64748b;
    display: block;
    margin-bottom: 3px;
}

.hpd-mp-card__price-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #27336C;
}

.hpd-mp-card__price-unit {
    font-size: 0.74rem;
    color: #64748b;
    margin-inline-start: 4px;
}

.hpd-mp-card__price-contact {
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 600;
    display: block;
    padding: 6px 0;
}

.hpd-mp-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 18px;
    background: linear-gradient(135deg, #1DC3E9 0%, #27336C 100%);
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    transition: all var(--hpd-transition);
    position: relative;
    overflow: hidden;
}

.hpd-mp-card__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
    transform: translateX(100%);
    transition: transform 0.6s ease;
}

.hpd-mp-card__btn:hover::before {
    transform: translateX(-100%);
}

.hpd-mp-card__btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -6px rgba(29, 195, 233, 0.5);
}

.hpd-mp-card__btn:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 2px;
}

.hpd-mp-card__btn-arrow {
    transition: transform var(--hpd-transition);
}

.hpd-mp-card__btn:hover .hpd-mp-card__btn-arrow {
    transform: translateX(-4px);
}

.hpd-mp-card__btn--disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    justify-content: center;
}

/* --- نتیجه‌ی خالی جستجو --- */
.hpd-mp-empty {
    text-align: center;
    padding: 60px 24px;
    color: #64748b;
}

.hpd-mp-empty p {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #27336C;
}

.hpd-mp-empty__hint {
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    color: #64748b !important;
}

/* ============================================================
 * ریسپانسیو
 * ============================================================ */
@media (max-width: 1024px) {
    .hpd-mp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hpd-mp-hero {
        padding: 40px 16px 32px;
    }

    .hpd-mp-hero__stats {
        gap: 16px;
    }

    .hpd-mp-hero__stat-num {
        font-size: 1.4rem;
    }

    .hpd-mp-search {
        max-width: 100%;
    }

    .hpd-mp-search__count {
        display: none;
    }
}

@media (max-width: 600px) {
    .hpd-mp-grid {
        grid-template-columns: 1fr;
    }

    .hpd-mp {
        padding: 0 12px 32px;
    }
}

/* ============================================================
 * بخش مزایا (چرا از بازارچه استفاده کنیم)
 * ============================================================ */
.hpd-mp-section-title {
    text-align: center;
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    font-weight: 800;
    color: #27336C;
    margin: 0 0 28px;
    letter-spacing: -0.01em;
}

.hpd-mp-benefits {
    margin: 56px 0 0;
}

.hpd-mp-benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hpd-mp-benefit {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 26px 22px;
    transition: transform var(--hpd-transition), box-shadow var(--hpd-transition), border-color var(--hpd-transition);
}

.hpd-mp-benefit:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -10px rgba(39, 51, 108, 0.15);
    border-color: #38bdf8;
}

.hpd-mp-benefit__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 14px;
}

.hpd-mp-benefit__icon--1 { background: rgba(29, 195, 233, 0.12); color: #1DC3E9; }
.hpd-mp-benefit__icon--2 { background: rgba(39, 51, 108, 0.12); color: #27336C; }
.hpd-mp-benefit__icon--3 { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.hpd-mp-benefit__icon--4 { background: rgba(217, 119, 6, 0.12); color: #d97706; }
.hpd-mp-benefit__icon--5 { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.hpd-mp-benefit__icon--6 { background: rgba(29, 195, 233, 0.12); color: #1DC3E9; }

.hpd-mp-benefit h3 {
    font-size: 1.08rem;
    font-weight: 800;
    color: #27336C;
    margin: 0 0 8px;
}

.hpd-mp-benefit p {
    font-size: 0.88rem;
    color: #475569;
    margin: 0;
    line-height: 1.8;
}

/* ============================================================
 * بخش نحوه تهیه
 * ============================================================ */
.hpd-mp-howto {
    margin: 56px 0 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e7f9fd 100%);
    border-radius: 24px;
    padding: 44px 24px;
}

.hpd-mp-howto__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hpd-mp-howto__lead {
    font-size: 1rem;
    color: #334155;
    line-height: 1.9;
    margin: 0 0 32px;
}

.hpd-mp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.hpd-mp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 16px;
    padding: 22px 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.hpd-mp-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1DC3E9 0%, #27336C 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
}

.hpd-mp-step__text {
    font-size: 0.86rem;
    color: #334155;
    line-height: 1.7;
    font-weight: 600;
}

.hpd-mp-howto__note {
    font-size: 0.9rem;
    color: #475569;
    margin: 0;
    line-height: 1.8;
}

/* یادداشت پایین */
.hpd-mp-foot-note {
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    margin: 32px auto 0;
    max-width: 600px;
    line-height: 1.8;
}

/* ریسپانسیو بخش‌های جدید */
@media (max-width: 1024px) {
    .hpd-mp-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hpd-mp-benefits__grid {
        grid-template-columns: 1fr;
    }

    .hpd-mp-steps {
        grid-template-columns: 1fr;
    }

    .hpd-mp-howto {
        padding: 32px 16px;
    }
}
