/**
 * Frontend Styles for Affiliate Easy WooCommerce
 * 
 * @package AffiliateEasyWooCommerce
 */

.affiliate-easy-message {
    padding: 12px 16px;
    margin: 20px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.affiliate-easy-success {
    background: #ecf7ed;
    border-left-color: #46b450;
    color: #1e4620;
}

.affiliate-easy-error {
    background: #fcf0f1;
    border-left-color: #d63638;
    color: #5a1d1d;
}

.affiliate-easy-info {
    background: #f0f6fc;
    border-left-color: #2271b1;
    color: #1d4370;
}

.affiliate-easy-registration {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.affiliate-easy-registration h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 24px 0;
}

.affiliate-easy-user-info {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
}

.affiliate-easy-form-group {
    margin-bottom: 24px;
}

.affiliate-easy-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1d2327;
    margin-bottom: 8px;
}

.affiliate-easy-form-group input[type="text"],
.affiliate-easy-form-group input[type="email"],
.affiliate-easy-form-group input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.affiliate-easy-form-group input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.affiliate-easy-form-group small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #646970;
}

.affiliate-easy-dashboard {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
}

.affiliate-easy-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    padding: 28px 32px;
    border-bottom: none;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.affiliate-easy-dashboard-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.affiliate-easy-dashboard-header h3 {
    margin: 0;
    font-size: 30px;
    color: #1d2327;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.affiliate-easy-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e5e7eb;
    margin: 32px 0 28px 0;
}

.affiliate-easy-tab {
    background: transparent;
    border: none;
    border-bottom: 4px solid transparent;
    padding: 14px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #646970;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.affiliate-easy-tab:hover {
    color: #2271b1;
    background: #f6f7f9;
    transform: translateY(-2px);
}

.affiliate-easy-tab.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
    background: #f6f7f9;
    font-weight: 700;
}

.affiliate-easy-tab-content {
    display: none;
}

.affiliate-easy-tab-content.active {
    display: block;
}

.affiliate-easy-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 28px 0;
}

.affiliate-easy-stat-box {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 24px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.affiliate-easy-stat-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2271b1, #135e96);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.affiliate-easy-stat-box:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-6px);
    border-color: transparent;
}

.affiliate-easy-stat-box:hover:before {
    opacity: 1;
}

.affiliate-easy-stat-box h4 {
    color: #6b7280;
    font-size: 13px;
    margin: 0 0 14px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.affiliate-easy-stat-value {
    color: #2271b1;
    font-size: 38px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(34, 113, 177, 0.15);
}

.affiliate-easy-link-box {
    margin-bottom: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    padding: 22px 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.affiliate-easy-link-box:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateX(2px);
    border-color: #2271b1;
}

.affiliate-easy-link-box label {
    display: block;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 12px;
    font-size: 15px;
}

.affiliate-easy-link-box input {
    width: calc(100% - 105px);
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-family: monospace;
    font-size: 13px;
    background: #fff;
    color: #2c3338;
    float: left;
    transition: all 0.2s ease;
    font-weight: 500;
}

.affiliate-easy-link-box input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.1);
    background: #fff;
}

.affiliate-easy-copy-btn {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 10px;
    float: right;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.25);
}

.affiliate-easy-copy-btn:hover {
    background: linear-gradient(135deg, #135e96 0%, #0a4d7c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.4);
}

.affiliate-easy-link-featured {
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e1 100%);
    border-left: 5px solid #dba617;
    box-shadow: 0 2px 8px rgba(219, 166, 23, 0.15);
}

.affiliate-easy-link-featured label {
    color: #92400e;
}

.affiliate-easy-link-box::after {
    content: "";
    display: table;
    clear: both;
}

.affiliate-easy-links-section,
.affiliate-easy-commissions-section,
.affiliate-easy-payouts-section {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px;
    margin: 28px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.affiliate-easy-links-section:hover,
.affiliate-easy-commissions-section:hover,
.affiliate-easy-payouts-section:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.affiliate-easy-links-section h4,
.affiliate-easy-commissions-section h4,
.affiliate-easy-payouts-section h4 {
    margin: 0 0 22px 0;
    font-size: 20px;
    color: #1d2327;
    font-weight: 700;
    padding-bottom: 14px;
    border-bottom: 2px solid #e5e7eb;
}

.affiliate-easy-payout-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.affiliate-easy-payout-stat {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #2271b1;
    transition: all 0.2s ease;
}

.affiliate-easy-payout-stat:hover {
    background: #f3f4f6;
    transform: translateX(2px);
}

.affiliate-easy-payout-stat span {
    display: block;
    font-size: 12px;
    color: #646970;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.affiliate-easy-payout-stat strong {
    font-size: 24px;
    color: #1d2327;
    font-weight: 700;
}

.affiliate-easy-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.affiliate-easy-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.affiliate-easy-status-approved {
    background: #d1fae5;
    color: #065f46;
}

.affiliate-easy-status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.affiliate-easy-empty {
    text-align: center;
    padding: 50px 20px;
    color: #9ca3af;
    font-size: 14px;
}

.affiliate-easy-commissions-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.affiliate-easy-commissions-table th {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    padding: 16px 18px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid #e5e7eb;
    color: #1d2327;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.affiliate-easy-commissions-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
    transition: all 0.3s ease;
    font-size: 14px;
}

.affiliate-easy-commissions-table tr:hover td {
    background: #f8f9fa;
    transform: scale(1.01);
}

.affiliate-easy-commissions-table tr:last-child td {
    border-bottom: none;
}

.button,
.affiliate-easy-button {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.25);
}

.button:hover,
.affiliate-easy-button:hover {
    background: linear-gradient(135deg, #135e96 0%, #0a4d7c 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 113, 177, 0.4);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #f9fafb;
    color: #2c3338;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
    background: #fff;
}

.affieasy-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    min-width: 320px;
    max-width: 450px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    padding: 20px 24px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999999;
}

.affieasy-toast-show {
    opacity: 1;
    transform: translateX(0);
}

.affieasy-toast-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin-right: 16px;
    flex-shrink: 0;
}

.affieasy-toast-success .affieasy-toast-icon {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.affieasy-toast-error .affieasy-toast-icon {
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.affieasy-toast-message {
    flex: 1;
    color: #1d2327;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.affieasy-toast-success {
    border-left: 4px solid #10b981;
}

.affieasy-toast-error {
    border-left: 4px solid #ef4444;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.affieasy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.affieasy-modal-overlay.affieasy-modal-show {
    opacity: 1;
}

.affieasy-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 480px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.affieasy-modal-show .affieasy-modal {
    transform: scale(1);
}

.affieasy-modal-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.affieasy-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
}

.affieasy-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #646970;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.affieasy-modal-close:hover {
    background: #f3f4f6;
    color: #1d2327;
}

.affieasy-modal-body {
    padding: 24px;
}

.affieasy-modal-body p {
    margin: 0;
    font-size: 15px;
    color: #2c3338;
    line-height: 1.6;
}

.affieasy-modal-footer {
    padding: 16px 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.affieasy-modal-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.affieasy-modal-btn-cancel {
    background: #f3f4f6;
    color: #2c3338;
}

.affieasy-modal-btn-cancel:hover {
    background: #e5e7eb;
}

.affieasy-modal-btn-confirm {
    background: #2271b1;
    color: #fff;
}

.affieasy-modal-btn-confirm:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.affiliate-easy-payment-settings {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid #e5e7eb;
}

.affiliate-easy-payment-settings h5 {
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 8px 0;
}

.affiliate-easy-payment-description {
    color: #646970;
    font-size: 14px;
    margin: 0 0 24px 0;
}

.affiliate-easy-payment-method-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.affiliate-easy-payment-method-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.affiliate-easy-payment-method-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.affiliate-easy-payment-icon {
    font-size: 24px;
    margin-right: 10px;
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: #f9fafb;
    border-radius: 8px;
}

.affiliate-easy-payment-method-header h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.affiliate-easy-form-group {
    margin-bottom: 16px;
}

.affiliate-easy-form-group:last-child {
    margin-bottom: 0;
}

.affiliate-easy-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 6px;
}

.affiliate-easy-form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #f9fafb;
    color: #2c3338;
    transition: all 0.2s ease;
}

.affiliate-easy-form-group input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
    background: #fff;
}

.affiliate-easy-field-hint {
    display: block;
    font-size: 12px;
    color: #646970;
    margin-top: 6px;
    font-style: italic;
}

.affiliate-easy-form-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.affiliate-easy-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
}

.affiliate-easy-btn-icon {
    font-size: 16px;
}

@media (max-width: 782px) {
    .affiliate-easy-registration {
        margin: 20px 10px;
        padding: 24px;
    }
    
    .affiliate-easy-dashboard {
        padding: 0 16px;
        margin: 20px auto;
    }
    
    .affiliate-easy-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .affiliate-easy-dashboard-header h3 {
        font-size: 24px;
    }
    
    .affiliate-easy-dashboard-header .button {
        margin-top: 14px;
    }
    
    .affiliate-easy-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .affiliate-easy-tab {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .affiliate-easy-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .affiliate-easy-link-box {
        padding: 18px;
    }
    
    .affiliate-easy-link-box input,
    .affiliate-easy-copy-btn {
        width: 100%;
        float: none;
        margin-left: 0;
        margin-top: 10px;
    }
    
    .affiliate-easy-links-section,
    .affiliate-easy-commissions-section,
    .affiliate-easy-payouts-section {
        padding: 20px;
    }
    
    .affiliate-easy-commissions-table {
        font-size: 13px;
    }
    
    .affiliate-easy-commissions-table th,
    .affiliate-easy-commissions-table td {
        padding: 12px 10px;
    }
    
    .affieasy-toast {
        top: 20px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

/* ==========================================================================
   SUCCESS/WELCOME PAGE STYLES
   ========================================================================== */

.affieasy-welcome-box {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    border: none;
    margin-bottom: 30px;
}

.affieasy-welcome-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.affieasy-welcome-title {
    color: white;
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: 700;
}

.affieasy-welcome-text {
    color: rgba(255,255,255,0.95);
    font-size: 18px;
    margin-bottom: 24px;
}

.affieasy-affiliate-id-box {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 16px;
    display: inline-block;
}

.affieasy-affiliate-id-label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
}

.affieasy-affiliate-id-value {
    font-size: 24px;
    font-weight: 700;
    color: white;
    font-family: monospace;
    letter-spacing: 2px;
}

.affieasy-redirect-section {
    text-align: center;
}

.affieasy-redirect-text {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 24px;
}

.affieasy-loader-container {
    margin-bottom: 20px;
}

.affieasy-loader {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.affieasy-redirect-link {
    margin-top: 20px;
}

.affieasy-dashboard-btn {
    padding: 14px 32px;
    font-size: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Dashboard info text */
.affieasy-dashboard-info-text {
    color: #646970;
    margin: 5px 0 0 0;
}

.affieasy-mt-20 {
    margin-top: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hint box */
.affieasy-hint-box {
    margin-top: 15px;
    padding: 12px;
    background: #f0f6fc;
    border-radius: 6px;
    border-left: 4px solid #2271b1;
}

/* Payout section styles */
.affieasy-payout-stats {
    margin-bottom: 30px;
}

.affieasy-payout-request-btn {
    margin-top: 12px;
    width: 100%;
}

.affieasy-payout-min-text {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
}

.affieasy-payout-total-value {
    color: #10b981;
}

.affieasy-payout-history-section {
    margin-bottom: 40px;
}

.affieasy-mb-30 {
    margin-bottom: 30px;
}

.affieasy-mb-40 {
    margin-bottom: 40px;
}

/* Payment settings details */
.affieasy-payment-details {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.affieasy-payment-summary {
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 8px;
}

.affieasy-payment-expand-text {
    font-size: 12px;
    font-weight: normal;
    color: #6b7280;
    margin-left: auto;
}

.affieasy-payment-content {
    margin-top: 20px;
}

/* Legacy dashboard stats (class-functions.php render_dashboard_page) */
.affieasy-legacy-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.affieasy-legacy-stat-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.affieasy-legacy-stat-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.affieasy-legacy-stat-cyan {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.affieasy-legacy-stat-yellow {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.affieasy-legacy-stat-label {
    opacity: 0.9;
    font-size: 14px;
    margin-bottom: 8px;
}

.affieasy-legacy-stat-value {
    font-size: 32px;
    font-weight: 700;
}

.affieasy-legacy-links-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.affieasy-legacy-links-box h2 {
    margin-top: 0;
}

.affieasy-legacy-input-group {
    margin-bottom: 20px;
}

.affieasy-legacy-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.affieasy-legacy-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
}

.affieasy-legacy-input-code {
    font-family: monospace;
    font-size: 16px;
}

.affieasy-legacy-commissions-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.affieasy-legacy-commissions-box h2 {
    margin-top: 0;
}

.affieasy-legacy-short-url-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.affieasy-legacy-short-url-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.affieasy-legacy-short-url-input {
    width: 100%;
    padding: 12px;
    border: 2px solid white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
}

.affieasy-legacy-help-text {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.affieasy-legacy-example-code {
    background: #f5f5f5;
    padding: 5px 10px;
    display: inline-block;
    margin-top: 5px;
}

.affieasy-legacy-status-badge {
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.affieasy-legacy-status-pending {
    background: #f0ad4e;
}

.affieasy-legacy-status-approved {
    background: #5cb85c;
}

.affieasy-legacy-status-cancelled {
    background: #d9534f;
}

.affieasy-legacy-table {
    margin-top: 15px;
}

.affieasy-legacy-empty-commissions {
    color: #666;
    text-align: center;
    padding: 30px 0;
}

/* Debug widget (legacy/unused) */
.affieasy-debug-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    max-width: 320px;
    font-size: 13px;
    line-height: 1.6;
}

.affieasy-debug-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.affieasy-debug-title {
    font-size: 14px;
}

.affieasy-debug-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.affieasy-debug-info-box {
    background: rgba(255,255,255,0.2);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.affieasy-debug-label {
    opacity: 0.9;
    font-size: 11px;
    margin-bottom: 4px;
}

.affieasy-debug-value {
    font-weight: 700;
    font-family: monospace;
    font-size: 14px;
}

.affieasy-debug-list {
    font-size: 12px;
    opacity: 0.95;
}

.affieasy-debug-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.3);
    font-size: 11px;
    opacity: 0.9;
}

