
        :root {
            /* New Color Scheme - Modern Teal & Purple */
            --primary-dark: #0F172A;
            --primary-medium: #1E293B;
            --primary-light: #334155;
            --accent-teal: #14B8A6;
            --accent-teal-dark: #0D9488;
            --accent-teal-light: #2DD4BF;
            --accent-purple: #8B5CF6;
            --accent-purple-dark: #7C3AED;
            --accent-purple-light: #A78BFA;
            --text-light: #F8FAFC;
            --text-muted: #94A3B8;
            --success: #10B981;
            --danger: #EF4444;
            --warning: #F59E0B;
            --info: #3B82F6;
            
            /* Typography */
            --font-primary: 'Poppins', sans-serif;
            
            /* Layout */
            --sidebar-width: 280px;
            --header-height: 80px;
            --border-radius: 12px;
            --transition: all 0.3s ease;
            --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }

        /* Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-primary);
            background-color: var(--primary-dark);
            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(20, 184, 166, 0.4);
            }
            70% {
                transform: scale(1.02);
                box-shadow: 0 0 0 10px rgba(20, 184, 166, 0);
            }
            100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(20, 184, 166, 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: linear-gradient(180deg, var(--primary-medium) 0%, var(--primary-dark) 100%);
            box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
            z-index: 1000;
            transition: var(--transition);
            overflow-y: auto;
            animation: slideInLeft 0.5s ease-out;
            border-right: 1px solid rgba(255, 255, 255, 0.05);
        }

        .sidebar-header {
            padding: 1.5rem 1.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            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;
            background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .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-muted);
            text-decoration: none;
            transition: var(--transition);
            position: relative;
            border-radius: 0 30px 30px 0;
            margin-right: 1rem;
        }

        .menu-item a:hover {
            background: linear-gradient(90deg, rgba(20, 184, 166, 0.1), transparent);
            color: var(--accent-teal);
            transform: translateX(5px);
        }

        .menu-item.active a {
            background: linear-gradient(90deg, rgba(20, 184, 166, 0.2), transparent);
            color: var(--accent-teal);
            font-weight: 500;
        }

        .menu-item.active a::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 4px;
            background: linear-gradient(180deg, var(--accent-teal), var(--accent-purple));
            border-radius: 0 4px 4px 0;
        }

        .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);
            background: var(--primary-dark);
        }

        /* Header */
        .header {
            height: var(--header-height);
            background: var(--primary-medium);
            padding: 0 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            animation: slideInRight 0.5s ease-out;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .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(--accent-teal);
            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;
        }

        #connectButton {
            background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(20, 184, 166, 0.3);
        }

        #connectButton::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;
        }

        #connectButton:hover::before {
            left: 100%;
        }

        #connectButton:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(20, 184, 166, 0.4);
        }

        .theme-toggle {
            background: var(--primary-light);
            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(--accent-teal);
            color: white;
            transform: rotate(15deg);
        }

        /* Content Area */
        .content-area {
            padding: 2rem;
        }

        /* Wallet Overview */
        .wallet-overview {
            margin-bottom: 2rem;
        }

        .wallet-card {
            background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-light) 100%);
            border-radius: var(--border-radius);
            padding: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: var(--card-shadow);
            position: relative;
            overflow: hidden;
            animation: fadeIn 0.6s ease-out, pulse 3s infinite 1s;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .wallet-card::after {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 200%;
            background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.05), transparent);
            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;
            background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            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: var(--primary-medium);
            border-radius: var(--border-radius);
            padding: 1.5rem;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
            animation: fadeIn 0.7s ease-out 0.2s both;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .referral-link-box:hover, .referred-by-box:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
        }

        .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(--primary-dark);
            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(--accent-teal);
            box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
        }

        .copy-btn {
            background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
            border: none;
            border-radius: 6px;
            padding: 0 1rem;
            color: white;
            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 {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(20, 184, 166, 0.3);
        }

        .referred-info {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            background-color: var(--primary-dark);
            border-radius: 6px;
            padding: 0.75rem;
            transition: var(--transition);
        }

        .referred-info:hover {
            transform: translateX(5px);
            background-color: var(--primary-light);
        }

        .referred-info i {
            color: var(--accent-teal);
            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: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
            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: var(--primary-medium);
            border-radius: var(--border-radius);
            padding: 1.5rem;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
            animation: fadeIn 0.8s ease-out;
            animation-fill-mode: both;
            border: 1px solid rgba(255, 255, 255, 0.05);
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
        }

        .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 15px 30px rgba(0, 0, 0, 0.25);
        }

        .stat-icon {
            font-size: 2rem;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .stat-content {
            display: flex;
            flex-direction: column;
        }

        .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);
        }

        /* Table Styles */
        .referral-table {
            width: 100%;
            border-collapse: collapse;
            background: var(--primary-medium);
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--card-shadow);
            animation: fadeIn 0.9s ease-out 0.4s both;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .referral-table thead {
            background: linear-gradient(90deg, var(--primary-light), var(--primary-medium));
        }

        .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(--primary-light);
        }

        .referral-table tr:hover td {
            transform: translateX(5px);
        }

        .referral-table tr:last-child {
            border-bottom: none;
        }

        /* Highlight Amount */
        .highlight-amount {
            color: var(--accent-teal) !important;
            font-weight: bold;
            transition: var(--transition);
        }

        .highlight-amount.updated {
            animation: pulse 0.8s ease;
        }

        /* Loading Animation */
        .loading-shimmer {
            background: linear-gradient(90deg, 
                var(--primary-medium) 0%, 
                var(--primary-light) 50%, 
                var(--primary-medium) 100%);
            background-size: 200px 100%;
            animation: shimmer 1.5s infinite;
            border-radius: var(--border-radius);
            color: transparent;
            user-select: none;
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            animation: fadeIn 0.3s ease-out;
        }

        .modal-content {
            background-color: var(--primary-medium);
            margin: 15% auto;
            padding: 2rem;
            border-radius: var(--border-radius);
            width: 90%;
            max-width: 500px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            animation: slideInRight 0.3s ease-out;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .modal-content h2 {
            margin-bottom: 1.5rem;
            color: var(--text-light);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group input {
            width: 100%;
            padding: 0.75rem;
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background-color: var(--primary-dark);
            color: var(--text-light);
            font-family: var(--font-primary);
        }

        .modal-content button {
            background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            width: 100%;
        }

        .modal-content button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(20, 184, 166, 0.3);
        }

        .close {
            color: var(--text-muted);
            float: right;
            font-size: 1.5rem;
            font-weight: bold;
            cursor: pointer;
            transition: var(--transition);
        }

        .close:hover {
            color: var(--accent-teal);
        }

        /* 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;
            }
            
            .stats-grid {
                grid-template-columns: 1fr;
            }
            
            .referral-container {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .header {
                flex-direction: column;
                height: auto;
                padding: 1rem;
                gap: 1rem;
            }
            
            .header-left, .header-right {
                width: 100%;
                justify-content: space-between;
            }
        }

        /* 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;
        }
        
        /* Toast Notification */
        .toast {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: var(--primary-medium);
            color: var(--text-light);
            padding: 1rem 1.5rem;
            border-radius: var(--border-radius);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            z-index: 10000;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            transform: translateY(100px);
            opacity: 0;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .toast.visible {
            transform: translateY(0);
            opacity: 1;
        }

        .toast i {
            color: var(--accent-teal);
        }
        /* Submenu Styles */
.menu-item.has-submenu {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    border-radius: 0 30px 30px 0;
    margin-right: 1rem;
}

.menu-link .arrow {
    transition: var(--transition);
    font-size: 0.875rem;
}

.menu-link:not(.collapsed) .arrow {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    padding-left: 2.5rem;
    background: rgba(0, 0, 0, 0.1);
    margin-left: 1rem;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    max-height: 0;
    transition: var(--transition);
}

.submenu.collapse:not(.show) {
    display: none;
}

.submenu.collapse.show {
    display: block;
    max-height: 500px;
}

.submenu .menu-item {
    margin-bottom: 0;
    opacity: 1;
    transform: none;
    animation: none;
}

.submenu .menu-link {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
    margin-right: 0.5rem;
}

.submenu .menu-link:hover {
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent-teal);
    transform: translateX(3px);
}

/* Animation for submenu items */
.submenu .menu-item {
    animation: fadeIn 0.3s ease-out forwards;
}

.submenu .menu-item:nth-child(1) { animation-delay: 0.05s; }
.submenu .menu-item:nth-child(2) { animation-delay: 0.1s; }
.submenu .menu-item:nth-child(3) { animation-delay: 0.15s; }
.submenu .menu-item:nth-child(4) { animation-delay: 0.2s; }
.submenu .menu-item:nth-child(5) { animation-delay: 0.25s; }


/* Team List Pages Styling */
.deposit-instructions {
    padding: 2rem;
    animation: fadeIn 0.8s ease-out;
}

.trading-panel {
    margin-bottom: 2rem;
}

.trade-card {
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-light) 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: var(--transition);
}

.trade-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.trade-header {
    background: linear-gradient(90deg, var(--primary-light), var(--primary-medium));
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metal-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.metal-name.gold {
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.transactions-container {
    padding: 0;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--primary-medium);
    animation: fadeIn 0.9s ease-out 0.4s both;
}

.transactions-table thead {
    background: linear-gradient(90deg, var(--primary-light), var(--primary-medium));
}

.transactions-table th {
    background: linear-gradient(90deg, var(--accent-teal-dark), var(--accent-purple-dark));
    color: var(--text-light);
    font-weight: 600;
    padding: 1.25rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.transactions-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
}

.transactions-table td {
    padding: 1.25rem 1rem;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.transactions-table tbody tr {
    transition: var(--transition);
}

.transactions-table tbody tr:hover {
    background: var(--primary-light);
    transform: translateX(5px);
}

.transactions-table tbody tr:hover td {
    color: var(--accent-teal-light);
}

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

/* Box Styling for Level List */
.box {
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-light) 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
    overflow: hidden;
}

.box-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(90deg, var(--primary-light), var(--primary-medium));
}

.box-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
}

.box-header.with-border {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Form Styling */
.trade-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.trade-form label {
    color: var(--text-light);
    font-weight: 600;
    margin: 0;
}

.trade-form select {
    background: var(--primary-dark) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: var(--text-light) !important;
    font-family: var(--font-primary);
    transition: var(--transition);
    min-width: 150px;
}

.trade-form select:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
}

.trade-form select option {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 0.5rem;
}

.buy-btn {
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.buy-btn::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;
}

.buy-btn:hover::before {
    left: 100%;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.4);
}

/* Text Center Alignment */
transactions-table td center {
    color: var(--text-muted);
    font-style: italic;
}

/* Package Amount Styling */
transactions-table td:contains('$') {
    font-weight: 600;
    color: var(--accent-teal) !important;
}

/* Level Badge */
transactions-table td:last-child {
    font-weight: 600;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
    .deposit-instructions {
        padding: 1rem;
    }
    
    .trade-header {
        padding: 1rem;
    }
    
    .transactions-table th,
    .transactions-table td {
        padding: 1rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .box-header {
        padding: 1rem;
    }
    
    .trade-form {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .trade-form select {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .buy-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .transactions-table {
        font-size: 0.8rem;
    }
    
    .transactions-table th,
    .transactions-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .metal-name {
        font-size: 1.25rem;
    }
    
    .box-title {
        font-size: 1.25rem;
    }
}

/* Loading States */
.transactions-table tbody tr.loading {
    background: linear-gradient(90deg, 
        var(--primary-medium) 0%, 
        var(--primary-light) 50%, 
        var(--primary-medium) 100%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

.transactions-table tbody tr.loading td {
    color: transparent;
    position: relative;
    overflow: hidden;
}

.transactions-table tbody tr.loading td::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

/* Empty State Styling */
.transactions-table tbody tr:only-child td {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-style: italic;
}

.transactions-table tbody tr:only-child td:hover {
    background: transparent;
    transform: none;
    color: var(--text-muted);
}

/* Animation for table rows */
.transactions-table tbody tr {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

.transactions-table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.transactions-table tbody tr:nth-child(2) { animation-delay: 0.15s; }
.transactions-table tbody tr:nth-child(3) { animation-delay: 0.2s; }
.transactions-table tbody tr:nth-child(4) { animation-delay: 0.25s; }
.transactions-table tbody tr:nth-child(5) { animation-delay: 0.3s; }
.transactions-table tbody tr:nth-child(6) { animation-delay: 0.35s; }
.transactions-table tbody tr:nth-child(7) { animation-delay: 0.4s; }
.transactions-table tbody tr:nth-child(8) { animation-delay: 0.45s; }

/* Scrollbar Styling */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: var(--primary-dark);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, var(--accent-teal-light), var(--accent-purple-light));
}

.panel_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-medium));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
}

.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

.actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.panel_actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-dark);
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.panel_actions a:hover {
    background: var(--accent-teal);
    color: white;
    transform: scale(1.1);
}

.content-body {
    padding: 1.5rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.col-xs-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 0.75rem;
}

/* Search Form Styles */
form[method="GET"] {
    margin-bottom: 1.5rem;
}

form[method="GET"] input[type="text"] {
    background: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    font-family: var(--font-primary);
    transition: var(--transition);
    min-width: 250px;
    margin-right: 0.5rem;
}

form[method="GET"] input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
}

form[method="GET"] button[type="submit"] {
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

form[method="GET"] button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(20, 184, 166, 0.3);
}

/* Table Styles for Users Page */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--primary-medium);
    animation: fadeIn 0.8s ease-out;
}

.table-bordered {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.table thead {
    background: linear-gradient(90deg, var(--accent-teal-dark), var(--accent-purple-dark));
}

.table th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
}

.table td {
    padding: 1.25rem 1rem;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: var(--primary-light);
}

.table tbody tr:hover td {
    transform: translateX(5px);
    color: var(--accent-teal-light);
}

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

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    font-size: 0.875rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.btn-success {
    background: linear-gradient(90deg, var(--success), #34d399);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(90deg, var(--danger), #f87171);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

/* Form Styles */
form[style="display:inline;"] {
    display: inline-block;
    margin-right: 0.5rem;
}

form[style="display:inline;"]:last-child {
    margin-right: 0;
}

/* Center Alignment */
center {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem 0;
}

/* Package Amount Styling */
td:contains('$') {
    font-weight: 600;
    color: var(--accent-teal) !important;
}

/* Action Buttons Container */
td:last-child {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Responsive Design for Users Page */
@media (max-width: 768px) {
    .panel_header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .pull-left, .pull-right {
        float: none;
    }
    
    .content-body {
        padding: 1rem;
    }
    
    .table th,
    .table td {
        padding: 1rem 0.75rem;
        font-size: 0.875rem;
    }
    
    form[method="GET"] {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    form[method="GET"] input[type="text"] {
        min-width: auto;
        width: 100%;
        margin-right: 0;
    }
    
    td:last-child {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.25rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }
    
    .panel_actions a {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
}

/* Loading States for Table */
.table tbody tr.loading {
    background: linear-gradient(90deg, 
        var(--primary-medium) 0%, 
        var(--primary-light) 50%, 
        var(--primary-medium) 100%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

.table tbody tr.loading td {
    color: transparent;
    position: relative;
    overflow: hidden;
}

.table tbody tr.loading td::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

/* Animation for table rows */
.table tbody tr {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

.table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.table tbody tr:nth-child(2) { animation-delay: 0.15s; }
.table tbody tr:nth-child(3) { animation-delay: 0.2s; }
.table tbody tr:nth-child(4) { animation-delay: 0.25s; }
.table tbody tr:nth-child(5) { animation-delay: 0.3s; }
.table tbody tr:nth-child(6) { animation-delay: 0.35s; }
.table tbody tr:nth-child(7) { animation-delay: 0.4s; }
.table tbody tr:nth-child(8) { animation-delay: 0.45s; }

/* Scrollbar Styling for Table */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: var(--primary-dark);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, var(--accent-teal-light), var(--accent-purple-light));
}

/* Empty State Styling */
.table tbody tr:only-child td {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-style: italic;
}

.table tbody tr:only-child td:hover {
    background: transparent;
    transform: none;
    color: var(--text-muted);
}

/* Form Button Alignment */
form[method="post"] {
    margin: 0;
}

/* Clearfix for floated elements */
.panel_header::after {
    content: "";
    display: table;
    clear: both;
}
/* Add to your existing CSS */

/* Mobile sidebar styles */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        transition: margin-left 0.3s ease;
    }
    
    .main-content.sidebar-active {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .overlay.active {
        display: block;
    }
}

/* Ensure sidebar is visible on desktop */
@media (min-width: 769px) {
    .sidebar {
        transform: translateX(0) !important;
    }
    
    .sidebar-toggle {
        display: none !important;
    }
    
    .overlay {
        display: none !important;
    }
}

/* Fix for active menu items - remove duplicate active class */
.menu-item.active a {
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.2), transparent);
    color: var(--accent-teal);
    font-weight: 500;
}

.menu-item.active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-teal), var(--accent-purple));
    border-radius: 0 4px 4px 0;
}