
        :root {
            --black-bg: #121826;
            --mixture-bg: #1e293b;
            --navbar-bg: #1a1a1a;
            --hover-bg: #4f46e5;
            --accent: #c0a080;
            --light-blue: #f5f5f5;
            --white: #ffffff;
            --text-light: #f1f5f9;
            --success: #10b981;
            --warning: #f59e0b;
            --error: #ef4444;
            --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }

        body {
            background-color: var(--black-bg);
            color: var(--text-light);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
        }

        .admin-container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 2rem;
        }

        h1 {
            color: var(--accent);
            border-bottom: 1px solid var(--hover-bg);
            padding-bottom: 0.5rem;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .admin-tabs {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            border-bottom: 1px solid var(--mixture-bg);
            padding-bottom: 0.5rem;
        }

        .admin-tab {
            padding: 0.75rem 1rem;
            background-color: var(--mixture-bg);
            border: none;
            border-radius: 6px;
            color: var(--text-light);
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .admin-tab.active {
            background-color: var(--hover-bg);
            color: white;
        }

        .admin-tab:hover:not(.active) {
            background-color: rgba(79, 70, 229, 0.2);
        }

        .user-phone {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

.user-phone i {
    margin-right: 5px;
    color: #4a89dc;
}

        .tab-content {
            display: none;
            padding: 1.5rem;
            background-color: var(--mixture-bg);
            border-radius: 8px;
            box-shadow: var(--card-shadow);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .tab-content.active {
            display: block;
        }

        /* Table styles */
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
        }

        th,
        td {
            padding: 0.75rem;
            text-align: left;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        th {
            background-color: rgba(79, 70, 229, 0.2);
            color: var(--accent);
            font-weight: 600;
        }

        tr:hover {
            background-color: rgba(255, 255, 255, 0.03);
        }

        /* Status badges */
        .status-badge {
            display: inline-block;
            padding: 0.25rem 0.5rem;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .status-registered {
            background-color: rgba(16, 185, 129, 0.2);
            color: var(--success);
        }

        .status-unregistered {
            background-color: rgba(239, 68, 68, 0.2);
            color: var(--error);
        }

        /* User cell */
        .user-cell-content {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .avatar-initials,
        .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background-color: var(--hover-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 0.9rem;
        }

        .user-avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
        }

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

        .user-name {
            font-weight: 500;
        }

        .user-email {
            font-size: 0.8rem;
            opacity: 0.8;
        }

        /* Action buttons */
        .action-btns {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .btn {
            padding: 0.4rem 0.75rem;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            font-weight: 500;
            font-size: 0.85rem;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .btn-primary {
            background-color: var(--hover-bg);
            color: white;
        }

        .btn-primary:hover {
            background-color: #4338ca;
        }

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

        .btn-success:hover {
            background-color: #0d9c6e;
        }

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

        .btn-danger:hover {
            background-color: #dc2626;
        }

        .btn-warning {
            background-color: var(--warning);
            color: white;
        }

        .btn-warning:hover {
            background-color: #d97706;
        }

        /* Search container */
        .search-container {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 1.5rem;
        }

        .search-input {
            flex: 1;
            padding: 0.75rem 1rem;
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background-color: rgba(255, 255, 255, 0.05);
            color: var(--text-light);
            font-size: 1rem;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--hover-bg);
        }

        /* Messages styling */
        .message-container {
            margin-bottom: 1.5rem;
        }

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

        .message-subject {
            font-weight: 600;
            font-size: 1.1rem;
            color: var(--accent);
        }

        .message-meta {
            display: flex;
            gap: 1rem;
            font-size: 0.85rem;
            opacity: 0.8;
        }

        .message-body {
            padding: 1rem;
            background-color: rgba(0, 0, 0, 0.2);
            border-radius: 6px;
            line-height: 1.6;
        }

        /* Settings form */
        .settings-form {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

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

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .form-control {
            width: 100%;
            padding: 0.75rem;
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background-color: rgba(255, 255, 255, 0.05);
            color: var(--text-light);
            font-size: 1rem;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--hover-bg);
        }

        .form-text {
            font-size: 0.85rem;
            opacity: 0.7;
            margin-top: 0.25rem;
        }

        /* Referral codes table */
        .referral-codes-table {
            margin-top: 1.5rem;
        }

        /* Toast notification */
        .toast {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background-color: var(--success);
            color: white;
            padding: 1rem 1.5rem;
            border-radius: 8px;
            z-index: 1000;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
            opacity: 0;
            transition: opacity 0.3s ease, transform 0.3s ease;
            transform: translateY(20px);
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .toast.error {
            background-color: var(--error);
        }

        .toast.warning {
            background-color: var(--warning);
        }

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

        .toast i {
            font-size: 1.25rem;
        }

        /* Loading spinner */
        .spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
        }

        .message-image {
            max-width: 100%;
            max-height: 200px;
            margin-top: 1rem;
            border-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .referral-code-used {
    background-color: var(--hover-bg);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
}

        /* Delete message button */
        .delete-message-btn {
            margin-top: 1rem;
        }

        /* Admin settings form improvements */
        .settings-section {
            margin-bottom: 2rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Referral section improvements */
        .referral-section {
            background-color: rgba(0, 0, 0, 0.2);
            padding: 1.5rem;
            border-radius: 8px;
            margin-bottom: 2rem;
        }

        /* Error message for settings */
        .settings-error {
            color: var(--error);
            margin-top: 0.5rem;
            font-size: 0.9rem;
        }

        /* Add to your CSS */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .modal-content {
            background-color: var(--mixture-bg);
            padding: 2rem;
            border-radius: 8px;
            width: 90%;
            max-width: 500px;
            box-shadow: var(--card-shadow);
        }

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

        .modal-header h3 {
            margin: 0;
            color: var(--accent);
        }

        .close-modal {
            background: none;
            border: none;
            color: var(--text-light);
            font-size: 1.5rem;
            cursor: pointer;
        }

        .days-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.75rem;
            margin-bottom: 1.5rem;
        }

        .day-btn {
            padding: 0.75rem;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .modal-footer {
            display: flex;
            gap: 0.75rem;
            justify-content: flex-end;
            margin-top: 1.5rem;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .admin-container {
                padding: 1rem;
            }

            .admin-tabs {
                flex-wrap: wrap;
            }

            .action-btns {
                flex-direction: column;
            }

            .search-container {
                flex-direction: column;
            }
        }

        .days-display {
            font-size: 0.8rem;
            color: var(--accent);
        }

        .sync-btn {
            margin-left: 0.5rem;
        }

        .debug-info {
            background-color: rgba(0, 0, 0, 0.3);
            padding: 0.5rem;
            border-radius: 4px;
            font-size: 0.8rem;
            margin-top: 0.5rem;
            font-family: monospace;
        }

        