
        :root {
            /* Color Scheme */
            --navy-blue: #0A1931;
            --navy-blue-light: #162B4D;
            --navy-blue-lighter: #1E3A6B;
            --mustard: #FFD166;
            --mustard-dark: #E9BC1D;
            --mustard-light: #FFDE8A;
            --text-light: #F5F5F5;
            --text-muted: #B0B0B0;
            --success: #4CAF50;
            --danger: #F44336;
            --warning: #FF9800;
            --info: #2196F3;
            
            /* Typography */
            --font-primary: 'Poppins', sans-serif;
            
            /* Layout */
            --sidebar-width: 280px;
            --header-height: 80px;
            --border-radius: 12px;
            --transition: all 0.3s ease;
        }

        /* Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-primary);
            background-color: var(--navy-blue);
            color: var(--text-light);
            overflow-x: hidden;
        }

        /* Animation Keyframes */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translateX(-30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        @keyframes pulse {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.4);
            }
            70% {
                transform: scale(1.02);
                box-shadow: 0 0 0 10px rgba(255, 209, 102, 0);
            }
            100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(255, 209, 102, 0);
            }
        }
        
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-10px);
            }
            60% {
                transform: translateY(-5px);
            }
        }
        
        @keyframes shimmer {
            0% {
                background-position: -200px 0;
            }
            100% {
                background-position: calc(200px + 100%) 0;
            }
        }
        
        @keyframes rotate {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }
        
        @keyframes float {
            0% {
                transform: translateY(0px);
            }
            50% {
                transform: translateY(-5px);
            }
            100% {
                transform: translateY(0px);
            }
        }

        /* Sidebar */
        .sidebar {
            position: fixed;
            top: 0;
            left: 0;
            height: 100vh;
            width: var(--sidebar-width);
            background: var(--navy-blue-light);
            box-shadow: 3px 0 15px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            transition: var(--transition);
            overflow-y: auto;
            animation: slideInLeft 0.5s ease-out;
        }

        .sidebar-header {
            padding: 1.5rem 1.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            animation: fadeIn 0.6s ease-out 0.2s both;
        }

        .logo-text {
            font-weight: 700;
            font-size: 1.25rem;
            color: var(--mustard);
        }

        .sidebar-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--text-light);
            font-size: 1.2rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .sidebar-menu {
            padding: 1.5rem 0;
            list-style: none;
        }

        .menu-item {
            margin-bottom: 0.5rem;
            opacity: 0;
            transform: translateX(-20px);
            animation: fadeIn 0.5s ease-out forwards;
        }

        .menu-item:nth-child(1) { animation-delay: 0.1s; }
        .menu-item:nth-child(2) { animation-delay: 0.15s; }
        .menu-item:nth-child(3) { animation-delay: 0.2s; }
        .menu-item:nth-child(4) { animation-delay: 0.25s; }
        .menu-item:nth-child(5) { animation-delay: 0.3s; }

        .menu-item a {
            display: flex;
            align-items: center;
            padding: 0.875rem 1.5rem;
            color: var(--text-light);
            text-decoration: none;
            transition: var(--transition);
            position: relative;
        }

        .menu-item a:hover {
            background-color: var(--navy-blue-lighter);
            color: var(--mustard);
            transform: translateX(5px);
        }

        .menu-item.active a {
            background-color: var(--navy-blue-lighter);
            color: var(--mustard);
        }

        .menu-item.active a::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 4px;
            background-color: var(--mustard);
        }

        .menu-item i {
            margin-right: 0.75rem;
            width: 20px;
            text-align: center;
            transition: var(--transition);
        }

        .menu-item a:hover i {
            transform: scale(1.2);
        }

        /* Main Content */
        .main-content {
            margin-left: var(--sidebar-width);
            min-height: 100vh;
            transition: var(--transition);
        }

        /* Header */
        .header {
            height: var(--header-height);
            background-color: var(--navy-blue-light);
            padding: 0 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            animation: slideInRight 0.5s ease-out;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .mobile-menu-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--text-light);
            font-size: 1.2rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .mobile-menu-toggle:hover {
            color: var(--mustard);
            transform: scale(1.1);
        }

        .page-title {
            font-weight: 600;
            font-size: 1.5rem;
            color: var(--text-light);
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        /*#connectWalletBtn {*/
        /*    background: var(--mustard);*/
        /*    color: var(--navy-blue);*/
        /*    border: none;*/
        /*    padding: 0.75rem 1.5rem;*/
        /*    border-radius: 30px;*/
        /*    font-weight: 600;*/
        /*    cursor: pointer;*/
        /*    transition: var(--transition);*/
        /*    position: relative;*/
        /*    overflow: hidden;*/
        /*}*/

        /*#connectWalletBtn::before {*/
        /*    content: '';*/
        /*    position: absolute;*/
        /*    top: 0;*/
        /*    left: -100%;*/
        /*    width: 100%;*/
        /*    height: 100%;*/
        /*    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);*/
        /*    transition: 0.5s;*/
        /*}*/

        /*#connectWalletBtn:hover::before {*/
        /*    left: 100%;*/
        /*}*/

        /*#connectWalletBtn:hover {*/
        /*    background: var(--mustard-dark);*/
        /*    transform: translateY(-2px);*/
        /*    box-shadow: 0 5px 15px rgba(255, 209, 102, 0.3);*/
        /*}*/

        .theme-toggle {
            background: var(--navy-blue-lighter);
            border: none;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            color: var(--text-light);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .theme-toggle:hover {
            background: var(--mustard);
            color: var(--navy-blue);
            transform: rotate(15deg);
        }

        /* Content Area */
        .content-area {
            padding: 2rem;
        }

        /* Wallet Overview */
        .wallet-overview {
            margin-bottom: 2rem;
        }

        .wallet-card {
            background: linear-gradient(135deg, var(--navy-blue-light) 0%, var(--navy-blue-lighter) 100%);
            border-radius: var(--border-radius);
            padding: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
            animation: fadeIn 0.6s ease-out, pulse 2s infinite 1s;
        }

        .wallet-card::after {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 200%;
            background: rgba(255, 209, 102, 0.05);
            transform: rotate(15deg);
            animation: rotate 15s linear infinite;
        }

        .wallet-label {
            font-size: 0.875rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }

        .wallet-value {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--text-light);
            transition: var(--transition);
        }

        .wallet-value.updated {
            animation: bounce 0.5s ease;
        }

        .wallet-icon {
            font-size: 2.5rem;
            color: var(--mustard);
            z-index: 1;
            animation: float 3s ease-in-out infinite;
        }

        /* Referral Section */
        .referral-section {
            margin-bottom: 2rem;
        }

        .referral-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
        }

        .referral-link-box, .referred-by-box {
            background-color: var(--navy-blue-light);
            border-radius: var(--border-radius);
            padding: 1.5rem;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: var(--transition);
            animation: fadeIn 0.7s ease-out 0.2s both;
        }

        .referral-link-box:hover, .referred-by-box:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }

        .referral-link-box label, .referred-by-box label {
            display: block;
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: var(--text-light);
        }

        .link-input-container {
            display: flex;
            gap: 0.5rem;
        }

        .link-input-container input {
            flex: 1;
            background-color: var(--navy-blue);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            padding: 0.75rem;
            color: var(--text-light);
            font-family: var(--font-primary);
            transition: var(--transition);
        }

        .link-input-container input:focus {
            outline: none;
            border-color: var(--mustard);
            box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.2);
        }

        .copy-btn {
            background: var(--mustard);
            border: none;
            border-radius: 6px;
            padding: 0 1rem;
            color: var(--navy-blue);
            cursor: pointer;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .copy-btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 5px;
            height: 5px;
            background: rgba(255, 255, 255, 0.5);
            opacity: 0;
            border-radius: 100%;
            transform: scale(1, 1) translate(-50%);
            transform-origin: 50% 50%;
        }

        .copy-btn:focus:not(:active)::after {
            animation: ripple 1s ease-out;
        }

        @keyframes ripple {
            0% {
                transform: scale(0, 0);
                opacity: 0.5;
            }
            100% {
                transform: scale(20, 20);
                opacity: 0;
            }
        }

        .copy-btn:hover {
            background: var(--mustard-dark);
            transform: translateY(-2px);
        }

        .referred-info {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            background-color: var(--navy-blue);
            border-radius: 6px;
            padding: 0.75rem;
            transition: var(--transition);
        }

        .referred-info:hover {
            transform: translateX(5px);
        }

        .referred-info i {
            color: var(--mustard);
            transition: var(--transition);
        }

        .referred-info:hover i {
            transform: scale(1.2);
        }

        /* Stats Section */
        .stats-section {
            margin-bottom: 2rem;
        }

        .section-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            color: var(--text-light);
            position: relative;
            padding-bottom: 0.5rem;
            animation: fadeIn 0.8s ease-out 0.3s both;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background-color: var(--mustard);
            transition: var(--transition);
        }

        .section-title:hover::after {
            width: 100px;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
        }

        .stat-card {
            background-color: var(--navy-blue-light);
            border-radius: var(--border-radius);
            padding: 1.5rem;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: var(--transition);
            animation: fadeIn 0.8s ease-out;
            animation-fill-mode: both;
        }

        .stats-grid .stat-card:nth-child(1) { animation-delay: 0.1s; }
        .stats-grid .stat-card:nth-child(2) { animation-delay: 0.15s; }
        .stats-grid .stat-card:nth-child(3) { animation-delay: 0.2s; }
        .stats-grid .stat-card:nth-child(4) { animation-delay: 0.25s; }
        .stats-grid .stat-card:nth-child(5) { animation-delay: 0.3s; }
        .stats-grid .stat-card:nth-child(6) { animation-delay: 0.35s; }
        .stats-grid .stat-card:nth-child(7) { animation-delay: 0.4s; }
        .stats-grid .stat-card:nth-child(8) { animation-delay: 0.45s; }

        .stat-card:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        }

        .stat-icon {
            width: 50px;
            height: 50px;
            background-color: var(--navy-blue);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            color: var(--mustard);
            font-size: 1.25rem;
            transition: var(--transition);
        }

        .stat-card:hover .stat-icon {
            transform: scale(1.1) rotate(5deg);
            background-color: var(--mustard);
            color: var(--navy-blue);
        }

        .stat-title {
            font-size: 0.875rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }

        .stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-light);
            transition: var(--transition);
        }

        .stat-value.updated {
            animation: pulse 0.5s ease;
        }

        /* Table Styles */
        .referral-table {
            width: 100%;
            border-collapse: collapse;
            background-color: var(--navy-blue-light);
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            animation: fadeIn 0.9s ease-out 0.4s both;
        }

        .referral-table thead {
            background-color: var(--navy-blue-lighter);
        }

        .referral-table th, .referral-table td {
            padding: 1rem;
            text-align: left;
            transition: var(--transition);
        }

        .referral-table th {
            font-weight: 600;
            color: var(--text-light);
        }

        .referral-table tr {
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            transition: var(--transition);
        }

        .referral-table tr:hover {
            background-color: var(--navy-blue-lighter);
        }

        .referral-table tr:hover td {
            transform: translateX(5px);
        }

        .referral-table tr:last-child {
            border-bottom: none;
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.7);
            animation: fadeIn 0.3s ease-out;
        }

        .modal-content {
            background-color: var(--navy-blue-light);
            margin: 10% auto;
            padding: 2rem;
            border-radius: var(--border-radius);
            width: 400px;
            max-width: 90%;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
            position: relative;
            animation: slideInRight 0.4s ease-out;
        }

        .close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            color: var(--text-muted);
            font-size: 1.5rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .close:hover {
            color: var(--mustard);
            transform: rotate(90deg);
        }

        .modal-content h2 {
            margin-bottom: 1.5rem;
            color: var(--text-light);
            font-weight: 600;
        }

        #referralIdInput {
            width: 100%;
            padding: 0.75rem;
            background-color: var(--navy-blue);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            color: var(--text-light);
            font-family: var(--font-primary);
            margin-bottom: 1.5rem;
            transition: var(--transition);
        }

        #referralIdInput:focus {
            outline: none;
            border-color: var(--mustard);
            box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.2);
        }

        #submitReferral {
            background: var(--mustard);
            color: var(--navy-blue);
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            width: 100%;
        }

        #submitReferral:hover {
            background: var(--mustard-dark);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 209, 102, 0.3);
        }

        /* Highlight Amount */
        .highlight-amount {
            color: var(--mustard) !important;
            font-weight: bold;
            transition: var(--transition);
        }

        .highlight-amount.updated {
            animation: pulse 0.8s ease;
        }

        .card-amount.red {
            color: var(--text-muted);
            font-weight: bold;
        }

        /* Loading Animation */
        .loading-shimmer {
            background: linear-gradient(90deg, 
                var(--navy-blue-light) 0%, 
                var(--navy-blue-lighter) 50%, 
                var(--navy-blue-light) 100%);
            background-size: 200px 100%;
            animation: shimmer 1.5s infinite;
            border-radius: var(--border-radius);
            color: transparent;
            user-select: none;
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
            }
            
            .sidebar.active {
                transform: translateX(0);
            }
            
            .sidebar-toggle {
                display: block;
            }
            
            .main-content {
                margin-left: 0;
            }
            
            .mobile-menu-toggle {
                display: block;
            }
            
            .header {
                padding: 0 1rem;
            }
            
            .content-area {
                padding: 1rem;
            }
            
            .referral-container {
                grid-template-columns: 1fr;
            }
            
            .stats-grid {
                grid-template-columns: 1fr;
            }
            
            /* Adjust animation for mobile */
            .stat-card {
                animation: fadeIn 0.6s ease-out;
            }
        }

        @media (max-width: 480px) {
            .header {
                flex-direction: column;
                height: auto;
                padding: 1rem;
                gap: 1rem;
            }
            
            .header-left, .header-right {
                width: 100%;
                justify-content: space-between;
            }
            
            .wallet-card {
                flex-direction: column;
                text-align: center;
                gap: 1rem;
            }
            
            .modal-content {
                width: 95%;
                padding: 1.5rem;
            }
        }

        /* Overlay for mobile */
        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
            animation: fadeIn 0.3s ease-out;
        }

        .overlay.active {
            display: block;
        }
        
        /* Animation utilities */
        .animate-fadeIn {
            animation: fadeIn 0.5s ease-out;
        }
        
        .animate-slideInLeft {
            animation: slideInLeft 0.5s ease-out;
        }
        
        .animate-slideInRight {
            animation: slideInRight 0.5s ease-out;
        }
        
        .animate-pulse {
            animation: pulse 2s infinite;
        }
        
        .animate-bounce {
            animation: bounce 1s infinite;
        }
        
        .animate-float {
            animation: float 3s ease-in-out infinite;
        }
        
        .animate-rotate {
            animation: rotate 2s linear infinite;
        }
        
        .staggered-animation > * {
            opacity: 0;
            transform: translateY(20px);
            animation: fadeIn 0.5s ease-out forwards;
        }
