/**
 * Damos Affiliate System - Redesigned Frontend Styles
 * Modern Dashboard with Sidebar Navigation
 */

:root {
    --damos-primary: #16A085;
    --damos-primary-dark: #138770;
    --damos-primary-light: #1abc9c;
    --damos-success: #10b981;
    --damos-warning: #f59e0b;
    --damos-danger: #ef4444;
    --damos-info: #3b82f6;
    --damos-gray-50: #f9fafb;
    --damos-gray-100: #f3f4f6;
    --damos-gray-200: #e5e7eb;
    --damos-gray-300: #d1d5db;
    --damos-gray-400: #9ca3af;
    --damos-gray-500: #6b7280;
    --damos-gray-600: #4b5563;
    --damos-gray-700: #374151;
    --damos-gray-800: #1f2937;
    --damos-gray-900: #111827;
    --damos-white: #ffffff;
    --damos-black: #000000;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* Sidebar */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* ================================
   DASHBOARD LAYOUT WITH SIDEBAR
   ================================ */

.damos-affiliate-dashboard {
    display: flex;
    min-height: 100vh;
    background: var(--damos-gray-50);
    margin: 0;
    padding: 0;
    max-width: 100%;
}

/* Sidebar Navigation */
.damos-dashboard-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--damos-primary-dark) 0%, var(--damos-primary) 100%);
    color: var(--damos-white);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-xl);
    transition: width var(--transition);
    display: flex;
    flex-direction: column;
}

.damos-sidebar-header {
    padding: var(--spacing-xl) var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.damos-sidebar-logo {
    width: 50px;
    height: 50px;
    background: var(--damos-white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--damos-primary);
    flex-shrink: 0;
}

.damos-sidebar-title {
    display: flex;
    flex-direction: column;
}

.damos-sidebar-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--damos-white);
}

.damos-sidebar-title p {
    margin: 4px 0 0 0;
    font-size: 12px;
    opacity: 0.8;
}

/* Sidebar Navigation */
.damos-sidebar-nav {
    flex: 1;
    padding: var(--spacing-lg) 0;
    overflow-y: auto;
}

.damos-nav-section {
    margin-bottom: var(--spacing-xl);
}

.damos-nav-section-title {
    padding: 0 var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    font-weight: 600;
}

.damos-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.damos-nav-item {
    margin: 2px var(--spacing-md);
}

.damos-nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--damos-white);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    font-weight: 500;
}

.damos-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.damos-nav-link.active {
    background: var(--damos-white);
    color: var(--damos-primary);
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.damos-nav-link .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.damos-nav-link-text {
    flex: 1;
    font-size: 14px;
}

.damos-nav-badge {
    background: var(--damos-danger);
    color: var(--damos-white);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Sidebar Footer */
.damos-sidebar-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.damos-sidebar-user {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    margin-bottom: var(--spacing-md);
}

.damos-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--damos-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--damos-primary);
    flex-shrink: 0;
}

.damos-user-info {
    flex: 1;
    min-width: 0;
}

.damos-user-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.damos-user-role {
    font-size: 11px;
    opacity: 0.8;
    margin: 2px 0 0 0;
}

/* Main Content Area */
.damos-dashboard-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition);
}

/* Top Header */
.damos-dashboard-topbar {
    background: var(--damos-white);
    padding: var(--spacing-lg) var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.damos-topbar-left {
    flex: 1;
}

.damos-topbar-title {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--damos-gray-900);
}

.damos-topbar-subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--damos-gray-600);
}

.damos-topbar-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.damos-notification-btn,
.damos-mobile-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--damos-gray-200);
    background: var(--damos-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.damos-notification-btn:hover,
.damos-mobile-menu-btn:hover {
    background: var(--damos-gray-50);
    border-color: var(--damos-primary);
}

.damos-notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--damos-danger);
    color: var(--damos-white);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.damos-mobile-menu-btn {
    display: none;
}

/* Content Area */
.damos-dashboard-content {
    flex: 1;
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Page Section */
.damos-page-section {
    margin-bottom: var(--spacing-xl);
}

.damos-section-header {
    margin-bottom: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.damos-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--damos-gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.damos-section-title .dashicons {
    color: var(--damos-primary);
}

/* Stats Grid */
.damos-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.damos-stat-card {
    background: var(--damos-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--damos-gray-100);
}

.damos-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--damos-primary) 0%, var(--damos-primary-light) 100%);
}

.damos-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.damos-stat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.damos-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--damos-primary) 0%, var(--damos-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.damos-stat-icon .dashicons {
    font-size: 28px;
    color: var(--damos-white);
    width: 28px;
    height: 28px;
}

.damos-stat-trend {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.damos-stat-trend.up {
    color: var(--damos-success);
    background: #d1fae5;
}

.damos-stat-trend.down {
    color: var(--damos-danger);
    background: #fee2e2;
}

.damos-stat-body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.damos-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--damos-gray-900);
    line-height: 1;
}

.damos-stat-label {
    font-size: 14px;
    color: var(--damos-gray-600);
    font-weight: 500;
}

/* Card Component */
.damos-card {
    background: var(--damos-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--damos-gray-100);
    overflow: hidden;
}

.damos-card-header {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--damos-gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.damos-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--damos-gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.damos-card-title .dashicons {
    color: var(--damos-primary);
}

.damos-card-body {
    padding: var(--spacing-xl);
}

.damos-card-footer {
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--damos-gray-50);
    border-top: 1px solid var(--damos-gray-100);
}

/* Referral Box */
.damos-referral-box {
    background: linear-gradient(135deg, var(--damos-primary) 0%, var(--damos-primary-light) 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    color: var(--damos-white);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-xl);
}

.damos-referral-header {
    margin-bottom: var(--spacing-lg);
}

.damos-referral-header h3 {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: 20px;
    font-weight: 700;
}

.damos-referral-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.damos-referral-code-display,
.damos-referral-link-display {
    margin-bottom: var(--spacing-lg);
}

.damos-referral-code-display:last-child,
.damos-referral-link-display:last-child {
    margin-bottom: 0;
}

.damos-referral-box label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.damos-code-box {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.damos-code {
    background: var(--damos-white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius);
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--damos-primary);
    letter-spacing: 3px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    flex: 1;
    text-align: center;
}

.damos-link-box {
    display: flex;
    gap: var(--spacing-md);
}

.damos-link-box input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--damos-gray-900);
}

/* Buttons */
.damos-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: var(--radius);
    font-size: 22px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.damos-btn-primary {
    background: linear-gradient(135deg, var(--damos-primary) 0%, var(--damos-primary-light) 100%);
    color: var(--damos-white);
    box-shadow: var(--shadow-sm);
}

.damos-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.damos-btn-secondary {
    background: var(--damos-gray-100);
    color: var(--damos-gray-700);
}

.damos-btn-secondary:hover {
    background: var(--damos-gray-200);
}

.damos-btn-white {
    background: var(--damos-white);
    color: var(--damos-primary);
    box-shadow: var(--shadow-sm);
}

.damos-btn-white:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.damos-btn-icon {
    padding: var(--spacing-sm);
    aspect-ratio: 1;
}

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

/* Forms */
.damos-form-group {
    margin-bottom: var(--spacing-lg);
}

.damos-form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--damos-gray-700);
    font-size: 22px;
}

.damos-form-group input[type="text"],
.damos-form-group input[type="email"],
.damos-form-group input[type="tel"],
.damos-form-group input[type="password"],
.damos-form-group input[type="number"],
.damos-form-group select,
.damos-form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--damos-gray-200);
    border-radius: var(--radius);
    font-size: 22px;
    font-weight: 500;
    transition: var(--transition);
    background: var(--damos-white);
}

.damos-form-group input:focus,
.damos-form-group select:focus,
.damos-form-group textarea:focus {
    outline: none;
    border-color: var(--damos-primary);
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
}

.damos-form-group-checkbox label {
    font-size: 22px;
    font-weight: 500;
}

.damos-form-group small {
    font-size: 22px;
    font-weight: 500;
}

.damos-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

/* Messages */
.damos-message {
    padding: var(--spacing-lg);
    border-radius: var(--radius);
    margin-bottom: var(--spacing-lg);
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.damos-message .dashicons {
    flex-shrink: 0;
    margin-top: 2px;
}

.damos-message-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--damos-success);
}

.damos-message-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--damos-danger);
}

.damos-message-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--damos-warning);
}

.damos-message-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--damos-info);
}

/* Badge */
.damos-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    gap: 4px;
}

.damos-badge-success {
    background: #d1fae5;
    color: #065f46;
}

.damos-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.damos-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.damos-badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Loading States */
.damos-loading-state {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.damos-spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid var(--damos-gray-200);
    border-top-color: var(--damos-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto var(--spacing-lg) auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--damos-white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Withdrawal History Cards */
.damos-withdrawal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.damos-withdrawal-card {
    background: var(--damos-white);
    border: 1px solid var(--damos-gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-sm);
}

.damos-withdrawal-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.damos-withdrawal-card-header {
    background: linear-gradient(135deg, var(--damos-primary) 0%, var(--damos-primary-dark) 100%);
    padding: var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--damos-white);
}

.damos-withdrawal-amount-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.damos-withdrawal-amount-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.damos-withdrawal-card-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacing-sm);
}

.damos-withdrawal-card-status .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    opacity: 0.9;
}

.damos-withdrawal-card-body {
    padding: var(--spacing-xl);
}

.damos-withdrawal-card-info {
    display: grid;
    gap: var(--spacing-lg);
}

.damos-withdrawal-info-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.damos-withdrawal-info-item .dashicons {
    color: var(--damos-primary);
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.damos-withdrawal-info-label {
    font-size: 11px;
    color: var(--damos-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.damos-withdrawal-info-value {
    font-size: 14px;
    color: var(--damos-gray-900);
    font-weight: 500;
}

.damos-withdrawal-info-value code {
    background: var(--damos-gray-100);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.damos-withdrawal-card-footer {
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--damos-gray-50);
    border-top: 1px solid var(--damos-gray-100);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--damos-gray-600);
    font-size: 12px;
}

.damos-withdrawal-card-footer .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
    }
    
    .damos-dashboard-content {
        padding: var(--spacing-lg);
    }
    
    .damos-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .damos-dashboard-sidebar {
        transform: translateX(-100%);
    }
    
    .damos-dashboard-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .damos-dashboard-main {
        margin-left: 0;
    }
    
    .damos-mobile-menu-btn {
        display: flex;
    }
    
    .damos-topbar-title {
        font-size: 20px;
    }
    
    .damos-topbar-subtitle {
        display: none;
    }
    
    .damos-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .damos-form-row {
        grid-template-columns: 1fr;
    }
    
    .damos-withdrawal-cards {
        grid-template-columns: 1fr;
    }
    
    .damos-code-box,
    .damos-link-box {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .damos-dashboard-content {
        padding: var(--spacing-md);
    }
    
    .damos-dashboard-topbar {
        padding: var(--spacing-md);
    }
    
    .damos-stat-card {
        padding: var(--spacing-lg);
    }
    
    .damos-stat-value {
        font-size: 24px;
    }
    
    .damos-card-body {
        padding: var(--spacing-lg);
    }
    
    .damos-referral-box {
        padding: var(--spacing-lg);
    }
    
    .damos-code {
        font-size: 20px;
        letter-spacing: 2px;
    }
}

/* Sidebar Mobile Overlay */
.damos-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

@media (max-width: 768px) {
    .damos-sidebar-overlay.active {
        display: block;
    }
}

/* Smooth Scrollbar for Sidebar */
.damos-sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.damos-sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.damos-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.damos-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ================================
   REFERRALS SECTION STYLES
   ================================ */

.damos-section-header {
    margin-bottom: var(--spacing-xl);
}

.damos-section-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 28px;
    font-weight: 700;
    color: var(--damos-gray-900);
    margin: 0 0 var(--spacing-sm) 0;
}

.damos-section-title .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--damos-primary);
}

.damos-section-subtitle {
    font-size: 14px;
    color: var(--damos-gray-500);
    margin: 0;
}

.damos-referrals-filters {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.damos-filter-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.damos-filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--damos-gray-700);
    white-space: nowrap;
}

.damos-filter-group select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--damos-gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--damos-gray-700);
    background-color: var(--damos-white);
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.damos-filter-group select:hover {
    border-color: var(--damos-gray-300);
}

.damos-filter-group select:focus {
    outline: none;
    border-color: var(--damos-primary);
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
}

.damos-table-wrapper {
    overflow-x: auto;
}

.damos-referrals-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.damos-referrals-table thead {
    background-color: var(--damos-gray-50);
    border-bottom: 2px solid var(--damos-gray-200);
}

.damos-referrals-table th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    color: var(--damos-gray-700);
    white-space: nowrap;
}

.damos-referrals-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--damos-gray-100);
    color: var(--damos-gray-600);
}

.damos-referrals-table tbody tr:hover {
    background-color: var(--damos-gray-50);
}

.damos-referrals-table tbody tr:last-child td {
    border-bottom: none;
}

.damos-referral-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.damos-referral-status.pending {
    background-color: #fef3c7;
    color: #92400e;
}

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

.damos-referral-status.expired {
    background-color: #fee2e2;
    color: #7f1d1d;
}

.damos-referral-commission {
    font-weight: 600;
    color: var(--damos-primary);
}

/* Mobile Responsive Table */
@media (max-width: 768px) {
    .damos-referrals-table {
        font-size: 12px;
    }
    
    .damos-referrals-table th,
    .damos-referrals-table td {
        padding: var(--spacing-sm);
    }
    
    .damos-section-title {
        font-size: 22px;
    }
    
    .damos-section-title .dashicons {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
}

/* ================================
   EARNINGS SECTION STYLES
   ================================ */

.damos-earnings-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.damos-earnings-stat-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--damos-white);
    border: 1px solid var(--damos-gray-100);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition), box-shadow var(--transition);
}

.damos-earnings-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.damos-earnings-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.damos-earnings-stat-icon.first-purchase {
    background-color: #dbeafe;
    color: #0369a1;
}

.damos-earnings-stat-icon.returning {
    background-color: #fce7f3;
    color: #be185d;
}

.damos-earnings-stat-icon.pending {
    background-color: #fef3c7;
    color: #92400e;
}

.damos-earnings-stat-icon.completed {
    background-color: #d1fae5;
    color: #065f46;
}

.damos-earnings-stat-body {
    flex: 1;
}

.damos-earnings-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--damos-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
}

.damos-earnings-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--damos-gray-900);
}

.damos-earnings-charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.damos-chart-container {
    flex: 1;
}

.damos-chart-container canvas {
    max-width: 100%;
}

.damos-commissions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.damos-commissions-table thead {
    background-color: var(--damos-gray-50);
    border-bottom: 2px solid var(--damos-gray-200);
}

.damos-commissions-table th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    color: var(--damos-gray-700);
    white-space: nowrap;
}

.damos-commissions-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--damos-gray-100);
    color: var(--damos-gray-600);
}

.damos-commissions-table tbody tr:hover {
    background-color: var(--damos-gray-50);
}

.damos-commissions-table tbody tr:last-child td {
    border-bottom: none;
}

.damos-commission-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.damos-commission-type-badge.first_purchase {
    background-color: #dbeafe;
    color: #0369a1;
}

.damos-commission-type-badge.returning_customer {
    background-color: #fce7f3;
    color: #be185d;
}

.damos-commission-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.damos-commission-status-badge.pending {
    background-color: #fef3c7;
    color: #92400e;
}

.damos-commission-status-badge.completed {
    background-color: #d1fae5;
    color: #065f46;
}

.damos-seven-days-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.damos-day-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--damos-gray-50);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--damos-primary);
    transition: all var(--transition);
}

.damos-day-item:hover {
    background: var(--damos-gray-100);
    box-shadow: var(--shadow-xs);
}

.damos-day-info {
    display: flex;
    flex-direction: column;
}

.damos-day-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--damos-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.damos-day-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--damos-gray-900);
    margin-top: 2px;
}

.damos-day-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--damos-primary);
}

.damos-day-zero {
    color: var(--damos-gray-400);
}

.damos-seven-days-empty {
    padding: var(--spacing-lg);
    text-align: center;
    color: var(--damos-gray-500);
    font-size: 14px;
}

/* Mobile Responsive for Earnings */
@media (max-width: 768px) {
    .damos-earnings-stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }
    
    .damos-earnings-stat-card {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-md);
    }
    
    .damos-earnings-stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .damos-earnings-charts-row {
        grid-template-columns: 1fr;
        margin-bottom: var(--spacing-lg);
    }
    
    .damos-commissions-table {
        font-size: 12px;
    }
    
    .damos-commissions-table th,
    .damos-commissions-table td {
        padding: var(--spacing-sm);
    }
}

/* ================================
   WITHDRAWALS TABLE STYLES
   ================================ */

.damos-withdrawals-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.damos-withdrawals-table thead {
    background-color: var(--damos-gray-50);
    border-bottom: 2px solid var(--damos-gray-200);
}

.damos-withdrawals-table th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    color: var(--damos-gray-700);
    white-space: nowrap;
}

.damos-withdrawals-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--damos-gray-100);
    color: var(--damos-gray-600);
}

.damos-withdrawals-table tbody tr {
    transition: background-color var(--transition);
}

.damos-withdrawals-table tbody tr:hover {
    background-color: var(--damos-gray-50);
}

.damos-withdrawals-table tbody tr:last-child td {
    border-bottom: none;
}

.damos-withdrawal-amount-cell {
    padding: var(--spacing-md) !important;
}

.damos-withdrawal-amount-display {
    font-weight: 700;
    color: var(--damos-white);
    font-size: 16px;
    background: linear-gradient(135deg, var(--damos-primary) 0%, var(--damos-primary-light) 100%);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    display: inline-block;
    box-shadow: 0 2px 8px rgba(22, 160, 133, 0.15);
}

.damos-withdrawal-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.damos-withdrawal-status-badge.pending {
    background-color: #fef3c7;
    color: #92400e;
}

.damos-withdrawal-status-badge.approved {
    background-color: #d1fae5;
    color: #065f46;
}

.damos-withdrawal-status-badge.rejected {
    background-color: #fee2e2;
    color: #7f1d1d;
}

.damos-withdrawal-row.active {
    background-color: var(--damos-gray-50);
}

/* Withdrawal Details Modal/Expanded Row */
.damos-withdrawal-details {
    display: none;
    padding: var(--spacing-lg);
    background: var(--damos-gray-50);
    border-top: 1px solid var(--damos-gray-200);
}

.damos-withdrawal-details.active {
    display: block;
}

.damos-withdrawal-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.damos-withdrawal-detail-item {
    display: flex;
    flex-direction: column;
}

.damos-withdrawal-detail-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--damos-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
}

.damos-withdrawal-detail-value {
    font-size: 14px;
    color: var(--damos-gray-700);
    word-break: break-word;
}

.damos-withdrawal-note {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--damos-gray-200);
}

.damos-withdrawal-note-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--damos-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-sm);
}

.damos-withdrawal-note-content {
    padding: var(--spacing-md);
    background: var(--damos-white);
    border-left: 4px solid var(--damos-info);
    border-radius: var(--radius-sm);
    color: var(--damos-gray-700);
    font-size: 14px;
    line-height: 1.6;
}

/* ================================
   MOBILE NAVIGATION MENU
   ================================ */

.damos-mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--damos-white);
    z-index: 1001;
    transition: right var(--transition-slow);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.damos-mobile-nav-menu.active {
    right: 0;
}

.damos-mobile-nav-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--damos-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.damos-mobile-nav-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--damos-gray-900);
}

.damos-mobile-nav-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--damos-gray-500);
    font-size: 24px;
    transition: color var(--transition);
}

.damos-mobile-nav-close:hover {
    color: var(--damos-gray-900);
}

.damos-mobile-nav-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg) 0;
}

.damos-mobile-nav-section {
    padding: var(--spacing-md) var(--spacing-lg);
}

.damos-mobile-nav-section h4 {
    margin: 0 0 var(--spacing-md) 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--damos-gray-500);
}

.damos-mobile-nav-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.damos-mobile-nav-section li a {
    display: block;
    padding: var(--spacing-md) var(--spacing-md);
    color: var(--damos-gray-700);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.damos-mobile-nav-section li a:hover {
    background: var(--damos-primary);
    color: var(--damos-white);
}

.damos-mobile-nav-section li a.active {
    background: var(--damos-primary);
    color: var(--damos-white);
    font-weight: 600;
}

.damos-mobile-nav-section .damos-btn-block {
    margin-top: var(--spacing-md);
}

/* Mobile Responsive - Tables to Cards */
@media (max-width: 768px) {
    /* Generic table to card conversion */
    .damos-table-wrapper table {
        display: block;
    }
    
    .damos-table-wrapper table thead {
        display: none;
    }
    
    .damos-table-wrapper table tbody {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .damos-table-wrapper table tr {
        display: block;
        background: var(--damos-white);
        border: 1px solid var(--damos-gray-200);
        border-radius: var(--radius);
        padding: var(--spacing-md);
        box-shadow: var(--shadow-sm);
    }
    
    .damos-table-wrapper table td {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: var(--spacing-md);
        padding: var(--spacing-sm) 0;
        border: none;
        border-bottom: 1px solid var(--damos-gray-100);
        align-items: center;
    }
    
    .damos-table-wrapper table td:last-child {
        border-bottom: none;
    }
    
    .damos-table-wrapper table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--damos-gray-600);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Referrals table mobile */
    .damos-referrals-table {
        font-size: 14px;
    }
    
    .damos-referrals-table thead {
        display: none;
    }
    
    .damos-referrals-table tbody {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .damos-referrals-table tbody tr {
        display: block;
        background: var(--damos-white);
        border: 1px solid var(--damos-gray-200);
        border-radius: var(--radius);
        padding: var(--spacing-md);
        box-shadow: var(--shadow-sm);
    }
    
    .damos-referrals-table tbody tr:hover {
        background-color: var(--damos-white);
    }
    
    .damos-referrals-table td {
        display: block;
        padding: var(--spacing-sm) 0;
        border: none;
        border-bottom: 1px solid var(--damos-gray-100);
    }
    
    .damos-referrals-table td:last-child {
        border-bottom: none;
    }
    
    .damos-referrals-table td:nth-child(1)::before { content: "Customer: "; font-weight: 600; color: var(--damos-gray-600); }
    .damos-referrals-table td:nth-child(2)::before { content: "Email: "; font-weight: 600; color: var(--damos-gray-600); }
    .damos-referrals-table td:nth-child(3)::before { content: "Status: "; font-weight: 600; color: var(--damos-gray-600); }
    .damos-referrals-table td:nth-child(4)::before { content: "Registered: "; font-weight: 600; color: var(--damos-gray-600); }
    .damos-referrals-table td:nth-child(5)::before { content: "Orders: "; font-weight: 600; color: var(--damos-gray-600); }
    .damos-referrals-table td:nth-child(6)::before { content: "Spent: "; font-weight: 600; color: var(--damos-gray-600); }
    
    /* Commissions table mobile */
    .damos-commissions-table {
        font-size: 14px;
    }
    
    .damos-commissions-table thead {
        display: none;
    }
    
    .damos-commissions-table tbody {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .damos-commissions-table tbody tr {
        display: block;
        background: var(--damos-white);
        border: 1px solid var(--damos-gray-200);
        border-radius: var(--radius);
        padding: var(--spacing-md);
        box-shadow: var(--shadow-sm);
    }
    
    .damos-commissions-table tbody tr:hover {
        background-color: var(--damos-white);
    }
    
    .damos-commissions-table td {
        display: block;
        padding: var(--spacing-sm) 0;
        border: none;
        border-bottom: 1px solid var(--damos-gray-100);
    }
    
    .damos-commissions-table td:last-child {
        border-bottom: none;
    }
    
    .damos-commissions-table td:nth-child(1)::before { content: "Order ID: "; font-weight: 600; color: var(--damos-gray-600); }
    .damos-commissions-table td:nth-child(2)::before { content: "Total: "; font-weight: 600; color: var(--damos-gray-600); }
    .damos-commissions-table td:nth-child(3)::before { content: "Rate: "; font-weight: 600; color: var(--damos-gray-600); }
    .damos-commissions-table td:nth-child(4)::before { content: "Commission: "; font-weight: 600; color: var(--damos-gray-600); }
    .damos-commissions-table td:nth-child(5)::before { content: "Type: "; font-weight: 600; color: var(--damos-gray-600); }
    .damos-commissions-table td:nth-child(6)::before { content: "Status: "; font-weight: 600; color: var(--damos-gray-600); }
    .damos-commissions-table td:nth-child(7)::before { content: "Date: "; font-weight: 600; color: var(--damos-gray-600); }
    
    /* Withdrawals table mobile */
    .damos-withdrawals-table {
        font-size: 14px;
    }
    
    .damos-withdrawals-table thead {
        display: none;
    }
    
    .damos-withdrawals-table tbody {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .damos-withdrawals-table tbody tr {
        display: block;
        background: var(--damos-white);
        border: 1px solid var(--damos-gray-200);
        border-radius: var(--radius);
        padding: var(--spacing-md);
        box-shadow: var(--shadow-sm);
    }
    
    .damos-withdrawals-table tbody tr:hover {
        background-color: var(--damos-white);
    }
    
    .damos-withdrawals-table td {
        display: block;
        padding: var(--spacing-sm) 0;
        border: none;
        border-bottom: 1px solid var(--damos-gray-100);
    }
    
    .damos-withdrawals-table td:last-child {
        border-bottom: none;
    }
    
    .damos-withdrawals-table td:nth-child(1)::before { content: "Amount: "; font-weight: 600; color: var(--damos-gray-600); }
    .damos-withdrawals-table td:nth-child(2)::before { content: "Bank: "; font-weight: 600; color: var(--damos-gray-600); }
    .damos-withdrawals-table td:nth-child(3)::before { content: "Account: "; font-weight: 600; color: var(--damos-gray-600); }
    .damos-withdrawals-table td:nth-child(4)::before { content: "Status: "; font-weight: 600; color: var(--damos-gray-600); }
    .damos-withdrawals-table td:nth-child(5)::before { content: "Requested: "; font-weight: 600; color: var(--damos-gray-600); }
    .damos-withdrawals-table td:nth-child(6)::before { content: "Actions: "; font-weight: 600; color: var(--damos-gray-600); }
    
    .damos-withdrawal-status-badge {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .damos-withdrawal-action-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .damos-withdrawal-details-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* ================================
   PROFILE & SETTINGS STYLES
   ================================ */

.damos-section-header {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--damos-gray-200);
}

.damos-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--damos-gray-900);
    margin: 0 0 var(--spacing-sm) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.damos-section-title .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--damos-primary);
}

.damos-section-subtitle {
    color: var(--damos-gray-500);
    font-size: 15px;
    margin: 0;
}

/* Profile Picture Section */
.damos-profile-picture-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
    flex-wrap: wrap;
}

.damos-profile-picture-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.damos-profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--damos-primary), var(--damos-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    font-weight: 700;
    color: var(--damos-white);
    box-shadow: var(--shadow-md);
}

.damos-profile-avatar-hint {
    font-size: 13px;
    color: var(--damos-gray-500);
    margin: 0;
}

.damos-profile-picture-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Form Styles */
.damos-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.damos-checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    accent-color: var(--damos-primary);
}

.damos-checkbox-group label {
    cursor: pointer;
    flex: 1;
}

.damos-checkbox-group label strong {
    display: block;
    color: var(--damos-gray-900);
    margin-bottom: 2px;
}

.damos-checkbox-group label small {
    display: block;
    color: var(--damos-gray-500);
    font-size: 13px;
}

/* Password Strength Hint */
.damos-password-strength-hint {
    display: block;
    font-size: 13px;
    color: var(--damos-gray-500);
    margin-top: 4px;
}

/* Login History Table */
.damos-login-history-table {
    width: 100%;
}

.damos-history-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--damos-gray-50);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--damos-gray-700);
    font-size: 13px;
    margin-bottom: var(--spacing-md);
}

.damos-history-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--damos-gray-200);
    align-items: center;
    font-size: 14px;
}

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

.damos-history-col {
    color: var(--damos-gray-700);
}

.damos-settings-description {
    color: var(--damos-gray-600);
    line-height: 1.6;
    font-size: 14px;
    margin: var(--spacing-md) 0;
}

/* Danger Zone Styles */
.damos-card-danger {
    border-left: 4px solid var(--damos-danger);
}

.damos-card-danger .damos-card-header {
    background: rgba(239, 68, 68, 0.05);
}

.damos-danger-section {
    margin-bottom: var(--spacing-lg);
}

.damos-danger-section:last-child {
    margin-bottom: 0;
}

.damos-danger-section h4 {
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--damos-gray-900);
    font-size: 16px;
}

.damos-danger-section p {
    margin: 0 0 var(--spacing-md) 0;
    color: var(--damos-gray-600);
    font-size: 14px;
}

.damos-divider {
    border: none;
    border-top: 1px solid var(--damos-gray-200);
    margin: var(--spacing-lg) 0;
}

/* Button Variants */
.damos-btn-warning {
    background: var(--damos-warning);
    color: var(--damos-white);
    border: none;
}

.damos-btn-warning:hover {
    background: #d97706;
}

.damos-btn-danger {
    background: var(--damos-danger);
    color: var(--damos-white);
    border: none;
}

.damos-btn-danger:hover {
    background: #dc2626;
}

.damos-btn-outline {
    background: var(--damos-white);
    color: var(--damos-gray-700);
    border: 1px solid var(--damos-gray-300);
}

.damos-btn-outline:hover {
    background: var(--damos-gray-50);
    border-color: var(--damos-gray-400);
}

/* Badge Variant */
.damos-badge-warning {
    background: var(--damos-warning);
    color: var(--damos-white);
}

/* Responsive Profile Picture */
@media (max-width: 768px) {
    .damos-profile-picture-section {
        justify-content: center;
        gap: var(--spacing-xl);
    }

    .damos-history-header,
    .damos-history-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .damos-history-header div:nth-child(n+3),
    .damos-history-row div:nth-child(n+3) {
        display: none;
    }
}

/* ================================
   CUSTOM DASHBOARD STYLES
   ================================ */

#brx-content > h1:nth-child(1) {
    display: none;
}

.damos-dashboard-header .damos-dashboard-welcome h1 {
    text-transform: capitalize;
}

.damos-affiliate-dashboard .damos-dashboard-main .damos-dashboard-content {
    padding-left: 0px;
    padding-right: 0px;
}

.damos-stats-grid .damos-stat-card .damos-stat-label {
    text-transform: uppercase;
    font-weight: 600;
    color: #d35400;
}

.damos-referral-box div label {
    color: #ffffff;
}

.damos-referral-box .damos-referral-header h3 {
    color: #ffffff;
}

#referral-link {
    font-size: 16px;
}

#brx-content .damos-affiliate-dashboard {
    background-color: transparent;
}

#referral-status-filter {
    width: 128px;
}

@media (max-width: 991px) {
    #brx-content .damos-affiliate-dashboard .damos-dashboard-main {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 478px) {
    #damos-withdrawals-list .damos-withdrawal-amount-cell {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    #damos-withdrawals-list td span {
        display: block;
    }

    #damos-withdrawals-list .damos-withdrawal-row td {
        display: flex;
        justify-content: space-between;
    }
}

@media (max-width: 420px) {
    #brx-content .damos-affiliate-dashboard #damos-dashboard-content .damos-dashboard-section .damos-account-status-box .damos-status-row {
        flex-direction: column !important;
    }
}

/* State Message Containers - Using old affiliate styling */
.damos-affiliate-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 0 20px;
}

.damos-affiliate-box {
    background: var(--damos-white);
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.damos-affiliate-header {
    text-align: center;
    margin-bottom: 30px;
}

.damos-affiliate-header h2 {
    margin: 0 0 10px 0;
    color: var(--damos-gray-900);
    font-size: 28px;
    font-weight: 700;
}

.damos-affiliate-header p {
    margin: 0;
    color: var(--damos-gray-600);
    font-size: 22px;
    font-weight: 500;
}

.damos-form-footer {
    margin-top: 1rem;
}

.damos-form-footer p {
    font-size: 22px;
    font-weight: 500;
}

.damos-form-footer a {
    color: var(--damos-primary);
}

.damos-dashboard-auth-actions {
    text-align: center;
}

.damos-auth-alt {
    margin-top: 20px;
    color: var(--damos-gray-600);
    font-size: 22px;
    font-weight: 500;
}

.damos-auth-alt a {
    color: var(--damos-primary);
    text-decoration: none;
    font-weight: 600;
}

.damos-auth-alt a:hover {
    text-decoration: underline;
}

/* Suspended Account Message */
.damos-dashboard-auth-message {
    padding: var(--spacing-lg);
    background: var(--damos-danger-light, #fee);
    border: 1px solid var(--damos-danger);
    border-radius: var(--border-radius);
    margin: var(--spacing-lg) 0;
}

.damos-dashboard-auth-message p {
    margin: 0 0 var(--spacing-md) 0;
    color: var(--damos-gray-700);
    line-height: 1.6;
}

.damos-dashboard-auth-message p:last-child {
    margin-bottom: 0;
}

/* Appeal System Styles */
.damos-suspension-reason {
    background: #fff9e6;
    border: 2px solid var(--damos-warning);
    border-left: 5px solid var(--damos-warning);
    padding: 20px;
    margin: 25px 0 30px 0;
    border-radius: var(--radius);
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1);
}

.damos-suspension-reason strong {
    color: var(--damos-warning);
    font-size: 15px;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.damos-suspension-reason p {
    margin: 0;
    color: var(--damos-gray-800);
    font-size: 15px;
    line-height: 1.6;
}

.damos-appeal-form-container {
    margin: 30px 0 25px 0;
    padding: 25px;
    background: #f0f9ff;
    border: 2px solid #bfdbfe;
    border-radius: var(--radius);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.damos-appeal-form-container h3 {
    margin: 0 0 12px 0;
    color: var(--damos-info);
    font-size: 19px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid #bfdbfe;
}

.damos-appeal-form-container > p {
    margin: 0 0 25px 0;
    color: var(--damos-gray-700);
    font-size: 15px;
    line-height: 1.6;
    padding-top: 12px;
}

.damos-appeal-form-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--damos-gray-800);
    font-size: 15px;
}

.damos-appeal-form-container textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--damos-gray-300);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition-fast);
    resize: vertical;
    min-height: 140px;
    background: var(--damos-white);
}

.damos-appeal-form-container textarea:focus {
    outline: none;
    border-color: var(--damos-info);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: var(--damos-white);
}

.damos-appeal-form-container .damos-btn {
    width: 100%;
    margin-top: 18px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
}

.damos-appeal-status {
    margin: 25px 0 30px 0;
    padding: 25px;
    border-radius: var(--radius);
    border: 2px solid;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.damos-appeal-status h3 {
    margin: 0 0 15px 0;
    font-size: 19px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid currentColor;
    opacity: 0.8;
}

.damos-appeal-status p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.damos-appeal-pending {
    background: #eff6ff;
    border-color: var(--damos-info);
    color: var(--damos-gray-800);
}

.damos-appeal-pending h3 {
    color: var(--damos-info);
}

.damos-appeal-rejected {
    background: #fef2f2;
    border-color: var(--damos-danger);
    color: var(--damos-gray-800);
}

.damos-appeal-rejected h3 {
    color: var(--damos-danger);
}

.damos-appeal-message-display {
    margin-top: 18px;
    padding: 16px;
    background: var(--damos-white);
    border-radius: var(--radius);
    border: 2px solid var(--damos-gray-200);
}

.damos-appeal-message-display strong {
    display: block;
    margin-bottom: 10px;
    color: var(--damos-gray-800);
    font-size: 14px;
    font-weight: 600;
}

.damos-appeal-message-display p {
    margin: 0;
    color: var(--damos-gray-700);
    font-size: 15px;
    font-style: italic;
    line-height: 1.6;
}

.damos-contact-admin {
    margin-top: 30px;
    padding: 20px;
    border-top: 3px solid var(--damos-gray-200);
    background: var(--damos-gray-50);
    border-radius: 0 0 var(--radius) var(--radius);
    text-align: center;
}

.damos-contact-admin p {
    margin: 0;
    color: var(--damos-gray-700);
    font-size: 15px;
    line-height: 1.6;
}

.damos-contact-admin strong {
    color: var(--damos-gray-900);
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.damos-contact-admin a {
    color: var(--damos-primary);
    text-decoration: none;
    font-weight: 500;
}

.damos-contact-admin a:hover {
    color: var(--damos-primary-dark);
    text-decoration: underline;
}

#damos-appeal-message {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

#damos-appeal-message.success {
    background: #d1fae5;
    border: 2px solid var(--damos-success);
    color: #065f46;
}

#damos-appeal-message.error {
    background: #fee2e2;
    border: 2px solid var(--damos-danger);
    color: #991b1b;
}

#damos-appeal-message p {
    margin: 0;
}