/* --- استایل های اصلی --- */
.fol-wrapper {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    direction: rtl;
    /* اطمینان از راست‌چین بودن */
}

.fol-tabs {
    display: flex;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.fol-tab {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: bold;
    color: #777;
    transition: all 0.3s;
    outline: none;
}

.fol-tab.active {
    background: #fff;
    color: #333;
    border-bottom: 2px solid #0073aa;
}

.fol-content {
    padding: 20px;
}

.fol-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.fol-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fol-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
    text-align: right;
}

.fol-wrapper input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
}

.fol-wrapper input::placeholder {
    text-align: right;
}

.fol-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.2s;
}

.fol-btn.primary {
    background: #0073aa;
    color: #fff;
}

.fol-btn.primary:hover {
    background: #005a87;
}

.fol-btn-back {
    background: none;
    border: none;
    color: #777;
    margin-top: 10px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    width: 100%;
}

.fol-timer-box {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    min-height: 20px;
}

.fol-resend-link {
    color: #0073aa;
    text-decoration: none;
}

.fol-message {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
    text-align: center;
}

.fol-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.fol-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    text-align: right;
}

.fol-sent-to {
    text-align: center;
    margin-bottom: 15px;
    font-size: 13px;
    color: #444;
}

.fol-footer-link {
    text-align: center;
    font-size: 12px;
    margin-top: 10px;
}

.fol-footer-link a {
    text-decoration: none;
    color: #0073aa;
}

/* گرید سیستم ساده */
.fol-row {
    display: flex;
    gap: 10px;
}

.fol-col {
    flex: 1;
}

.fol-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* استایل بخش My Account */
.fol-myaccount-fieldset {
    margin: 20px 0;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
}

.fol-myaccount-fieldset legend {
    padding: 0 10px;
    font-weight: bold;
}

.fol-myaccount-box p {
    margin-bottom: 15px;
}

.fol-error {
    color: red;
}

/* استایل پاپ آپ */
.fol-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fol-popup-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    padding: 25px;
    border-radius: 10px;
    position: relative;
    text-align: center;
}

.fol-popup-close {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 24px;
    cursor: pointer;
}