/**
 * استایل‌های فرانت‌اند باشگاه مشتریان
 * 
 * @package CustomerClub
 * @since 1.0.0
 */

/* اعلان‌ها - مدرن و شیک */
.customer-club-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 20px 24px;
    border-radius: 16px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-club-notification::before {
    content: '';
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.customer-club-notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.customer-club-notification.success::before {
    content: '✓';
    background: rgba(255, 255, 255, 0.2);
}

.customer-club-notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.customer-club-notification.error::before {
    content: '✕';
    background: rgba(255, 255, 255, 0.2);
}

.customer-club-notification.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.customer-club-notification.info::before {
    content: 'ℹ';
    background: rgba(255, 255, 255, 0.2);
}

.customer-club-notification.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.customer-club-notification.warning::before {
    content: '⚠';
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Loading indicator - مدرن و شیک - فقط برای کیف پول */
#payable-amount .loading,
.wallet-checkout .loading {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    animation: pulse 2s ease-in-out infinite;
}

#payable-amount .loading::before,
.wallet-checkout .loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

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

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.02);
        opacity: 0.8;
    }
}

/* فقط loading های اضافی خودمان را غیرفعال کن، نه WooCommerce */

/* ========================================
   استایل‌های باکس‌های اطلاع‌رسانی تخفیف - ساده و قشنگ
   ======================================== */

/* باکس تخفیف باشگاه مشتریان */
.customer-club-discount-notice {
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-right: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* عنوان باکس تخفیف */
.customer-club-discount-notice > strong {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

/* متن توضیحی تخفیف (خط دوم) */
.customer-club-discount-notice span {
    color: #374151;
    font-weight: 400;
    line-height: 1.6;
}

.customer-club-discount-notice span strong {
    font-weight: 700;
    display: inline;
}

/* بخش قیمت اصلی و توضیحات زیرین */
.customer-club-discount-notice small {
    display: block;
    margin-top: 8px;
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 400;
}

.customer-club-discount-notice small #original-price-display {
    color: #111827;
    font-size: 1.05rem;
    font-weight: 600;
}

/* باکس اطلاع‌رسانی مهمان */
.customer-club-guest-notice {
    background: #fefefe;
    border: 1px solid #e5e7eb;
    border-right: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.customer-club-guest-notice strong {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.customer-club-guest-notice span {
    color: #374151;
    font-weight: 400;
    line-height: 1.5;
}

.customer-club-guest-notice small {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 400;
}

/* باکس اطلاع‌رسانی عضویت */
.customer-club-membership-notice {
    background: #fafdfa;
    border: 1px solid #e5e7eb;
    border-right: 4px solid #10b981;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.customer-club-membership-notice strong {
    color: #1f2937;
    font-size: inherit;
    font-weight: 700;
    display: inline;
    margin: 0;
}

.customer-club-membership-notice span {
    color: #374151;
    font-weight: 400;
    line-height: 1.8;
    display: block;
    margin-top: 8px;
    font-size: 0.95rem;
}

.customer-club-membership-notice span strong {
    color: #059669;
    font-weight: 700;
    display: inline;
}

.customer-club-membership-notice .membership-benefits {
    color: #374151;
    font-weight: 400;
    line-height: 1.8;
    display: block;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.95rem;
}

.customer-club-membership-notice .membership-benefits strong {
    color: #059669;
    font-weight: 700;
    display: inline;
}

.customer-club-membership-notice small {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 400;
}

/* باکس اطلاع‌رسانی سطح بعدی */
.customer-club-next-level-notice {
    background: #fdfcfe;
    border: 1px solid #e5e7eb;
    border-right: 4px solid #8b5cf6;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.customer-club-next-level-notice strong {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.customer-club-next-level-notice span {
    color: #374151;
    font-weight: 400;
    line-height: 1.5;
}

.customer-club-next-level-notice small {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 400;
}

/* باکس اطلاع‌رسانی سبد خرید */
.customer-club-cart-discount-notice {
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-right: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.customer-club-cart-discount-notice strong {
    color: #1f2937;
    font-size: 0.9375rem;
    font-weight: 600;
}

/* باکس اطلاع‌رسانی کش‌بک محصول */
.cashback-notice {
    background: #fefcf3;
    border: 1px solid #facc15;
    border-right: 4px solid #eab308;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 10px 0 0;
    display: block;
}

.cashback-notice p {
    margin: 0;
    color: #854d0e;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
}

.cashback-notice p strong {
    color: #b45309;
    font-weight: 700;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .customer-club-discount-notice,
    .customer-club-guest-notice,
    .customer-club-membership-notice,
    .customer-club-next-level-notice,
    .customer-club-cart-discount-notice,
    .cashback-notice {
        padding: 14px 18px;
        margin: 14px 0;
    }
    
    .customer-club-discount-notice strong,
    .customer-club-guest-notice strong,
    .customer-club-membership-notice strong,
    .customer-club-next-level-notice strong {
        font-size: inherit;
    }
    
    .customer-club-membership-notice span strong {
        font-size: inherit;
    }
}

@media (max-width: 480px) {
    .customer-club-discount-notice,
    .customer-club-guest-notice,
    .customer-club-membership-notice,
    .customer-club-next-level-notice,
    .customer-club-cart-discount-notice {
        padding: 12px 16px;
        margin: 12px 0;
    }
    
    .customer-club-discount-notice strong,
    .customer-club-guest-notice strong,
    .customer-club-membership-notice strong,
    .customer-club-next-level-notice strong {
        font-size: inherit;
    }
    
    .customer-club-membership-notice span strong {
        font-size: inherit;
    }
}

/* ========================================
   استایل‌های اطلاع‌رسانی checkout - مدرن و مینیمال
   ======================================== */

/* باکس اطلاع‌رسانی مهمان در checkout */
.customer-club-checkout-guest-notice {
    background: #fefefe !important;
    border: 1px solid #e5e7eb !important;
    border-right: 4px solid #f59e0b !important;
    border-radius: 8px !important;
    padding: 16px 20px !important;
    margin: 16px 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.customer-club-checkout-guest-notice strong {
    color: #1f2937 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    display: block !important;
    margin-bottom: 8px !important;
}

.customer-club-checkout-guest-notice span {
    color: #374151 !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

.customer-club-checkout-guest-notice small {
    display: block !important;
    margin-top: 8px !important;
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
}

/* باکس اطلاع‌رسانی عضو باشگاه در checkout */
.customer-club-checkout-member-notice {
    background: #fafdfa !important;
    border: 1px solid #e5e7eb !important;
    border-right: 4px solid #10b981 !important;
    border-radius: 8px !important;
    padding: 16px 20px !important;
    margin: 16px 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.customer-club-checkout-member-notice .notice-title {
    color: #1f2937 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    display: block !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
}

.customer-club-checkout-member-notice .notice-content {
    color: #374151 !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    font-size: 0.95rem !important;
    margin-top: 8px !important;
}

.customer-club-checkout-member-notice .notice-content span {
    display: block !important;
}

.customer-club-checkout-member-notice strong {
    color: #059669 !important;
    font-weight: 600 !important;
}

/* باکس اطلاع‌رسانی غیر عضو در checkout */
.customer-club-checkout-non-member-notice {
    background: #fdfcfe !important;
    border: 1px solid #e5e7eb !important;
    border-right: 4px solid #8b5cf6 !important;
    border-radius: 8px !important;
    padding: 16px 20px !important;
    margin: 16px 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.customer-club-checkout-non-member-notice .notice-title {
    color: #1f2937 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    display: block !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
}

.customer-club-checkout-non-member-notice .notice-content {
    color: #374151 !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    font-size: 0.95rem !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

.customer-club-checkout-non-member-notice .notice-content span {
    display: block !important;
}

.customer-club-checkout-non-member-notice .notice-extra {
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid #e5e7eb !important;
}

.customer-club-checkout-non-member-notice .notice-extra span {
    color: #6b7280 !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    display: block !important;
}

.customer-club-checkout-non-member-notice strong {
    color: #8b5cf6 !important;
    font-weight: 600 !important;
}

/* ========================================
   استایل‌های کیف پول در Checkout - مدرن و مینیمال
   ======================================== */

.wallet-checkout,
.customer-club-wallet-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin: 16px 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.wallet-checkout::before,
.customer-club-wallet-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899) !important;
    border-radius: 20px 20px 0 0 !important;
}

.wallet-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.wallet-checkout h3,
.customer-club-wallet-section h3 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 0 0 16px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.wallet-checkout h3::before {
    content: '💳';
    font-size: 1.75rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wallet-checkout p {
    margin: 0 0 20px 0;
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
}

.wallet-checkout p strong {
    color: #1e293b;
    font-weight: 600;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid #c7d2fe;
}

.wallet-checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    padding: 14px 18px !important;
    background: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin: 16px 0 !important;
}

.wallet-checkbox-label:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateX(-2px);
}

.wallet-checkbox-text {
    flex: 1;
    font-size: 1rem;
}

.wallet-checkout input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    position: relative;
}

.wallet-checkout input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-color: #3b82f6;
}

.wallet-checkout input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.wallet-checkout input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#payable-amount {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #86efac;
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
    text-align: center;
    font-size: 1.125rem;
    color: #047857;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
    animation: slideInUp 0.4s ease-out;
}

#payable-amount strong {
    color: #065f46;
    font-size: 1.25rem;
    background: white;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid #86efac;
    display: inline-block;
    margin-top: 8px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .wallet-checkout {
        padding: 24px 20px;
        margin: 20px 0;
    }
    
    .wallet-checkout h3 {
        font-size: 1.25rem;
    }
    
    .wallet-checkbox-label {
        padding: 14px 16px;
        font-size: 0.9375rem;
    }
    
    #payable-amount {
        padding: 16px;
        font-size: 1rem;
    }
    
    #payable-amount strong {
        font-size: 1.125rem;
        padding: 6px 12px;
    }
}


/* ========================================
   استایل‌های تب باشگاه مشتریان - مدرن و مینیمال
   ======================================== */

.customer-club-tab {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* اسکرول صاف */
html {
    scroll-behavior: smooth;
}

#cc-transactions {
    scroll-margin-top: 20px;
}

/* Header */
.cc-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.cc-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.cc-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

/* کارت‌های اطلاعات - جذاب و مینیمال */
.cc-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cc-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.cc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #e5e7eb;
    transition: all 0.3s ease;
}

.cc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #e5e7eb;
}

.cc-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cc-card-primary .cc-card-icon {
    background: #6366f1;
    color: #ffffff;
}

.cc-card-primary::before {
    background: #6366f1;
}

.cc-card-success .cc-card-icon {
    background: #f59e0b;
    color: #ffffff;
}

.cc-card-success::before {
    background: #f59e0b;
}

.cc-card-content {
    flex: 1;
}

.cc-card-label {
    display: block;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cc-card-value {
    display: block;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.cc-card-value small {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #64748b;
}

.cc-card-meta {
    display: block;
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 400;
}

/* جعبه مزایا - جذاب و مینیمال */
.cc-benefits-box {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 28px 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    position: relative;
}

.cc-benefits-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #10b981;
    border-radius: 16px 0 0 16px;
    z-index: 0;
}

.cc-benefits-icon {
    display: none;
}

.cc-benefits-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.cc-benefits-content h4 {
    margin: 0 0 24px 0;
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-benefits-content h4::before {
    content: '⭐';
    font-size: 1.25rem;
}

.cc-current-level-benefits {
    margin-bottom: 20px;
}

.cc-next-level-benefits {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px dashed #cbd5e1;
}

.cc-benefit-intro,
.cc-benefit-next-intro {
    margin: 0 0 14px 0;
    color: #475569;
    font-size: 0.9375rem;
    line-height: 1.6;
    font-weight: 400;
}

.cc-benefit-intro strong,
.cc-benefit-next-intro strong {
    color: #1f2937;
    font-weight: 600;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
}

.cc-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-right: 0;
}

.cc-benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #374151;
    font-size: 0.9375rem;
    line-height: 1.6;
    padding: 13px 16px;
    background: #f0fdf4;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
    transition: all 0.2s ease;
}

.cc-benefit-item:hover {
    background: #dcfce7;
    border-color: #86efac;
    transform: translateX(-2px);
}

.cc-benefits-next .cc-benefit-item {
    background: #fff7ed;
    border-color: #fed7aa;
}

.cc-benefits-next .cc-benefit-item:hover {
    background: #ffedd5;
    border-color: #fdba74;
}

.cc-benefit-item svg {
    color: #10b981;
    flex-shrink: 0;
    background: #d1fae5;
    padding: 6px;
    border-radius: 8px;
    width: 30px;
    height: 30px;
}

.cc-benefits-next .cc-benefit-item svg {
    color: #f97316;
    background: #fed7aa;
}

.cc-benefit-item strong {
    color: #1f2937;
    font-weight: 600;
    background: #d1fae5;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.875rem;
}

.cc-benefits-next .cc-benefit-item strong {
    background: #fed7aa;
}

/* حالت تعریف نشده */
.cc-benefit-item svg[stroke="currentColor"][fill="none"]:has(circle) {
    color: #9ca3af;
}

/* پیام سطح بعدی */
.cc-next-level-alert {
    background: #fffbeb;
    border: 2px solid #fbbf24;
    border-radius: 16px;
    padding: 24px 24px 24px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.1);
    position: relative;
}

.cc-next-level-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #f59e0b;
    border-radius: 16px 0 0 16px;
}

.cc-alert-icon {
    width: 48px;
    height: 48px;
    background: #f59e0b;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    position: relative;
    z-index: 1;
}

.cc-alert-content {
    flex: 1;
}

.cc-alert-content p {
    margin: 0;
    color: #78350f;
    font-size: 0.9375rem;
    line-height: 1.6;
    font-weight: 400;
}

.cc-highlight {
    color: #78350f;
    background: #fde68a;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
}

/* ========================================
   Section ها
   ======================================== */

.cc-section {
    margin-bottom: 36px;
}

.cc-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}

.cc-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 70px;
    height: 2px;
    background: #10b981;
    border-radius: 2px;
}

.cc-section-title svg {
    color: #10b981;
    background: #d1fae5;
    padding: 7px;
    border-radius: 10px;
    width: 34px;
    height: 34px;
}

/* ========================================
   سطح‌های کاربری
   ======================================== */

.cc-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.cc-role-card {
    background: #ffffff;
    border: 2px solid #f1f5f9;
    border-radius: 14px;
    padding: 24px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cc-role-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.cc-role-current {
    background: #ecfdf5;
    border-color: #10b981;
    border-width: 2px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.cc-role-current:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.cc-role-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #10b981;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.cc-role-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 8px 0;
}

.cc-role-current .cc-role-name {
    color: #047857;
}

.cc-role-amount {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.cc-role-current .cc-role-amount {
    color: #047857;
    font-weight: 600;
}

.cc-role-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #dbeafe;
    color: #1e40af;
    padding: 7px 13px;
    border-radius: 18px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid #93c5fd;
}

.cc-role-current .cc-role-feature {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

/* ========================================
   بخش تراکنش‌ها - لیست کارتی
   ======================================== */

.cc-transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cc-transaction-item {
    background: #ffffff;
    border: 2px solid #f1f5f9;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cc-transaction-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateX(-6px);
}

.cc-transaction-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cc-icon-add {
    background: #d1fae5;
    color: #059669;
}

.cc-icon-subtract {
    background: #fee2e2;
    color: #dc2626;
}

.cc-transaction-details {
    flex: 1;
    min-width: 0;
}

.cc-transaction-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.cc-transaction-type {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 14px;
}

.cc-type-add {
    background: #d1fae5;
    color: #047857;
}

.cc-type-subtract {
    background: #fee2e2;
    color: #b91c1c;
}

.cc-transaction-date {
    color: #9ca3af;
    font-size: 0.8125rem;
    font-weight: 400;
}

.cc-transaction-description {
    color: #4b5563;
    font-size: 0.9375rem;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
}

.cc-transaction-amount {
    font-size: 1.125rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 10px;
}

.cc-amount-add {
    color: #059669;
    background: #ecfdf5;
}

.cc-amount-subtract {
    color: #dc2626;
    background: #fef2f2;
}

/* Empty State */
.cc-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 14px;
    border: 2px dashed #e2e8f0;
}

.cc-empty-state svg {
    color: #cbd5e1;
    margin-bottom: 16px;
    opacity: 0.6;
}

.cc-empty-state p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

/* صفحه‌بندی تراکنش‌ها - جذاب */
.cc-transactions-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.cc-pagination-info {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.cc-pagination-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cc-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.cc-page-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #1e293b;
}

.cc-page-btn svg {
    flex-shrink: 0;
}

.cc-page-info {
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 14px;
    background: #ffffff;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

/* ========================================
   ریسپانسیو - موبایل
   ======================================== */

@media (max-width: 768px) {
    .cc-title {
        font-size: 1.5rem;
    }
    
    .cc-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .cc-roles-grid {
        grid-template-columns: 1fr;
    }
    
    .cc-transaction-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cc-transaction-amount {
        align-self: flex-end;
    }
    
    .cc-section-title {
        font-size: 1.125rem;
    }
    
    .cc-benefits-box {
        flex-direction: column;
        text-align: center;
    }
    
    .cc-benefits-icon {
        margin: 0 auto;
    }
    
    .cc-benefits-list {
        align-items: center;
    }
    
    .cc-next-level-alert {
        flex-direction: column;
        text-align: center;
    }
    
    .cc-alert-icon {
        margin: 0 auto;
    }
    
    .cc-next-benefits {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cc-transactions-pagination {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .customer-club-tab {
        padding: 0;
    }
    
    .cc-header {
        margin-bottom: 24px;
    }
    
    .cc-card {
        padding: 16px;
    }
    
    .cc-card-value {
        font-size: 1.25rem;
    }
    
    .cc-transaction-item {
        padding: 12px;
    }
    
    .cc-page-btn {
        font-size: 0.8125rem;
        padding: 6px 12px;
    }
}

/* ===============================================
   Missions Tab Styles - استایل تب ماموریت‌ها
   =============================================== */

.missions-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 20px;
    min-height: 80vh;
}

/* Header */
.missions-header {
    text-align: center;
    margin-bottom: 56px;
    padding-bottom: 32px;
    position: relative;
}

.missions-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 2px;
}

.missions-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 16px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.missions-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* Birthday Modal */
.birthday-modal {
        display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.birthday-modal-content {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.birthday-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid #e5e7eb;
}

.birthday-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.birthday-close {
    background: none;
        border: none;
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    padding: 0;
    width: 32px;
    height: 32px;
}

.birthday-close:hover {
    color: #1e293b;
}

.birthday-modal-body {
    padding: 28px;
}

.birthday-note {
    background: #f0f9ff;
    border-right: 4px solid #3b82f6;
    padding: 16px;
    border-radius: 8px;
    margin: 0 0 24px 0;
    color: #1e40af;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.birthday-form-group {
    margin-bottom: 20px;
}

.birthday-form-group > label {
    display: block;
    font-size: 0.9375rem;
        font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.birthday-date-fields {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 12px;
}

.date-field {
    display: flex;
    flex-direction: column;
}

.date-field label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.birthday-field-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
}

.birthday-field-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.birthday-field-input::placeholder {
    color: #cbd5e1;
}

.birthday-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.birthday-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.birthday-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9375rem;
}

.birthday-message .success {
    color: #059669;
    background: #ecfdf5;
    border-right: 4px solid #10b981;
    padding: 12px;
    margin: 0;
}

.birthday-message .error {
    color: #dc2626;
    background: #fef2f2;
    border-right: 4px solid #ef4444;
    padding: 12px;
    margin: 0;
}

.birthday-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid #e5e7eb;
    justify-content: flex-end;
}

.birthday-btn {
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.birthday-btn-cancel {
    background: #f1f5f9;
    color: #64748b;
}

.birthday-btn-cancel:hover {
    background: #e2e8f0;
}

.birthday-btn-save {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.birthday-btn-save:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.birthday-btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Empty State */
.missions-empty {
    text-align: center;
    padding: 100px 20px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    color: #cbd5e1;
}

.empty-icon svg {
    width: 100%;
    height: 100%;
}

.missions-empty p {
    font-size: 1.25rem;
    color: #94a3b8;
    margin: 0;
}

/* Missions Grid */
.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

/* Mission Card Base */
.mission-card {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 32px 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mission-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.25);
}

.mission-card:hover::before {
    opacity: 1;
}

/* Mission Status Badge */
.mission-status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    color: white;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.check-icon svg {
    width: 28px;
    height: 28px;
}

/* Mission Shine Effect */
.mission-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Mission Icon Wrapper */
.mission-icon-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.mission-icon {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    color: white;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.mission-card:hover .mission-icon {
    transform: scale(1.1) rotate(5deg);
}

.mission-icon svg {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(20px);
    z-index: 1;
    transition: all 0.4s ease;
}

.mission-card:hover .icon-glow {
    width: 140px;
    height: 140px;
    opacity: 0.5;
}

/* Mission Content */
.mission-content {
    margin-bottom: 24px;
    flex-grow: 1;
}

.mission-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.mission-description {
    font-size: 1rem;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

/* Mission Extra Info */
.mission-extra-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.mission-date {
    font-size: 0.9375rem;
    color: #475569;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.mission-years {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.mission-warning {
    font-size: 0.9375rem;
    color: #f59e0b;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.mission-action-btn {
    background: #fef2f2;
    color: #dc2626;
    border: 2px solid #fca5a5;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mission-action-btn:hover {
    background: #fee2e2;
    border-color: #f87171;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

/* استایل‌های آمار نظرات */
.review-stats {
    margin-top: 12px;
}

.review-stat-item {
    font-size: 0.9375rem;
    color: #475569;
    margin: 0 0 16px 0;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.review-stat-item strong {
    color: #1e293b;
    font-weight: 600;
}

.review-limits {
    background: #fffbeb;
    border: 1px solid #fde047;
    border-radius: 8px;
    padding: 12px;
}

.review-limit-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #854d0e;
    margin: 0 0 8px 0;
}

.review-limit-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.review-limit-list li {
    font-size: 0.8125rem;
    color: #92400e;
    margin: 6px 0;
    padding-right: 16px;
    position: relative;
}

.review-limit-list li:before {
    content: "•";
    position: absolute;
    right: 0;
    color: #f59e0b;
    font-weight: bold;
}

.review-limit-list strong {
    color: #78350f;
}

.review-timing {
    font-size: 0.8125rem;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 8px 10px;
    margin: 0;
}

.review-timing strong {
    color: #1e3a8a;
    font-weight: 600;
}

/* Mission Reward */
.mission-reward {
    width: 100%;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
}

.reward-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reward-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.reward-amount {
    font-size: 1.375rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.reward-currency {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
}

/* Mission Status Text */
.mission-status-text {
    font-size: 0.9375rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Completed Mission */
.mission-completed {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #86efac;
}

.mission-completed .mission-status-text {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Pending Mission */
.mission-pending .mission-status-text {
    background: #f1f5f9;
    color: #64748b;
}

/* هر ماموریت رنگ خودش */
.mission-signup .mission-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.mission-signup .icon-glow {
    background: #3b82f6;
}

.mission-first_purchase .mission-icon {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}
.mission-first_purchase .icon-glow {
    background: #8b5cf6;
}

.mission-big_purchase .mission-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
.mission-big_purchase .icon-glow {
    background: #f59e0b;
}

.mission-monthly_purchase .mission-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}
.mission-monthly_purchase .icon-glow {
    background: #06b6d4;
}

.mission-product_review .mission-icon {
    background: linear-gradient(135deg, #eab308, #ca8a04);
}
.mission-product_review .icon-glow {
    background: #eab308;
}

.mission-birthday .mission-icon {
    background: linear-gradient(135deg, #ec4899, #be185d);
}
.mission-birthday .icon-glow {
    background: #ec4899;
}

.mission-anniversary .mission-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}
.mission-anniversary .icon-glow {
    background: #10b981;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .missions-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .missions-container {
        padding: 24px 16px;
    }
    
    .missions-header {
        margin-bottom: 40px;
        padding-bottom: 24px;
    }
    
    .missions-title {
        font-size: 2rem;
    }
    
    .missions-subtitle {
        font-size: 1rem;
    }
    
    .birthday-modal-content {
        width: 95%;
    }
    
    .birthday-modal-header,
    .birthday-modal-footer {
        padding: 20px;
    }
    
    .birthday-modal-body {
        padding: 20px;
    }
    
    .birthday-date-fields {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .missions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mission-card {
        padding: 28px 24px;
    }
    
    .mission-icon {
        width: 80px;
        height: 80px;
    }
    
    .mission-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .mission-title {
        font-size: 1.25rem;
    }
    
    .mission-description {
        font-size: 0.9375rem;
    }
    
    .reward-amount {
        font-size: 1.25rem;
    }
    
    .reward-currency {
        font-size: 0.8125rem;
    }
    
    .check-icon {
        width: 40px;
        height: 40px;
    }
    
    .check-icon svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .missions-title {
        font-size: 1.75rem;
    }
    
    .missions-empty {
        padding: 60px 20px;
    }
    
    .empty-icon {
        width: 80px;
        height: 80px;
    }
    
    .missions-empty p {
        font-size: 1rem;
    }
}

/* ==========================================
   استایل‌های تب ارجاع دوستان
   ========================================== */

.referral-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Header */
.referral-header {
    margin-bottom: 32px;
}

.referral-title-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.referral-header-icon {
    color: #3b82f6;
}

.referral-title {
    font-size: 28px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.referral-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* باکس لینک اختصاصی */
.referral-link-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.referral-link-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.referral-link-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #1e293b;
}

.referral-link-header svg {
    color: #3b82f6;
}

.referral-link-description {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    color: #475569;
}

.referral-link-description strong {
    color: #059669;
    font-weight: 700;
}

.referral-link-input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.referral-link-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    color: #1e293b;
    direction: ltr;
    text-align: left;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.referral-link-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
}

.referral-copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.referral-copy-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.referral-copy-btn.copied {
    background: #10b981;
    color: white;
}

.copy-success-message {
    font-size: 13px;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: fadeInOut 2.3s ease;
    font-weight: 500;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

/* آمار */
.referral-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.referral-stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.referral-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-users {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0284c7;
}

.stat-icon-cart {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    color: #f59e0b;
}

.stat-icon-money {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #16a34a;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.stat-currency {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

/* لیست ارجاعات */
.referral-list-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    margin-top: 32px;
}

.referral-list-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 24px 0;
}

.referral-list-title svg {
    color: #3b82f6;
}

.referral-table-wrapper {
    overflow-x: auto;
    margin: 0 -32px;
    padding: 0 32px;
}

.referral-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.referral-table thead th {
    padding: 14px 16px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.referral-table thead th:first-child {
    border-top-right-radius: 12px;
}

.referral-table thead th:last-child {
    border-top-left-radius: 12px;
}

.referral-table tbody tr {
    transition: background 0.2s ease;
}

.referral-table tbody tr:hover {
    background: #f9fafb;
}

.referral-table tbody td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
}

.referral-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.referral-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.referral-user-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.referral-user-email {
    font-size: 12px;
    color: #6b7280;
}

.referral-date {
    font-family: 'Courier New', monospace;
    color: #6b7280;
    font-size: 13px;
}

.referral-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.referral-status-purchased {
    background: #d1fae5;
    color: #065f46;
}

.referral-status-purchased svg {
    color: #10b981;
}

.referral-status-registered {
    background: #e0e7ff;
    color: #3730a3;
}

.referral-amount {
    font-weight: 600;
    color: #059669;
}

.referral-no-amount,
.referral-no-date {
    color: #9ca3af;
}

/* Pagination */
.referral-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.referral-pagination-info {
    font-size: 14px;
    color: #6b7280;
}

.referral-pagination-buttons {
    display: flex;
    gap: 8px;
}

.referral-page-btn {
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: white;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.referral-page-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.referral-page-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    font-weight: 600;
}

/* حالت خالی */
.referral-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.referral-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.referral-empty-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.referral-empty-text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .referral-link-input-wrapper {
        flex-direction: column;
    }
    
    .referral-copy-btn {
        width: 100%;
        justify-content: center;
    }
    
    .referral-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .referral-pagination {
        flex-direction: column;
        gap: 16px;
    }
    
    .referral-table-wrapper {
        margin: 0 -16px;
        padding: 0 16px;
    }
    
    .referral-list-section {
        padding: 20px 16px;
    }
    
    .referral-link-box {
        padding: 24px 20px;
} 
}

