/* Pricing page extras on finetech (green) theme */

.pricing-plan-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 0 40px;
}

.pricing-plan-tab {
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    padding: 12px 28px;
    border-radius: 100px;
    border: 2px solid var(--accent-color);
    background: transparent;
    color: var(--dark-color);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.pricing-plan-tab:hover {
    background: rgba(0, 204, 97, 0.08);
}

.pricing-plan-tab.is-active {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 204, 97, 0.28);
}

.pricing-plan-panel[hidden] {
    display: none !important;
}

.pricing-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0 0 40px;
    padding: 0;
}

.pricing-trust li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid var(--divider-color);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
}

.pricing-trust li i {
    color: var(--accent-color);
}

.pricing-period-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 32px;
}

.pricing-period-btn {
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 100px;
    border: 1px solid var(--divider-color);
    background: #fff;
    color: var(--dark-color);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pricing-period-btn:hover {
    border-color: var(--accent-color);
}

.pricing-period-btn.is-active {
    background: var(--dark-color);
    border-color: var(--dark-color);
    color: #fff;
}

/* Keep bootstrap columns from growing when pack prices are long */
.our-pricing .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.our-pricing .pricing-box {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Theme adds 60px left padding for its default ribbon; we overlay instead */
.our-pricing .pricing-box.highlighted-box .pricing-header {
    padding: 0 0 30px;
}

.our-pricing .pricing-box--sale .pricing-header {
    /* keep title clear of floating badge without reserving a full badge row */
    padding-top: 8px;
}

.pricing-ribbon-special {
    position: absolute;
    top: 22px;
    left: -38px;
    z-index: 4;
    width: 160px;
    padding: 7px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    box-shadow: 0 8px 18px rgba(185, 28, 28, 0.35);
    transform: rotate(-45deg);
    pointer-events: none;
}

.pricing-box--sale {
    overflow: hidden;
}

/* Hide theme default white «ویژه» pseudo-ribbon; we use the admin-controlled red ribbon */
.pricing-box.highlighted-box::before {
    display: none;
}

.pricing-box.highlighted-box.pricing-box--ribbon .pricing-header {
    padding-left: 0;
}

.pricing-discount-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 14px;
    border-radius: 100px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.35);
    pointer-events: none;
    white-space: nowrap;
    max-width: calc(100% - 28px);
}

.pricing-box.highlighted-box .pricing-discount-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.pricing-box--ribbon .pricing-discount-badge {
    top: 18px;
    right: 18px;
}

.pricing-amount {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pricing-old {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}

.pricing-old s {
    text-decoration: line-through;
    opacity: 0.9;
}

.pricing-old small {
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-box.highlighted-box .pricing-old {
    color: rgba(255, 255, 255, 0.78);
}

.pricing-price--sale h2,
.pricing-price--sale h2 span,
.pricing-price--sale [data-period-current] {
    color: #dc2626 !important;
}

.pricing-box.highlighted-box .pricing-price--sale h2,
.pricing-box.highlighted-box .pricing-price--sale h2 span,
.pricing-box.highlighted-box .pricing-price--sale [data-period-current] {
    color: #ff6b6b !important;
}

.pricing-price--sale h2 {
    font-size: 2.4rem;
}

.pricing-case-pack__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
}

.pricing-case-pack__old {
    display: block;
    min-height: 1.25em;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pricing-case-pack__old--empty {
    visibility: hidden;
}

.pricing-case-pack__old s {
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    opacity: 1;
}

.pricing-case-pack__price--sale {
    color: #dc2626 !important;
}

.pricing-case-pack__off {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: #dc2626;
    border-radius: 999px;
    padding: 2px 8px;
    line-height: 1.4;
    white-space: nowrap;
}

.pricing-box.highlighted-box .pricing-case-pack__old {
    color: rgba(255, 255, 255, 0.72);
}

.pricing-box.highlighted-box .pricing-case-pack__price--sale {
    color: #ff8a8a !important;
}

.pricing-box.highlighted-box .pricing-case-pack__off {
    background: #ef4444;
    color: #fff;
}

.pricing-desc {
    margin: -10px 0 18px;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.7;
}

.pricing-box.highlighted-box .pricing-desc {
    color: rgba(255, 255, 255, 0.75);
}

.pricing-case-packs {
    border: none;
    margin: 0 0 16px;
    padding: 0;
}

.pricing-case-packs legend {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.pricing-box.highlighted-box .pricing-case-packs legend {
    color: #fff;
}

.pricing-case-packs__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.pricing-case-pack {
    font-family: inherit;
    cursor: pointer;
    text-align: right;
    border: 2px solid var(--divider-color);
    border-radius: 12px;
    background: #fafcfc;
    padding: 12px 12px 10px;
    transition: border-color 0.15s, background 0.15s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    height: 100%;
    min-height: 92px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.pricing-case-pack:hover,
.pricing-case-pack[aria-pressed="true"] {
    border-color: var(--accent-color);
    background: rgba(0, 204, 97, 0.08);
}

.pricing-box.highlighted-box .pricing-case-pack {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.pricing-box.highlighted-box .pricing-case-pack[aria-pressed="true"],
.pricing-box.highlighted-box .pricing-case-pack:hover {
    border-color: var(--accent-color);
    background: rgba(0, 204, 97, 0.18);
}

.pricing-case-pack__name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
}

.pricing-case-pack__price {
    flex: 0 1 auto;
    font-weight: 700;
    font-size: 13px;
    color: var(--accent-color);
    white-space: nowrap;
    line-height: 1.2;
}

.pricing-box.highlighted-box .pricing-case-pack__price {
    color: var(--accent-color);
}

.pricing-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: rgba(0, 204, 97, 0.1);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0 0 18px;
    font-weight: 700;
    font-size: 14px;
}

.pricing-box.highlighted-box .pricing-total {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.pricing-total__label {
    flex: 0 0 auto;
}

.pricing-total__amounts {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    text-align: left;
}

.pricing-total__old {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    line-height: 1.2;
}

.pricing-total__old s {
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.pricing-box.highlighted-box .pricing-total__old {
    color: rgba(255, 255, 255, 0.7);
}

.pricing-total__val {
    color: var(--dark-color);
    font-size: 15px;
}

.pricing-total__val--sale {
    color: #dc2626;
}

.pricing-box.highlighted-box .pricing-total__val {
    color: var(--accent-color);
}

.pricing-box.highlighted-box .pricing-total__val--sale {
    color: #ff8a8a;
}

.pricing-total__off {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: #dc2626;
    border-radius: 999px;
    padding: 2px 8px;
    line-height: 1.4;
    white-space: nowrap;
}

.pricing-faq {
    max-width: 760px;
    margin: 50px auto 0;
}

.pricing-faq h2 {
    text-align: center;
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 24px;
}

.pricing-faq-item {
    background: #fff;
    border: 1px solid var(--divider-color);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.pricing-faq-item summary {
    cursor: pointer;
    font-weight: 700;
    padding: 16px 18px;
    list-style: none;
    color: var(--dark-color);
}

.pricing-faq-item summary::-webkit-details-marker {
    display: none;
}

.pricing-faq-item p {
    margin: 0;
    padding: 0 18px 16px;
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.8;
}

.pricing-cta-band {
    margin-top: 50px;
    padding: 40px 30px;
    border-radius: 24px;
    background: var(--dark-color);
    text-align: center;
    color: #fff;
}

.pricing-cta-band h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 10px;
}

.pricing-cta-band p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 22px;
}

.pricing-cta-band .btn-default {
    margin: 0 6px 8px;
}

@media (max-width: 575px) {
    .pricing-case-packs__grid {
        grid-template-columns: 1fr;
    }

    .page-header-box h1 {
        font-size: 32px !important;
    }
}
