:root {
            --trx-red: #FF0013;
            --trx-orange: #FF6B35;
            --trx-gold: #FFD700;
            --trx-dark: #1a1a1a;
            --trx-light: #f8f9fa;
            --gradient-primary: linear-gradient(135deg, var(--trx-red), var(--trx-orange));
            --gradient-secondary: linear-gradient(135deg, var(--trx-orange), var(--trx-gold));
            --shadow-glow: 0 0 20px rgba(255, 0, 19, 0.3);
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            min-height: 100vh;
        }

        [data-bs-theme="dark"] body {
            background: linear-gradient(135deg, var(--trx-dark) 0%, #2d2d2d 100%);
        }

        .navbar-brand {
            font-weight: bold;
            font-size: 1.5rem;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .btn-trx {
            background: var(--gradient-primary);
            border: none;
            color: white;
            font-weight: 600;
            padding: 12px 30px;
            border-radius: 50px;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-glow);
        }

        .btn-trx:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255, 0, 19, 0.4);
            color: white;
        }

        .btn-outline-trx {
            border: 2px solid var(--trx-red);
            color: var(--trx-red);
            background: transparent;
            font-weight: 600;
            padding: 12px 30px;
            border-radius: 50px;
            transition: all 0.3s ease;
        }

        .btn-outline-trx:hover {
            background: var(--gradient-primary);
            color: white;
            transform: translateY(-2px);
            box-shadow: var(--shadow-glow);
        }
        
        .card-trx {
            border: none;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            overflow: hidden;
        }

        .card-trx:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }
        
        .stats-card {
            background: var(--gradient-primary);
            border-radius: 20px;
            padding: 1rem;
            color: white;
            border: none;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .stats-card::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .stats-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(255, 0, 19, 0.3);
        }

        .stats-card:hover::before {
            top: -25%;
            right: -25%;
        }

        .stats-card.secondary {
            background: var(--gradient-secondary);
        }

        .stats-card.dark {
            background: linear-gradient(135deg, #343a40, #495057);
        }

        .card-trx {
            border-radius: 20px;
            border: none;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            overflow: hidden;
        }

        .card-trx:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        [data-bs-theme="dark"] .card-trx {
            background-color: #2d2d2d;
            color: white;
        }

        .table-trx {
            border-radius: 15px;
            overflow: hidden;
        }

        .table-trx th {
            background: var(--gradient-primary);
            color: white;
            border: none;
            font-weight: 600;
        }

        .table-trx td {
            border-color: rgba(255, 0, 19, 0.1);
            vertical-align: middle;
        }

        [data-bs-theme="dark"] .table-trx td {
            border-color: rgba(255, 255, 255, 0.1);
            color: white;
        }

        .badge-trx {
            background: var(--gradient-primary);
            color: white;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.85rem;
        }

        .badge-success {
            background: linear-gradient(135deg, #28a745, #20c997);
        }

        .badge-pending {
            background: linear-gradient(135deg, #ffc107, #fd7e14);
        }

        .progress-trx {
            height: 10px;
            border-radius: 10px;
            background-color: rgba(255, 0, 19, 0.1);
        }

        .progress-trx .progress-bar {
            background: var(--gradient-primary);
            border-radius: 10px;
        }

        .sidebar {
            background: white;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            padding: 2rem;
            height: fit-content;
            position: sticky;
            top: 100px;
        }

        [data-bs-theme="dark"] .sidebar {
            background: #2d2d2d;
            color: white;
        }

        .sidebar-item {
            padding: 15px 20px;
            margin: 5px 0;
            border-radius: 15px;
            transition: all 0.3s ease;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .sidebar-item:hover, .sidebar-item.active {
            background: var(--gradient-primary);
            color: white;
            transform: translateX(5px);
        }

        .chart-container {
            position: relative;
            height: 300px;
            margin: 20px 0;
        }

        .user-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: var(--gradient-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2rem;
            font-weight: bold;
            margin: 0 auto 20px;
        }

        .referral-link-box {
            background: linear-gradient(135deg, rgba(255, 0, 19, 0.1), rgba(255, 107, 53, 0.1));
            border: 2px dashed var(--trx-red);
            border-radius: 15px;
            padding: 2px;
            text-align: center;
            margin: 2px 0;
        }

        [data-bs-theme="dark"] .referral-link-box {
            background: linear-gradient(135deg, rgba(255, 0, 19, 0.2), rgba(255, 107, 53, 0.2));
        }

        .copy-btn {
            background: var(--trx-red);
            border: none;
            color: white;
            padding: 8px 15px;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .copy-btn:hover {
            background: var(--trx-orange);
            transform: scale(1.05);
        }

        .activity-item {
            padding: 15px;
            border-left: 4px solid var(--trx-red);
            margin: 10px 0;
            background: rgba(255, 0, 19, 0.05);
            border-radius: 0 10px 10px 0;
        }

        [data-bs-theme="dark"] .activity-item {
            background: rgba(255, 0, 19, 0.1);
            color: white;
        }

        .floating-action {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: var(--gradient-primary);
            color: white;
            border: none;
            font-size: 1.5rem;
            box-shadow: var(--shadow-glow);
            transition: all 0.3s ease;
            z-index: 1000;
        }

        .floating-action:hover {
            transform: scale(1.1);
            box-shadow: 0 10px 30px rgba(255, 0, 19, 0.4);
        }

        @media (max-width: 768px) {
            .sidebar {
                position: relative;
                top: 0;
                margin-bottom: 20px;
            }
            
            .stats-card {
                margin-bottom: 20px;
            }
        }

        .stats-number {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .hero-section {
            padding: 100px 0;
            background: linear-gradient(135deg, rgba(255, 0, 19, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
            position: relative;
            overflow: hidden;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,0,19,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
            opacity: 0.3;
        }

        .feature-icon {
            width: 80px;
            height: 80px;
            background: var(--gradient-secondary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: white;
            margin: 0 auto 1rem;
            box-shadow: var(--shadow-glow);
        }

        .referral-link-box {
            background: rgba(255, 0, 19, 0.1);
            border: 2px dashed var(--trx-red);
            border-radius: 15px;
            padding: 0.8rem;
            text-align: center;
        }

        .theme-toggle {
            background: none;
            border: 2px solid var(--trx-red);
            color: var(--trx-red);
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .theme-toggle:hover {
            background: var(--gradient-primary);
            color: white;
            transform: rotate(180deg);
        }

        .login-form {
            max-width: 400px;
            margin: 0 auto;
        }

        .form-control {
            border-radius: 15px;
            padding: 15px 20px;
            border: 2px solid #e9ecef;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            border-color: var(--trx-red);
            box-shadow: 0 0 0 0.2rem rgba(255, 0, 19, 0.25);
        }

        .pulse-animation {
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .floating-elements {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
            pointer-events: none;
        }

        .floating-elements::before,
        .floating-elements::after {
            content: '';
            position: absolute;
            width: 100px;
            height: 100px;
            background: var(--gradient-primary);
            border-radius: 50%;
            opacity: 0.1;
            animation: float 6s ease-in-out infinite;
        }

        .floating-elements::before {
            top: 20%;
            left: 10%;
            animation-delay: 0s;
        }

        .floating-elements::after {
            top: 60%;
            right: 10%;
            animation-delay: 3s;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }

        .earnings-badge {
            background: var(--gradient-secondary);
            color: white;
            padding: 8px 16px;
            border-radius: 25px;
            font-weight: 600;
            display: inline-block;
            margin: 5px;
        }

        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        /* Fix dark mode text visibility in silver background sections */
        [data-bs-theme="dark"] .bg-light {
            background-color: #2d2d2d !important;
        }

        [data-bs-theme="dark"] .text-muted {
            color: #adb5bd !important;
        }

        [data-bs-theme="dark"] .card {
            background-color: var(--bs-card-bg);
            color: var(--bs-body-color);
        }

        /* Fix calculator text visibility */
        .earnings-calculator {
            background: var(--gradient-primary);
            color: white !important;
        }

        .earnings-calculator .bg-white {
            background-color: rgba(255, 255, 255, 0.2) !important;
            color: white !important;
        }

        .earnings-calculator h4,
        .earnings-calculator p {
            color: white !important;
        }

        /* Added footer hover effects and ensured visibility in all modes */
        .hover-link {
            transition: opacity 0.3s ease, color 0.3s ease;
        }

        .hover-link:hover {
            opacity: 1 !important;
            color: var(--trx-orange) !important;
        }

        @media (max-width: 768px) {
            .hero-section {
                padding: 60px 0;
            }
            
            .stats-number {
                font-size: 2rem;
            }
            
            .navbar-brand {
                font-size: 1.2rem;
            }
        }
        


        /* Added dark mode styling for navbar */
        .navbar {
            transition: all 0.3s ease;
        }

        [data-bs-theme="dark"] .navbar {
            background-color: #2d2d2d !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        [data-bs-theme="dark"] .navbar .nav-link {
            color: rgba(255, 255, 255, 0.8) !important;
        }

        [data-bs-theme="dark"] .navbar .nav-link:hover,
        [data-bs-theme="dark"] .navbar .nav-link.active {
            color: var(--trx-orange) !important;
        }
        [data-bs-theme="light"] .navbar .nav-link:hover,
        [data-bs-theme="light"] .navbar .nav-link.active {
            color: var(--trx-orange) !important;
        }

        [data-bs-theme="dark"] .navbar .navbar-toggler {
            border-color: rgba(255, 255, 255, 0.3);
        }

        [data-bs-theme="dark"] .navbar .navbar-toggler-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        }

        [data-bs-theme="dark"] .dropdown-menu {
            background-color: #2d2d2d;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        [data-bs-theme="dark"] .dropdown-item {
            color: rgba(255, 255, 255, 0.8);
        }

        [data-bs-theme="dark"] .dropdown-item:hover {
            background-color: rgba(255, 0, 19, 0.1);
            color: var(--trx-orange);
        }
        
        .banner_ad{
            overflow: hidden;
        }
        
        /* Prevent text overflow for long email or address */
        .word-break {
            word-break: break-word;
            white-space: normal;
        }
