/* ═══════ Iran Follower – Package Page v3 ═══════ */

/* ── Page ── */
.irf-pkg-page {
    background: #f0f0f5;
    min-height: 100vh;
}

.irf-pkg-page h1,
.irf-pkg-page h2,
.irf-pkg-page h3,
.irf-pkg-page h4,
.irf-pkg-page h5,
.irf-pkg-page h6,
.irf-pkg-page strong,
.irf-pkg-page b {
    font-family: IRANSansX, sans-serif;
}

/* ── Hero Banner ── */
.irf-pkg-hero {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 30%, #2563eb 60%, #1d4ed8 100%);
    padding: 130px 0 90px;
    position: relative;
    overflow: hidden;
}

/* ── Decorative Circles ── */
.irf-hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.irf-hero-circle {
    position: absolute;
    border-radius: 50%;
}

.irf-hero-circle-1 {
    top: -120px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,.04);
}

.irf-hero-circle-2 {
    bottom: -100px;
    left: -60px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,.03);
}

.irf-hero-circle-3 {
    top: 30%;
    left: 50%;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,.02);
    transform: translateX(-50%);
}

/* ── Hero Content ── */
.irf-pkg-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

/* ── Breadcrumb ── */
.irf-pkg-breadcrumb {
    margin-bottom: 24px;
    font-size: 13px;
    opacity: .7;
}

    .irf-pkg-breadcrumb a {
        color: #fff;
        text-decoration: none;
    }

        .irf-pkg-breadcrumb a:hover {
            opacity: 1;
            text-decoration: underline;
        }

    .irf-pkg-breadcrumb .irf-sep {
        margin: 0 8px;
        opacity: .5;
    }

/* ── Page Title ── */
.irf-hero-page-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
    padding: 10px 24px;
    border-radius: 50px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

    .irf-hero-page-title i {
        font-size: 20px;
    }

/* ── Package Card ── */
.irf-hero-pkg-card {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    text-align: right;
}

.irf-hero-pkg-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .irf-hero-pkg-icon i {
        font-size: 24px;
    }

.irf-hero-pkg-info {
    flex: 1;
    min-width: 0;
}

/* ── Package Name ── */
h1.irf-pkg-name {
    color: #fff !important;
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 8px;
    letter-spacing: -.3px;
    text-shadow: 0 2px 20px rgba(0,0,0,.15);
    line-height: 1.4;
}

.irf-hero-pkg-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.irf-pkg-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.15);
    padding: 5px 14px;
    border-radius: 50px;
    color: rgba(255,255,255,.85);
    font-size: 12px;
    font-weight: 600;
}

    .irf-pkg-chip i {
        font-size: 14px;
    }

    .irf-pkg-chip.irf-pkg-chip-type {
        color: #fff;
    }

/* ── Price ── */
.irf-hero-pkg-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    background: #fff;
    border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

    .irf-hero-pkg-price .irf-old-price {
        text-decoration: line-through;
        color: #999;
        font-size: 12px;
        font-weight: 400;
    }

    .irf-hero-pkg-price .irf-final-price {
        color: #2563eb;
        font-size: 22px;
        font-weight: 900;
        line-height: 1.2;
    }

    .irf-hero-pkg-price .irf-price-unit {
        color: #2563eb;
        font-size: 11px;
        font-weight: 600;
        opacity: .7;
    }

.irf-pkg-hero-content .irf-pkg-subtitle {
    color: rgba(255,255,255,.55);
    font-size: 14px;
    margin-top: 16px;
    margin-bottom: 0;
}

/* ── Main Body ── */
.irf-pkg-body {
    margin-top: -60px;
    position: relative;
    z-index: 2;
    padding-bottom: 40px;
}

/* ── Alert Card ── */
.irf-pkg-alert {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-right: 5px solid #f59e0b;
}

    .irf-pkg-alert i {
        font-size: 24px;
        color: #f59e0b;
        flex-shrink: 0;
    }

    .irf-pkg-alert p {
        margin: 0;
        font-size: 15px;
        color: #92400e;
        line-height: 1.8;
        font-weight: 500;
    }

        .irf-pkg-alert p strong {
            font-weight: 700;
            color: #78350f;
        }

/* ── Flag Alert ── */
.irf-pkg-flag {
    background: #fef2f2;
    border-color: #fecaca;
    border-right-color: #ef4444;
    margin-bottom: 16px;
}

    .irf-pkg-flag i {
        color: #ef4444;
    }

    .irf-pkg-flag p {
        color: #991b1b;
    }

    .irf-pkg-flag .btn {
        background: #ef4444;
        color: #fff;
        border: none;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 700;
        padding: 8px 18px;
        white-space: nowrap;
        flex-shrink: 0;
    }

        .irf-pkg-flag .btn:hover {
            background: #dc2626;
        }

/* ── Order Summary ── */
.irf-order-summary {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 40px rgba(0,0,0,.06);
    position: sticky;
    top: 100px;
}

.irf-summary-title {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f3f4f6;
}

    .irf-summary-title i {
        color: #2563eb;
        margin-left: 8px;
    }

/* ── Detail List ── */
.irf-summary-detail-list {
    margin-bottom: 18px;
}

.irf-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid #f3f4f6;
}

    .irf-detail-row:last-child {
        border-bottom: none;
    }

.irf-detail-label {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
}

.irf-detail-value {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
}

.irf-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

    .irf-detail-badge i {
        font-size: 14px;
    }

.irf-detail-qty {
    color: #2563eb;
    font-weight: 700;
    font-size: 15px;
}

.irf-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: #4b5563;
    border-bottom: 1px dashed #f0f0f0;
}

    .irf-summary-row:last-child {
        border-bottom: none;
    }

.irf-summary-price-box {
    background: #fafafa;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid #f0f0f0;
}

    .irf-summary-price-box .irf-summary-row {
        border-bottom-color: #e8e8e8;
        padding: 8px 0;
        font-size: 13px;
    }

.irf-summary-old {
    color: #9ca3af;
}

    .irf-summary-old del {
        color: #d1d5db;
    }

.irf-summary-discount {
    color: #059669;
    font-weight: 600;
}

.irf-summary-total {
    font-size: 16px !important;
    font-weight: 800;
    color: #2563eb;
    border-bottom: none !important;
    padding-top: 12px !important;
}

.irf-summary-alerts {
    margin-bottom: 20px;
}

    .irf-summary-alerts .irf-pkg-alert {
        padding: 14px 16px;
        font-size: 13px;
        margin-bottom: 10px;
        border-radius: 12px;
    }

    .irf-summary-alerts .irf-pkg-alert:last-child {
        margin-bottom: 0;
    }

    .irf-summary-alerts .irf-pkg-alert p {
        font-size: 13px;
        line-height: 1.7;
    }

    .irf-summary-alerts .irf-pkg-alert i {
        font-size: 20px;
    }

/* ── Alert Pulse Animation ── */
@keyframes irfAlertPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .3); }
    50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

@keyframes irfAlertFlagPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .3); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

@keyframes irfIconShake {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-12deg); }
    40% { transform: rotate(12deg); }
    60% { transform: rotate(-8deg); }
    80% { transform: rotate(8deg); }
}

.irf-alert-pulse {
    animation: irfAlertPulse 2.5s ease-in-out 3;
}

    .irf-alert-pulse.irf-pkg-flag {
        animation-name: irfAlertFlagPulse;
    }

    .irf-alert-pulse i {
        animation: irfIconShake 0.6s ease-in-out;
        animation-delay: 0.5s;
        animation-iteration-count: 3;
    }

/* ── Form Card ── */
.irf-pkg-form-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 40px rgba(0,0,0,.06);
}

.irf-pkg-form-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f3f4f6;
}

    .irf-pkg-form-title i {
        color: #2563eb;
        margin-left: 8px;
    }

/* ── Form Groups ── */
.irf-fg {
    margin-bottom: 20px;
}

    .irf-fg label {
        font-size: 14px;
        color: #374151;
        margin-bottom: 6px;
        display: block;
        font-weight: 600;
    }

        .irf-fg label .req {
            color: #ef4444;
            font-size: 12px;
        }

        .irf-fg label i {
            color: #2563eb;
            margin-left: 4px;
        }

.irf-pkg-form-card .form-control {
    height: 50px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 0 16px;
    font-size: 15px;
    transition: all .2s;
    background: #fafafa;
}

    .irf-pkg-form-card .form-control:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
        background: #fff;
    }

/* ── Field Error State ── */
.irf-fg-error .form-control {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .1) !important;
    background: #fef2f2 !important;
}

.irf-field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    color: #ef4444;
    font-weight: 600;
    animation: irfShakeField .4s ease;
}

    .irf-field-error i {
        font-size: 14px;
        flex-shrink: 0;
    }

.irf-check.irf-fg-error label {
    color: #ef4444;
}

    .irf-check.irf-fg-error label a {
        color: #ef4444;
    }

    .irf-check.irf-fg-error .checkmark,
    .irf-check.irf-fg-error input[type="checkbox"] {
        border-color: #ef4444 !important;
        box-shadow: 0 0 0 4px rgba(239, 68, 68, .1);
    }

@keyframes irfShakeField {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.irf-form-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #991b1b;
    line-height: 2;
}

    .irf-pkg-form-card .form-control:disabled,
    .irf-pkg-form-card .form-control[disabled] {
        background: #e9ecef;
        color: #6c757d;
        border-color: #d1d5db;
        cursor: not-allowed;
        opacity: 1;
        border-style: dashed;
    }

/* ── LTR Input ── */
.irf-ltr {
    direction: ltr;
    text-align: left;
    font-family: tahoma, sans-serif;
}

/* ── Two-column fields ── */
.irf-fields-row {
    display: flex;
    gap: 16px;
}

    .irf-fields-row > .irf-fg {
        flex: 1;
    }

/* ── Errors ── */
.irf-form-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    color: #dc2626;
    font-size: 14px;
    line-height: 1.7;
}

/* ── Points ── */
.irf-points-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 1px solid #f3f4f6;
}

/* ── Checkbox ── */
.irf-check label {
    position: relative;
    display: flex;
    align-items: center;
    padding-right: 34px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 0;
}

    .irf-check label input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 22px;
        height: 22px;
        margin: 0;
        cursor: pointer;
    }

    .irf-check label .checkmark {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 22px;
        height: 22px;
        border-radius: 6px;
        border: 2px solid #d1d5db;
        background: #fff;
        transition: all .2s;
    }

    .irf-check label:hover .checkmark {
        border-color: #2563eb;
    }

    .irf-check label input:checked ~ .checkmark {
        background: #2563eb;
        border-color: #2563eb;
    }

    .irf-check label .checkmark:after {
        content: "";
        position: absolute;
        display: none;
    }

    .irf-check label input:checked ~ .checkmark:after {
        display: block;
        right: 6px;
        top: 2px;
        width: 6px;
        height: 12px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

    .irf-check label a {
        color: #2563eb;
        font-weight: 600;
        margin: 0 4px;
    }

/* ── Buttons ── */
.irf-pay-actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
}

.irf-btn-pay {
    flex: 1;
    height: 52px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    transition: all .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.irf-btn-pay.primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, .3);
}

    .irf-btn-pay.primary:hover {
        box-shadow: 0 6px 24px rgba(37, 99, 235, .45);
        transform: translateY(-2px);
    }

.irf-btn-pay.secondary {
    background: #f9fafb;
    color: #374151;
    border: 1px solid #e5e7eb;
}

    .irf-btn-pay.secondary:hover {
        border-color: #2563eb;
        color: #2563eb;
    }

/* ── Disabled ── */
.irf-btn-pay.disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ── Trust ── */
.irf-trust {
    margin-top: 20px;
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
}

    .irf-trust i {
        margin-left: 4px;
    }

/* ── Banks ── */
.irf-pkg-banks {
    text-align: center;
    margin-top: 50px;
}

    .irf-pkg-banks h6 {
        color: #9ca3af;
        font-size: 13px;
        margin-bottom: 16px;
    }

    .irf-pkg-banks img {
        max-width: 400px;
        width: 70%;
        opacity: .6;
    }

/* ── Flag Modal ── */
.irf-flag-modal {
    border-radius: 20px !important;
    font-family: IRANSansX, sans-serif !important;
}

    .irf-flag-modal h1,
    .irf-flag-modal h2,
    .irf-flag-modal h3,
    .irf-flag-modal h4,
    .irf-flag-modal h5,
    .irf-flag-modal strong,
    .irf-flag-modal b,
    .irf-flag-modal div,
    .irf-flag-modal p {
        font-family: IRANSansX, sans-serif !important;
    }

    .irf-flag-modal .swal2-close {
        font-size: 28px;
        color: #9ca3af;
    }

        .irf-flag-modal .swal2-close:hover {
            color: #ef4444;
        }

    .irf-flag-modal .swal2-html-container {
        padding: 0 !important;
    }

    .irf-flag-modal .swal2-confirm {
        border-radius: 12px !important;
        font-family: IRANSansX, sans-serif !important;
        font-weight: 700 !important;
        font-size: 15px !important;
        padding: 12px 28px !important;
    }

    .irf-flag-blog-btn {
        background: #f3f4f6 !important;
        color: #4b5563 !important;
        border-radius: 12px !important;
        font-family: IRANSansX, sans-serif !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        padding: 12px 24px !important;
        border: 1px solid #e5e7eb !important;
    }

        .irf-flag-blog-btn:hover {
            background: #e5e7eb !important;
            color: #1f2937 !important;
        }

/* ═══ Responsive ═══ */
@media (max-width: 767px) {
    .irf-pkg-hero {
        padding: 85px 0 75px;
    }

    .irf-hero-page-title {
        font-size: 14px;
        padding: 8px 18px;
        margin-bottom: 20px;
    }

    .irf-hero-pkg-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 14px;
        border-radius: 16px;
    }

    .irf-hero-pkg-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }

        .irf-hero-pkg-icon i {
            font-size: 20px;
        }

    .irf-hero-pkg-meta {
        justify-content: center;
    }

        h1.irf-pkg-name {
            font-size: 20px;
            margin-bottom: 8px;
        }

    .irf-hero-pkg-price {
        padding: 10px 18px;
        border-radius: 12px;
        flex-direction: row;
        gap: 6px;
        align-items: baseline;
    }

        .irf-hero-pkg-price .irf-final-price {
            font-size: 20px;
        }

    .irf-pkg-hero-content .irf-pkg-subtitle {
        font-size: 12px;
    }

    .irf-pkg-breadcrumb {
        margin-bottom: 14px;
        font-size: 12px;
    }

    .irf-pkg-chip {
        padding: 4px 10px;
        font-size: 11px;
        gap: 4px;
    }

    .irf-order-summary {
        position: static;
        padding: 20px;
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .irf-summary-pkg {
        padding: 12px;
    }

    .irf-pkg-form-card {
        padding: 20px;
        border-radius: 16px;
    }

    .irf-pay-actions {
        flex-direction: column;
        gap: 12px;
    }

    .irf-btn-pay {
        height: 56px;
        font-size: 16px;
        border-radius: 14px;
        width: 100%;
        flex: none;
    }

    .irf-btn-pay.primary {
        box-shadow: 0 6px 20px rgba(37, 99, 235, .35);
    }

    .irf-btn-pay.secondary {
        height: 52px;
        border-width: 2px;
    }

    .irf-check label {
        align-items: flex-start;
        font-size: 13px;
        line-height: 2;
        padding-right: 30px;
        padding-top: 2px;
    }

    .irf-check label .checkmark {
        top: 2px;
        transform: none;
        width: 20px;
        height: 20px;
    }

    .irf-check label input[type="checkbox"] {
        top: 2px;
        transform: none;
        width: 20px;
        height: 20px;
    }

    .irf-pkg-alert {
        flex-wrap: nowrap;
        padding: 14px 16px;
        gap: 10px;
    }

    .irf-pkg-alert p {
        font-size: 13px;
        line-height: 1.7;
    }

    .irf-pkg-flag .btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    .irf-pkg-banks {
        margin-top: 30px;
    }
}
