/*
 * Frontend Styles for Hostinger Affiliate System
 * Author: Mohamed
 * Version: 1.0.1
 */

/* General Reset */
.has-affiliate-dashboard *,
.has-application-form *,
.has-status-message * {
    box-sizing: border-box;
}

/* WooCommerce My Account Compatibility */
.woocommerce-MyAccount-content .has-affiliate-dashboard,
.woocommerce-MyAccount-content .has-application-form,
.woocommerce-MyAccount-content .has-status-message {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.has-affiliate-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.has-application-form,
.has-status-message {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Dashboard Header */
.has-dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    margin-bottom: 30px;
    color: white;
}

.has-dashboard-header h2 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 32px;
    font-weight: 700;
}

.has-dashboard-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

/* Statistics Grid */
.has-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.has-stat-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

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

.has-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.has-stat-icon {
    font-size: 48px;
    opacity: 0.9;
}

.has-stat-content h3 {
    margin: 0;
    font-size: 28px;
    color: #2c3e50;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.has-stat-content p {
    margin: 5px 0 0 0;
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
}

/* Monthly Info */
.has-monthly-info {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.has-monthly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.has-monthly-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.has-commission-note {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 5px;
    color: #1976d2;
    border-right: 4px solid #1976d2;
}

/* Affiliate Link */
.has-affiliate-link-section {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.has-link-box {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.has-link-box input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: monospace;
}

.has-copy-btn {
    padding: 12px 30px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.has-copy-btn:hover {
    background: #45a049;
}

/* Tabs */
.has-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    background: #f8fafc;
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.has-tab-btn {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: center;
}

.has-tab-btn::after {
    display: none;
}

.has-tab-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
    transform: translateY(-2px);
}

.has-tab-btn.active {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.has-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

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

/* Forms */
/* Table Wrapper for Horizontal Scroll */
.has-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -20px;
    padding: 0 20px;
}

.has-table-wrapper .has-table {
    min-width: 800px;
}

.has-form-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.has-form-card h3 {
    margin: 0 0 25px 0;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 600;
}

.has-form-group {
    margin-bottom: 25px;
}

.has-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.has-form-group input,
.has-form-group select,
.has-form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

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

.has-submit-btn {
    padding: 14px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.has-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.has-submit-btn:active {
    transform: translateY(0);
}

.has-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Calculation Box */
.has-net-amount-display {
    margin: 20px 0;
}

.has-calculation-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #4caf50;
}

.has-calc-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
}

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

.has-net-row {
    background: rgba(255, 255, 255, 0.5);
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    border-bottom: none !important;
}

.has-commission-row {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
}

.has-commission-row span,
.has-commission-row strong {
    color: white;
}

.has-calc-row span {
    color: #2e7d32;
    font-weight: 500;
}

.has-calc-row strong {
    color: #1b5e20;
    font-size: 18px;
}

.has-form-group .description {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* File Upload Styling */
.has-file-upload-wrapper {
    position: relative;
}

.has-file-upload-wrapper input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed #667eea;
    border-radius: 10px;
    background: #f8f9ff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.has-file-upload-wrapper input[type="file"]:hover {
    border-color: #764ba2;
    background: #f0f2ff;
}

.has-file-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.has-file-preview img {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Net Amount Calculation Display */
.has-net-amount-display {
    margin: 20px 0;
    animation: slideDown 0.3s ease;
}

.has-calculation-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #4caf50;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.has-calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
    color: #2e7d32;
}

.has-calc-row:not(:last-child) {
    border-bottom: 1px solid rgba(46, 125, 50, 0.2);
}

.has-calc-row span {
    font-weight: 500;
}

.has-calc-row strong {
    font-size: 18px;
    color: #1b5e20;
}

.has-net-row {
    background: rgba(255, 255, 255, 0.5);
    padding: 12px 15px;
    margin: 10px -20px;
    border-radius: 8px;
}

.has-net-row strong {
    font-size: 20px;
    color: #1b5e20;
    font-weight: 700;
}

.has-commission-row {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 15px;
    margin: 15px -20px -20px;
    border-radius: 0 0 10px 10px;
    border-top: 2px solid #ff9800;
}

.has-commission-row strong {
    font-size: 24px;
    color: #e65100;
    font-weight: 700;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tables */
.has-table-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.has-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.has-table th,
.has-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
}

.has-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

/* Status Badges */
.has-status-pending {
    background: #fff3cd;
    color: #856404;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.has-status-reviewed {
    background: #e3f2fd;
    color: #1565c0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.has-status-confirmed {
    background: #d1f2eb;
    color: #0d7f60;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.has-status-under_review {
    background: #cfe2ff;
    color: #084298;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.has-status-ready_approval {
    background: #ffe5b4;
    color: #cc5200;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.has-status-approved {
    background: #d4edda;
    color: #155724;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.has-status-paid {
    background: #c3e6cb;
    color: #0f5132;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.has-status-rejected {
    background: #f8d7da;
    color: #721c24;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.has-status-cancelled {
    background: #f8d7da;
    color: #d63638;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* Application Form */
.has-application-form {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
}

.has-application-form h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    color: #2c3e50;
    font-weight: 700;
}

.has-application-form > p {
    color: #7f8c8d;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.has-commission-info {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    border: 2px solid #4caf50;
}

.has-commission-info h3 {
    margin: 0 0 15px 0;
    color: #2e7d32;
    font-size: 20px;
    font-weight: 600;
}

.has-commission-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.has-commission-info li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
    color: #2e7d32;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.has-commission-info li:last-child {
    border-bottom: none;
}

.has-commission-info li::before {
    content: '✓';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    margin-left: 12px;
    font-weight: bold;
}

.has-note {
    font-size: 14px;
    color: #2e7d32;
    font-style: italic;
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

/* Status Messages */
.has-status-message {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.has-message-card {
    background: #fff;
    padding: 60px 40px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    max-width: 600px;
    margin: 0 auto;
}

.has-message-card .has-icon {
    font-size: 72px;
    margin-bottom: 20px;
}

/* Referral Link Box - Premium Design */
.has-referral-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.has-referral-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.has-referral-box::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.has-referral-content {
    position: relative;
    z-index: 1;
}

.has-referral-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: white;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
}

.has-referral-badge .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.has-referral-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.has-referral-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.has-referral-link-container {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.has-referral-input-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.has-referral-link-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.has-referral-link-input:focus {
    outline: none;
    border-color: white;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.has-copy-link-btn {
    padding: 16px 32px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.has-copy-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #f8f9ff;
}

.has-copy-link-btn:active {
    transform: translateY(0);
}

.has-copy-link-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.has-referral-footer {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin: 0;
    line-height: 1.6;
}

.has-referral-footer strong {
    color: white;
    font-weight: 600;
}

/* Copy Success Animation */
.has-copy-success {
    background: #4caf50 !important;
    color: white !important;
}

.has-copy-success .dashicons-admin-page::before {
    content: "\f147";
}

/* RTL Support */
[dir="rtl"] .has-referral-badge {
    flex-direction: row-reverse;
}

[dir="rtl"] .has-referral-link-input {
    padding: 16px 20px 16px 50px;
}

[dir="rtl"] .has-edit-link-btn {
    left: auto;
    right: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .has-referral-box {
        padding: 30px 20px;
    }
    
    .has-referral-title {
        font-size: 22px;
    }
    
    .has-referral-subtitle {
        font-size: 14px;
    }
    
    .has-referral-link-container {
        flex-direction: column;
    }
    
    .has-referral-input-wrapper {
        width: 100%;
    }
    
    .has-copy-link-btn {
        width: 100%;
        justify-content: center;
    }
}

/* RTL Support */
[dir="rtl"] .has-table th,
[dir="rtl"] .has-table td {
    text-align: right;
}

/* Comprehensive Responsive Design */
@media (max-width: 768px) {
    /* Dashboard Layout */
    .has-affiliate-dashboard {
        padding: 10px;
    }
    
    /* Stats Grid */
    .has-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .has-stat-card {
        padding: 20px;
    }
    
    /* Affiliate Dashboard Stats - Stack on Mobile */
    .has-affiliate-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .has-affiliate-stats-grid > div {
        padding: 20px !important;
    }
    
    .has-affiliate-stats-grid > div > div > div:first-child {
        font-size: 24px !important;
    }
    
    .has-affiliate-stats-grid > div > div > div:nth-child(2) {
        font-size: 12px !important;
    }
    
    /* Dashboard Header */
    .has-dashboard-header {
        padding: 20px !important;
        margin-bottom: 20px;
    }
    
    .has-dashboard-header h2 {
        font-size: 24px !important;
    }
    
    .has-dashboard-header p {
        font-size: 14px !important;
    }
    
    /* Header with Source */
    .has-dashboard-header > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .has-dashboard-header > div:first-child > div {
        width: 100%;
        margin-top: 15px;
    }
    
    /* Monthly Info */
    .has-monthly-info {
        padding: 20px;
    }
    
    .has-monthly-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    
    /* Tabs */
    .has-tabs {
        flex-direction: row !important;
        gap: 6px !important;
        padding: 6px !important;
    }
    
    .has-tab-btn {
        padding: 12px 16px !important;
        font-size: 14px !important;
        flex: 1;
    }
    
    /* Tables */
    .has-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .has-table {
        min-width: 600px;
        font-size: 13px;
    }
    
    .has-table th,
    .has-table td {
        padding: 10px 8px;
    }
    
    /* Link Box */
    .has-link-box {
        flex-direction: column !important;
        gap: 10px;
    }
    
    .has-link-box input {
        width: 100%;
    }
    
    /* Withdrawal Form */
    .has-withdrawal-form {
        padding: 20px;
    }
    
    .has-withdrawal-amount {
        font-size: 28px !important;
    }
    
    /* Application Form */
    .has-form-card {
        padding: 20px;
    }
    
    .has-form-card h2 {
        font-size: 24px;
    }
    
    /* Commission Info */
    .has-commission-info {
        padding: 15px;
        font-size: 14px;
    }
    
    /* Notifications */
    .has-notification {
        padding: 15px;
    }
    
    /* Buttons */
    .has-btn,
    .has-btn-primary,
    .has-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    /* Status Messages */
    .has-status-message {
        padding: 15px;
    }
    
    .has-status-icon {
        font-size: 48px;
    }
    
    /* Landing Page Hero */
    .hero-section {
        padding: 40px 15px !important;
    }
    
    .hero-title {
        font-size: 28px !important;
    }
    
    .hero-subtitle {
        font-size: 16px !important;
    }
    
    .hero-highlight {
        font-size: 20px !important;
    }
    
    /* Comparison Cards */
    .comparison-grid {
        grid-template-columns: 1fr !important;
    }
    
    .comparison-card {
        padding: 25px 20px;
    }
    
    /* Benefits Grid */
    .benefits-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Form Container */
    .form-container {
        padding: 25px 15px !important;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 24px !important;
    }
    
    .section-subtitle {
        font-size: 15px !important;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 40px 15px !important;
    }
    
    .cta-title {
        font-size: 24px !important;
    }
    
    .cta-button {
        padding: 15px 30px !important;
        font-size: 16px !important;
    }
    
    /* Referral Link in Landing */
    .hero-section input[type="text"],
    .form-section input[type="text"] {
        font-size: 13px !important;
        padding: 12px 15px !important;
    }
    
    .hero-section button,
    .form-section button {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
    
    /* Card Features List */
    .card-features li {
        font-size: 14px;
    }
    
    /* Benefit Cards */
    .benefit-card {
        padding: 20px;
    }
    
    .benefit-title {
        font-size: 18px;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .has-affiliate-dashboard {
        padding: 5px;
    }
    
    .has-table {
        min-width: 500px;
        font-size: 12px;
    }
    
    .has-stat-card h3 {
        font-size: 24px;
    }
    
    .has-stat-card p {
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 24px !important;
    }
    
    .hero-subtitle {
        font-size: 14px !important;
    }
    
    .section-title {
        font-size: 20px !important;
    }
    
    .comparison-card {
        padding: 20px 15px;
    }
    
    .card-commission {
        font-size: 36px !important;
    }
}

/* ====================================================================
   TUTORIAL SYSTEM STYLES
   ==================================================================== */

.has-tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99998;
    backdrop-filter: blur(3px);
}

.has-tutorial-highlight {
    position: relative;
    z-index: 99999 !important;
    box-shadow: 0 0 0 5px rgba(102, 126, 234, 0.5), 0 0 30px rgba(102, 126, 234, 0.6) !important;
    border-radius: 12px !important;
    animation: tutorialPulse 2s infinite;
}

@keyframes tutorialPulse {
    0%, 100% {
        box-shadow: 0 0 0 5px rgba(102, 126, 234, 0.5), 0 0 30px rgba(102, 126, 234, 0.6);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.7), 0 0 40px rgba(102, 126, 234, 0.8);
    }
}

.has-tutorial-tooltip {
    position: absolute;
    z-index: 100000;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    padding: 0;
    display: none;
}

.has-tutorial-header {
    padding: 25px 25px 20px 25px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.has-tutorial-header h3 {
    margin: 0;
    font-size: 22px;
    color: #667eea;
    font-weight: 700;
}

.has-tutorial-skip {
    background: #f5f5f5;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.3s;
}

.has-tutorial-skip:hover {
    background: #e0e0e0;
    color: #333;
}

.has-tutorial-body {
    padding: 20px 25px;
}

.has-tutorial-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.has-tutorial-footer {
    padding: 20px 25px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.has-tutorial-progress {
    font-size: 13px;
    color: #999;
    font-weight: 600;
}

.has-tutorial-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.has-tutorial-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ====================================================================
   DATETIME POPUP STYLES
   ==================================================================== */

.has-datetime-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}

.has-datetime-popup.active {
    opacity: 1;
}

.has-datetime-popup-content {
    background: white;
    border-radius: 20px;
    padding: 35px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.has-datetime-popup.active .has-datetime-popup-content {
    transform: scale(1);
}

.has-datetime-popup-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.has-datetime-popup-content h3 {
    margin: 0 0 15px 0;
    font-size: 26px;
    color: #333;
    font-weight: 700;
}

.has-datetime-popup-content p {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.has-datetime-popup-checkbox {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin: 25px 0;
    border: 2px solid #e9ecef;
}

.has-datetime-popup-checkbox label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
}

.has-datetime-popup-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-left: 10px;
    cursor: pointer;
}

.has-datetime-popup-ok {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    width: 100%;
}

.has-datetime-popup-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .has-tutorial-tooltip {
        max-width: 90%;
        left: 5% !important;
        right: 5%;
    }
    
    .has-tutorial-header h3 {
        font-size: 18px;
    }
    
    .has-tutorial-body p {
        font-size: 14px;
    }
    
    .has-datetime-popup-content {
        padding: 25px 20px;
    }
    
    .has-datetime-popup-icon {
        font-size: 50px;
    }
    
    .has-datetime-popup-content h3 {
        font-size: 22px;
    }
}

