        .user-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            z-index: 2005;
            animation: fadeIn 0.3s ease;
        }

        .user-modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .user-modal-content {
            width: 90%;
            max-width: 450px;
            background-color: var(--bg-panel);
            border-radius: 16px;
            border: 1px solid var(--border-color);
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            animation: slideUp 0.3s ease;
        }

        .user-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px;
            background-color: var(--bg-card);
            border-bottom: 1px solid var(--border-color);
        }

        .user-modal-header h3 {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .user-modal-header h3 i {
            color: var(--accent-cyan);
        }

        .close-user-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 28px;
            cursor: pointer;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s ease;
        }

        .close-user-btn:hover {
            background-color: var(--bg-input);
            color: var(--text-primary);
        }

        .user-tabs {
            display: flex;
            border-bottom: 1px solid var(--border-color);
            background-color: var(--bg-card);
        }

        .user-tab {
            flex: 1;
            padding: 16px;
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
        }

        .user-tab:hover {
            color: var(--text-primary);
            background-color: rgba(255, 255, 255, 0.05);
        }

        .user-tab.active {
            color: var(--accent-cyan);
        }

        .user-tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: var(--accent-cyan);
            border-radius: 3px 3px 0 0;
        }

        .user-form {
            padding: 24px;
            display: none;
        }

        .user-form.active {
            display: block;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 8px;
            font-weight: 600;
        }

        .user-input {
            width: 100%;
            padding: 14px;
            background-color: var(--bg-input);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 16px;
            outline: none;
            transition: border-color 0.2s ease;
        }

        .user-input:focus {
            border-color: var(--accent-cyan);
        }

        .user-input::placeholder {
            color: var(--text-tertiary);
        }

        /* Password field container with eye button */
        .password-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .password-input-wrapper .user-input {
            padding-right: 45px;
        }

        .toggle-password-btn {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--text-tertiary);
            font-size: 18px;
            cursor: pointer;
            padding: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            border-radius: 6px;
        }

        .toggle-password-btn:hover {
            color: var(--text-primary);
            background-color: rgba(255, 255, 255, 0.05);
        }

        .toggle-password-btn:active {
            transform: translateY(-50%) scale(0.95);
        }

        .input-hint {
            font-size: 12px;
            color: var(--text-tertiary);
            margin-top: 4px;
        }

        .form-footer {
            margin-top: 30px;
        }

        .user-submit-btn {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, var(--accent-cyan), #1ab0a5);
            border: none;
            border-radius: 10px;
            color: var(--bg-primary);
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .user-submit-btn:hover {
            background: linear-gradient(135deg, #1ab0a5, var(--accent-cyan));
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(38, 208, 196, 0.3);
        }

        .user-submit-btn:active {
            transform: translateY(0);
        }

        .form-error {
            color: var(--accent-red);
            font-size: 14px;
            margin-top: 10px;
            text-align: center;
            min-height: 20px;
        }

        .user-modal-footer {
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 20px 24px;
            background-color: var(--bg-card);
            border-top: 1px solid var(--border-color);
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            color: var(--text-secondary);
            justify-content: center;
        }

        .current-user {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            color: var(--accent-green);
            justify-content: center;
            padding: 8px 16px;
            background-color: rgba(26, 208, 147, 0.1);
            border-radius: 8px;
            border: 1px solid rgba(26, 208, 147, 0.3);
        }

        .current-user i {
            font-size: 16px;
        }

        /* Adjust user avatar to reflect login state */
        .user-avatar.logged-in {
            background: linear-gradient(135deg, #1A1F44, #25294E);
            border-color: rgba(60, 70, 204, 0.4);
        }

        /* Profile Interface */
        .profile-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            z-index: 2006;
            animation: fadeIn 0.3s ease;
        }

        .profile-modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .profile-modal-content {
            width: 90%;
            max-width: 450px;
            background-color: var(--bg-panel);
            border-radius: 16px;
            border: 1px solid var(--border-color);
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            animation: slideUp 0.3s ease;
        }

        .profile-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px;
            background-color: var(--bg-card);
            border-bottom: 1px solid var(--border-color);
        }

        .profile-modal-header h3 {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .profile-modal-header h3 i {
            color: var(--accent-cyan);
        }

        .close-profile-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 28px;
            cursor: pointer;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s ease;
        }

        .close-profile-btn:hover {
            background-color: var(--bg-input);
            color: var(--text-primary);
        }

        .profile-content {
            padding: 24px;
        }

        .profile-info {
            text-align: center;
            margin-bottom: 30px;
        }

        .profile-avatar-large {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-green), #0FAF7C);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 32px;
            margin: 0 auto 20px;
            border: 3px solid var(--accent-green);
        }

        .profile-username {
            font-size: 24px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .profile-email {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 20px;
        }

        .profile-stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-bottom: 30px;
        }

        .stat-item {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 16px;
            text-align: center;
        }

        .stat-label {
            font-size: 12px;
            color: var(--text-secondary);
            margin-bottom: 8px;
        }

        .stat-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .logout-btn {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, var(--accent-red), #E81C4F);
            border: none;
            border-radius: 10px;
            color: var(--text-primary);
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .logout-btn:hover {
            background: linear-gradient(135deg, #E81C4F, var(--accent-red));
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(250, 48, 96, 0.3);
        }

        .logout-btn:active {
            transform: translateY(0);
        }

        /* Settings button in profile modal */
        .settings-btn {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, var(--accent-purple), #7A6DFF);
            border: none;
            border-radius: 10px;
            color: var(--text-primary);
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-top: 12px;
        }

        .settings-btn:hover {
            background: linear-gradient(135deg, #7A6DFF, var(--accent-purple));
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(106, 90, 237, 0.3);
        }

        .settings-btn:active {
            transform: translateY(0);
        }

        .bonus-button {
            margin-top: 10px;
            background: linear-gradient(135deg, var(--accent-purple), #7A6DFF) !important;
        }

        .bonus-button:hover {
            background: linear-gradient(135deg, #7A6DFF, var(--accent-purple)) !important;
        }

        /* Settings Interface */
        .settings-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            z-index: 2007;
            animation: fadeIn 0.3s ease;
        }

        .settings-modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .settings-modal-content {
            width: 90%;
            max-width: 450px;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            background-color: var(--bg-panel);
            border-radius: 16px;
            border: 1px solid var(--border-color);
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            animation: slideUp 0.3s ease;
        }

        .settings-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px;
            background-color: var(--bg-card);
            border-bottom: 1px solid var(--border-color);
        }

        .settings-modal-header h3 {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .settings-modal-header h3 i {
            color: var(--accent-purple);
        }

        .close-settings-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 28px;
            cursor: pointer;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s ease;
        }

        .close-settings-btn:hover {
            background-color: var(--bg-input);
            color: var(--text-primary);
        }

        .settings-content {
            padding: 16px 24px;
            overflow-y: auto;
            flex: 1;
        }

        .settings-section {
            margin-bottom: 16px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border-color);
        }

        .settings-section:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .settings-section h4 {
            font-size: 15px;
            color: var(--text-primary);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .settings-section h4 i {
            color: var(--accent-purple);
        }

        .delete-account-btn {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, #4B5563, #374151);
            border: 1px solid var(--accent-red);
            border-radius: 10px;
            color: var(--accent-red);
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-top: 10px;
        }

        .delete-account-btn:hover {
            background: linear-gradient(135deg, var(--accent-red), #E81C4F);
            color: var(--text-primary);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(250, 48, 96, 0.3);
        }

        /* Account Deletion Confirmation Interface */
        .delete-confirm-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
            z-index: 2008;
            animation: fadeIn 0.3s ease;
        }

        .delete-confirm-modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .delete-confirm-content {
            width: 90%;
            max-width: 450px;
            background-color: var(--bg-panel);
            border-radius: 16px;
            border: 1px solid var(--accent-red);
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            animation: slideUp 0.3s ease;
        }

        .delete-confirm-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px;
            background-color: rgba(250, 48, 96, 0.1);
            border-bottom: 1px solid rgba(250, 48, 96, 0.3);
        }

        .delete-confirm-header h3 {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 20px;
            font-weight: 700;
            color: var(--accent-red);
        }

        .delete-confirm-header h3 i {
            color: var(--accent-red);
        }

        .close-delete-confirm-btn {
            background: none;
            border: none;
            color: var(--accent-red);
            font-size: 28px;
            cursor: pointer;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s ease;
        }

        .close-delete-confirm-btn:hover {
            background-color: rgba(250, 48, 96, 0.2);
            color: var(--text-primary);
        }

        .delete-confirm-message {
            padding: 30px 24px;
            text-align: center;
        }

        .delete-confirm-message p {
            font-size: 16px;
            color: var(--text-secondary);
            margin-bottom: 16px;
            line-height: 1.6;
        }

        .delete-confirm-message .warning {
            color: var(--accent-red);
            font-weight: 700;
            background-color: rgba(250, 48, 96, 0.1);
            padding: 12px;
            border-radius: 8px;
            margin: 20px 0;
            border: 1px solid rgba(250, 48, 96, 0.3);
        }

        .delete-confirm-actions {
            display: flex;
            gap: 12px;
            padding: 0 24px 24px;
        }

        .delete-confirm-btn {
            flex: 1;
            padding: 16px;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .delete-confirm-btn.cancel-btn {
            background-color: var(--bg-input);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
        }

        .delete-confirm-btn.cancel-btn:hover {
            background-color: var(--border-color);
            transform: translateY(-2px);
        }

        .delete-confirm-btn.confirm-btn {
            background: linear-gradient(135deg, var(--accent-red), #E81C4F);
            color: var(--text-primary);
        }

        .delete-confirm-btn.confirm-btn:hover {
            background: linear-gradient(135deg, #E81C4F, var(--accent-red));
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(250, 48, 96, 0.3);
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideUp {
            from { transform: translateY(50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        

