#ifp-calculator {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    direction: rtl;
    text-align: right;
}

.ifp-header {
    text-align: center;
    margin-bottom: 20px;
}

.ifp-plans {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.ifp-plan-btn {
    border: none;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    background: #f3f4f6;
    font-family: inherit;
    transition: all 0.3s;
}

.ifp-plan-btn:hover {
    opacity: .9;
}

.ifp-active {
    background: #2563eb;
    color: #fff;
}

#ifp-terms-container {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.ifp-term-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.ifp-term-card h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #1f2937;
}

.ifp-term-card ul {
    padding: 0;
    list-style: none;
}

.ifp-term-card ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #f3f4f6;
    display: flex;
    justify-content: space-between;
}

.ifp-timeline {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.ifp-step {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    background: #f1f5f9;
    font-size: 14px;
    color: #64748b;
}

.ifp-step.active {
    background: #10b981;
    color: #fff;
    font-weight: bold;
}

.ifp-track-table {
    width: 100%;
    border-collapse: collapse;
}

.ifp-track-table th {
    width: 180px;
    text-align: right;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.ifp-track-table td {
    padding: 12px;
    border: 1px solid #e2e8f0;
}

.ifp-compare {
    margin: 40px auto;
    direction: rtl;
}

.ifp-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.ifp-compare-table th,
.ifp-compare-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

#ifp-down-payment {
    width: 100%;
    margin-top: 10px;
}

.ifp-slider-value {
    margin-top: 10px;
    font-weight: 700;
    color: #0f766e;
    text-align: center;
    font-size: 16px;
}