/* Crypto Abacus - Dashboard Styles */
/* Professional Light Theme with Consistent Color Palette */


:root {
    --primary-green: #1a5f4f;
    --teal: #14b8a6;
    --light-teal: #5eead4;
    --emerald: #10b981;
    --dark-green: #065f46;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --text-light-gray: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --accent-blue: #3b82f6;
    --accent-orange: #f97316;
    --accent-purple: #8b5cf6;
}

/* Global Dashboard Styles */
body {
    background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
}

.page-content {
    padding: 1.5rem 0;
}

/* Page Title */
.page-title-box {
    margin-bottom: 1.5rem;
}

.page-title-box h4 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.75rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--teal);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-green);
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 500;
}

/* Alert/News Banner */
.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #6ee7b7;
    border-radius: 12px;
    color: #065f46;
    font-weight: 500;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success strong {
    color: #064e3b;
}

/* Action Buttons Section */
.card-body.d-flex.justify-content-center {
    padding: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-warning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.25);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.35);
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
}

.btn-success {
    background: linear-gradient(135deg, var(--emerald) 0%, var(--teal) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    background: linear-gradient(135deg, #34d399 0%, #2dd4bf 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--teal) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.35);
    background: linear-gradient(135deg, #1f7a67 0%, #17c9b8 100%);
}

/* Card Styles */
.card {
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    background: var(--card-bg);
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.card-title h5 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

/* Invitation Link Card */
.input-group {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.input-group .form-control {
    border: 2px solid var(--border-color);
    border-left: none;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    background: var(--bg-light);
}

.input-group-prepend .btn {
    border-radius: 0;
    padding: 0.75rem 1.25rem;
}

/* Dashboard Stat Cards - Professional Palette */
.card-animate {
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-md);
}

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

.card-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-animate:hover::before {
    opacity: 1;
}

/* Primary Cards - Green/Teal Variations */
.b1 {
    background: linear-gradient(135deg, var(--teal) 0%, #0d9488 100%);
    color: white;
}

.b1::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.b2 {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: white;
}

.b2::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.b3 {
    background: linear-gradient(135deg, var(--emerald) 0%, #059669 100%);
    color: white;
}

.b3::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.b4 {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white;
}

.b4::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

/* Secondary Cards - Complementary Colors */
.b5 {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    border: 1px solid #a5f3fc;
}

.b5 .c5 {
    color: #0891b2 !important;
}

.b6 {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 1px solid #99f6e4;
}

.b6 .c6 {
    color: #0d9488 !important;
}

.b7 {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
}

.b7 .c7 {
    color: #059669 !important;
}

.b8 {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #93c5fd;
}

.b8 .c8 {
    color: #2563eb !important;
}

.b9 {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border: 1px solid #c4b5fd;
}

.b9 .c9 {
    color: #7c3aed !important;
}

/* Team Cards - Subtle Gradients */
.b10 {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
    border: 2px solid var(--teal);
}

.b10 .c10 {
    color: var(--teal) !important;
}

.b11 {
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
    border: 2px solid var(--emerald);
}

.b11 .text-white-50 {
    color: var(--text-gray) !important;
}

.b11 h2 {
    color: var(--emerald) !important;
}

.b12 {
    background: linear-gradient(135deg, #ffffff 0%, #dbeafe 100%);
    border: 2px solid var(--accent-blue);
}

.b12 .text-white-50 {
    color: var(--text-gray) !important;
}

.b12 h2 {
    color: var(--accent-blue) !important;
}

.b13 {
    background: linear-gradient(135deg, #ffffff 0%, #fed7aa 100%);
    border: 2px solid var(--accent-orange);
}

.b13 .text-white-50 {
    color: var(--text-gray) !important;
}

.b13 h2 {
    color: var(--accent-orange) !important;
}

/* Wallet Cards - Gray Theme */
.b14 {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e1;
}

.b14 .text-white-50 {
    color: var(--text-gray) !important;
}

.b14 h2 {
    color: var(--text-dark) !important;
}

/* Text colors */
.text-white-50 {
    opacity: 0.85;
}

/* Stat Card Typography */
.card-animate h4 {
    font-weight: 700;
    font-size: 1.5rem;
}

.card-animate h2 {
    font-weight: 700;
    font-size: 1.75rem;
}

.card-animate p {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-animate a {
    font-size: 0.875rem;
    transition: opacity 0.2s ease;
    font-weight: 500;
}

.card-animate a:hover {
    opacity: 0.8;
}

/* Avatar Icon Styles */
.avatar-sm {
    width: 3rem;
    height: 3rem;
}

.avatar-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.bg-soft-success {
    background: rgba(255, 255, 255, 0.25);
}

.bg-soft-light {
    background: rgba(255, 255, 255, 0.25);
}

.bg-soft-warning {
    background: rgba(255, 255, 255, 0.25);
}

.bg-soft-primary {
    background: rgba(255, 255, 255, 0.25);
}

.bg-soft-dark {
    background: rgba(255, 255, 255, 0.25);
}

.bg-soft-info {
    background: rgba(59, 130, 246, 0.15);
}

.bg-secondary {
    background: var(--accent-orange);
}

/* CRM Widget */
.crm-widget {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.crm-widget .row-cols-md-3 > div {
    transition: all 0.3s ease;
}

.crm-widget .row-cols-md-3 > div:hover {
    background: rgba(20, 184, 166, 0.03);
    transform: scale(1.02);
}

.crm-widget .border-end {
    border-color: var(--border-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title-box h4 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .card-animate h4 {
        font-size: 1.25rem;
    }
    
    .card-animate h2 {
        font-size: 1.5rem;
    }
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

#back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.4);
}

/* Marquee Styling */
marquee {
    font-weight: 500;
}

/* Icon colors for gradient cards */
.text-success {
    color: #10b981 !important;
}

.text-warning {
    color: #fbbf24 !important;
}

.text-info {
    color: #3b82f6 !important;
}

.text-danger {
    color: #ef4444 !important;
}




.dashboard-area {
    margin: 10px;
}

/* Invitation Card Styles */
.invitation-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
    border: 2px solid var(--teal);
}

.invitation-card .card-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--teal) 100%);
    border: none;
    padding: 1.5rem;
}

.invitation-card .card-header .header-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.invitation-card .card-header .header-icon i {
    font-size: 1.75rem;
    color: white;
}

.invitation-card .card-title {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
}

.invitation-card .card-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
}

.invitation-description {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left: 4px solid var(--emerald);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.invitation-description i {
    font-size: 1.25rem;
    color: var(--emerald);
    flex-shrink: 0;
}

.invitation-description span {
    color: #065f46;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Referral Link Box */
.referral-link-box {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.referral-link-box:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.1);
}

.referral-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.referral-header i {
    font-size: 1.25rem;
    color: var(--teal);
}

.referral-header span {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Referral Input Group */
.referral-input {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.referral-input .form-control {
    border: 2px solid var(--border-color);
    border-right: none;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    background: var(--bg-light);
    color: var(--text-gray);
    font-family: 'Courier New', monospace;
}

.referral-input .form-control:focus {
    background: white;
    border-color: var(--teal);
    box-shadow: none;
}

.referral-input .btn {
    border-radius: 0;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

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

.referral-input .btn .btn-text {
    font-weight: 600;
    font-size: 0.875rem;
}

.referral-input .btn:hover {
    transform: none;
}

.referral-input .btn:active {
    transform: scale(0.98);
}

/* Responsive adjustments for referral links */
@media (max-width: 768px) {
    .referral-input .btn .btn-text {
        display: none;
    }
    
    .referral-input .btn {
        padding: 0.875rem 1rem;
    }
    
    .referral-link-box {
        padding: 1rem;
    }
    
    .invitation-card .card-header {
        padding: 1.25rem;
    }
    
    .invitation-card .card-header .header-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .invitation-card .card-header .header-icon i {
        font-size: 1.5rem;
    }
    
    .invitation-card .card-title {
        font-size: 1.125rem;
    }
}


/* Primary Dashboard Stats - Premium White Card Design */
.card-animate.primary-stat {
    background: white;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: visible;
}

.card-animate.primary-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: all 0.3s ease;
}

.card-animate.primary-stat:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-animate.primary-stat:hover::before {
    width: 100%;
    opacity: 0.05;
}

/* Individual card accent colors */
.card-animate.primary-stat.stat-1::before {
    background: var(--teal);
}

.card-animate.primary-stat.stat-2::before {
    background: var(--primary-green);
}

.card-animate.primary-stat.stat-3::before {
    background: var(--emerald);
}

.card-animate.primary-stat.stat-4::before {
    background: #0891b2;
}

/* Stat card header */
.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.stat-1 .stat-icon {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(20, 184, 166, 0.2) 100%);
}

.stat-1 .stat-icon i {
    color: var(--teal);
    font-size: 1.5rem;
}

.stat-2 .stat-icon {
    background: linear-gradient(135deg, rgba(26, 95, 79, 0.1) 0%, rgba(26, 95, 79, 0.2) 100%);
}

.stat-2 .stat-icon i {
    color: var(--primary-green);
    font-size: 1.5rem;
}

.stat-3 .stat-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.2) 100%);
}

.stat-3 .stat-icon i {
    color: var(--emerald);
    font-size: 1.5rem;
}

.stat-4 .stat-icon {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1) 0%, rgba(8, 145, 178, 0.2) 100%);
}

.stat-4 .stat-icon i {
    color: #0891b2;
    font-size: 1.5rem;
}

.card-animate.primary-stat:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Stat value */
.stat-value {
    margin-bottom: 1rem;
}

.stat-value h4 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 2rem;
    margin: 0;
    line-height: 1;
}

.stat-value sup {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-left: 0.25rem;
}

/* Stat footer */
.stat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.stat-footer a {
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-footer a:hover {
    color: var(--teal);
    gap: 0.5rem;
}

.stat-footer a i {
    font-size: 1rem;
}

.stat-subtitle {
    color: var(--text-light-gray);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Remove old b1-b4 gradient styles when using primary-stat class */
.card-animate.primary-stat.b1,
.card-animate.primary-stat.b2,
.card-animate.primary-stat.b3,
.card-animate.primary-stat.b4 {
    background: white;
    color: inherit;
}

/* Override text colors for white cards */
.card-animate.primary-stat .text-white,
.card-animate.primary-stat .text-white-50 {
    color: var(--text-dark) !important;
}


/* Secondary Stats Cards - Team & Wallet Cards */
.secondary-stat {
    background: white;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.secondary-stat::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.05;
    transition: all 0.3s ease;
}

.secondary-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.secondary-stat:hover::after {
    width: 120px;
    height: 120px;
    opacity: 0.08;
}

/* Team Cards Colors */
.secondary-stat.team-direct::after {
    background: var(--teal);
}

.secondary-stat.team-direct:hover {
    border-color: var(--teal);
}

.secondary-stat.team-downline::after {
    background: var(--emerald);
}

.secondary-stat.team-downline:hover {
    border-color: var(--emerald);
}

.secondary-stat.business-left::after {
    background: var(--accent-blue);
}

.secondary-stat.business-left:hover {
    border-color: var(--accent-blue);
}

.secondary-stat.business-right::after {
    background: var(--accent-orange);
}

.secondary-stat.business-right:hover {
    border-color: var(--accent-orange);
}

/* Wallet Cards Colors */
.secondary-stat.wallet-offset::after {
    background: #64748b;
}

.secondary-stat.wallet-offset:hover {
    border-color: #64748b;
}

.secondary-stat.wallet-deposit::after {
    background: var(--primary-green);
}

.secondary-stat.wallet-deposit:hover {
    border-color: var(--primary-green);
}

/* Secondary Stat Content */
.secondary-stat-content {
    position: relative;
    z-index: 1;
}

.secondary-stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.secondary-stat-label {
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.secondary-stat-icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Icon wrapper colors */
.team-direct .secondary-stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(20, 184, 166, 0.2));
}

.team-direct .secondary-stat-icon-wrapper i {
    color: var(--teal);
    font-size: 1.75rem;
}

.team-downline .secondary-stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.2));
}

.team-downline .secondary-stat-icon-wrapper i {
    color: var(--emerald);
    font-size: 1.75rem;
}

.business-left .secondary-stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.2));
}

.business-left .secondary-stat-icon-wrapper i {
    color: var(--accent-blue);
    font-size: 1.75rem;
}

.business-right .secondary-stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.2));
}

.business-right .secondary-stat-icon-wrapper i {
    color: var(--accent-orange);
    font-size: 1.75rem;
}

.wallet-offset .secondary-stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.1), rgba(100, 116, 139, 0.2));
}

.wallet-offset .secondary-stat-icon-wrapper i {
    color: #64748b;
    font-size: 1.75rem;
}

.wallet-deposit .secondary-stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(26, 95, 79, 0.1), rgba(26, 95, 79, 0.2));
}

.wallet-deposit .secondary-stat-icon-wrapper i {
    color: var(--primary-green);
    font-size: 1.75rem;
}

.secondary-stat:hover .secondary-stat-icon-wrapper {
    transform: rotate(-5deg) scale(1.05);
}

/* Value Display */
.secondary-stat-value {
    margin-top: 1rem;
}

.secondary-stat-value h2 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 2rem;
    margin: 0;
    line-height: 1;
}

/* Link styling for wallet cards */
.secondary-stat a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.secondary-stat a:hover {
    color: inherit;
}

/* Badge for additional info */
.stat-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-top: 0.5rem;
}

.team-direct .stat-badge {
    background: rgba(20, 184, 166, 0.1);
    color: var(--teal);
}

.team-downline .stat-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald);
}

.business-left .stat-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

.business-right .stat-badge {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-orange);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .secondary-stat-value h2 {
        font-size: 1.75rem;
    }
    
    .secondary-stat-icon-wrapper {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .secondary-stat-icon-wrapper i {
        font-size: 1.5rem !important;
    }
}


/* Income Breakdown Widget */
.income-widget {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.income-widget .card-body {
    padding: 0;
}

.income-item {
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    border-right: 1px solid var(--border-color);
}

.income-item:last-child {
    border-right: none;
}

.income-item:hover {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.02), rgba(20, 184, 166, 0.05));
    transform: translateY(-2px);
}

/* Income Item Header */
.income-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.income-label {
    color: var(--text-gray);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.income-trend {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.income-trend.up {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.income-trend.down {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.income-trend.neutral {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

/* Income Content */
.income-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.income-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.income-item:hover .income-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Individual income item colors */
.income-direct .income-icon {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.2));
}

.income-direct .income-icon i {
    color: #0891b2;
    font-size: 1.5rem;
}

.income-direct .income-label {
    color: #0891b2;
}

.income-binary .income-icon {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(20, 184, 166, 0.2));
}

.income-binary .income-icon i {
    color: var(--teal);
    font-size: 1.5rem;
}

.income-binary .income-label {
    color: var(--teal);
}

.income-daily .income-icon {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.2));
}

.income-daily .income-icon i {
    color: var(--accent-orange);
    font-size: 1.5rem;
}

.income-daily .income-label {
    color: var(--accent-orange);
}

.income-level .income-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.2));
}

.income-level .income-icon i {
    color: var(--accent-purple);
    font-size: 1.5rem;
}

.income-level .income-label {
    color: var(--accent-purple);
}

.income-reward .income-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.2));
}

.income-reward .income-icon i {
    color: var(--accent-blue);
    font-size: 1.5rem;
}

.income-reward .income-label {
    color: var(--accent-blue);
}

/* Income Value */
.income-value {
    flex-grow: 1;
}

.income-value h2 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
    line-height: 1;
}

.income-value small {
    color: var(--text-light-gray);
    font-size: 0.75rem;
    font-weight: 500;
    display: block;
    margin-top: 0.25rem;
}

/* Responsive Layout */
@media (max-width: 1200px) {
    .row-cols-lg-5 > * {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .income-item:nth-child(2n) {
        border-right: none;
    }
    
    .income-item:nth-child(3),
    .income-item:nth-child(4) {
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .row-cols-lg-5 > * {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .income-item {
        border-right: none !important;
        border-bottom: 1px solid var(--border-color);
    }
    
    .income-item:last-child {
        border-bottom: none;
    }
    
    .income-value h2 {
        font-size: 1.5rem;
    }
    
    .income-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .income-icon i {
        font-size: 1.25rem !important;
    }
}


