/* ===============================
   Pricing Card - Main Wrapper
================================= */
.wcm-pricing-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e6edf5;
    border-radius: 22px;
    padding: 22px;
    margin: 18px 0;
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.06),
        0 2px 8px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: all 0.25s ease;
}

.wcm-pricing-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 36px rgba(15, 23, 42, 0.08),
        0 4px 10px rgba(15, 23, 42, 0.05);
}

/* ===============================
   Flash Sale Style
================================= */
.wcm-pricing-card.is-flash {
    background:
        radial-gradient(circle at top right, rgba(255, 90, 90, 0.12), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255, 153, 0, 0.08), transparent 30%),
        linear-gradient(180deg, #fff8f8 0%, #ffffff 100%);
    border: 1px solid #ffd2d2;
    box-shadow:
        0 16px 40px rgba(239, 68, 68, 0.10),
        0 3px 10px rgba(239, 68, 68, 0.06);
}

.wcm-pricing-card.is-flash::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(239,68,68,0.03), rgba(249,115,22,0.02));
    pointer-events: none;
}

/* ===============================
   Header / Badge
================================= */
.pricing-header {
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    color: #b91c1c;
    margin-bottom: 18px;
    letter-spacing: -0.2px;
}

.flash-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.22);
    z-index: 2;
}

/* ===============================
   Pricing Grid
================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 16px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.pricing-col {
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 18px;
    padding: 18px 14px;
    text-align: center;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.pricing-col:hover {
    transform: translateY(-2px);
}

/* ستون برجسته وسط */
.pricing-col-featured {
    background: linear-gradient(180deg, #fff5f5 0%, #fff0f0 100%);
    border: 1px solid #ffb4b4;
    transform: scale(1.04);
    box-shadow:
        0 14px 30px rgba(239, 68, 68, 0.14),
        0 4px 10px rgba(239, 68, 68, 0.08);
    position: relative;
}

.pricing-col-featured::before {
    content: "⭐ بهترین قیمت";
    position: absolute;
    top: -11px;
    right: 50%;
    transform: translateX(50%);
    background: #fff;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.08);
}

/* ===============================
   Labels / Values
================================= */
.pricing-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 700;
}

.pricing-value {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.4;
}

.pricing-value span {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin-right: 4px;
}

.old-price {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 22px;
}

.old-price span {
    color: #94a3b8;
}

.new-price-highlight {
    color: #dc2626;
    font-size: 30px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}

/* ===============================
   Discount label
================================= */
.discount-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 12px auto 0;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.18);
}

/* ===============================
   Timer
================================= */
.timer-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    margin: 0 auto;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 100%);
    border: 1px solid #fed7aa;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.timer-countdown {
    font-size: 24px;
    font-weight: 900;
    color: #ff000a;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

/* ===============================
   Normal Simple Row
================================= */
.pricing-simple-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px 22px;
}

.simple-label {
    font-size: 15px;
    color: #475569;
    font-weight: 700;
}

.simple-value {
    font-size: 30px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
}

.simple-value span {
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
    margin-right: 4px;
}

/* ===============================
   Responsive
================================= */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-col-featured {
        transform: none;
    }

    .flash-badge {
        position: static;
        display: inline-flex;
        margin: 0 auto 14px;
    }

    .pricing-header {
        margin-top: 4px;
    }

    .pricing-simple-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .simple-value {
        font-size: 26px;
    }

    .pricing-value {
        font-size: 22px;
    }

    .new-price-highlight {
        font-size: 28px;
    }

    .timer-countdown {
        font-size: 22px;
    }
}
/* ===============================
   Context Notes
================================= */
.pricing-context-note {
    position: relative;
    z-index: 1;
    margin: -4px auto 18px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px dashed rgba(239, 68, 68, 0.22);
    border-radius: 14px;
    color: #475569;
    font-size: 13px;
    line-height: 1.9;
    text-align: center;
}

.pricing-context-note strong {
    color: #dc2626;
    font-weight: 900;
}

.pricing-context-small {
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.8;
}

.pricing-muted-value {
    font-size: 18px;
    color: #64748b;
}

/* ===============================
   Cycle Mini Stats
================================= */
.cycle-mini-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.cycle-mini-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #ffe0e0;
    border-radius: 16px;
    padding: 12px;
    color: #64748b;
    box-shadow: 0 5px 14px rgba(239, 68, 68, 0.05);
}

.cycle-mini-item span,
.cycle-mini-item small {
    font-size: 12px;
    font-weight: 700;
}

.cycle-mini-item strong {
    color: #dc2626;
    font-size: 20px;
    font-weight: 900;
}

/* ===============================
   Current Step Price Box
================================= */
.step-current-price-box {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding: 18px 20px;
    background:
        radial-gradient(circle at top left, rgba(239,68,68,0.08), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
    border: 1px solid #ffd6d6;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.08);
}

.step-current-label {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}
.price-original-strike {
    text-decoration: line-through;
    opacity: .6;
}

.step-current-price-box strong {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: #dc2626;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.2;
}

.step-current-price-box strong small {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.step-current-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-current-timer > span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.step-sales-counter {
    min-width: 140px;
    text-align: center;
    background: #fff;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 12px 14px;
}

.step-sales-counter span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 4px;
}

.step-sales-counter strong {
    display: inline;
    color: #ea580c;
    font-size: 28px;
}

.step-sales-counter small {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

/* ===============================
   Steps Timeline
================================= */
.wcm-steps-timeline {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.wcm-step-card {
    position: relative;
    min-height: 165px;
    padding: 18px 14px 14px;
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
    transition: all 0.25s ease;
    overflow: hidden;
}

.wcm-step-card:hover {
    transform: translateY(-2px);
}

.wcm-step-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.6), rgba(255,255,255,0));
    pointer-events: none;
}

.step-marker {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 900;
}

.step-card-body {
    position: relative;
    z-index: 1;
}

.step-card-title {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 6px;
}

.step-card-price {
    color: #0f172a;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.4;
}

.step-card-price span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    margin-right: 3px;
}

.step-card-meta {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
}

.step-active-label,
.step-passed-label,
.step-future-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

/* Active Step */
.wcm-step-card.active {
    transform: scale(1.04);
    border-color: #ffb4b4;
    background:
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.14), transparent 36%),
        linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
    box-shadow:
        0 16px 34px rgba(239, 68, 68, 0.14),
        0 4px 12px rgba(239, 68, 68, 0.08);
}

.wcm-step-card.active .step-marker {
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.25);
}

.wcm-step-card.active .step-card-title {
    color: #dc2626;
}

.wcm-step-card.active .step-card-price {
    color: #dc2626;
}

.wcm-step-card.active .step-active-label {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.16);
}

/* Passed Step */
.wcm-step-card.passed {
    opacity: 0.72;
    background: #f8fafc;
}

.wcm-step-card.passed .step-marker {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #16a34a;
}

.wcm-step-card.passed .step-card-price {
    color: #94a3b8;
    text-decoration: line-through;
}

.wcm-step-card.passed .step-passed-label {
    background: #dcfce7;
    color: #15803d;
}

/* Future Step */
.wcm-step-card.future {
    background: #ffffff;
}

.wcm-step-card.future .step-future-label {
    background: #f1f5f9;
    color: #64748b;
}

.wcm-steps-footer-note {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    padding: 12px 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    line-height: 1.8;
}

/* ===============================
   Responsive
================================= */
@media (max-width: 768px) {
    .cycle-mini-stats {
        grid-template-columns: 1fr;
    }

    .step-current-price-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .step-current-price-box strong {
        justify-content: center;
        font-size: 28px;
    }

    .wcm-steps-timeline {
        grid-template-columns: 1fr;
    }

    .wcm-step-card.active {
        transform: none;
    }

    .step-sales-counter {
        width: 100%;
    }
}
/* ===============================
   Steps Time - Top Grid
================================= */
.steps-time-top-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.steps-time-top-item {
    background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
    border: 1px solid #ffe1e1;
    border-radius: 18px;
    padding: 18px 16px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.06);
}

.steps-top-label {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
}

.steps-top-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    color: #dc2626;
    font-size: 30px;
    font-weight: 950;
    line-height: 1.2;
}

.steps-top-price small {
    font-size: 12px;
    color: #64748b;
    font-weight: 800;
}

.steps-top-step {
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
}

.steps-top-meta {
    display: block;
    margin-top: 8px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
}

.steps-top-static {
    color: #64748b;
    font-size: 16px;
    font-weight: 900;
}

.step-timer-box {
    justify-content: center;
    min-height: 56px;
}

/* ===============================
   Steps Slider
================================= */
.steps-slider-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.steps-slider-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 6px 2px 10px;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #fca5a5 #fff1f2;
}

.steps-slider-track::-webkit-scrollbar {
    height: 8px;
}

.steps-slider-track::-webkit-scrollbar-track {
    background: #fff1f2;
    border-radius: 999px;
}

.steps-slider-track::-webkit-scrollbar-thumb {
    background: #fca5a5;
    border-radius: 999px;
}

.steps-nav {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.18);
    flex: 0 0 auto;
}

.steps-nav:hover {
    opacity: 0.92;
}

.wcm-step-slide-card {
    min-width: 190px;
    max-width: 190px;
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 20px;
    padding: 18px 14px 16px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
    transition: all 0.25s ease;
    flex: 0 0 auto;
}

.wcm-step-slide-card:hover {
    transform: translateY(-2px);
}

.step-slide-marker {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 15px;
    font-weight: 900;
}

.step-slide-title {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 6px;
}

.step-slide-price {
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.35;
}

.step-slide-price span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    margin-right: 3px;
}

.step-slide-meta {
    margin-top: 7px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
}

.step-slide-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 11px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.wcm-step-slide-card.active {
    border-color: #ffb4b4;
    background:
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.14), transparent 36%),
        linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
    box-shadow:
        0 16px 34px rgba(239, 68, 68, 0.14),
        0 4px 12px rgba(239, 68, 68, 0.08);
}

.wcm-step-slide-card.active .step-slide-marker {
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-color: transparent;
    color: #fff;
}

.wcm-step-slide-card.active .step-slide-title,
.wcm-step-slide-card.active .step-slide-price {
    color: #dc2626;
}

.active-badge {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
}

.wcm-step-slide-card.passed {
    opacity: 0.75;
    background: #f8fafc;
}

.wcm-step-slide-card.passed .step-slide-marker {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #16a34a;
}

.wcm-step-slide-card.passed .step-slide-price {
    color: #94a3b8;
    text-decoration: line-through;
}

.passed-badge {
    background: #dcfce7;
    color: #15803d;
}

.future-badge {
    background: #f1f5f9;
    color: #64748b;
}

@media (max-width: 768px) {
    .steps-time-top-grid {
        grid-template-columns: 1fr;
    }

    .steps-nav {
        display: none;
    }

    .wcm-step-slide-card {
        min-width: 165px;
        max-width: 165px;
    }

    .steps-top-price {
        font-size: 26px;
    }
}
