/* ─── Coupon Applied Notice (inline, above pricing) ─── */

.coupon-applied-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    max-width: 640px;
    margin: 0 auto 28px;
    padding: 12px 22px;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 999px;
    color: #166534;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(22, 101, 52, 0.08);
    animation: noticeFadeIn 0.45s ease;
}

.coupon-applied-notice__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 11px;
    flex-shrink: 0;
}

.coupon-applied-notice__label {
    font-weight: 800;
    color: #15803d;
}

.coupon-applied-notice__code {
    font-weight: 800;
    letter-spacing: 0.04em;
}

.coupon-applied-notice__sep {
    color: #86efac;
    font-weight: 400;
    user-select: none;
}

.coupon-applied-notice__savings {
    color: #166534;
}

@keyframes noticeFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

[dir="rtl"] .coupon-applied-notice {
    direction: rtl;
}

@media (max-width: 768px) {
    .coupon-applied-notice {
        border-radius: 14px;
        padding: 12px 16px;
        font-size: 13px;
        margin-bottom: 20px;
    }
}

/* ── Plan Pricing: reference-style old / new price ── */

.plan-card .plan-price.has-coupon-discount,
.plan .price.has-coupon-discount {
    text-align: center;
}

.plan-card .plan-price .amount.has-coupon-discount,
.plan .price .amount.has-coupon-discount {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1.1;
    margin-bottom: 4px;
}

.plan-card .plan-price .amount .coupon-old-price,
.plan .price .amount .coupon-old-price {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    line-height: 1.3;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
    animation: oldPriceFadeIn 0.4s ease;
}

.plan-card .plan-price .amount .coupon-current-price,
.plan .price .amount .coupon-current-price {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
    flex-wrap: nowrap;
}

.plan-card .plan-price .amount.has-coupon-discount .coupon-current-price,
.plan .price .amount.has-coupon-discount .coupon-current-price {
    font-size: 42px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
    animation: newPricePop 0.45s ease;
}

.plan-card .plan-price .amount.has-coupon-discount .currency,
.plan .price .amount.has-coupon-discount .currency {
    font-size: 0.72em;
    font-weight: 800;
    color: #111827;
}

.plan-card .plan-price .amount.has-coupon-discount .num,
.plan .price .amount.has-coupon-discount .num {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.plan-card .plan-price.has-coupon-discount .period,
.plan .price.has-coupon-discount + .period,
.plan .price.has-coupon-discount ~ .period {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-top: 2px;
}

.plan-card .plan-price .coupon-save-badge,
.plan .price .coupon-save-badge {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    margin-top: 10px;
    animation: saveBadgeBounce 0.5s ease;
}

@keyframes oldPriceFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes newPricePop {
    0%   { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes saveBadgeBounce {
    0%   { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ── End Plan Pricing ── */
