/* ============================================
   DASHBOARD DESIGN FIXES
   Complete redesign for all dashboard pages
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================
   GLOBAL TYPOGRAPHY FIXES
   ============================================ */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Heading Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* ============================================
   RESPONSIVE LAYOUT FIXES
   ============================================ */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin 0.3s ease;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* Fix top-bar sticky positioning */
.top-bar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: var(--bg-secondary) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.dashboard-content {
    padding: 2rem;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

body,
html {
    overflow-x: hidden;
    overflow-y: auto;
}

/* ============================================
   STAT CARDS REDESIGN - FIXED TEXT CUTTING
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.stat-card {
    background: var(--bg-secondary) !important;
    border: 2px solid var(--bg-tertiary) !important;
    border-radius: 20px !important;
    padding: 1.25rem !important;
    position: relative;
    overflow: visible !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-height: 120px;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-icon {
    width: 70px !important;
    height: 70px !important;
    border-radius: 16px !important;
    font-size: 2rem !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-content {
    flex: 1;
    min-width: 0; /* Allows flex items to shrink below content size */
    overflow: visible;
}

.stat-label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.625rem !important;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
    margin-bottom: 0.375rem !important;
    display: block;
    word-break: break-word;
}

.stat-change {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

/* ============================================
   DASHBOARD CARDS REDESIGN
   ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.dashboard-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.col-span-8,
.col-span-6,
.col-span-4 {
    grid-column: span 1;
}

.dashboard-card {
    background: var(--bg-secondary) !important;
    border: 2px solid var(--bg-tertiary) !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
}

.dashboard-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem 1.75rem !important;
    border-bottom: 2px solid var(--bg-tertiary) !important;
    background: linear-gradient(to right, var(--bg-secondary), rgba(34, 197, 94, 0.02));
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-header h3 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    letter-spacing: -0.01em !important;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.card-header h3 i {
    color: var(--primary-green);
    margin-right: 0.625rem;
    font-size: 1.125rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-body {
    padding: 1.75rem !important;
}

/* ============================================
   DATA TABLES REDESIGN
   ============================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9375rem;
}

.data-table thead {
    background: var(--bg-tertiary);
}

.data-table thead th {
    padding: 1.25rem 1.5rem !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary) !important;
    border-bottom: 2px solid var(--bg-tertiary);
    white-space: nowrap;
}

.data-table thead th:first-child {
    border-top-left-radius: 12px;
}

.data-table thead th:last-child {
    border-top-right-radius: 12px;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--bg-tertiary);
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(34, 197, 94, 0.05) !important;
    transform: scale(1.005);
}

.data-table tbody td {
    padding: 1.25rem 1.5rem !important;
    color: var(--text-primary);
    font-weight: 500;
}

.data-table tbody td:first-child {
    font-weight: 600;
}

/* Table Badges */
.badge-status {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

.badge-status.completed,
.badge-status.success,
.badge-status.active {
    background: rgba(34, 197, 94, 0.15);
    color: #16A34A;
}

.badge-status.pending {
    background: rgba(234, 179, 8, 0.15);
    color: #CA8A04;
}

.badge-status.failed,
.badge-status.cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #DC2626;
}

/* ============================================
   WELCOME BANNER REDESIGN
   ============================================ */
.welcome-banner {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%) !important;
    padding: 2.5rem !important;
    border-radius: 24px !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3) !important;
}

.welcome-text h2 {
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.625rem !important;
    letter-spacing: -0.02em;
}

.welcome-text p {
    font-size: 1.125rem !important;
    font-weight: 500;
    opacity: 0.95;
}

/* ============================================
   BUTTONS REDESIGN
   ============================================ */
.btn {
    padding: 1.125rem 2rem !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn:hover {
    transform: translateY(-3px) !important;
}

.btn-primary {
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4) !important;
}

.btn-primary:hover {
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.5) !important;
}

.btn i {
    font-size: 1.125rem;
}

/* ============================================
   FORM CONTROLS REDESIGN
   ============================================ */
.form-control {
    padding: 1.125rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    border-radius: 14px !important;
    border: 2px solid var(--bg-tertiary) !important;
    transition: all 0.3s ease !important;
}

.form-control:focus {
    border-color: var(--primary-green) !important;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.1) !important;
}

.form-group label {
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.75rem !important;
    color: var(--text-primary) !important;
    letter-spacing: 0.01em;
}

/* ============================================
   EARNINGS BREAKDOWN REDESIGN
   ============================================ */
.earnings-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-tertiary);
    border-radius: 14px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.breakdown-item:hover {
    border-color: var(--primary-green);
    transform: translateX(5px);
}

.breakdown-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.breakdown-content {
    flex: 1;
    min-width: 0;
}

.breakdown-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}

.breakdown-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.breakdown-percentage {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ============================================
   QUICK ACTIONS REDESIGN
   ============================================ */
.quick-actions-grid,
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.action-card,
.quick-action-btn {
    background: var(--bg-tertiary) !important;
    padding: 1.25rem 1rem !important;
    border-radius: 14px !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 110px;
}

.action-card:hover,
.quick-action-btn:hover {
    background: var(--bg-primary) !important;
    border-color: var(--primary-green) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.action-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
}

.action-card h4 {
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.action-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
}

.quick-action-btn i {
    font-size: 1.75rem !important;
    color: var(--primary-green);
    margin-bottom: 0.625rem;
    display: block;
}

.quick-action-btn span {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: var(--text-primary);
    display: block;
}

/* ============================================
   ACTIVITY LIST REDESIGN
   ============================================ */
.activity-item {
    padding: 1.5rem !important;
    background: var(--bg-tertiary) !important;
    border-radius: 14px !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
}

.activity-item:hover {
    border-color: var(--primary-green) !important;
    background: var(--bg-primary) !important;
}

.activity-icon {
    width: 52px !important;
    height: 52px !important;
    font-size: 1.375rem !important;
    border-radius: 14px !important;
}

.activity-content h4 {
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.375rem !important;
}

.activity-content p {
    font-size: 0.9375rem !important;
    font-weight: 500;
}

/* ============================================
   TASK CARDS REDESIGN
   ============================================ */
.task-card {
    background: var(--bg-tertiary) !important;
    border: 2px solid transparent !important;
    border-radius: 16px !important;
    padding: 1.75rem !important;
    transition: all 0.3s ease !important;
}

.task-card:hover {
    border-color: var(--primary-green) !important;
    background: var(--bg-primary) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
}

.task-header h4 {
    font-size: 1.1875rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.625rem !important;
}

.task-difficulty,
.task-badge {
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   INVESTMENT PLANS REDESIGN
   ============================================ */
.investment-plan {
    background: var(--bg-tertiary) !important;
    border: 2px solid transparent !important;
    border-radius: 18px !important;
    padding: 2rem !important;
    transition: all 0.3s ease !important;
}

.investment-plan:hover {
    border-color: var(--primary-green) !important;
    background: var(--bg-primary) !important;
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15) !important;
}

.investment-plan.featured {
    border-color: var(--primary-green) !important;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05)) !important;
    position: relative;
    overflow: hidden;
}

.investment-plan.featured::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: 1.5rem;
    right: -2.5rem;
    background: var(--primary-green);
    color: white;
    padding: 0.375rem 3rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    transform: rotate(45deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.plan-roi {
    font-size: 3rem !important;
    font-weight: 800 !important;
    color: var(--primary-green) !important;
    letter-spacing: -0.03em;
}

.plan-name {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}

/* ============================================
   REFERRAL CARDS REDESIGN
   ============================================ */
.referral-link-box {
    background: var(--bg-tertiary) !important;
    border: 2px solid var(--bg-tertiary) !important;
    border-radius: 14px !important;
    overflow: hidden;
}

.referral-link-box input {
    padding: 1.125rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border: none !important;
}

.copy-btn {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.375rem !important;
}

/* ============================================
   PROFILE REDESIGN
   ============================================ */
.profile-avatar img {
    width: 160px !important;
    height: 160px !important;
    border: 6px solid rgba(255, 255, 255, 0.3) !important;
}

.change-avatar-btn {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.125rem !important;
}

.profile-info h2 {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.625rem !important;
}

.profile-info p {
    font-size: 1.25rem !important;
    font-weight: 600;
}

.profile-stat-item strong {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
}

.profile-stat-item span {
    font-size: 1rem !important;
    font-weight: 600;
}

/* ============================================
   SETTINGS REDESIGN
   ============================================ */
.settings-item {
    padding: 1.75rem !important;
    border-radius: 14px !important;
}

.settings-item-info strong {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
}

.settings-item-info p {
    font-size: 0.9375rem !important;
}

.toggle-switch {
    width: 58px !important;
    height: 30px !important;
}

.toggle-slider:before {
    height: 22px !important;
    width: 22px !important;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(28px) !important;
}

/* ============================================
   PAYMENT METHOD CARDS
   ============================================ */
.payment-method-card {
    padding: 1.75rem !important;
    border-radius: 16px !important;
    border: 2px solid transparent !important;
}

.payment-method-card:hover {
    border-color: var(--primary-green) !important;
    transform: translateY(-3px) !important;
}

.payment-method-icon {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.75rem !important;
    border-radius: 14px !important;
}

/* ============================================
   TEAM & PERFORMERS
   ============================================ */
.team-levels {
    gap: 1.25rem !important;
}

.level-item {
    padding: 1.75rem !important;
    border-radius: 16px !important;
    border: 2px solid var(--bg-tertiary) !important;
}

.level-header h4 {
    font-size: 1.1875rem !important;
    font-weight: 700 !important;
}

.performer-item {
    padding: 1.25rem !important;
    border-radius: 14px !important;
}

.performer-item img {
    width: 52px !important;
    height: 52px !important;
}

.performer-info strong {
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
}

/* ============================================
   REFERRAL CARD & TEXT OVERFLOW FIXES
   ============================================ */
.referral-card .card-body {
    padding: 1.5rem !important;
}

.referral-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.referral-link-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    width: 100%;
    overflow: hidden;
}

.referral-link-box input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.8125rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    padding: 0.75rem 1rem;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    transform: scale(1.05);
}

.social-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-share span {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn.facebook { background: #1877F2; }
.social-btn.twitter { background: #1DA1F2; }
.social-btn.whatsapp { background: #25D366; }
.social-btn.telegram { background: #0088CC; }

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

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 0.375rem 0.875rem !important;
    border-radius: 8px !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
}

.badge.notify {
    animation: pulse 2s infinite;
}

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

/* ============================================
   CHART CARD
   ============================================ */
.chart-card canvas {
    max-height: 350px !important;
}

.btn-tab {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
}

/* ============================================
   RESPONSIVE ENHANCEMENTS - MOBILE FIRST
   ============================================ */

/* Tablet Landscape (769px - 991px) */
@media (min-width: 769px) and (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.5rem !important;
    }
    
    .stat-value {
        font-size: 1.875rem !important;
    }
    
    .card-header h3 {
        font-size: 1.125rem !important;
    }
}

/* Tablet and below (768px) */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0 !important;
    
    }
    
    .dashboard-content {
        padding: 1.25rem !important;
    }
    
    /* Stat Cards Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem !important;
        min-height: 120px;
        flex-direction: row;
    }
    
    .stat-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.75rem !important;
    }
    
    .stat-label {
        font-size: 0.8125rem !important;
    }
    
    .stat-value {
        font-size: 1.75rem !important;
    }
    
    .stat-change {
        font-size: 0.8125rem !important;
        padding: 0.25rem 0.625rem !important;
    }
    
    /* Dashboard Grid Mobile */
    .dashboard-grid,
    .dashboard-grid-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-header {
        padding: 1.25rem !important;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-header h3 {
        font-size: 1.125rem !important;
    }
    
    .card-body {
        padding: 1.25rem !important;
    }
    
    .card-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .welcome-text h2 {
        font-size: 1.5rem !important;
    }
    
    .welcome-text p {
        font-size: 0.9375rem !important;
    }
    
    .welcome-banner {
        padding: 1.75rem !important;
    }
    
    /* Tables Mobile */
    .data-table {
        font-size: 0.875rem !important;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table thead th,
    .data-table tbody td {
        padding: 0.875rem 0.625rem !important;
        white-space: nowrap;
    }
    
    .data-table tbody td:first-child {
        padding-left: 0.875rem !important;
    }
    
    /* Activity List Mobile */
    .activity-item {
        padding: 1rem !important;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }
    
    .activity-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.25rem !important;
    }
    
    .activity-time {
        margin-left: 0 !important;
        text-align: left !important;
    }
    
    /* Earnings Breakdown Mobile */
    .breakdown-item {
        padding: 1rem !important;
        gap: 1rem;
    }
    
    .breakdown-icon {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.25rem !important;
    }
    
    .breakdown-value {
        font-size: 1.25rem !important;
    }
    
    .breakdown-label {
        font-size: 0.8125rem !important;
    }
    
    /* Quick Actions Mobile */
    .quick-actions-grid,
    .quick-actions {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .action-card,
    .quick-action-btn {
        padding: 1rem 0.75rem !important;
        min-height: 100px;
    }
    
    .action-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem;
    }
    
    .quick-action-btn i {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem;
    }
    
    .action-card h4 {
        font-size: 0.8125rem !important;
    }
    
    .action-card p {
        font-size: 0.75rem !important;
    }
    
    .quick-action-btn span {
        font-size: 0.8125rem !important;
    }
    
    .action-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
    }
    
    .action-card h4 {
        font-size: 0.9375rem !important;
    }
    
    .action-card p {
        font-size: 0.8125rem !important;
    }
    
    /* Chart Mobile */
    .chart-card canvas {
        max-height: 280px !important;
    }
    
    /* Top Bar Mobile */
    .top-bar {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 1rem !important;
    }
    
    .top-bar-left h1 {
        font-size: 1.25rem !important;
    }
    
    .search-box {
        display: none; /* Hide search on mobile, show menu toggle */
    }
    
    .user-menu {
        padding: 0.5rem 0.75rem !important;
    }
    
    .user-info {
        display: none; /* Hide user info text on mobile */
    }
    
    /* Sidebar Mobile */
    .sidebar {
        transform: translateX(-100%);
        z-index: 1000;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .menu-toggle {
        display: block !important;
    }
}

/* Mobile Small (480px) */
@media (max-width: 480px) {
    .dashboard-content {
        padding: 1rem !important;
    }
    
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.375rem !important; }
    h3 { font-size: 1.125rem !important; }
    
    .stat-card {
        padding: 1rem !important;
        gap: 1rem;
    }
    
    .stat-icon {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.5rem !important;
    }
    
    .stat-value {
        font-size: 1.5rem !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .card-header,
    .card-body {
        padding: 1rem !important;
    }
    
    .welcome-text h2 {
        font-size: 1.25rem !important;
    }
    
    .welcome-banner {
        padding: 1.5rem !important;
    }
    
    .btn {
        padding: 0.625rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    .btn-tab {
        padding: 0.5rem 0.875rem !important;
        font-size: 0.8125rem !important;
    }
    
    .quick-actions-grid,
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }
    
    .action-card,
    .quick-action-btn {
        padding: 0.875rem 0.5rem !important;
        min-height: 90px;
    }
    
    .action-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.25rem !important;
        margin-bottom: 0.375rem;
    }
    
    .quick-action-btn i {
        font-size: 1.25rem !important;
        margin-bottom: 0.375rem;
    }
    
    .action-card h4 {
        font-size: 0.75rem !important;
    }
    
    .action-card p {
        font-size: 0.6875rem !important;
        display: none;
    }
    
    .quick-action-btn span {
        font-size: 0.75rem !important;
    }
    
    .breakdown-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .breakdown-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.125rem !important;
    }
    
    /* Hide table headers on very small screens, use card layout */
    .data-table thead {
        display: none;
    }
    
    .data-table tbody td {
        display: block;
        text-align: right;
        padding: 0.5rem !important;
        border-bottom: none !important;
    }
    
    .data-table tbody td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--text-secondary);
    }
    
    .data-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 2px solid var(--bg-tertiary);
        border-radius: 12px;
        padding: 0.75rem;
    }
    
    .top-bar-left h1 {
        font-size: 1.125rem !important;
    }
    
    .notification-btn {
        padding: 0.5rem !important;
    }
}

/* Tablet Landscape (769px - 991px) */
@media (min-width: 769px) and (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.5rem !important;
    }
    
    .stat-value {
        font-size: 1.875rem !important;
    }
    
    .card-header h3 {
        font-size: 1.125rem !important;
    }
}

/* Medium Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.5rem !important;
    }
    
    .stat-value {
        font-size: 1.875rem !important;
    }
    
    .quick-actions-grid,
    .quick-actions {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* Desktop Large (1200px+) */
@media (min-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
   
    .col-span-8 {
        grid-column: span 8;
    }
    
    .col-span-6 {
        grid-column: span 6;
    }
    
    .col-span-4 {
        grid-column: span 4;
    }
    
    .dashboard-content {
        padding: 2.5rem;
    }
    
    .quick-actions-grid,
    .quick-actions {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

/* Medium Desktop (900px - 1199px) */
@media (min-width: 900px) and (max-width: 1199px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Extra Large (1440px+) */
@media (min-width: 1440px) {
    .dashboard-content {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .stats-grid {
        gap: 2rem;
    }
    
    .dashboard-grid {
        gap: 2rem;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
    text-align: center !important;
}

.text-bold {
    font-weight: 700 !important;
}

.text-semibold {
    font-weight: 600 !important;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
