/* =========================================================
   SalesMind Persian Pricing Section
   Add this file after assets/css/app.css
   ========================================================= */

.pricing-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-top: 92px;
    padding-bottom: 92px;
}

.pricing-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(180deg, rgba(244, 247, 251, 0) 0%, rgba(7, 27, 43, .045) 48%, rgba(244, 247, 251, 0) 100%),
        radial-gradient(circle at 50% 0%, rgba(230, 185, 87, .10), transparent 35%);
}

.pricing-glow {
    position: absolute;
    z-index: -2;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(16px);
    pointer-events: none;
    opacity: .55;
}

.pricing-glow-one {
    top: 80px;
    right: -250px;
    background: radial-gradient(circle, rgba(49, 196, 141, .20), rgba(49, 196, 141, 0) 69%);
}

.pricing-glow-two {
    bottom: 0;
    left: -240px;
    background: radial-gradient(circle, rgba(76, 166, 255, .17), rgba(76, 166, 255, 0) 69%);
}

.pricing-heading {
    max-width: 820px;
    margin-inline: auto;
}

.pricing-heading h2 {
    max-width: 760px;
    margin-inline: auto;
}

.pricing-heading p {
    max-width: 700px;
    margin-inline: auto;
}

.pricing-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    max-width: 950px;
    margin: 36px auto 34px;
    padding: 18px 20px;
    border: 1px solid rgba(14, 43, 64, .10);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(247, 249, 252, .88));
    box-shadow:
        0 18px 60px rgba(4, 17, 29, .08),
        inset 0 1px 0 rgba(255, 255, 255, .9);
}

.pricing-summary-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: #071B2B;
    background: linear-gradient(145deg, #F4C867, #E6B957);
    box-shadow: 0 12px 30px rgba(230, 185, 87, .28);
}

.pricing-summary-icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.pricing-summary strong,
.pricing-summary span {
    display: block;
}

.pricing-summary strong {
    margin-bottom: 5px;
    color: #071B2B;
    font-size: 1rem;
}

.pricing-summary span {
    color: #6C788B;
    line-height: 1.9;
    font-size: .88rem;
}

.pricing-summary > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: #0E2B40;
    font-weight: 800;
    text-decoration: none;
}

.pricing-summary > a span {
    color: #E6B957;
    font-size: 1.15rem;
    transition: transform .2s ease;
}

.pricing-summary > a:hover span {
    transform: translateX(-4px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    max-width: 1320px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    padding: 26px 22px 22px;
    border: 1px solid rgba(14, 43, 64, .10);
    border-radius: 28px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, .98), rgba(247, 249, 252, .94));
    box-shadow:
        0 20px 55px rgba(4, 17, 29, .085),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    transition:
        transform .28s ease,
        border-color .28s ease,
        box-shadow .28s ease;
}

.pricing-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(230, 185, 87, .20), rgba(49, 196, 141, .08));
    opacity: 0;
    transform: scale(.98);
    transition: opacity .28s ease, transform .28s ease;
}

.pricing-card:hover {
    transform: translateY(-9px);
    border-color: rgba(230, 185, 87, .38);
    box-shadow:
        0 28px 70px rgba(4, 17, 29, .14),
        0 0 0 4px rgba(230, 185, 87, .055);
}

.pricing-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.pricing-card.is-featured {
    border-color: rgba(230, 185, 87, .55);
    background:
        linear-gradient(165deg, rgba(7, 27, 43, .985), rgba(14, 43, 64, .985));
    box-shadow:
        0 30px 85px rgba(4, 17, 29, .24),
        0 0 0 5px rgba(230, 185, 87, .08);
    transform: translateY(-12px);
}

.pricing-card.is-featured:hover {
    transform: translateY(-18px);
    box-shadow:
        0 36px 95px rgba(4, 17, 29, .30),
        0 0 0 6px rgba(230, 185, 87, .10);
}

.popular-ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 148px;
    padding: 8px 15px;
    border-radius: 999px;
    color: #04111D;
    background: linear-gradient(135deg, #F4C867, #E6B957);
    box-shadow: 0 12px 25px rgba(230, 185, 87, .28);
    font-size: .78rem;
    font-weight: 900;
    text-align: center;
}

.pricing-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.plan-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(14, 43, 64, .08);
    border-radius: 18px;
    color: #0E2B40;
    background: #EEF3F8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.plan-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.plan-icon-spark {
    color: #B17C08;
    background: rgba(230, 185, 87, .16);
}

.plan-icon-rocket {
    color: #197854;
    background: rgba(49, 196, 141, .13);
}

.plan-icon-crown {
    color: #F4C867;
    border-color: rgba(244, 200, 103, .18);
    background: rgba(244, 200, 103, .10);
}

.plan-icon-building {
    color: #236FA8;
    background: rgba(76, 166, 255, .12);
}

.plan-badge {
    padding: 7px 11px;
    border: 1px solid rgba(14, 43, 64, .08);
    border-radius: 999px;
    color: #526273;
    background: rgba(238, 243, 248, .82);
    font-size: .74rem;
    font-weight: 800;
}

.pricing-card.is-featured .plan-badge {
    color: #F4C867;
    border-color: rgba(244, 200, 103, .20);
    background: rgba(244, 200, 103, .08);
}

.pricing-title {
    margin-top: 22px;
}

.pricing-title h3 {
    margin: 0 0 8px;
    color: #071B2B;
    font-size: 1.27rem;
}

.pricing-title p {
    min-height: 48px;
    margin: 0;
    color: #6C788B;
    font-size: .86rem;
    line-height: 1.8;
}

.pricing-card.is-featured .pricing-title h3,
.pricing-card.is-featured .pricing-price strong,
.pricing-card.is-featured .token-box-head strong {
    color: #F4F7FB;
}

.pricing-card.is-featured .pricing-title p,
.pricing-card.is-featured .pricing-price span,
.pricing-card.is-featured .token-box small,
.pricing-card.is-featured .plan-footnote {
    color: #9BB0BE;
}

.pricing-price {
    padding: 22px 0 18px;
}

.pricing-price strong,
.pricing-price span {
    display: block;
}

.pricing-price strong {
    min-height: 36px;
    color: #071B2B;
    font-size: 1.43rem;
    font-weight: 950;
}

.pricing-price span {
    margin-top: 5px;
    color: #6C788B;
    font-size: .8rem;
}

.token-box {
    padding: 15px;
    border: 1px solid rgba(14, 43, 64, .08);
    border-radius: 18px;
    background: rgba(238, 243, 248, .72);
}

.pricing-card.is-featured .token-box {
    border-color: rgba(244, 200, 103, .16);
    background: rgba(255, 255, 255, .045);
}

.token-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.token-box-head span {
    color: #6C788B;
    font-size: .76rem;
    font-weight: 700;
}

.token-box-head strong {
    color: #0E2B40;
    font-size: .88rem;
}

.pricing-card.is-featured .token-box-head span {
    color: #9BB0BE;
}

.token-meter {
    height: 8px;
    margin: 11px 0 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(14, 43, 64, .09);
}

.pricing-card.is-featured .token-meter {
    background: rgba(255, 255, 255, .10);
}

.token-meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #31C48D, #E6B957);
    box-shadow: 0 0 18px rgba(49, 196, 141, .34);
}

.token-box small {
    color: #7A8798;
    font-size: .69rem;
    line-height: 1.7;
}

.plan-features {
    display: grid;
    gap: 11px;
    margin: 21px 0 24px;
    padding: 0;
    list-style: none;
}

.plan-features li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    color: #3E4E60;
    font-size: .82rem;
    line-height: 1.75;
}

.pricing-card.is-featured .plan-features li {
    color: #DDE7ED;
}

.plan-features li > span {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    color: #197854;
    background: rgba(49, 196, 141, .13);
}

.plan-features svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pricing-card.is-featured .plan-features li > span {
    color: #F4C867;
    background: rgba(244, 200, 103, .11);
}

.plan-order-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    margin-top: auto;
    padding: 12px 14px;
    border: 1px solid rgba(14, 43, 64, .14);
    border-radius: 15px;
    color: #0E2B40;
    background: #FFFFFF;
    box-shadow: 0 12px 26px rgba(4, 17, 29, .07);
    text-decoration: none;
    font-weight: 900;
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.plan-order-button span {
    color: #E6B957;
    font-size: 1.1rem;
    transition: transform .2s ease;
}

.plan-order-button:hover {
    transform: translateY(-2px);
    border-color: rgba(230, 185, 87, .45);
    box-shadow: 0 17px 34px rgba(4, 17, 29, .12);
}

.plan-order-button:hover span {
    transform: translateX(-4px);
}

.plan-order-button.primary {
    color: #04111D;
    border-color: transparent;
    background: linear-gradient(135deg, #F4C867, #E6B957);
    box-shadow: 0 16px 36px rgba(230, 185, 87, .24);
}

.plan-order-button.primary span {
    color: #04111D;
}

.plan-footnote {
    margin: 12px 0 0;
    color: #7A8798;
    font-size: .7rem;
    text-align: center;
}

.pricing-assurance {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 28px;
    max-width: 950px;
    margin: 32px auto 0;
    padding-top: 25px;
    border-top: 1px solid rgba(14, 43, 64, .09);
}

.pricing-assurance span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #617083;
    font-size: .8rem;
    font-weight: 750;
}

.pricing-assurance svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #31C48D;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1180px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 850px;
    }

    .pricing-card.is-featured {
        transform: none;
    }

    .pricing-card.is-featured:hover {
        transform: translateY(-9px);
    }
}

@media (max-width: 700px) {
    .pricing-section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .pricing-summary {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        border-radius: 20px;
    }

    .pricing-summary > a {
        grid-column: 1 / -1;
        justify-content: center;
        padding-top: 10px;
        border-top: 1px solid rgba(14, 43, 64, .08);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 430px;
    }

    .pricing-card {
        padding: 24px 20px 20px;
    }

    .pricing-card.is-featured {
        margin-top: 13px;
    }

    .pricing-title p {
        min-height: auto;
    }

    .pricing-assurance {
        display: grid;
        justify-content: start;
        max-width: 430px;
    }
}

/* Dark mode compatibility */
[data-theme="dark"] .pricing-section::before,
.dark .pricing-section::before {
    background:
        linear-gradient(180deg, rgba(7, 17, 27, 0), rgba(230, 185, 87, .035), rgba(7, 17, 27, 0)),
        radial-gradient(circle at 50% 0%, rgba(230, 185, 87, .08), transparent 35%);
}

[data-theme="dark"] .pricing-summary,
.dark .pricing-summary,
[data-theme="dark"] .pricing-card:not(.is-featured),
.dark .pricing-card:not(.is-featured) {
    border-color: rgba(155, 176, 190, .13);
    background: linear-gradient(160deg, rgba(11, 27, 41, .98), rgba(16, 36, 51, .96));
    box-shadow: 0 22px 60px rgba(0, 0, 0, .26);
}

[data-theme="dark"] .pricing-summary strong,
.dark .pricing-summary strong,
[data-theme="dark"] .pricing-summary > a,
.dark .pricing-summary > a,
[data-theme="dark"] .pricing-title h3,
.dark .pricing-title h3,
[data-theme="dark"] .pricing-price strong,
.dark .pricing-price strong,
[data-theme="dark"] .token-box-head strong,
.dark .token-box-head strong {
    color: #F1F6FA;
}

[data-theme="dark"] .pricing-summary span,
.dark .pricing-summary span,
[data-theme="dark"] .pricing-title p,
.dark .pricing-title p,
[data-theme="dark"] .pricing-price span,
.dark .pricing-price span,
[data-theme="dark"] .token-box small,
.dark .token-box small,
[data-theme="dark"] .plan-footnote,
.dark .plan-footnote,
[data-theme="dark"] .pricing-assurance span,
.dark .pricing-assurance span {
    color: #9BB0BE;
}

[data-theme="dark"] .plan-badge,
.dark .plan-badge,
[data-theme="dark"] .token-box,
.dark .token-box {
    color: #DDE7ED;
    border-color: rgba(155, 176, 190, .12);
    background: rgba(23, 48, 68, .72);
}

[data-theme="dark"] .plan-features li,
.dark .plan-features li {
    color: #DDE7ED;
}

[data-theme="dark"] .plan-order-button:not(.primary),
.dark .plan-order-button:not(.primary) {
    color: #F1F6FA;
    border-color: rgba(155, 176, 190, .17);
    background: #102433;
}
