/* ============================================ */
/* دکمه شناور اصلی */
/* ============================================ */
.floating-btn-main {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(102,126,234,0.5);
    transition: all 0.3s;
    font-size: 26px;
    z-index: 9998;
    padding: 0;
}
.floating-btn-main:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(102,126,234,0.7);
}
.floating-icon { line-height: 1; }

.floating-btn-main::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: rgba(102,126,234,0.4);
    animation: floatPulse 2s ease-out infinite;
    z-index: -1;
}
@keyframes floatPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ============================================ */
/* دکمه شناور کارفرما (قرمز) */
/* ============================================ */
.employer-floating {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    box-shadow: 0 8px 25px rgba(231,76,60,0.5) !important;
}
.employer-floating:hover {
    box-shadow: 0 12px 35px rgba(231,76,60,0.7) !important;
}
.employer-floating::before {
    background: rgba(231,76,60,0.4) !important;
}

/* ============================================ */
/* Badge */
/* ============================================ */
.floating-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    background: #e74c3c;
    color: #fff;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    padding: 0 6px;
    border: 2px solid #fff;
    animation: badgePulse 1.5s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ============================================ */
/* پاپ‌آپ */
/* ============================================ */
.floating-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
    direction: rtl;
    backdrop-filter: blur(4px);
}
.floating-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.floating-modal-box {
    background: #fff;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 88vh;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.floating-modal-overlay.active .floating-modal-box {
    transform: scale(1) translateY(0);
}

.floating-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 2px solid #f0f2f5;
    background: linear-gradient(135deg, #f8f9fc 0%, #fff 100%);
    flex-shrink: 0;
}
.floating-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
}
.floating-modal-close,
.floating-modal-refresh {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f2f5;
    color: #7f8c8d;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: bold;
}
.floating-modal-close:hover {
    background: #e74c3c;
    color: #fff;
    transform: rotate(90deg);
}
.floating-modal-refresh:hover {
    background: #3498db;
    color: #fff;
    transform: rotate(180deg);
}

.floating-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 200px;
}

/* ============================================ */
/* تب‌ها */
/* ============================================ */
.floating-tabs {
    display: flex;
    background: #f8f9fc;
    padding: 4px;
    margin: 12px 20px 0;
    border-radius: 12px;
    gap: 4px;
    flex-shrink: 0;
}
.floating-tab {
    flex: 1;
    padding: 10px 15px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    color: #7f8c8d;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}
.floating-tab:hover {
    background: rgba(102,126,234,0.08);
    color: #667eea;
}
.floating-tab.active {
    background: #fff;
    color: #667eea;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.tab-badge {
    background: #e74c3c;
    color: #fff;
    padding: 1px 7px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}
.floating-tab.active .tab-badge {
    background: #667eea;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================ */
/* زیر-تب‌ها */
/* ============================================ */
.sub-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
    padding: 5px;
    background: #f8f9fc;
    border-radius: 10px;
}
.sub-tab {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: bold;
    color: #7f8c8d;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.sub-tab:hover {
    background: rgba(102,126,234,0.08);
    color: #667eea;
}
.sub-tab.active {
    background: #fff;
    color: #667eea;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.sub-tab-badge {
    background: #e74c3c;
    color: #fff;
    padding: 1px 7px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}
.sub-tab.active .sub-tab-badge {
    background: #667eea;
}
.sub-tab-content { display: none; }
.sub-tab-content.active { display: block; }

/* ============================================ */
/* Loading و Empty */
/* ============================================ */
.floating-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #95a5a6;
    gap: 15px;
}
.spinner-small {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.floating-modal-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #95a5a6;
}
.floating-modal-empty-icon {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}
.floating-modal-empty-text {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: bold;
    margin-bottom: 6px;
}
.floating-modal-empty-sub {
    font-size: 12px;
    color: #bdc3c7;
}

/* ============================================ */
/* کارت درخواست */
/* ============================================ */
.requests-list,
.incoming-requests-list,
.sent-requests-list,
.ads-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.request-card {
    background: #fff;
    border: 2px solid #f0f2f5;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.request-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3498db, #2980b9);
}
.request-card.status-new::before {
    background: linear-gradient(180deg, #e74c3c, #c0392b);
    animation: pulseBorder 2s ease-in-out infinite;
}
.request-card.status-accepted::before {
    background: linear-gradient(180deg, #27ae60, #229954);
}
.request-card.status-rejected::before {
    background: linear-gradient(180deg, #e74c3c, #c0392b);
}
.request-card.status-pending::before {
    background: linear-gradient(180deg, #f39c12, #e67e22);
}
@keyframes pulseBorder {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ... بقیه CSS کارت‌ها ... */

/* ============================================ */
/* ریسپانسیو */
/* ============================================ */
@media (max-width: 600px) {
    .floating-btn-main {
        bottom: 15px;
        left: 15px;
        width: 54px;
        height: 54px;
        font-size: 22px;
    }
    .floating-modal-box {
        max-width: 100%;
        max-height: 92vh;
    }
    .floating-modal-body { padding: 15px; }
    .btn-accept, .btn-reject { min-width: 100px; font-size: 12px; }
}