/* Modern Partner Dashboard Styles */

.tab-partner-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: #f8fafc;
    /* min-height: 100vh; */
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; */
}

/* ============ STATUS CARDS ============ */
.partner-status-section {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.status-card {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

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

.status-card.pending::before { background: linear-gradient(90deg, #ffa726, #ff7043); }
.status-card.rejected::before { background: linear-gradient(90deg, #ef5350, #e53935); }

.status-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.status-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.status-card p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
}

.application-date {
    background: #f1f5f9;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #475569;
    margin-top: 20px;
}

/* ============ DASHBOARD HEADER ============ */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.welcome-section {
    flex: 1;
}

.avatar-section {
    display: flex;
    align-items: center;
    gap: 25px;
}

.partner-avatar {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.partner-info h2 {
    margin: 0 0 12px 0;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.partner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
}

.partner-meta span {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-status .status-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid rgba(34, 197, 94, 0.4);
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

/* ============ STATISTICS SECTION ============ */
.dashboard-stats {
    margin-bottom: 40px;
}

.stats-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 5px;
}

.stats-section-title h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin: 0;
    font-weight: 600;
}

.period-select {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 15px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-card.primary::before { background: linear-gradient(90deg, #3b82f6, #1d4ed8); }
.stat-card.success::before { background: linear-gradient(90deg, #10b981, #059669); }
.stat-card.info::before { background: linear-gradient(90deg, #06b6d4, #0891b2); }
.stat-card.warning::before { background: linear-gradient(90deg, #f59e0b, #d97706); }

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stat-icon {
    font-size: 2rem;
    background: #f8fafc;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-trend {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: #dcfce7;
    color: #16a34a;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 5px;
}

.stat-sublabel {
    font-size: 0.85rem;
    color: #64748b;
}

/* ============ MAIN CONTENT LAYOUT ============ */
.dashboard-main-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-bottom: 30px;
}

.dashboard-left-column,
.dashboard-right-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dashboard-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
}

/* ============ UNIVERSAL SECTION STYLES ============ */
.tab-partner-dashboard .section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 25px;
    position: relative;
    flex-wrap: wrap;
    gap: 15px;
}

.tab-partner-dashboard .section-header h3,
.tab-partner-dashboard .section-header h4 {
    font-size: 1.3rem;
    color: #2d3748;
    margin: 0;
    font-weight: 600;
}

/* Universal card styles */
.tab-partner-dashboard .summary-card,
.tab-partner-dashboard .stat-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tab-partner-dashboard .summary-card:hover,
.tab-partner-dashboard .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Universal form styles */
.tab-partner-dashboard .form-section,
.tab-partner-dashboard .metrics-section,
.tab-partner-dashboard .dashboard-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
    margin-bottom: 30px;
}

/* Universal button styles */
.tab-partner-dashboard .btn-primary-sm,
.tab-partner-dashboard .btn-secondary-sm,
.tab-partner-dashboard .btn-apply-filters {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    font-size: 0.9rem;
}

.tab-partner-dashboard .btn-primary-sm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tab-partner-dashboard .btn-primary-sm:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    /* transform: translateY(-2px); */
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.tab-partner-dashboard .btn-secondary-sm {
    background: #f8fafc;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.tab-partner-dashboard .btn-secondary-sm:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

/* Universal input styles */
.tab-partner-dashboard .form-group input,
.tab-partner-dashboard .form-group select,
.tab-partner-dashboard .form-group textarea,
.tab-partner-dashboard .filter-select,
.tab-partner-dashboard .search-input,
.tab-partner-dashboard .sort-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.tab-partner-dashboard .sort-select {
    width: auto;
}

.tab-partner-dashboard .form-group input:focus,
.tab-partner-dashboard .form-group select:focus,
.tab-partner-dashboard .form-group textarea:focus,
.tab-partner-dashboard .filter-select:focus,
.tab-partner-dashboard .search-input:focus,
.tab-partner-dashboard .sort-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.section-help {
    position: relative;
}

.help-icon {
    width: 20px;
    height: 20px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size: 35px; */
    color: #64748b;
    cursor: help;
}

/* ============ QUICK ACTIONS ============ */
.actions-grid {
    display: grid;
    gap: 15px;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
}

.action-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateX(5px);
}

.action-card.primary:hover { border-color: #667eea; background: #eef2ff; }
.action-card.secondary:hover { border-color: #10b981; background: #ecfdf5; }
.action-card.tertiary:hover { border-color: #f59e0b; background: #fffbeb; }

.action-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.action-content {
    flex: 1;
}

.action-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.action-subtitle {
    font-size: 0.9rem;
    color: #64748b;
}

.action-arrow {
    font-size: 1.2rem;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.action-card:hover .action-arrow {
    transform: translateX(5px);
}

/* ============ REFERRAL SECTION ============ */
.referral-link-container {
    margin-bottom: 20px;
}

.referral-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.referral-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background: #f8fafc;
    color: #475569;
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.referral-stats {
    display: flex;
    justify-content: space-around;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.ref-stat {
    text-align: center;
}

.ref-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.ref-label {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============ RECENT ORDERS ============ */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.order-item:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.order-info {
    flex: 1;
}

.order-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
    font-size: 1rem;
}

.order-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #64748b;
}

.order-commission {
    text-align: right;
}

.commission-amount {
    font-weight: 700;
    color: #10b981;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.commission-rate {
    font-size: 0.8rem;
    color: #64748b;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 10px;
    text-align: center;
}

.tab-partner-dashboard .wte-link {
    color: #667eea;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.tab-partner-dashboard .wte-link:hover {
    color: #5a67d8;
}

/* ============ NOTIFICATIONS ============ */
.notifications-count {
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #e2e8f0;
    transition: all 0.3s ease;
}

.notification-item.unread {
    background: #fefce8;
    border-left-color: #eab308;
}

.notification-item:hover {
    background: #f1f5f9;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-icon.success {
    background: #dcfce7;
    color: #16a34a;
}

.notification-icon.info {
    background: #dbeafe;
    color: #2563eb;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.notification-text {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.notification-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
    .dashboard-main-content {
        grid-template-columns: 1fr;
    }
    
    .dashboard-right-column {
        order: -1;
    }
}

@media (max-width: 768px) {
    .tab-partner-dashboard {
        padding: 15px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 30px 20px;
    }
    
    .avatar-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .partner-meta {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-section {
        padding: 20px;
    }
    
    .referral-input-group {
        flex-direction: column;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-commission {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .partner-info h2 {
        font-size: 1.8rem;
    }
    
    .application-header h3 {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}

/* ============ ADDITIONAL ANIMATIONS ============ */
.btn-copy.copied {
    background: #10b981 !important;
    transform: scale(0.95);
}

.stat-value.updating {
    opacity: 0.5;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.order-item:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.action-card:active {
    transform: translateX(0) !important;
}

/* Улучшенные тени для карточек */
.stat-card,
.dashboard-section,
.action-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.stat-card:hover,
.dashboard-section:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ============ APPLICATION SECTION ============ */
.partner-application-section {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.partner-application-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
}

.application-header h3 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.application-header p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

/* Плавные переходы */
/* * {
    transition: all 0.2s ease;
} */

/* ============ BREADCRUMB ============ */

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none !important;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}

.partner-cart.add-remove-event {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    /* gap: 20px; */
    padding: 9px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2d3748;
    text-transform: uppercase;
}

.partner-cart.add-remove-event:hover {
    border-color: #667eea;
    background: #eef2ff;
    transform: translateY(-2px);
}   

.partner-cart.add-remove-event .dashicons {
    color: #ef4444;
}

#partner-cart .total-income {
    font-weight: 700;
}

/* ============ WITHDRAW FUNDS ============ */
.floating-withdraw-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 18px 24px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 280px;
    backdrop-filter: blur(10px);
    animation: slideInFromRight 0.5s ease-out;
}

.floating-withdraw-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.floating-withdraw-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.floating-btn-content {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none !important;
    color: white;
}

.floating-btn-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.floating-btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.btn-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

.floating-btn-arrow {
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.floating-withdraw-btn:hover .floating-btn-arrow {
    transform: translateX(5px);
}

/* Анимация появления */
@keyframes slideInFromRight {
    0% {
        transform: translateX(100%) translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

/* Пульсирующий эффект для привлечения внимания */
.floating-withdraw-btn.pulse {
    animation: pulse-attention 2s infinite;
}

@keyframes pulse-attention {
    0%, 100% {
        box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 10px 25px rgba(16, 185, 129, 0.6), 0 0 0 10px rgba(16, 185, 129, 0.1);
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .floating-withdraw-btn {
        bottom: 20px;
        right: 20px;
        left: 20px;
        min-width: auto;
        max-width: none;
        padding: 16px 20px;
    }
    
    .floating-btn-content {
        gap: 12px;
    }
    
    .floating-btn-icon {
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
    }
    
    .btn-title {
        font-size: 1rem;
    }
    
    .btn-subtitle {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .floating-withdraw-btn {
        bottom: 15px;
        right: 15px;
        left: 15px;
        padding: 14px 18px;
    }
    
    .floating-btn-icon {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
    
    .btn-title {
        font-size: 0.95rem;
    }
    
    .btn-subtitle {
        font-size: 0.75rem;
    }
}

/* Состояние загрузки */
.floating-withdraw-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.floating-withdraw-btn.loading .floating-btn-icon {
    animation: spin 1s linear infinite;
}

/* Успешное состояние */
.floating-withdraw-btn.success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.floating-withdraw-btn.success:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

/* ============ WITHDRAW CART PAGE ============ */

.withdraw-cart-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8fafc;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.page-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
}

/* ============ EMPTY CART STATE ============ */

.empty-cart-state {
    background: white;
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin: 40px 0;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-cart-state h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
}

.empty-cart-state p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 30px;
}

/* ============ CART SUMMARY ============ */

.cart-summary {
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 5px solid #667eea;
}

.summary-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.summary-header h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.cart-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.summary-content .summary-row {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1rem;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row span:first-child {
    color: #64748b;
}

.summary-row strong,
.summary-row .total-amount {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
}

.summary-row.warning {
    background: #fef2f2;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
}

.summary-row.warning span {
    color: #dc2626;
    font-weight: 500;
}

/* ============ CART EVENTS SECTION ============ */

.cart-events-section {
    margin-bottom: 30px;
}

.cart-events-list {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.cart-event-item {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    gap: 20px;
}

.cart-event-item:last-child {
    border-bottom: none;
}

.cart-event-item:hover {
    background: #f8fafc;
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.event-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.event-date,
.event-status {
    font-size: 0.9rem;
    color: #64748b;
}

.event-status {
    background: #dcfce7;
    color: #16a34a;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.event-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #059669;
    min-width: 120px;
    text-align: right;
}

.event-actions {
    display: flex;
    gap: 10px;
}

/* ============ CART ACTIONS ============ */

.cart-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.actions-left,
.actions-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

#proceed-to-withdraw {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 200px;
}

#proceed-to-withdraw .amount {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Disabled state for btn-primary-sm */
.btn-primary-sm:disabled {
    background: #94a3b8 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ============ RESPONSIVE DESIGN ============ */

@media (max-width: 768px) {
    .withdraw-cart-page {
        padding: 15px;
    }
    
    .page-header h2 {
        font-size: 2rem;
    }
    
    .empty-cart-state {
        padding: 60px 30px;
    }
    
    .summary-card {
        padding: 20px;
    }
    
    .summary-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .cart-event-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 20px;
    }
    
    .event-amount {
        text-align: center;
        font-size: 1.4rem;
    }
    
    .cart-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .actions-left,
    .actions-right {
        justify-content: center;
    }
    
    #proceed-to-withdraw {
        width: 100%;
        min-width: auto;
    }
}

/* ============ WITHDRAWAL SINGLE PAGE ============ */

.withdrawal-main-info {
    margin-bottom: 30px;
}

.withdrawal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.info-label {
    font-weight: 500;
    color: #64748b;
    font-size: 0.9rem;
}

.info-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.info-value.amount {
    font-size: 1.2rem;
    color: #059669;
    font-weight: 700;
}

.withdrawal-status {
    display: flex;
    align-items: center;
}

/* ============ COMMENT SECTIONS ============ */

.withdrawal-comment-section,
.admin-comment-section {
    margin-bottom: 30px;
}

.admin-section {
    border-left: 5px solid #667eea;
}

.comment-content {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.admin-comment {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.comment-author {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.comment-date {
    font-size: 0.85rem;
    color: #64748b;
}

.comment-text {
    line-height: 1.6;
    color: #374151;
    font-size: 0.95rem;
}

/* ============ ADMIN RECEIPT SECTION ============ */

.admin-receipt-section {
    margin-bottom: 30px;
}

.receipt-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 25px;
    gap: 20px;
}

.receipt-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.receipt-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.receipt-details {
    flex: 1;
}

.receipt-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.receipt-meta {
    font-size: 0.9rem;
    color: #64748b;
}

.receipt-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ============ WITHDRAWAL EVENTS SECTION ============ */

.withdrawal-events-section {
    margin-bottom: 30px;
}

.withdrawal-events-list {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.withdrawal-event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    gap: 20px;
}

.withdrawal-event-item:last-child {
    border-bottom: none;
}

.withdrawal-event-item:hover {
    background: #f8fafc;
}

.withdrawal-event-item .event-info {
    flex: 1;
}

.withdrawal-event-item .event-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.withdrawal-event-item .event-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
}

.event-date {
    font-weight: 500;
}

.withdrawal-event-item .event-actions {
    display: flex;
    gap: 10px;
}

/* ============ WITHDRAWAL ACTIONS ============ */

.withdrawal-actions {
    margin-top: 40px;
    text-align: center;
}

.actions-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.withdrawal-help,
.withdrawal-success,
.withdrawal-rejected {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 0 auto;
}

.withdrawal-help {
    border-left: 5px solid #fbbf24;
    background: #fffbeb;
}

.withdrawal-success {
    border-left: 5px solid #10b981;
    background: #ecfdf5;
}

.withdrawal-rejected {
    border-left: 5px solid #ef4444;
    background: #fef2f2;
}

.withdrawal-help p,
.withdrawal-success p,
.withdrawal-rejected p {
    margin: 0;
    color: #374151;
    line-height: 1.5;
}

/* ============ STATUS LABELS ============ */

.wte-status-pending {
    background: #fef3c7;
    color: #92400e;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.wte-status-paid {
    background: #dcfce7;
    color: #16a34a;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.wte-status-rejected {
    background: #fee2e2;
    color: #dc2626;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============ RESPONSIVE FOR WITHDRAWAL SINGLE ============ */

@media (max-width: 768px) {
    .withdrawal-info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .receipt-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .receipt-actions {
        justify-content: center;
    }
    
    .withdrawal-event-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .withdrawal-event-item .event-actions {
        justify-content: center;
    }
    
    .actions-container {
        gap: 15px;
    }
}

.income-amount {
    font-weight: 700;
    color: #4caf50;
    font-size: 1.05rem;
}

/* ============ DASHBOARD PAGE STYLES ============ */

.tab-partner-dashboard .recent-orders-table {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tab-partner-dashboard .order-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.tab-partner-dashboard .order-row .order-info {
    flex: 1;
}

.tab-partner-dashboard .order-row .order-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.tab-partner-dashboard .order-row .order-date {
    font-size: 0.9rem;
    color: #666;
}

.tab-partner-dashboard .order-row .order-amount {
    font-weight: 700;
    font-size: 1.1rem;
    color: #4caf50;
    margin-right: 20px;
}

.tab-partner-dashboard .order-row .order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tab-partner-dashboard .order-row .order-status.paid {
    background: #d4edda;
    color: #155724;
}

.tab-partner-dashboard .order-row .order-status.pending {
    background: #fff3cd;
    color: #856404;
}

/* ============ EVENTS METRICS PAGE STYLES ============ */

.tab-partner-dashboard .metrics-filters {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tab-partner-dashboard .filters-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tab-partner-dashboard .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-partner-dashboard .filter-group label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.tab-partner-dashboard .filter-select {
    min-width: 150px;
}

.tab-partner-dashboard .metrics-summary {
    margin-bottom: 30px;
}

.tab-partner-dashboard .summary-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tab-partner-dashboard .summary-title h3 {
    font-size: 1.3rem;
    color: #333;
    margin: 0;
}

.tab-partner-dashboard .summary-period {
    color: #666;
    font-size: 0.9rem;
}

.tab-partner-dashboard .summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tab-partner-dashboard .summary-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.1);
}

.tab-partner-dashboard .summary-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.tab-partner-dashboard .summary-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.tab-partner-dashboard .summary-change {
    font-size: 0.85rem;
    font-weight: 600;
}

.tab-partner-dashboard .summary-change.positive {
    color: #4caf50;
}

.tab-partner-dashboard .summary-change.negative {
    color: #f44336;
}



.tab-partner-dashboard .table-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.tab-partner-dashboard .search-box {
    position: relative;
    flex: 1;
    width: 100%;
}

.tab-partner-dashboard .search-input {
    padding-right: 35px;
}

.tab-partner-dashboard .search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}



.tab-partner-dashboard .events-table-container {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
}

.tab-partner-dashboard .visits-count, 
.tab-partner-dashboard .orders-count {
    font-weight: 600;
    color: #333;
}

.tab-partner-dashboard .conversion-rate {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.tab-partner-dashboard .conversion-rate.excellent {
    background: #d4edda;
    color: #155724;
}

.tab-partner-dashboard .conversion-rate.very-good {
    background: #cce5ff;
    color: #1677FF;
}

.tab-partner-dashboard .conversion-rate.good {
    background: #d9d9d9;
    color: #000;
}

.tab-partner-dashboard .conversion-rate.average {
    background: #fff3cd;
    color: #856404;
}

.tab-partner-dashboard .conversion-rate.low {
    background: #f8d7da;
    color: #721c24;
}

.tab-partner-dashboard .table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.tab-partner-dashboard .pagination-info {
    color: #666;
    font-size: 0.9rem;
}

.tab-partner-dashboard .pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-partner-dashboard .empty-state {
    text-align: center;
    padding: 40px 20px;
}

.tab-partner-dashboard .col-empty {
    grid-column: 1 / -1;
}

.tab-partner-dashboard .empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.6;
}

.tab-partner-dashboard .empty-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.tab-partner-dashboard .empty-subtext {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.tab-partner-dashboard .status-label {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.tab-partner-dashboard .status-label.active {
    background: #dcfce7;
    color: #16a34a;
}

.tab-partner-dashboard .status-label.completed {
    background: #f2f2f2;
    color: #666;
}

.tab-partner-dashboard .ts tr th,
.tab-partner-dashboard .ts tr td {
    padding: 15px 20px !important;
}

.tab-partner-dashboard .ts {
    margin-bottom: 0px !important;
}

.tab-partner-dashboard .loading-indicator {
    text-align: center;
    padding: 40px 20px;
}

.tab-partner-dashboard .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.tab-partner-dashboard .error-message {
    text-align: center;
    padding: 40px 20px;
    color: #f44336;
}

.tab-partner-dashboard .error-message p {
    margin: 0;
    font-size: 16px;
}

/* ============ EDIT PROFILE PAGE STYLES ============ */

.tab-partner-dashboard .form-header {
    text-align: center;
    margin-bottom: 30px;
}

.tab-partner-dashboard .form-header h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.tab-partner-dashboard .form-header p {
    margin: 0;
    color: #666;
}



.tab-partner-dashboard .form-section h4 {
    margin: 0 0 20px 0;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.tab-partner-dashboard .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tab-partner-dashboard .form-group {
    margin-bottom: 20px;
}

.tab-partner-dashboard .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.tab-partner-dashboard .form-group .required {
    color: #dc3545;
}



.tab-partner-dashboard .form-group input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.tab-partner-dashboard .form-group .form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.tab-partner-dashboard .readonly-field {
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-weight: 500;
}

.tab-partner-dashboard .form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.tab-partner-dashboard .form-result {
    margin-bottom: 20px;
}

/* ============ WITHDRAWALS PAGE STYLES ============ */

.tab-partner-dashboard .withdrawals-filters {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
}

.tab-partner-dashboard .withdrawals-summary {
    margin-bottom: 30px;
}

.tab-partner-dashboard .withdrawals-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
    margin-bottom: 30px;
}

/* Withdrawals table styles */
.tab-partner-dashboard .withdrawals-table-container {
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.tab-partner-dashboard .withdrawals-table {
    width: 100%;
    margin-bottom: 0 !important;
    border-collapse: collapse;
    border-spacing: 0;
    background: white;
}

.tab-partner-dashboard .withdrawals-table thead th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    padding: 18px 15px !important;
    border-bottom: 2px solid #e1e5e9;
}

.tab-partner-dashboard .withdrawals-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
}

.tab-partner-dashboard .withdrawals-table tbody tr:hover {
    background: #f8fafc;
}

.tab-partner-dashboard .withdrawals-table tbody tr:last-child {
    border-bottom: none;
}

/* Цветные бордеры по статусу */
.tab-partner-dashboard .withdrawals-table .withdrawal-row {
    border-left: 5px solid #e2e8f0;
}

.tab-partner-dashboard .withdrawals-table .withdrawal-row.status-paid {
    border-left-color: #10b981;
}

.tab-partner-dashboard .withdrawals-table .withdrawal-row.status-pending {
    border-left-color: #f59e0b;
}

.tab-partner-dashboard .withdrawals-table .withdrawal-row.status-rejected {
    border-left-color: #ef4444;
}

.tab-partner-dashboard .withdrawals-table tbody td {
    padding: 20px 15px !important;
    vertical-align: middle;
}

.tab-partner-dashboard .withdrawal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Courier New', monospace;
    margin-bottom: 5px;
}

.tab-partner-dashboard .withdrawal-meta {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

.tab-partner-dashboard .withdrawal-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #059669;
}

.tab-partner-dashboard .withdrawal-date {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.tab-partner-dashboard .withdrawal-time {
    color: #64748b;
}

.tab-partner-dashboard .withdrawal-pending-status,
.tab-partner-dashboard .withdrawal-rejected-status {
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 2px;
}

/* Summary cards specific styles */
.tab-partner-dashboard .summary-card.success .summary-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.tab-partner-dashboard .summary-card.warning .summary-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.tab-partner-dashboard .summary-card.danger .summary-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.tab-partner-dashboard .summary-info {
    flex: 1;
}

/* Pagination styles */
.tab-partner-dashboard .pagination-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tab-partner-dashboard .page-number {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #64748b;
}

.tab-partner-dashboard .page-number:hover {
    background: #f1f5f9;
    color: #475569;
}

.tab-partner-dashboard .page-number.active {
    background: #667eea;
    color: white;
}

/* Help section styles */
.tab-partner-dashboard .withdrawals-help {
    margin-bottom: 30px;
}

.tab-partner-dashboard .help-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.tab-partner-dashboard .help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tab-partner-dashboard .help-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.tab-partner-dashboard .help-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ============ RESPONSIVE UPDATES ============ */

@media (max-width: 768px) {
    .tab-partner-dashboard .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-partner-dashboard .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .tab-partner-dashboard .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-partner-dashboard .search-box {
        max-width: none;
    }
    
    .tab-partner-dashboard .form-row {
        grid-template-columns: 1fr;
    }
    
    .tab-partner-dashboard .form-actions {
        flex-direction: column;
    }
    
    .tab-partner-dashboard .form-actions .btn {
        width: 100%;
    }
    
    /* Withdrawals table responsive */
    .tab-partner-dashboard .withdrawals-table thead th,
    .tab-partner-dashboard .withdrawals-table tbody td {
        padding: 15px 10px !important;
    }
    
    .tab-partner-dashboard .withdrawal-title {
        font-size: 0.9rem;
    }
    
    .tab-partner-dashboard .withdrawal-meta {
        font-size: 0.8rem;
    }
    
    .tab-partner-dashboard .withdrawal-amount {
        font-size: 1.1rem;
    }
    
    .tab-partner-dashboard .help-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-partner-dashboard .pagination-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .tab-partner-dashboard .pagination-numbers {
        order: -1;
    }
}

/* ============ HELP NOTE STYLES ============ */

.tab-partner-dashboard .wte-help-note {
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.tab-partner-dashboard .wte-help-note.warning {
    background: #fef3c7;
    border: 1px solid #fbbf24;
}

.tab-partner-dashboard .wte-help-note.info {
    background: #dbeafe;
    border: 1px solid #3b82f6;
}

.tab-partner-dashboard .wte-help-note.success {
    background: #dcfce7;
    border: 1px solid #10b981;
}

.tab-partner-dashboard .wte-help-note p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tab-partner-dashboard .wte-help-note.warning p {
    color: #92400e;
}

.tab-partner-dashboard .wte-help-note.info p {
    color: #1d4ed8;
}

.tab-partner-dashboard .wte-help-note.success p {
    color: #059669;
}

.tab-partner-dashboard .events-table-container .ts,
.tab-partner-dashboard .ts.withdrawals-table {
    border: 0px !important;
}

.tab-partner-dashboard .events-table-container .ts  th,
.tab-partner-dashboard .ts.withdrawals-table th {
    background: #f8fafc !important;
    font-weight: 600;
    color: #475569;
}

.my-account.tab-partner-dashboard .referral-input {
    padding: 5px 0;
}