/* Content Area */
        .content-wrapper {
            padding: 2.25rem;
        }

        .page-header {
            margin-bottom: 2.25rem;
        }

        .page-title {
            font-size: 2.5rem;
            font-weight: 900;
            color: var(--text-dark);
            margin-bottom: 0.625rem;
            letter-spacing: -1px;
        }

        .page-subtitle {
            color: var(--text);
            font-size: 1.05rem;
            font-weight: 400;
        }

        /* Design 62: Circle Progress Card (White Theme) */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .stat-card-design-g {
            background: white;
            border-radius: 20px;
            padding: 1.5rem;
            position: relative;
            overflow: hidden;
            border: 1px solid var(--border);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
            display: flex;
            align-items: center;
            gap: 1.5rem;
            transition: all 0.3s ease;
        }

        .stat-card-design-g:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
            border-color: var(--primary);
        }

        .design-g-ring {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            position: relative;
            flex-shrink: 0;
            background: rgba(255, 255, 255, 0.5);
        }

        .design-g-ring::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 50%;
            border: 3px solid rgba(0, 0, 0, 0.05);
        }

        .design-g-ring::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 50%;
            border: 3px solid currentColor;
            border-left-color: transparent;
            transform: rotate(-45deg);
        }

        .design-g-content {
            flex-grow: 1;
        }

        .design-g-value {
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 0.25rem;
            color: var(--text-dark);
            line-height: 1.2;
        }

        .design-g-label {
            font-size: 0.875rem;
            color: var(--text);
            font-weight: 500;
        }

        /* Color Variants for Design G */
        .stat-card-design-g .design-g-ring.primary {
            color: var(--primary);
            background: rgba(220, 38, 38, 0.05);
        }

        .stat-card-design-g .design-g-ring.success {
            color: #10b981;
            background: rgba(16, 185, 129, 0.05);
        }

        .stat-card-design-g .design-g-ring.warning {
            color: #f59e0b;
            background: rgba(245, 158, 11, 0.05);
        }

        .stat-card-design-g .design-g-ring.danger {
            color: #ef4444;
            background: rgba(239, 68, 68, 0.05);
        }

        /* Tabs */
        .management-tabs {
            background: white;
            padding: 0;
            border-radius: 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            margin-bottom: 2.25rem;
            border: 2px solid var(--border);
        }

        /* Account Type Selector Dropdown */
        .account-type-selector {
            background: white;
            padding: 1.5rem;
            border-radius: 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            margin-bottom: 2.25rem;
            border: 2px solid var(--border);
        }

        .account-type-selector-label {
            font-weight: 600;
            color: var(--text-dark);
            font-size: 0.95rem;
            margin-bottom: 0.75rem;
        }

        .tab-content {
            padding: 2rem;
        }

        /* Filters Section */
        .filters-section {
            background: white;
            padding: 1.5rem;
            border-radius: 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            margin-bottom: 2.25rem;
            border: 2px solid var(--border);
        }

        /* Design 53: Horizontal Bar Race (Adapted for White Theme) */
        .race-item {
            margin-bottom: 1.25rem;
        }

        .race-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }

        .race-title {
            color: var(--text-dark);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .race-count {
            color: var(--text);
            font-weight: 700;
        }

        .race-track {
            height: 10px;
            background: rgba(0, 0, 0, 0.05);
            border-radius: 6px;
            overflow: hidden;
        }

        .race-bar {
            height: 100%;
            border-radius: 6px;
            position: relative;
            transition: width 1s ease-out;
        }

        .race-bar::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% {
                transform: translateX(-100%);
            }

            100% {
                transform: translateX(100%);
            }
        }

        /* Custom Dropdown Styles */
        .filter-box {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            position: relative;
            z-index: 1;
        }

        .filter-box:has(.custom-dropdown.active) {
            z-index: 10001;
        }

        .filter-label {
            font-weight: 600;
            color: var(--text-dark);
            font-size: 0.95rem;
            margin: 0;
        }

        .custom-dropdown {
            position: relative;
            width: 100%;
            z-index: 1;
        }

        .custom-dropdown.active {
            z-index: 10001 !important;
            position: relative;
        }

        .custom-dropdown.active .custom-dropdown-menu {
            z-index: 10001 !important;
        }

        .custom-dropdown-btn {
            width: 100%;
            border: 2px solid var(--border);
            border-radius: 12px;
            padding: 0.75rem 1rem;
            font-size: 0.9rem;
            background: white;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            color: var(--text-dark);
            font-weight: 500;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            text-align: left;
        }

        .custom-dropdown-btn:hover {
            border-color: var(--primary);
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
        }

        .custom-dropdown-btn:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
            background: white;
        }

        .custom-dropdown-btn:disabled {
            background: var(--light);
            color: var(--text);
            cursor: not-allowed;
            opacity: 0.7;
        }

        .custom-dropdown-btn i {
            font-size: 0.75rem;
            transition: transform 0.3s ease;
            color: var(--text);
        }

        .custom-dropdown.active .custom-dropdown-btn i {
            transform: rotate(180deg);
        }

        .custom-dropdown-menu {
            position: absolute;
            top: calc(100% + 5px);
            left: 0;
            right: 0;
            background: white !important;
            border: 2px solid var(--border);
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
            z-index: 10001 !important;
            max-height: 300px;
            overflow-y: auto;
            overflow-x: hidden;
            display: none;
        }

        .custom-dropdown.active .custom-dropdown-menu {
            display: block;
        }

        .custom-dropdown-items {
            max-height: 300px;
            overflow-y: auto;
            background: white !important;
        }

        .custom-dropdown-item {
            padding: 0.75rem 1rem;
            cursor: pointer;
            transition: all 0.2s ease;
            border-bottom: 1px solid var(--border);
            color: var(--text-dark);
            font-weight: 500;
            background: white !important;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .custom-dropdown-item i {
            width: 20px;
            text-align: center;
            color: var(--text);
        }

        .custom-dropdown-item:hover i,
        .custom-dropdown-item.selected i {
            color: var(--primary);
        }

        .custom-dropdown-btn span i {
            margin-right: 0.5rem;
        }

        .custom-dropdown-item:last-child {
            border-bottom: none;
        }

        .custom-dropdown-item:hover {
            background: var(--light) !important;
            color: var(--primary);
        }

        .custom-dropdown-item.selected {
            color: var(--primary);
            font-weight: 600;
            background: rgba(220, 38, 38, 0.08) !important;
        }

        /* Custom Search Input Style */
        .custom-search-input {
            position: relative;
            width: 100%;
        }

        .custom-search-input input {
            width: 100%;
            border: 2px solid var(--border);
            border-radius: 12px;
            padding: 0.75rem 1rem 0.75rem 3rem;
            font-size: 0.9rem;
            background: white;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            color: var(--text-dark);
            font-weight: 500;
        }

        .custom-search-input input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
            background: white;
        }

        .custom-search-input i {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text);
            font-size: 0.9rem;
            pointer-events: none;
        }

        /* Users Table */
        .users-section {
            background: white;
            padding: 2rem;
            border-radius: 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            margin-bottom: 2.25rem;
            border: 2px solid var(--border);
        }

        .table-responsive {
            border-radius: 6px;
            overflow: hidden;
        }

        .table {
            margin-bottom: 0;
        }

        .table thead {
            background: var(--light);
        }

        .table thead th {
            border-bottom: 2px solid var(--border);
            font-weight: 600;
            color: var(--text-dark);
            padding: 1rem;
            vertical-align: middle;
        }

        .table tbody td {
            padding: 1rem;
            vertical-align: middle;
            border-bottom: 1px solid var(--border);
        }

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

        .badge {
            padding: 0.35rem 0.75rem;
            border-radius: 4px;
            font-size: 0.85rem;
            font-weight: 600;
        }

        .badge-success {
            background: var(--success);
            color: white;
        }

        .badge-danger {
            background: var(--danger);
            color: white;
        }

        .badge-warning {
            background: var(--warning);
            color: var(--text-dark);
        }

        .badge-info {
            background: var(--info);
            color: white;
        }

        .badge-secondary {
            background: var(--text);
            color: white;
        }

        .badge-primary {
            background: var(--primary);
            color: white;
        }

        .user-profile .user-info {
            display: flex;
            flex-direction: column;
        }

        #usersTableContainer .user-info,
        #adminsTableContainer .user-info {
            display: flex;
            align-items: center;
            gap: 1rem;
            transition: background-color 0.2s;
        }

        #usersTableContainer .user-info:hover,
        #adminsTableContainer .user-info:hover {
            background-color: rgba(0, 0, 0, 0.05);
            border-radius: 4px;
            padding: 4px;
            margin: -4px;
        }

        .user-details {
            flex: 1;
        }

        .user-name {
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 0.25rem;
        }

        .user-email {
            font-size: 0.85rem;
            color: var(--text);
        }

        .action-buttons {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .btn-sm {
            padding: 0.35rem 0.75rem;
            font-size: 0.85rem;
        }

        .btn-primary {
            background: var(--primary);
            border: none;
            color: white;
        }

        .btn-primary:hover {
            background: var(--primary-dark);
        }

        .btn-danger {
            background: var(--danger);
            border: none;
            color: white;
        }

        .btn-danger:hover {
            background: #c82333;
        }

        .btn-success {
            background: var(--success);
            border: none;
            color: white;
        }

        .btn-success:hover {
            background: #218838;
        }

        .btn-warning {
            background: var(--warning);
            border: none;
            color: var(--text-dark);
        }

        .btn-warning:hover {
            background: #e0a800;
        }

        .pagination {
            margin-top: 1.5rem;
        }

        .pagination .page-link {
            color: var(--primary);
        }

        .pagination .page-item.active .page-link {
            background: var(--primary);
            border-color: var(--primary);
        }

        .alert {
            border-radius: 6px;
            border: 1px solid;
            padding: 1rem;
            margin-bottom: 1.5rem;
        }

        .alert-success {
            background: #e8f5e9;
            color: var(--success);
            border-color: #c8e6c9;
        }

        .alert-danger {
            background: #fff5f5;
            color: var(--danger);
            border-color: #fecaca;
        }

        .alert-warning {
            background: #fffbf0;
            color: #856404;
            border-color: #ffeaa7;
        }

        .empty-state {
            text-align: center;
            padding: 3rem;
            color: var(--text);
        }

        .empty-state i {
            font-size: 4rem;
            color: var(--border);
            margin-bottom: 1rem;
        }

        .empty-state h4 {
            color: var(--text-dark);
            margin-bottom: 0.5rem;
        }

        .loading-spinner {
            text-align: center;
            padding: 3rem;
        }

        .spinner-border {
            width: 3rem;
            height: 3rem;
            border-width: 0.3em;
        }

        /* Modal Styles */
        .modal-header {
            border-bottom: 2px solid var(--border);
        }

        .modal-footer {
            border-top: 2px solid var(--border);
        }

        /* Modern User Detail Modal Styles */
        .user-detail-card {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 1.25rem;
            border: 2px solid var(--border);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            transition: all 0.3s ease;
        }

        .user-detail-card:hover {
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
            border-color: var(--primary);
        }

        .user-detail-card-header {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 1.25rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid var(--border);
        }

        .user-detail-card-header i {
            font-size: 1.25rem;
            color: var(--primary);
        }

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

        .user-detail-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.25rem;
        }

        .user-detail-item {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .user-detail-label {
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            color: var(--text);
        }

        .user-detail-value {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-dark);
        }

        .user-profile-header {
            background: linear-gradient(135deg, var(--light) 0%, #dbeafe 100%);
            padding: 2.5rem 2rem;
            border-bottom: 2px solid var(--border);
        }

        .user-profile-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 2.5rem;
            border: 4px solid white;
            box-shadow: 0 8px 24px rgba(220, 38, 38, 0.2);
            margin: 0 auto 1.25rem;
        }

        .user-profile-name {
            font-size: 1.75rem;
            font-weight: 900;
            color: var(--text-dark);
            margin-bottom: 0.5rem;
            text-align: center;
        }

        .user-profile-email {
            font-size: 1rem;
            color: var(--text);
            text-align: center;
            margin-bottom: 1.5rem;
        }

        .user-profile-badges {
            display: flex;
            justify-content: center;
            gap: 0.75rem;
            flex-wrap: wrap;
        }

        @media (max-width: 768px) {
            .user-detail-grid {
                grid-template-columns: 1fr;
            }

            .user-profile-header {
                padding: 2rem 1.5rem;
            }

            .user-profile-avatar {
                width: 80px;
                height: 80px;
                font-size: 2rem;
            }

            .user-profile-name {
                font-size: 1.5rem;
            }
        }

        .form-label {
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 0.5rem;
        }

        .form-control,
        .form-select {
            border-radius: 6px;
            border: 1px solid var(--border);
            padding: 0.75rem 1rem;
        }

        .form-control:focus,
        .form-select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
            outline: none;
        }

        /* Charts Grid */
        .charts-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.75rem;
            margin-bottom: 2.25rem;
        }

        .chart-card {
            background: white;
            border-radius: 16px;
            padding: 2rem;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            border: 2px solid var(--border);
        }

        .chart-card canvas {
            touch-action: pan-y;
            display: block;
        }

        .chart-container {
            position: relative;
            width: 100%;
            height: 300px;
            overflow: hidden;
        }

        .chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.75rem;
            padding-bottom: 1.25rem;
            border-bottom: 2px solid var(--border);
        }

        .chart-title {
            font-size: 1.2rem;
            font-weight: 800;
            color: var(--text-dark);
        }

        /* Sidebar Toggle States */
        .sidebar.hidden {
            transform: translateX(-100%);
            left: -100%;
        }

        .main-content.sidebar-hidden {
            margin-left: 0;
        }

        /* Desktop toggle support */
        @media (min-width: 1025px) {
            .sidebar.hidden {
                transform: translateX(-100%);
                left: -100%;
            }

            .main-content.sidebar-hidden {
                margin-left: 0;
            }
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .sidebar {
                left: -100%;
            }

            .sidebar.active {
                left: 0;
            }

            .main-content {
                margin-left: 0;
            }

            .menu-toggle {
                display: block;
            }
        }

        @media (max-width: 768px) {
            .stats-grid {
                grid-template-columns: 1fr;
            }

            .content-wrapper {
                padding: 1.5rem;
            }
        }

        .sidebar::-webkit-scrollbar {
            width: 6px;
        }

        .sidebar::-webkit-scrollbar-track {
            background: transparent;
        }

        .sidebar::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 3px;
        }

        .sidebar::-webkit-scrollbar-thumb:hover {
            background: var(--primary);
        }

        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .sidebar-overlay.active {
            display: block;
            opacity: 1;
        }