/**
 * Custom User Dashboard - Frontend Styles
 * Modern, responsive WooCommerce-style design
 */

/* ===== DASHBOARD CONTAINER ===== */
.cud-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ===== DASHBOARD HEADER ===== */
.cud-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.cud-dashboard-header h2 {
    margin: 0;
    color: #333;
    font-size: 2.2em;
    font-weight: 600;
}

.cud-selection-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cud-selected-count {
    background: #0073aa;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.cud-view-selections {
    background: #00a32a !important;
    border-color: #00a32a !important;
    color: white !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cud-view-selections:hover {
    background: #008a20 !important;
    transform: translateY(-1px);
}

/* ===== FILTERS AND SEARCH ===== */
.cud-dashboard-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.cud-search-container {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 250px;
}

.cud-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.cud-search-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.cud-category-filter select {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    min-width: 180px;
}

.cud-view-toggle {
    display: flex;
    gap: 5px;
    background: white;
    border-radius: 6px;
    padding: 4px;
    border: 2px solid #ddd;
}

.cud-view-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.cud-view-btn.active,
.cud-view-btn:hover {
    background: #0073aa;
    color: white;
}

/* ===== PRODUCTS CONTAINER ===== */
.cud-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.cud-products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

/* ===== PRODUCT ITEMS ===== */
.cud-product-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cud-product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #0073aa;
}

.cud-product-item.selected {
    border-color: #00a32a;
    box-shadow: 0 4px 15px rgba(0, 163, 42, 0.2);
}

.cud-product-item.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00a32a, #00d084);
    z-index: 1;
}

/* ===== PRODUCT IMAGE ===== */
.cud-product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f8f9fa;
}

.cud-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cud-product-item:hover .cud-product-image img {
    transform: scale(1.05);
}

.cud-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cud-product-item:hover .cud-product-overlay {
    opacity: 1;
}

.cud-select-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.cud-select-btn:hover {
    background: #005a87;
    transform: scale(1.05);
}

.cud-select-btn.selected {
    background: #00a32a;
}

.cud-select-btn.selected:hover {
    background: #008a20;
}

.cud-select-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ===== PRODUCT INFO ===== */
.cud-product-info {
    padding: 20px;
}

.cud-product-title {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.4;
}

.cud-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cud-product-title a:hover {
    color: #0073aa;
}

.cud-product-price {
    font-size: 1.2em;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 10px;
}

.cud-product-price del {
    color: #999;
    font-weight: 400;
    margin-right: 8px;
}

.cud-product-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.cud-product-meta {
    margin-bottom: 15px;
}

.cud-product-categories {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.cud-product-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cud-product-actions .button {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cud-add-to-cart {
    background: #ff6b35 !important;
    border-color: #ff6b35 !important;
    color: white !important;
}

.cud-add-to-cart:hover {
    background: #e55a2b !important;
    transform: translateY(-1px);
}

/* ===== LIST VIEW STYLES ===== */
.cud-products-list .cud-product-item {
    display: flex;
    align-items: center;
    padding: 20px;
}

.cud-products-list .cud-product-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    margin-right: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.cud-products-list .cud-product-info {
    flex: 1;
    padding: 0;
}

.cud-products-list .cud-product-actions {
    margin-left: 20px;
    flex-direction: column;
    min-width: 150px;
}

/* ===== LOADING STATES ===== */
.cud-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.cud-loading .spinner {
    width: 20px;
    height: 20px;
}

/* ===== LOAD MORE ===== */
.cud-load-more-container {
    text-align: center;
    margin: 40px 0;
}

#cud-load-more {
    background: #0073aa;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#cud-load-more:hover {
    background: #005a87;
    transform: translateY(-2px);
}

/* ===== NO PRODUCTS STATE ===== */
.cud-no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.cud-no-products p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* ===== LANDING PAGE STYLES ===== */
.cud-landing-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cud-landing-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border-radius: 12px;
}

.cud-page-title {
    margin: 0 0 20px 0;
    font-size: 2.5em;
    font-weight: 700;
}

.cud-user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.cud-user-avatar img {
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.cud-user-details h3 {
    margin: 0 0 5px 0;
    font-size: 1.3em;
}

.cud-user-details p {
    margin: 5px 0;
    opacity: 0.9;
}

/* ===== LANDING PAGE CONTROLS ===== */
.cud-landing-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.cud-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cud-filter-select,
.cud-sort-select {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    min-width: 150px;
}

/* ===== BULK ACTIONS ===== */
.cud-bulk-actions {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.cud-bulk-actions .button {
    margin: 0 10px 10px 0;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* ===== EMPTY SELECTIONS ===== */
.cud-empty-selections {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.cud-empty-icon {
    font-size: 4em;
    color: #ddd;
    margin-bottom: 20px;
}

.cud-empty-selections h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #333;
}

.cud-empty-selections p {
    font-size: 16px;
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== WIDGET STYLES ===== */
.cud-selected-products-widget {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.cud-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.cud-widget-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3em;
}

.cud-view-all-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.cud-view-all-link:hover {
    text-decoration: underline;
}

.cud-no-selections {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* ===== STATS WIDGET ===== */
.cud-user-stats-widget {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.cud-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.cud-stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.cud-stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
}

.cud-stat-max {
    font-size: 0.7em;
    color: #666;
}

.cud-stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.cud-progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0 10px 0;
}

.cud-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #00a32a);
    transition: width 0.3s ease;
}

.cud-progress-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .cud-dashboard-container,
    .cud-landing-page-container {
        padding: 15px;
    }
    
    .cud-dashboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .cud-dashboard-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cud-search-container {
        min-width: auto;
    }
    
    .cud-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .cud-products-list .cud-product-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cud-products-list .cud-product-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cud-products-list .cud-product-actions {
        margin-left: 0;
        margin-top: 15px;
        flex-direction: row;
        min-width: auto;
    }
    
    .cud-user-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .cud-landing-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cud-filters {
        justify-content: center;
    }
    
    .cud-page-title {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .cud-products-grid {
        grid-template-columns: 1fr;
    }
    
    .cud-product-actions {
        flex-direction: column;
    }
    
    .cud-product-actions .button {
        min-width: auto;
    }
    
    .cud-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cud-bulk-actions .button {
        display: block;
        width: 100%;
        margin: 0 0 10px 0;
    }
}

/* ===== ACCESSIBILITY ===== */
.cud-select-btn:focus,
.cud-search-input:focus,
.cud-category-filter select:focus,
.cud-view-btn:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.cud-product-item:focus-within {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cud-product-item {
    animation: fadeIn 0.3s ease-out;
}

/* ===== SALE BADGE ===== */
.cud-sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b35;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

/* ===== COLUMNS UTILITY ===== */
.cud-columns-1 { grid-template-columns: repeat(1, 1fr); }
.cud-columns-2 { grid-template-columns: repeat(2, 1fr); }
.cud-columns-3 { grid-template-columns: repeat(3, 1fr); }
.cud-columns-4 { grid-template-columns: repeat(4, 1fr); }
.cud-columns-5 { grid-template-columns: repeat(5, 1fr); }
.cud-columns-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 768px) {
    .cud-columns-3,
    .cud-columns-4,
    .cud-columns-5,
    .cud-columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cud-columns-2,
    .cud-columns-3,
    .cud-columns-4,
    .cud-columns-5,
    .cud-columns-6 {
        grid-template-columns: 1fr;
    }
}

/* ===== INFLUENCER DASHBOARD ===== */
.cud-influencer-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.cud-dashboard-subtitle {
    color: #666;
    font-size: 1.1em;
    margin: 10px 0 0 0;
}

/* Stats Overview */
.cud-stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cud-stat-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cud-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.cud-stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 5px;
    display: block;
}

.cud-stat-label {
    color: #666;
    font-size: 0.9em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Tabs */
.cud-dashboard-tabs {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cud-tab-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.cud-tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cud-tab-btn:hover {
    background: #e9ecef;
    color: #333;
}

.cud-tab-btn.active {
    background: white;
    color: #0073aa;
    border-bottom: 3px solid #0073aa;
}

.cud-tab-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.cud-tab-content {
    display: none;
    padding: 30px;
}

.cud-tab-content.active {
    display: block;
}

.cud-tab-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.cud-tab-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.5em;
}

.cud-tab-header p {
    margin: 0;
    color: #666;
    font-size: 1em;
}

/* Products Grid for Influencers */
.cud-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.cud-product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.cud-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cud-product-card.selected {
    border-color: #00a32a;
    box-shadow: 0 0 0 2px rgba(0, 163, 42, 0.2);
}

.cud-product-card .cud-product-image {
    position: relative;
    overflow: hidden;
}

.cud-product-card .cud-product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cud-product-card:hover .cud-product-image img {
    transform: scale(1.05);
}

.cud-selected-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #00a32a;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.cud-product-info {
    padding: 20px;
}

.cud-product-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #333;
    line-height: 1.4;
}

.cud-product-price {
    font-size: 1.2em;
    font-weight: 600;
    color: #0073aa;
    margin-bottom: 15px;
}

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

.cud-product-actions .button {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    font-size: 13px;
}

/* Orders Table */
.cud-orders-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.cud-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cud-orders-table th,
.cud-orders-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.cud-orders-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cud-orders-table tbody tr:hover {
    background: #f8f9fa;
}

.cud-commission-amount {
    color: #00a32a;
    font-weight: 600;
}

.cud-commission-amount small {
    color: #666;
    font-weight: normal;
}

.cud-order-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.cud-status-pending {
    background: #fff3cd;
    color: #856404;
}

.cud-status-confirmed {
    background: #d4edda;
    color: #155724;
}

.cud-status-paid {
    background: #d1ecf1;
    color: #0c5460;
}

/* Landing Page Info */
.cud-landing-page-info {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
}

.cud-url-display {
    margin-bottom: 20px;
}

.cud-url-display label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.cud-url-container {
    display: flex;
    gap: 10px;
}

.cud-url-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    background: white;
}

.cud-landing-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.cud-sharing-stats h4 {
    margin: 0 0 15px 0;
    color: #333;
}

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

.cud-stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.cud-stat-value {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 5px;
}

.cud-stat-label {
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Messages */
.cud-messages {
    margin-bottom: 20px;
}

.cud-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 500;
}

.cud-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cud-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal Styles */
.cud-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.cud-modal-content {
    background-color: white;
    margin: 10% auto;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.cud-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.cud-modal-header h3 {
    margin: 0;
    color: #333;
}

.cud-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cud-modal-close:hover {
    color: #333;
}

.cud-modal-body {
    padding: 20px;
}

.cud-share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.cud-share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.cud-share-option:hover {
    background: #f8f9fa;
    border-color: #0073aa;
    color: #0073aa;
    text-decoration: none;
}

.cud-share-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Empty States */
.cud-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.cud-empty-state p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

/* Loading States */
.cud-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.cud-loading .spinner {
    margin-right: 10px;
}

/* Influencer Dashboard Responsive */
@media (max-width: 768px) {
    .cud-influencer-dashboard-container {
        padding: 15px;
    }
    
    .cud-stats-overview {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .cud-tab-nav {
        flex-direction: column;
    }
    
    .cud-tab-btn {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .cud-tab-content {
        padding: 20px;
    }
    
    .cud-url-container {
        flex-direction: column;
    }
    
    .cud-landing-actions {
        flex-direction: column;
    }
    
    .cud-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cud-orders-table {
        font-size: 14px;
    }
    
    .cud-orders-table th,
    .cud-orders-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .cud-stats-overview {
        grid-template-columns: 1fr;
    }
    
    .cud-stat-number {
        font-size: 2em;
    }
    
    .cud-share-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cud-modal-content {
        margin: 5% auto;
        width: 95%;
    }
}
